List:Commits« Previous MessageNext Message »
From:msvensson Date:July 17 2006 3:24pm
Subject:bk commit into 5.1 tree (msvensson:1.2257) BUG#21039
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of msvensson. When msvensson does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-07-17 17:24:20+02:00, msvensson@neptunus.(none) +1 -0
  Bug#21039 Transaction cache not flushed after SELECT CREATE
   - Don't call 'close_cached_tables' when the sp doesn't use any tables

  sql/sp_head.cc@stripped, 2006-07-17 17:24:14+02:00, msvensson@neptunus.(none) +9 -3
    Call 'close_thread_tables' only if the sp are using any tables

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	msvensson
# Host:	neptunus.(none)
# Root:	/home/msvensson/mysql/mysql-5.1

--- 1.230/sql/sp_head.cc	2006-07-17 17:24:31 +02:00
+++ 1.231/sql/sp_head.cc	2006-07-17 17:24:31 +02:00
@@ -2232,9 +2232,15 @@
 
   m_lex->unit.cleanup();
 
-  thd->proc_info="closing tables";
-  close_thread_tables(thd);
-  thd->proc_info= 0;
+  /*
+    Call 'close_thread_tables' only if the sp are using any tables
+  */
+  if (m_lex->query_tables)
+  {
+    thd->proc_info="closing tables";
+    close_thread_tables(thd);
+    thd->proc_info= 0;
+  }
 
   if (m_lex->query_tables_own_last)
   {
Thread
bk commit into 5.1 tree (msvensson:1.2257) BUG#21039msvensson17 Jul