sql: GREATEST, LEAST instead of MIN/MAX overload
This patch does two things: renames existing scalar min/max functions and reserves names for them in NoSQL cache. Moreover it is an important step to get rid of function's name overloading required for replace FuncDef cache with Tarantool's function cache. Closes #4405 Needed for #2200, #4113, #2233 @TarantoolBot document Title: Scalar functions MIN/MAX are renamed to LEAST/GREATEST The MIN/MAX functions are typically used only as aggregate functions in other RDBMS(MSSQL, Postgress, MySQL, Oracle) while Tarantool's SQLite legacy code use them also in meaning GREATEST/LEAST scalar function. Now it fixed.
Showing
- src/box/bootstrap.snap 0 additions, 0 deletionssrc/box/bootstrap.snap
- src/box/lua/upgrade.lua 20 additions, 0 deletionssrc/box/lua/upgrade.lua
- src/box/sql/func.c 2 additions, 4 deletionssrc/box/sql/func.c
- test/box-py/bootstrap.result 3 additions, 1 deletiontest/box-py/bootstrap.result
- test/box/access.result 1 addition, 1 deletiontest/box/access.result
- test/box/access.test.lua 1 addition, 1 deletiontest/box/access.test.lua
- test/box/access_bin.result 1 addition, 1 deletiontest/box/access_bin.result
- test/box/access_bin.test.lua 1 addition, 1 deletiontest/box/access_bin.test.lua
- test/box/access_misc.result 69 additions, 65 deletionstest/box/access_misc.result
- test/box/access_sysview.result 4 additions, 4 deletionstest/box/access_sysview.result
- test/box/errinj.result 9 additions, 0 deletionstest/box/errinj.result
- test/box/errinj.test.lua 5 additions, 0 deletionstest/box/errinj.test.lua
- test/box/function1.result 4 additions, 4 deletionstest/box/function1.result
- test/box/function1.test.lua 1 addition, 1 deletiontest/box/function1.test.lua
- test/sql-tap/coalesce.test.lua 1 addition, 1 deletiontest/sql-tap/coalesce.test.lua
- test/sql-tap/func3.test.lua 6 additions, 6 deletionstest/sql-tap/func3.test.lua
- test/sql-tap/func5.test.lua 17 additions, 17 deletionstest/sql-tap/func5.test.lua
- test/sql-tap/in1.test.lua 3 additions, 3 deletionstest/sql-tap/in1.test.lua
- test/sql-tap/insert1.test.lua 1 addition, 1 deletiontest/sql-tap/insert1.test.lua
- test/sql-tap/misc1.test.lua 1 addition, 1 deletiontest/sql-tap/misc1.test.lua
Loading
Please register or sign in to comment