sql: properly check result of sql_get_coll_seq()
This patch fixes an issue with checking the result of sql_get_coll_seq() in sql_expr_coll(). This fix only changes the error if the collation combination is invalid because sql_get_coll_seq() sets the is_aborted flag and error will be thrown in any case. Closes tarantool/security#80 NO_DOC=change of returned error in rare case NO_CHANGELOG=change of returned error in rare case (cherry picked from commit e9f1beab)
Showing
- src/box/sql/expr.c 1 addition, 1 deletionsrc/box/sql/expr.c
- test/sql-luatest/collation_test.lua 21 additions, 0 deletionstest/sql-luatest/collation_test.lua
- test/sql/collation.result 2 additions, 1 deletiontest/sql/collation.result
- test/sql/collation.test.lua 2 additions, 1 deletiontest/sql/collation.test.lua
Loading
Please register or sign in to comment