!704 支持不等于操作符: ^=

Merge pull request !704 from siven/sop
This commit is contained in:
opengauss-bot
2021-02-08 15:50:51 +08:00
committed by Gitee
3 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -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)

View File

@ -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;