summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2010-10-25 15:21:16 +0200
committerSergei Golubchik <sergii@pisem.net>2010-10-25 15:21:16 +0200
commit04a4b4334650b2183d25a7b04c1e83c31bffb22d (patch)
tree587654c186615669df8d81b851db711bb8ac2f62 /sql/sql_lex.h
parent37a78d6868d0e25d286299c91d5787fb6733844d (diff)
parent60c15066db4f59e0362420d46a1ca5b6fbb30e56 (diff)
downloadmariadb-git-04a4b4334650b2183d25a7b04c1e83c31bffb22d.tar.gz
merge with 5.1
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 020e2b4e76e..0539de0206d 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -1841,6 +1841,23 @@ typedef struct st_lex : public Query_tables_list
*/
bool protect_against_global_read_lock;
+ /*
+ The following three variables are used in 'CREATE TABLE IF NOT EXISTS ...
+ SELECT' statement. They are used to binlog the statement.
+
+ create_select_start_with_brace will be set if there is a '(' before
+ the first SELECT clause
+
+ create_select_pos records the relative position of the SELECT clause
+ in the whole statement.
+
+ create_select_in_comment will be set if SELECT keyword is in conditional
+ comment.
+ */
+ bool create_select_start_with_brace;
+ uint create_select_pos;
+ bool create_select_in_comment;
+
st_lex();
virtual ~st_lex()