List:Commits« Previous MessageNext Message »
From:msvensson Date:May 30 2008 3:39pm
Subject:bk commit into 5.1 tree (msvensson:1.2614)
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, 2008-05-30 17:39:09+02:00, msvensson@pilot.(none) +1 -0
  Please compiler by moving variable declaration to beginning of block

  client/mysqltest.c@stripped, 2008-05-30 17:39:07+02:00, msvensson@pilot.(none) +3 -1
    Please compiler by moving variable declaration to beginning of block

diff -Nrup a/client/mysqltest.c b/client/mysqltest.c
--- a/client/mysqltest.c	2008-05-30 12:23:02 +02:00
+++ b/client/mysqltest.c	2008-05-30 17:39:07 +02:00
@@ -7236,6 +7236,8 @@ int main(int argc, char **argv)
 	break;
       }
       case Q_COMMENT:
+      {
+        const char* p= command->query;
         command->last_argument= command->end;
 
         /* Don't output comments in v1 */
@@ -7247,13 +7249,13 @@ int main(int argc, char **argv)
           break;
 
         /* Write comment's with two starting #'s to result file */
-        const char* p= command->query;
         if (p && *p == '#' && *(p+1) == '#')
         {
           dynstr_append_mem(&ds_res, command->query, command->query_len);
           dynstr_append(&ds_res, "\n");
         }
 	break;
+      }
       case Q_EMPTY_LINE:
         /* Don't output newline in v1 */
         if (opt_result_format_version == 1)
Thread
bk commit into 5.1 tree (msvensson:1.2614)msvensson30 May