Skip to content
Snippets Groups Projects
Commit e7e1e068 authored by w328li's avatar w328li
Browse files

fix term

parent 40902413
No related branches found
No related tags found
No related merge requests found
...@@ -1719,7 +1719,7 @@ yyreduce: ...@@ -1719,7 +1719,7 @@ yyreduce:
#line 277 "SQLPGrammar_new.y" /* yacc.c:1646 */ #line 277 "SQLPGrammar_new.y" /* yacc.c:1646 */
{ {
printf("Term 1\n"); printf("Term 1\n");
(yyval) = create_constant((yyvsp[0])); (yyval) = (yyvsp[0]);
} }
#line 1725 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */ #line 1725 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break; break;
...@@ -1728,7 +1728,7 @@ yyreduce: ...@@ -1728,7 +1728,7 @@ yyreduce:
#line 282 "SQLPGrammar_new.y" /* yacc.c:1646 */ #line 282 "SQLPGrammar_new.y" /* yacc.c:1646 */
{ {
printf("Term 2\n"); printf("Term 2\n");
(yyval) = create_col((yyvsp[0])); (yyval) = (yyvsp[0]);
} }
#line 1734 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */ #line 1734 "SQLPGrammar_new.tab.c" /* yacc.c:1646 */
break; break;
......
...@@ -276,12 +276,12 @@ Term ...@@ -276,12 +276,12 @@ Term
: Constant : Constant
{ {
printf("Term 1\n"); printf("Term 1\n");
$$ = create_constant($1); $$ = $1;
} }
| Col | Col
{ {
printf("Term 2\n"); printf("Term 2\n");
$$ = create_col($1); $$ = $1;
} }
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment