summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2016-08-09 15:49:30 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2016-08-31 17:17:46 +0200
commit6dfa1d374e8c4d3a06e25ceb78cc6571418363ab (patch)
treee41520848e0ffdefb24a7fbe4cfe1c7249163125 /sql/sp_head.cc
parent0ee3e64c55664332e8e92eda55b43692159fe4fe (diff)
downloadmariadb-git-6dfa1d374e8c4d3a06e25ceb78cc6571418363ab.tar.gz
MDEV-8931: (server part of) session state tracking
Postreview fixes. New MySQL tests fixes.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index c344a6c6ed8..41006f07a0a 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -2981,8 +2981,10 @@ sp_lex_keeper::reset_lex_and_exec_core(THD *thd, uint *nextp,
#ifndef EMBEDDED_LIBRARY
/*
- if there was instruction which changed tracking state before, result
- can go with this command OK packet, so better do not cache the result.
+ If there was instruction which changed tracking state,
+ the result of changed tracking state send to client in OK packed.
+ So it changes result sent to client and probably can be different
+ independent on query text. So we can't cache such results.
*/
if ((thd->client_capabilities & CLIENT_SESSION_TRACK) &&
(thd->server_status & SERVER_SESSION_STATE_CHANGED))