summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorunknown <tsmith@ramayana.hindu.god>2007-10-10 14:01:48 -0600
committerunknown <tsmith@ramayana.hindu.god>2007-10-10 14:01:48 -0600
commit930656d5709f128660f070dad17465449d784655 (patch)
treea903943e1751a3dbb371a66bf2129d0c44d49b2f /sql/sql_class.cc
parenta0e05ed67348ecf51fdb51720b576347f17ac46a (diff)
parent1e03f6a72d8304c1fab955b890e6c817a3908355 (diff)
downloadmariadb-git-930656d5709f128660f070dad17465449d784655.tar.gz
Merge ramayana.hindu.god:/home/tsmith/m/bk/maint/50
into ramayana.hindu.god:/home/tsmith/m/bk/maint/51 sql/sql_class.cc: Auto merged
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 66a51d5bb00..5e8a8ab658a 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -2725,8 +2725,11 @@ void THD::restore_sub_statement_state(Sub_statement_state *backup)
void mark_transaction_to_rollback(THD *thd, bool all)
{
- thd->is_fatal_sub_stmt_error= TRUE;
- thd->transaction_rollback_request= all;
+ if (thd)
+ {
+ thd->is_fatal_sub_stmt_error= TRUE;
+ thd->transaction_rollback_request= all;
+ }
}
/***************************************************************************
Handling of XA id cacheing