支持不等于操作符:^=
This commit is contained in:
@ -913,7 +913,7 @@ other .
|
||||
yyerror("operator too long");
|
||||
|
||||
/* Convert "!=" operator to "<>" for compatibility */
|
||||
if (strcmp(yytext, "!=") == 0)
|
||||
if (strcmp(yytext, "!=") == 0 || strcmp(yytext, "^=") == 0)
|
||||
{
|
||||
yylval->str = pstrdup("<>");
|
||||
yyextra->is_hint_str = false;
|
||||
|
||||
@ -904,3 +904,9 @@ LINE 1: select xmin from t, ft1 where t.a=ft1.a;
|
||||
^
|
||||
drop schema syscolofforeign cascade;
|
||||
NOTICE: drop cascades to table t
|
||||
-- test ^=
|
||||
select 1 ^= 2;
|
||||
?column?
|
||||
----------
|
||||
t
|
||||
(1 row)
|
||||
|
||||
@ -270,3 +270,6 @@ select t.xmin from t, ft1 where t.a=ft1.a;
|
||||
select xmin from t, ft1 where t.a=ft1.a;
|
||||
|
||||
drop schema syscolofforeign cascade;
|
||||
|
||||
-- test ^=
|
||||
select 1 ^= 2;
|
||||
|
||||
Reference in New Issue
Block a user