[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mysql-internals
Subject:    bk commit into 5.0 tree (msvensson:1.1972)
From:       msvensson () mysql ! com
Date:       2005-06-30 17:15:45
Message-ID: 20050630171545.7AAD125DF86 () blaudden ! homeip ! net
[Download RAW message or body]

Below is the list of changes that have just been committed into a local
5.0 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
  1.1972 05/06/30 19:15:39 msvensson@neptunus.(none) +1 -0
  After review fixes

  client/mysqldump.c
    1.183 05/06/30 19:15:36 msvensson@neptunus.(none) +2 -2
    Use uppercase for all SQL statements
    Use WHERE 0 instead of WHERE 1=0

# 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/bug10927

--- 1.182/client/mysqldump.c	2005-06-16 15:58:13 +02:00
+++ 1.183/client/mysqldump.c	2005-06-30 19:15:36 +02:00
@@ -1224,7 +1224,7 @@
 
         /* Create temp table by selecting from the view */
         my_snprintf(query_buff, sizeof(query_buff),
-                    "create  temporary table %s select * from %s where 1=0",
+                    "CREATE  TEMPORARY TABLE %s SELECT * FROM %s WHERE 0",
                     result_table, result_table);
         if (mysql_query_with_error_report(sock, 0, query_buff))
         {
@@ -1233,7 +1233,7 @@
         }
 
         /* Get CREATE statement for the temp table */
-        my_snprintf(query_buff, sizeof(query_buff), "show create table %s",
+        my_snprintf(query_buff, sizeof(query_buff), "SHOW CREATE TABLE %s",
                     result_table);
         if (mysql_query_with_error_report(sock, 0, query_buff))
         {

-- 
MySQL Internals Mailing List
For list archives: http://lists.mysql.com/internals
To unsubscribe:    http://lists.mysql.com/internals?unsub=mysql-internals@progressive-comp.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic