sql: always treat NaN as NULL
In most cases, NaN was treated as NULL. But in case NaN was returned as a result of a Lua or C user defined function, it was considered a double. After this patch, NaN will also be considered NULL in the specified cases. Closes #6374 Closes #6572 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-6572-nan-is-not-null.md 3 additions, 0 deletionschangelogs/unreleased/gh-6572-nan-is-not-null.md
- src/box/sql/mem.c 25 additions, 6 deletionssrc/box/sql/mem.c
- test/sql-luatest/CMakeLists.txt 2 additions, 0 deletionstest/sql-luatest/CMakeLists.txt
- test/sql-luatest/gh_6572_nan_is_not_null_test.c 25 additions, 0 deletionstest/sql-luatest/gh_6572_nan_is_not_null_test.c
- test/sql-luatest/gh_6572_nan_is_not_null_test.lua 42 additions, 0 deletionstest/sql-luatest/gh_6572_nan_is_not_null_test.lua
Loading
Please register or sign in to comment