You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it is possible to set a syntax error, even if there has
already been another error before.
For example:
box.execute("insert into not_exist values(1) a")
The first error is "Space 'NOT_EXIST' does not exist", but "Syntax
error near 'a'" is displayed.
After this patch, all syntax errors will be set only if there have
been no errors before.
Closes#3964
This patch stops the parser if any error occurs. Prior to this
patch, it was possible to replace the error with another one,
since the parser may continue to work, even if an error occurred.
For example:
box.execute("insert into not_exist values(1) a")
The first error is "Space 'NOT_EXIST' does not exist", but "Syntax
error near 'a'" is displayed.
After this patch, the first error will be displayed.
Closes#3964
This patch stops the parser if any error occurs. Prior to this
patch, it was possible to replace the error with another one,
since the parser may continue to work, even if an error occurred.
For example:
box.execute("insert into not_exist values(1) a")
The first error is "Space 'NOT_EXIST' does not exist", but "Syntax
error near 'a'" is displayed.
After this patch, the first error will be displayed.
Closes#3964Closes#4195
Tarantool version: 2.1.1-210-g4df4a78
OS version: Ubuntu 16.04.5 LTS
Bug description: Some errors can be overwritten because the SQL parser continues to work after an error occurs during the parsing.
Steps to reproduce:
Output:
The text was updated successfully, but these errors were encountered: