summaryrefslogtreecommitdiff
path: root/sql/sql_prepare.cc
diff options
context:
space:
mode:
authorunknown <tsmith/tim@siva.hindu.god>2006-10-16 20:15:14 -0600
committerunknown <tsmith/tim@siva.hindu.god>2006-10-16 20:15:14 -0600
commit1e8c450dea260fb3827f0d79a214c969b4abd571 (patch)
tree3f89b2096b71b6cfb47a48455bc0cdfe62f65634 /sql/sql_prepare.cc
parent4771fc36bca491b0e403a6f3ffe53e8973577bd8 (diff)
parent99d42667d68a6ad5c52c6a24029477687b44f45d (diff)
downloadmariadb-git-1e8c450dea260fb3827f0d79a214c969b4abd571.tar.gz
Merge siva.hindu.god:/usr/home/tim/m/bk/b19764/50
into siva.hindu.god:/usr/home/tim/m/bk/tmp/mrgOct16/50 sql/sql_parse.cc: Auto merged sql/sql_prepare.cc: Auto merged mysql-test/r/ps.result: Manual merge mysql-test/t/ps.test: Manual merge
Diffstat (limited to 'sql/sql_prepare.cc')
-rw-r--r--sql/sql_prepare.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_prepare.cc b/sql/sql_prepare.cc
index 9e321411863..5a2e2f7d419 100644
--- a/sql/sql_prepare.cc
+++ b/sql/sql_prepare.cc
@@ -2930,6 +2930,12 @@ bool Prepared_statement::execute(String *expanded_query, bool open_cursor)
stmt_backup.query_length= thd->query_length;
/*
+ Save orig_sql_command as we use it to disable slow logging for SHOW
+ commands (see log_slow_statement()).
+ */
+ stmt_backup.lex->orig_sql_command= thd->lex->orig_sql_command;
+
+ /*
At first execution of prepared statement we may perform logical
transformations of the query tree. Such changes should be performed
on the parse tree of current prepared statement and new items should