diff options
author | unknown <bell@sanja.is.com.ua> | 2005-06-23 18:29:10 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2005-06-23 18:29:10 +0300 |
commit | 4342dfabb4dd2dbc0edd4c634241f85dcca699d6 (patch) | |
tree | c77bf7e6fffbe90308dfb1d0b58b5d2d64ffba2b /sql/protocol.cc | |
parent | 18242cfc39681da00b026403229b6972efbea2c0 (diff) | |
download | mariadb-git-4342dfabb4dd2dbc0edd4c634241f85dcca699d6.tar.gz |
fixed environment restoring in case of error during SP function execution (BUG#9503)
#define macro improvement
mysql-test/r/sp-security.result:
BUG#9503: reseting correct parameters of thread after error in SP function
mysql-test/t/sp-security.test:
BUG#9503: reseting correct parameters of thread after error in SP function
sql/item_func.cc:
fixed environment restoring in case of error during SP function execution
sql/protocol.cc:
added debug print
sql/sql_class.h:
fixed #defines to force them to be alvaise in piar, and variable name made more complex for accident repeating in other code
Diffstat (limited to 'sql/protocol.cc')
-rw-r--r-- | sql/protocol.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/protocol.cc b/sql/protocol.cc index 57922cdc677..1c399a89a99 100644 --- a/sql/protocol.cc +++ b/sql/protocol.cc @@ -294,7 +294,12 @@ send_ok(THD *thd, ha_rows affected_rows, ulonglong id, const char *message) DBUG_ENTER("send_ok"); if (net->no_send_ok || !net->vio) // hack for re-parsing queries + { + DBUG_PRINT("info", ("no send ok: %s, vio present: %s", + (net->no_send_ok ? "YES" : "NO"), + (net->vio ? "YES" : "NO"))); DBUG_VOID_RETURN; + } buff[0]=0; // No fields pos=net_store_length(buff+1,(ulonglong) affected_rows); |