summaryrefslogtreecommitdiff
path: root/sql/sql_error.cc
diff options
context:
space:
mode:
authorkonstantin@oak.local <>2003-12-19 20:52:13 +0300
committerkonstantin@oak.local <>2003-12-19 20:52:13 +0300
commitd37da004f6ffb32d170ce4cb9d93ba166de5b6b0 (patch)
treea4c72a1d62170f1e5637ed34fd09ada369f1c764 /sql/sql_error.cc
parentc49773237d2bb807e10ffb66c321f87a20f1e1c6 (diff)
downloadmariadb-git-d37da004f6ffb32d170ce4cb9d93ba166de5b6b0.tar.gz
THD::lex now points to THD::main_lex like in 5.0
All tests pass (client_test included)
Diffstat (limited to 'sql/sql_error.cc')
-rw-r--r--sql/sql_error.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc
index 81b98358486..c94d5e52bcf 100644
--- a/sql/sql_error.cc
+++ b/sql/sql_error.cc
@@ -185,7 +185,7 @@ my_bool mysqld_show_warnings(THD *thd, ulong levels_to_show)
DBUG_RETURN(1);
MYSQL_ERROR *err;
- SELECT_LEX *sel= &thd->lex.select_lex;
+ SELECT_LEX *sel= &thd->lex->select_lex;
ha_rows offset= sel->offset_limit, limit= sel->select_limit;
Protocol *protocol=thd->protocol;