summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2004-05-15 00:06:16 +0400
committersergefp@mysql.com <>2004-05-15 00:06:16 +0400
commit3711c98b2ad162ff3f4694c6cedfd2d7c2c22aab (patch)
tree2b847992c4d6ac40460d6727558f05df45a64c69 /sql/sql_lex.h
parente81c6e1763bf0d6442c59ef17fcf61af02bf2d1f (diff)
parent7af3097e607b9abd47db5772cd92cfa0939d01e8 (diff)
downloadmariadb-git-3711c98b2ad162ff3f4694c6cedfd2d7c2c22aab.tar.gz
Trivial manual merge
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 557c037c799..a525bc485c1 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -76,6 +76,7 @@ enum enum_sql_command {
SQLCOM_SHOW_COLUMN_TYPES, SQLCOM_SHOW_STORAGE_ENGINES, SQLCOM_SHOW_PRIVILEGES,
SQLCOM_HELP, SQLCOM_DROP_USER, SQLCOM_REVOKE_ALL, SQLCOM_CHECKSUM,
+ SQLCOM_PREPARE, SQLCOM_EXECUTE, SQLCOM_DEALLOCATE_PREPARE,
/* This should be the last !!! */
SQLCOM_END
};
@@ -605,6 +606,11 @@ typedef struct st_lex
bool in_comment, ignore_space, verbose, simple_alter, no_write_to_binlog;
bool derived_tables;
bool safe_to_cache_query;
+ /* Prepared statements SQL syntax:*/
+ LEX_STRING prepared_stmt_name; /* Statement name (in all queries) */
+ LEX_STRING prepared_stmt_code; /* Statement query (in PREPARE )*/
+ /* Names of user variables holding parameters (in EXECUTE) */
+ List<LEX_STRING> prepared_stmt_params;
st_lex() {}
inline void uncacheable(uint8 cause)
{