summaryrefslogtreecommitdiff
path: root/sql/sql_lex.h
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-12-02 21:18:12 +0200
committerunknown <bell@sanja.is.com.ua>2005-12-02 21:18:12 +0200
commit4202271065969a00c310f832cd496cb6f3c095e5 (patch)
tree68ef4b9d68ef96bb3c8739f3c040c31da4baf232 /sql/sql_lex.h
parent84da27f67a99a4bbf1bc50712841f33dcb0a0458 (diff)
downloadmariadb-git-4202271065969a00c310f832cd496cb6f3c095e5.tar.gz
Now we shall store only position (index of first character)
of SELECT from query begining, to be independet of query buffer allocation. Correct procedure used to find beginning of the current statement during parsing (BUG#14885). mysql-test/r/view.result: BUG#14885 test suite. mysql-test/t/view.test: BUG#14885 test suite. sql/sp_head.cc: The debug print statement fixed to prevent crash in case of NULL in m_next_cached_sp. sql/sql_lex.h: Now we shall store only position (index of first character) of SELECT from query beginning. sql/sql_view.cc: Position of the SELECT used to output it to .frm. sql/sql_yacc.yy: Now we shall store only position (index of first character) of SELECT from query beginning. Correct procedure used to find beginning of the current statement during parsing.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r--sql/sql_lex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h
index 372bbc5576b..c3198beb4e9 100644
--- a/sql/sql_lex.h
+++ b/sql/sql_lex.h
@@ -738,8 +738,8 @@ typedef struct st_lex
TABLE_LIST **query_tables_last;
/* store original leaf_tables for INSERT SELECT and PS/SP */
TABLE_LIST *leaf_tables_insert;
- char *create_view_start;
- char *create_view_select_start;
+ /* Position (first character index) of SELECT of CREATE VIEW statement */
+ uint create_view_select_start;
/*
The definer of the object being created (view, trigger, stored routine).