Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LDI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eva Feng
LDI
Commits
384bd6c2
Commit
384bd6c2
authored
5 years ago
by
w328li
Browse files
Options
Downloads
Patches
Plain Diff
remove redundant NULL
parent
60c8ef60
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
SQLPGrammar_new.tab.c
+1
-1
1 addition, 1 deletion
SQLPGrammar_new.tab.c
SQLPGrammar_new.y
+1
-1
1 addition, 1 deletion
SQLPGrammar_new.y
SQLPParser_new
+0
-0
0 additions, 0 deletions
SQLPParser_new
util_new.c
+2
-3
2 additions, 3 deletions
util_new.c
util_new.h
+1
-1
1 addition, 1 deletion
util_new.h
with
5 additions
and
6 deletions
SQLPGrammar_new.tab.c
+
1
−
1
View file @
384bd6c2
...
...
@@ -1702,7 +1702,7 @@ yyreduce:
printf
(
"BasicPred 1
\n
"
);
cons_cell
*
first_term
=
create_term
((
yyvsp
[
-
2
]));
cons_cell
*
second_term
=
create_term
((
yyvsp
[
0
]));
(
yyval
)
=
create_comp_operator
((
yyvsp
[
-
1
]),
first_term
,
second_term
,
NULL
);
(
yyval
)
=
create_comp_operator
((
yyvsp
[
-
1
]),
first_term
,
second_term
);
}
#line 1708 "SQLPGrammar_new.tab.c"
/* yacc.c:1646 */
break
;
...
...
This diff is collapsed.
Click to expand it.
SQLPGrammar_new.y
+
1
−
1
View file @
384bd6c2
...
...
@@ -261,7 +261,7 @@ BasicPred
printf("BasicPred 1\n");
cons_cell* first_term = create_term($1);
cons_cell* second_term = create_term($3);
$$ = create_comp_operator($2, first_term, second_term
, NULL
);
$$ = create_comp_operator($2, first_term, second_term);
}
| EXIST '(' Body ')'
{
...
...
This diff is collapsed.
Click to expand it.
SQLPParser_new
+
0
−
0
View file @
384bd6c2
No preview for this file type
This diff is collapsed.
Click to expand it.
util_new.c
+
2
−
3
View file @
384bd6c2
...
...
@@ -84,10 +84,9 @@ cons_cell* create_op(char *op) {
}
// todo: why need ra
cons_cell
*
create_comp_operator
(
cons_cell
*
op
,
cons_cell
*
term1
,
cons_cell
*
term2
,
cons_cell
*
ra
)
{
cons_cell
*
create_comp_operator
(
cons_cell
*
op
,
cons_cell
*
term1
,
cons_cell
*
term2
)
{
cons_cell
*
ra_cons
=
create_cons_cell
(
ra
,
NULL
);
cons_cell
*
term2_cons
=
create_cons_cell
(
term2
,
ra_cons
);
cons_cell
*
term2_cons
=
create_cons_cell
(
term2
,
NULL
);
cons_cell
*
term1_cons
=
create_cons_cell
(
term1
,
term2_cons
);
cons_cell
*
op_cons
=
create_cons_cell
(
op
,
term1_cons
);
char
operator
[
5
]
=
"COMP
\0
"
;
...
...
This diff is collapsed.
Click to expand it.
util_new.h
+
1
−
1
View file @
384bd6c2
...
...
@@ -69,7 +69,7 @@ cons_cell* create_col(char *col);
cons_cell
*
create_attr
(
char
*
attr
);
cons_cell
*
create_var
(
char
*
var
);
cons_cell
*
create_op
(
char
*
op
);
cons_cell
*
create_comp_operator
(
cons_cell
*
op
,
cons_cell
*
term1
,
cons_cell
*
term2
,
cons_cell
*
ra
);
cons_cell
*
create_comp_operator
(
cons_cell
*
op
,
cons_cell
*
term1
,
cons_cell
*
term2
);
cons_cell
*
create_atom_operator
(
cons_cell
*
table
,
cons_cell
*
var
);
cons_cell
*
create_union_all_operator
(
cons_cell
*
ra1
,
cons_cell
*
ra2
);
cons_cell
*
create_union_operator
(
cons_cell
*
ra1
,
cons_cell
*
ra2
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment