summaryrefslogtreecommitdiff
path: root/sql/sql_help.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2003-10-15 22:40:36 +0300
committermonty@mashka.mysql.fi <>2003-10-15 22:40:36 +0300
commit9ef2a83fbe93da4b5d69389e2c5368f96debedc7 (patch)
treedcc59a0d59657900722d4e51c1daeceec81df437 /sql/sql_help.cc
parente71b53a8fec86ee65c136a9447b56361cbf918fb (diff)
downloadmariadb-git-9ef2a83fbe93da4b5d69389e2c5368f96debedc7.tar.gz
Portability fixes for windows
After merge fixes
Diffstat (limited to 'sql/sql_help.cc')
-rw-r--r--sql/sql_help.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_help.cc b/sql/sql_help.cc
index 02fc8591370..6af4ffde0e1 100644
--- a/sql/sql_help.cc
+++ b/sql/sql_help.cc
@@ -599,7 +599,7 @@ SQL_SELECT *prepare_simple_select(THD *thd, Item *cond, TABLE_LIST *tables,
{
cond->fix_fields(thd, tables, &cond); // can never fail
SQL_SELECT *res= make_select(table,0,0,cond,error);
- return (*error || (res && res->check_quick(0, HA_POS_ERROR))) ? 0 : res;
+ return (*error || (res && res->check_quick(thd, 0, HA_POS_ERROR))) ? 0 : res;
}
/*
@@ -627,6 +627,8 @@ SQL_SELECT *prepare_select_for_name(THD *thd, const char *mask, uint mlen,
Item *cond= new Item_func_like(new Item_field(pfname),
new Item_string(mask,mlen,pfname->charset()),
(char*) "\\");
+ if (thd->is_fatal_error)
+ return 0; // OOM
return prepare_simple_select(thd,cond,tables,table,error);
}