summaryrefslogtreecommitdiff
path: root/sql/sql_base.cc
diff options
context:
space:
mode:
authorunknown <gluh@gluh.mysql.r18.ru>2004-11-16 00:29:49 +0300
committerunknown <gluh@gluh.mysql.r18.ru>2004-11-16 00:29:49 +0300
commitac9e3a9633bf93be4d97a2a1888fc5ac8c6947db (patch)
treedcb3578c43aa32d33388acdb9b1fa6ac454f77b3 /sql/sql_base.cc
parenta59b0fbfd6b7627a4fdf2233482e732480dbe437 (diff)
downloadmariadb-git-ac9e3a9633bf93be4d97a2a1888fc5ac8c6947db.tar.gz
valgrind error fix
Diffstat (limited to 'sql/sql_base.cc')
-rw-r--r--sql/sql_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_base.cc b/sql/sql_base.cc
index 629216249cd..f2209fe3d90 100644
--- a/sql/sql_base.cc
+++ b/sql/sql_base.cc
@@ -1938,7 +1938,7 @@ int lock_tables(THD *thd, TABLE_LIST *tables, uint count)
return -1;
for (table= tables; table; table= table->next_global)
{
- if (!table->placeholder())
+ if (!table->placeholder() && !table->schema_table)
*(ptr++)= table->table;
}
if (!(thd->lock=mysql_lock_tables(thd,start, (uint) (ptr - start))))