List:Internals« Previous MessageNext Message »
From:Jim Winstead Date:November 23 2005 11:58pm
Subject:bk commit into 5.0 tree (jimw:1.1998)
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jimw. When jimw 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
  1.1998 05/11/23 14:58:07 jimw@stripped +1 -0
  Merge mysql.com:/home/jimw/my/mysql-5.0-14956
  into  mysql.com:/home/jimw/my/mysql-5.0-clean

  sql/sql_parse.cc
    1.520 05/11/23 14:58:03 jimw@stripped +0 -0
    Auto merged

# 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:	jimw
# Host:	rama.(none)
# Root:	/home/jimw/my/mysql-5.0-clean/RESYNC

--- 1.519/sql/sql_parse.cc	2005-11-23 10:18:04 -08:00
+++ 1.520/sql/sql_parse.cc	2005-11-23 14:58:03 -08:00
@@ -4843,11 +4843,15 @@
 
 
   /*
-    The return value for ROW_COUNT() is "implementation dependent" if
-    the statement is not DELETE, INSERT or UPDATE (or a CALL executing
-    such a statement), but -1 is what JDBC and ODBC wants.
+    The return value for ROW_COUNT() is "implementation dependent" if the
+    statement is not DELETE, INSERT or UPDATE, but -1 is what JDBC and ODBC
+    wants.
+
+    We do not change the value for a CALL or EXECUTE statement, so the value
+    generated by the last called (or executed) statement is preserved.
    */
-  if (lex->sql_command != SQLCOM_CALL &&
uc_update_queries[lex->sql_command]<2)
+  if (lex->sql_command != SQLCOM_CALL && lex->sql_command != SQLCOM_EXECUTE
&&
+      uc_update_queries[lex->sql_command]<2)
     thd->row_count_func= -1;
   goto cleanup;
 
Thread
bk commit into 5.0 tree (jimw:1.1998)Jim Winstead23 Nov