This commit is contained in:
hjliao 2019-09-27 14:53:14 +08:00
parent 40e97536d1
commit 5227c73277
2 changed files with 6 additions and 0 deletions

View File

@ -236,6 +236,7 @@ create_table_args(A) ::= AS select(S). {
%type column{TAOS_FIELD} %type column{TAOS_FIELD}
%type columnlist{tFieldList*} %type columnlist{tFieldList*}
%destructor columnlist {tFieldListDestroy($$);}
columnlist(A) ::= columnlist(X) COMMA column(Y). {A = tFieldListAppend(X, &Y); } columnlist(A) ::= columnlist(X) COMMA column(Y). {A = tFieldListAppend(X, &Y); }
columnlist(A) ::= column(X). {A = tFieldListAppend(NULL, &X);} columnlist(A) ::= column(X). {A = tFieldListAppend(NULL, &X);}

View File

@ -1004,6 +1004,11 @@ static void yy_destructor(
case 235: /* grouplist */ case 235: /* grouplist */
{ {
tVariantListDestroy((yypminor->yy216)); tVariantListDestroy((yypminor->yy216));
}
break;
case 213: /* columnlist */
{
tFieldListDestroy((yypminor->yy151));
} }
break; break;
case 214: /* select */ case 214: /* select */