summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authormonty@mashka.mysql.fi <>2002-09-03 15:44:25 +0300
committermonty@mashka.mysql.fi <>2002-09-03 15:44:25 +0300
commita01a0840dcb9fb7622e2c994ead985174df8daab (patch)
tree14062338992e5b5bda3d4e4cc498b6dd65a5a9c0 /sql/sql_class.cc
parenta5f9e95a932fb08d8998de2a49b7fc7b5c734b95 (diff)
downloadmariadb-git-a01a0840dcb9fb7622e2c994ead985174df8daab.tar.gz
Some trivial optimzations
Check if AND/OR expression can be NULL; Fixed bug in GROUP BY and-or-expression where expression could be NULL Bug fix for SHOW OPEN TABLES when user didn't have privilege to access all open tables. Better fix for ALTER TABLE on BDB tables.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 5c0d2b31d4e..7e03986f4bb 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -356,6 +356,18 @@ CHANGED_TABLE_LIST* THD::changed_table_dup(TABLE *table)
}
+#ifdef SIGNAL_WITH_VIO_CLOSE
+void THD::close_active_vio()
+{
+ safe_mutex_assert_owner(&LOCK_delete);
+ if (active_vio)
+ {
+ vio_close(active_vio);
+ active_vio = 0;
+ }
+}
+#endif
+
/*****************************************************************************
** Functions to provide a interface to select results
*****************************************************************************/