List:Commits« Previous MessageNext Message »
From:msvensson Date:January 17 2007 12:43pm
Subject:bk commit into 5.0 tree (msvensson:1.2369)
View as plain text  
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@stripped, 2007-01-17 13:43:03+01:00, msvensson@neptunus.(none) +1 -0
  Replace the --exec in a while loop that causes 3400 executions of cygwin/bash on 
  windows with a small perl script that does exactly the same. 

  mysql-test/t/mysql.test@stripped, 2007-01-17 13:43:00+01:00, msvensson@neptunus.(none) +13 -10
    Replace the --exec in a while loop that causes 3400 executions of cygwin/bash on 
    windows with a small perl script that does exactly the same. 

# 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.0-maint

--- 1.24/mysql-test/t/mysql.test	2007-01-17 13:43:08 +01:00
+++ 1.25/mysql-test/t/mysql.test	2007-01-17 13:43:08 +01:00
@@ -145,20 +145,23 @@ drop table t1;
 #
 # Bug #19216: Client crashes on long SELECT
 #
---exec echo "select" > $MYSQLTEST_VARDIR/tmp/b19216.tmp
-# 3400 * 20 makes 68000 columns that is more than the max number that can fit 
-# in a 16 bit number.
-let $i= 3400;
-while ($i)
-{
-  --exec echo "'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a'," >> $MYSQLTEST_VARDIR/tmp/b19216.tmp
-  dec $i;
-}
+# Create large SELECT
+# - 3400 * 20 makes 68000 columns that is more than the
+#   max number that can fit in a 16 bit number.
+
+--perl
+open(FILE,">","$ENV{'MYSQLTEST_VARDIR'}/tmp/b19216.tmp") or die;
+print FILE "select\n";
+print FILE "'a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a','a',\n" x 3400;
+print FILE "'b';\n";
+close FILE;
+EOF
 
---exec echo "'b';" >> $MYSQLTEST_VARDIR/tmp/b19216.tmp
 --disable_query_log
 --exec $MYSQL < $MYSQLTEST_VARDIR/tmp/b19216.tmp >/dev/null
 --enable_query_log
+
+--remove_file $MYSQLTEST_VARDIR/tmp/b19216.tmp
 
 #
 # Bug #20103: Escaping with backslash does not work
Thread
bk commit into 5.0 tree (msvensson:1.2369)msvensson17 Jan