Kexi queries/parser: make SUBSTR(X, Y [, Z]) built-in SQL function work
This is a first step to make lots of functions work. https://community.kde.org/Kexi/Plugins/Queries/SQL_Functions#Functions Details: - add a few convenience functions to BaseExpr - N-arg expressions: make token-to-string function support char tokens - add KexiDBExpr_ArgumentList class ID for N-arg expressions (,,,,) - FunctionExpr: compute type and validation for SUBSTR() - parser: also support empty arg list "()" in functions REVIEW:122783 BUG:333206 FIXED-IN:2.9.1
Showing
- libs/db/expression.cpp 138 additions, 11 deletionslibs/db/expression.cpp
- libs/db/expression.h 33 additions, 3 deletionslibs/db/expression.h
- libs/db/field.cpp 3 additions, 2 deletionslibs/db/field.cpp
- libs/db/parser/sqlparser.cpp 796 additions, 1117 deletionslibs/db/parser/sqlparser.cpp
- libs/db/parser/sqlparser.h 75 additions, 88 deletionslibs/db/parser/sqlparser.h
- libs/db/parser/sqlparser.y 7 additions, 7 deletionslibs/db/parser/sqlparser.y
Loading
Please register or sign in to comment