sql: fix error code for SQL errors in execute.c
Currently, functions sql_execute() and sql_prepare_and_execute() set the ER_SQL_EXECUTE code for all errors that occur during the execution of a SQL command. This is considered incorrect because some of these errors may have their own error code. After this patch, only errors without an error code will have the error code ER_SQL_EXECUTE. Part of #3505
Showing
- src/box/execute.c 12 additions, 2 deletionssrc/box/execute.c
- test/sql/collation.result 1 addition, 1 deletiontest/sql/collation.result
- test/sql/gh-2362-select-access-rights.result 4 additions, 8 deletionstest/sql/gh-2362-select-access-rights.result
- test/sql/iproto.result 14 additions, 21 deletionstest/sql/iproto.result
Loading
Please register or sign in to comment