diff options
author | unknown <msvensson@neptunus.(none)> | 2007-01-17 13:43:03 +0100 |
---|---|---|
committer | unknown <msvensson@neptunus.(none)> | 2007-01-17 13:43:03 +0100 |
commit | f8e02a29cdffb333773bb93c84ad054491dffef3 (patch) | |
tree | 10e517a734d684b75fa9608e2986b4f6c130ace5 /mysql-test/t/mysql.test | |
parent | d3cb7a68ea072f4dcafb4d646d5070d602ca21db (diff) | |
download | mariadb-git-f8e02a29cdffb333773bb93c84ad054491dffef3.tar.gz |
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.
Diffstat (limited to 'mysql-test/t/mysql.test')
-rw-r--r-- | mysql-test/t/mysql.test | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/mysql-test/t/mysql.test b/mysql-test/t/mysql.test index 3d022eb27e4..829be665e09 100644 --- a/mysql-test/t/mysql.test +++ b/mysql-test/t/mysql.test @@ -145,21 +145,24 @@ 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; -} - ---exec echo "'b';" >> $MYSQLTEST_VARDIR/tmp/b19216.tmp +# 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 + --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 # |