diff options
author | Marc Alff <marc.alff@sun.com> | 2008-08-11 16:44:13 -0600 |
---|---|---|
committer | Marc Alff <marc.alff@sun.com> | 2008-08-11 16:44:13 -0600 |
commit | 385b4bf7ffc61246ec10cf893e0b905c858af7f5 (patch) | |
tree | 7a10933aa27f945821757097c651e2de18b1c2aa /sql/sql_cursor.cc | |
parent | cf43a69a399f596b112d4898db8fbc6b5062dcbd (diff) | |
parent | e087c05d3d7d0acd26b23b95a5cdf930d20d251d (diff) | |
download | mariadb-git-385b4bf7ffc61246ec10cf893e0b905c858af7f5.tar.gz |
Manual merge of mysql-5.0-bugteam -> mysql-5.1-bugteam
Note: NULL merge of sql/sql_yacc.yy, the fix for bug#38296 will be provided separately for 5.1
Diffstat (limited to 'sql/sql_cursor.cc')
-rw-r--r-- | sql/sql_cursor.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_cursor.cc b/sql/sql_cursor.cc index d33680e1e0b..7c530cb9013 100644 --- a/sql/sql_cursor.cc +++ b/sql/sql_cursor.cc @@ -155,6 +155,7 @@ int mysql_open_cursor(THD *thd, uint flags, select_result *result, if (! (sensitive_cursor= new (thd->mem_root) Sensitive_cursor(thd, result))) { delete result_materialize; + result_materialize= NULL; return 1; } @@ -212,6 +213,7 @@ int mysql_open_cursor(THD *thd, uint flags, select_result *result, if ((rc= materialized_cursor->open(0))) { delete materialized_cursor; + materialized_cursor= NULL; goto err_open; } |