summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorsergefp@mysql.com <>2004-05-06 23:02:32 +0400
committersergefp@mysql.com <>2004-05-06 23:02:32 +0400
commit67ad78cb5dab156169dcecfd58a2b4c6b35b4911 (patch)
tree50153bc4a1b4f760b75c16f4627a54730d261de3 /sql/sql_lex.h
parentb58df2e9d4a30a347b9c190a7cbe97d8deee3b4f (diff)
parent963ae8a9a7caa1f24047535b96cec480352cdc3e (diff)
downloadmariadb-git-67ad78cb5dab156169dcecfd58a2b4c6b35b4911.tar.gz
Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/dbdata/psergey/mysql-4.1-ps-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 78bf3bdd5f5..dd0b550545f 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
};
@@ -600,6 +601,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)
{