mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Add the support of 'SUBSTR' function compatible with Oracle and SAPDB (SCRUM #872)
sql/lex.h: Add SUBSTR aliased to SUBSTRING sql/item_strfunc.cc: Implement SUBSTR negative offset mysql-test/t/func_str.test: New tests for SUBSTR mysql-test/r/func_str.result: Updated SUBSTR results
This commit is contained in:
parent
531a5d76bf
commit
a5ce6a49dd
4 changed files with 35 additions and 1 deletions
|
|
@ -627,6 +627,7 @@ static SYMBOL sql_functions[] = {
|
|||
{ "STD", SYM(STD_SYM),0,0},
|
||||
{ "STDDEV", SYM(STD_SYM),0,0},
|
||||
{ "STRCMP", SYM(FUNC_ARG2),0,CREATE_FUNC(create_func_strcmp)},
|
||||
{ "SUBSTR", SYM(SUBSTRING),0,0},
|
||||
{ "SUBSTRING", SYM(SUBSTRING),0,0},
|
||||
{ "SUBSTRING_INDEX", SYM(SUBSTRING_INDEX),0,0},
|
||||
{ "SUBTIME", SYM(FUNC_ARG2),0,CREATE_FUNC(create_func_subtime)},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue