Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文件lexer_quotes在mysql计算节点上出现的错误 #801

Open
jd-zhang opened this issue Jul 12, 2022 · 0 comments
Open

文件lexer_quotes在mysql计算节点上出现的错误 #801

jd-zhang opened this issue Jul 12, 2022 · 0 comments

Comments

@jd-zhang
Copy link
Contributor

*Issue migrated from trac ticket # 899 www.kunlunbase.com *

component: computing nodes | priority: major

2022-07-12 17:44:11: vito@zettadb.com created the issue


多个语句当做成一个语句

select """;
select """";
select """"";
+-------------------------+
| ?column?                |
+-------------------------+
| ";
select "";
select "" |
+-------------------------+
1 row in set (0.00 sec)

select ''';
select '''';
select *'*;
+-------------------------+
| ?column?                |
+-------------------------+
| ';
select '';
select '' |
+-------------------------+
1 row in set (0.00 sec)
select """'''"";
select """'''\"'";
select *'"""*;
+--------------------------------+
| ?column?                       |
+--------------------------------+
| "'''";
select "'";
select '''" |
+--------------------------------+
1 row in set (0.00 sec)

列名不同,空值与0的不同
select '\n','\t','\0','\1','\a','\j';

+----------+----------+----------+----------+----------+----------+
| ?column? | ?column? | ?column? | ?column? | ?column? | ?column? |
+----------+----------+----------+----------+----------+----------+
|
        |               | \0       | \1       | a        | j        |
+----------+----------+----------+----------+----------+----------+
1 row in set (0.00 sec)

预期:

+---+---+---+---+---+---+
|   |   |   | 1 | a | j |
+---+---+---+---+---+---+
|
 |       |   | 1 | a | j |
+---+---+---+---+---+---+

create view "t""1" as select*from t1;
drop view "t""1";

ERROR 1149 (42000): syntax error at or near ""t""1"" at character: 13

FILE:  scan.l    LINE: 1488     FUNCTION:  scanner_yyerror
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant