summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-11-11 09:35:05 +0400
committerAlexander Barkov <bar@mariadb.com>2018-11-11 09:35:05 +0400
commitf5855ba03deef188516453b71e56d4239f74a653 (patch)
treee87e1dafd0cbbc80586b84f87729997b1fd7a209 /sql/sql_lex.h
parent8e6f10335d2c6afb1d34e99af6e1ee49b6e4a875 (diff)
downloadmariadb-git-f5855ba03deef188516453b71e56d4239f74a653.tar.gz
MDEV-17664 Add sql_mode specific tokens for ':' and '%'
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index ea2f61c3992..dbd201d2d7c 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -182,6 +182,16 @@ enum enum_view_suid
VIEW_SUID_DEFAULT= 2
};
+
+enum plsql_cursor_attr_t
+{
+ PLSQL_CURSOR_ATTR_ISOPEN,
+ PLSQL_CURSOR_ATTR_FOUND,
+ PLSQL_CURSOR_ATTR_NOTFOUND,
+ PLSQL_CURSOR_ATTR_ROWCOUNT
+};
+
+
/* These may not be declared yet */
class Table_ident;
class sql_exchange;
@@ -3642,6 +3652,10 @@ public:
Item *make_item_colon_ident_ident(THD *thd,
const Lex_ident_cli_st *a,
const Lex_ident_cli_st *b);
+ // PLSQL: cursor%ISOPEN etc
+ Item *make_item_plsql_cursor_attr(THD *thd, const LEX_CSTRING *name,
+ plsql_cursor_attr_t attr);
+
// For "SELECT @@var", "SELECT @@var.field"
Item *make_item_sysvar(THD *thd,
enum_var_type type,