summaryrefslogtreecommitdiff
path: root/sql/sql_cursor.cc
diff options
context:
space:
mode:
authorMarc Alff <marc.alff@sun.com>2008-08-11 16:44:13 -0600
committerMarc Alff <marc.alff@sun.com>2008-08-11 16:44:13 -0600
commit7f228cf20ea057a5d677d3546c6b29742db386a7 (patch)
tree7a10933aa27f945821757097c651e2de18b1c2aa /sql/sql_cursor.cc
parentb0d5c8a10bf9f165affe89d8d593888e12b694f5 (diff)
parent2f3b860305a88e7e44ed68c5ed3a0f1837921cb0 (diff)
downloadmariadb-git-7f228cf20ea057a5d677d3546c6b29742db386a7.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.cc2
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;
}