mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
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 commit is contained in:
@@ -145,21 +145,24 @@ drop table t1;
|
|||||||
#
|
#
|
||||||
# Bug #19216: Client crashes on long SELECT
|
# Bug #19216: Client crashes on long SELECT
|
||||||
#
|
#
|
||||||
--exec echo "select" > $MYSQLTEST_VARDIR/tmp/b19216.tmp
|
# Create large SELECT
|
||||||
# 3400 * 20 makes 68000 columns that is more than the max number that can fit
|
# - 3400 * 20 makes 68000 columns that is more than the
|
||||||
# in a 16 bit number.
|
# max number that can fit in a 16 bit number.
|
||||||
let $i= 3400;
|
|
||||||
while ($i)
|
--perl
|
||||||
{
|
open(FILE,">","$ENV{'MYSQLTEST_VARDIR'}/tmp/b19216.tmp") or die;
|
||||||
--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
|
print FILE "select\n";
|
||||||
dec $i;
|
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
|
--disable_query_log
|
||||||
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/b19216.tmp >/dev/null
|
--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/b19216.tmp >/dev/null
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
|
|
||||||
|
--remove_file $MYSQLTEST_VARDIR/tmp/b19216.tmp
|
||||||
|
|
||||||
#
|
#
|
||||||
# Bug #20103: Escaping with backslash does not work
|
# Bug #20103: Escaping with backslash does not work
|
||||||
#
|
#
|
||||||
|
Reference in New Issue
Block a user