summaryrefslogtreecommitdiff
path: root/sql/item_subselect.cc
diff options
context:
space:
mode:
authorkostja@bodhi.(none) <>2007-10-30 20:08:16 +0300
committerkostja@bodhi.(none) <>2007-10-30 20:08:16 +0300
commite4b353c40c551e4ac0832dd0106219e7e0b716ba (patch)
tree9ec3bc334876bc45e6590ad238ea740b8192f907 /sql/item_subselect.cc
parent0909d1f8cbebaac2afb640b0f57a752d973c1582 (diff)
downloadmariadb-git-e4b353c40c551e4ac0832dd0106219e7e0b716ba.tar.gz
Use an inline getter method (thd->is_error()) to query if there is an error
in THD. In future the error may be stored elsewhere (not in net.report_error) and it's important to start using an opaque getter to simplify merges.
Diffstat (limited to 'sql/item_subselect.cc')
-rw-r--r--sql/item_subselect.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_subselect.cc b/sql/item_subselect.cc
index 843c6ced263..8eb7421f854 100644
--- a/sql/item_subselect.cc
+++ b/sql/item_subselect.cc
@@ -248,7 +248,7 @@ bool Item_subselect::exec()
{
int res;
- if (thd->net.report_error)
+ if (thd->is_error())
/* Do not execute subselect in case of a fatal error */
return 1;