mirror of
https://github.com/MariaDB/server.git
synced 2025-05-28 13:01:41 +03:00
merge fix of BUG#41961 in 5.1-bugteam with recent changes in 5.1-bugteam
This commit is contained in:
commit
7fc48e2227
@ -11,16 +11,33 @@ test -f Makefile && make maintainer-clean
|
|||||||
path=`dirname $0`
|
path=`dirname $0`
|
||||||
. $path/autorun.sh
|
. $path/autorun.sh
|
||||||
|
|
||||||
|
gmake=
|
||||||
|
for x in gmake gnumake make; do
|
||||||
|
if $x --version 2>/dev/null | grep GNU > /dev/null; then
|
||||||
|
gmake=$x
|
||||||
|
break;
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -z "$gmake" ]; then
|
||||||
|
# Our build may not depend on GNU make, but I wouldn't count on it
|
||||||
|
echo "Please install GNU make, and ensure it is in your path as gnumake, gmake, or make" >&2
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
# Default to gcc for CC and CXX
|
# Default to gcc for CC and CXX
|
||||||
if test -z "$CXX" ; then
|
if test -z "$CXX" ; then
|
||||||
|
export CXX
|
||||||
CXX=gcc
|
CXX=gcc
|
||||||
# Set some required compile options
|
# Set some required compile options
|
||||||
if test -z "$CXXFLAGS" ; then
|
if test -z "$CXXFLAGS" ; then
|
||||||
|
export CXXFLAGS
|
||||||
CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti"
|
CXXFLAGS="-felide-constructors -fno-exceptions -fno-rtti"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$CC" ; then
|
if test -z "$CC" ; then
|
||||||
|
export CC
|
||||||
CC=gcc
|
CC=gcc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -28,36 +45,22 @@ fi
|
|||||||
# Use ccache, if available
|
# Use ccache, if available
|
||||||
if ccache -V > /dev/null 2>&1
|
if ccache -V > /dev/null 2>&1
|
||||||
then
|
then
|
||||||
if echo "$CC" | grep "ccache" > /dev/null
|
if echo "$CC" | grep -v ccache > /dev/null
|
||||||
then
|
then
|
||||||
:
|
export CC
|
||||||
else
|
|
||||||
CC="ccache $CC"
|
CC="ccache $CC"
|
||||||
fi
|
fi
|
||||||
if echo "$CXX" | grep "ccache" > /dev/null
|
if echo "$CXX" | grep -v ccache > /dev/null
|
||||||
then
|
then
|
||||||
:
|
export CXX
|
||||||
else
|
|
||||||
CXX="ccache $CXX"
|
CXX="ccache $CXX"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$MAKE"
|
|
||||||
then
|
|
||||||
if gmake -v > /dev/null 2>&1
|
|
||||||
then
|
|
||||||
MAKE="gmake"
|
|
||||||
else
|
|
||||||
MAKE="make"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
export CC CXX MAKE
|
|
||||||
|
|
||||||
# Make sure to enable all features that affect "make dist"
|
# Make sure to enable all features that affect "make dist"
|
||||||
# Remember that configure restricts the man pages to the configured features !
|
# Remember that configure restricts the man pages to the configured features !
|
||||||
./configure \
|
./configure \
|
||||||
--with-embedded-server \
|
--with-embedded-server \
|
||||||
--with-ndbcluster
|
--with-ndbcluster
|
||||||
$MAKE
|
$gmake
|
||||||
|
|
||||||
|
23
Makefile.am
23
Makefile.am
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2000-2006 MySQL AB
|
# Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -159,6 +159,8 @@ test-bt:
|
|||||||
@PERL@ ./mysql-test-run.pl --force --comment=partitions --suite=parts
|
@PERL@ ./mysql-test-run.pl --force --comment=partitions --suite=parts
|
||||||
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
||||||
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
|
@PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
|
||||||
-if [ -d mysql-test/suite/nist ] ; then \
|
-if [ -d mysql-test/suite/nist ] ; then \
|
||||||
cd mysql-test ; MTR_BUILD_THREAD=auto \
|
cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --comment=nist --force --suite=nist ; \
|
@PERL@ ./mysql-test-run.pl --comment=nist --force --suite=nist ; \
|
||||||
@ -175,15 +177,28 @@ test-bt:
|
|||||||
echo "no program found for 'embedded' tests - skipped testing" ; \
|
echo "no program found for 'embedded' tests - skipped testing" ; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Re-enable the "jp" suite when bug#28563 is fixed
|
test-bt-fast:
|
||||||
# -cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
# @PERL@ ./mysql-test-run.pl --force --comment=jp --suite=jp
|
@PERL@ ./mysql-test-run.pl --comment=ps --force --timer \
|
||||||
|
--skip-ndbcluster --ps-protocol --report-features
|
||||||
|
-if [ -e bin/ndbd -o -e storage/ndb/src/kernel/ndbd ] ; then \
|
||||||
|
cd mysql-test ; \
|
||||||
|
MTR_BUILD_THREAD=auto \
|
||||||
|
@PERL@ ./mysql-test-run.pl --comment=ndb --force --timer \
|
||||||
|
--with-ndbcluster-only ; \
|
||||||
|
else \
|
||||||
|
echo "no program found for 'ndbcluster' tests - skipped testing" ; \
|
||||||
|
fi
|
||||||
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
|
@PERL@ ./mysql-test-run.pl --force --comment=stress --suite=stress
|
||||||
|
|
||||||
test-bt-debug:
|
test-bt-debug:
|
||||||
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
-cd mysql-test ; MTR_BUILD_THREAD=auto \
|
||||||
@PERL@ ./mysql-test-run.pl --comment=debug --force --timer \
|
@PERL@ ./mysql-test-run.pl --comment=debug --force --timer \
|
||||||
--skip-ndbcluster --skip-rpl --report-features
|
--skip-ndbcluster --skip-rpl --report-features
|
||||||
|
|
||||||
|
test-bt-debug-fast:
|
||||||
|
|
||||||
# Keep these for a while
|
# Keep these for a while
|
||||||
test-pl: test
|
test-pl: test
|
||||||
test-full-pl: test-full
|
test-full-pl: test-full
|
||||||
|
@ -1535,7 +1535,7 @@ static void usage(int version)
|
|||||||
if (version)
|
if (version)
|
||||||
return;
|
return;
|
||||||
printf("\
|
printf("\
|
||||||
Copyright (C) 2000-2008 MySQL AB\n\
|
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.\n\
|
||||||
This software comes with ABSOLUTELY NO WARRANTY. This is free software,\n\
|
This software comes with ABSOLUTELY NO WARRANTY. This is free software,\n\
|
||||||
and you are welcome to modify and redistribute it under the GPL license\n");
|
and you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
printf("Usage: %s [OPTIONS] [database]\n", my_progname);
|
printf("Usage: %s [OPTIONS] [database]\n", my_progname);
|
||||||
|
@ -634,7 +634,7 @@ static int execute_commands(MYSQL *mysql,int argc, char **argv)
|
|||||||
case ADMIN_VER:
|
case ADMIN_VER:
|
||||||
new_line=1;
|
new_line=1;
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2000-2006 MySQL AB");
|
puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
printf("Server version\t\t%s\n", mysql_get_server_info(mysql));
|
printf("Server version\t\t%s\n", mysql_get_server_info(mysql));
|
||||||
printf("Protocol version\t%d\n", mysql_get_proto_info(mysql));
|
printf("Protocol version\t%d\n", mysql_get_proto_info(mysql));
|
||||||
@ -1023,7 +1023,7 @@ static void print_version(void)
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2000-2006 MySQL AB");
|
puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
puts("Administration program for the mysqld daemon.");
|
puts("Administration program for the mysqld daemon.");
|
||||||
printf("Usage: %s [OPTIONS] command command....\n", my_progname);
|
printf("Usage: %s [OPTIONS] command command....\n", my_progname);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -193,7 +193,7 @@ static void print_version(void)
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2000-2006 MySQL AB");
|
puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
printf("\
|
printf("\
|
||||||
Loads tables from text files in various formats. The base name of the\n\
|
Loads tables from text files in various formats. The base name of the\n\
|
||||||
|
@ -249,7 +249,7 @@ static void print_version(void)
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2000-2006 MySQL AB");
|
puts("Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
puts("Shows the structure of a mysql database (databases,tables and columns)\n");
|
puts("Shows the structure of a mysql database (databases,tables and columns)\n");
|
||||||
printf("Usage: %s [OPTIONS] [database [table [column]]]\n",my_progname);
|
printf("Usage: %s [OPTIONS] [database [table [column]]]\n",my_progname);
|
||||||
|
@ -688,9 +688,7 @@ static void usage(void)
|
|||||||
{
|
{
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2005 MySQL AB");
|
puts("Copyright (C) 2005 MySQL AB");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
\nand you are welcome to modify and redistribute it under the GPL \
|
|
||||||
license\n");
|
|
||||||
puts("Run a query multiple times against the server\n");
|
puts("Run a query multiple times against the server\n");
|
||||||
printf("Usage: %s [OPTIONS]\n",my_progname);
|
printf("Usage: %s [OPTIONS]\n",my_progname);
|
||||||
print_defaults("my",load_default_groups);
|
print_defaults("my",load_default_groups);
|
||||||
|
@ -1327,6 +1327,35 @@ static int run_tool(const char *tool_path, DYNAMIC_STRING *ds_res, ...)
|
|||||||
DBUG_RETURN(ret);
|
DBUG_RETURN(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
Test if diff is present. This is needed on Windows systems
|
||||||
|
as the OS returns 1 whether diff is successful or if it is
|
||||||
|
not present.
|
||||||
|
|
||||||
|
We run diff -v and look for output in stdout.
|
||||||
|
We don't redirect stderr to stdout to make for a simplified check
|
||||||
|
Windows will output '"diff"' is not recognized... to stderr if it is
|
||||||
|
not present.
|
||||||
|
*/
|
||||||
|
|
||||||
|
int diff_check()
|
||||||
|
{
|
||||||
|
char buf[512]= {0};
|
||||||
|
FILE *res_file;
|
||||||
|
char *cmd = "diff -v";
|
||||||
|
int have_diff = 0;
|
||||||
|
|
||||||
|
if (!(res_file= popen(cmd, "r")))
|
||||||
|
die("popen(\"%s\", \"r\") failed", cmd);
|
||||||
|
|
||||||
|
/* if diff is not present, nothing will be in stdout to increment have_diff */
|
||||||
|
if (fgets(buf, sizeof(buf), res_file))
|
||||||
|
{
|
||||||
|
have_diff += 1;
|
||||||
|
}
|
||||||
|
pclose(res_file);
|
||||||
|
return have_diff;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Show the diff of two files using the systems builtin diff
|
Show the diff of two files using the systems builtin diff
|
||||||
@ -1346,34 +1375,51 @@ void show_diff(DYNAMIC_STRING* ds,
|
|||||||
{
|
{
|
||||||
|
|
||||||
DYNAMIC_STRING ds_tmp;
|
DYNAMIC_STRING ds_tmp;
|
||||||
|
int have_diff = 0;
|
||||||
|
|
||||||
if (init_dynamic_string(&ds_tmp, "", 256, 256))
|
if (init_dynamic_string(&ds_tmp, "", 256, 256))
|
||||||
die("Out of memory");
|
die("Out of memory");
|
||||||
|
|
||||||
|
/* determine if we have diff on Windows
|
||||||
|
needs special processing due to return values
|
||||||
|
on that OS
|
||||||
|
*/
|
||||||
|
have_diff = diff_check();
|
||||||
|
|
||||||
/* First try with unified diff */
|
if (have_diff)
|
||||||
if (run_tool("diff",
|
|
||||||
&ds_tmp, /* Get output from diff in ds_tmp */
|
|
||||||
"-u",
|
|
||||||
filename1,
|
|
||||||
filename2,
|
|
||||||
"2>&1",
|
|
||||||
NULL) > 1) /* Most "diff" tools return >1 if error */
|
|
||||||
{
|
{
|
||||||
dynstr_set(&ds_tmp, "");
|
/* First try with unified diff */
|
||||||
|
|
||||||
/* Fallback to context diff with "diff -c" */
|
|
||||||
if (run_tool("diff",
|
if (run_tool("diff",
|
||||||
&ds_tmp, /* Get output from diff in ds_tmp */
|
&ds_tmp, /* Get output from diff in ds_tmp */
|
||||||
"-c",
|
"-u",
|
||||||
filename1,
|
filename1,
|
||||||
filename2,
|
filename2,
|
||||||
"2>&1",
|
"2>&1",
|
||||||
NULL) > 1) /* Most "diff" tools return >1 if error */
|
NULL) > 1) /* Most "diff" tools return >1 if error */
|
||||||
{
|
{
|
||||||
/*
|
dynstr_set(&ds_tmp, "");
|
||||||
Fallback to dump both files to result file and inform
|
|
||||||
about installing "diff"
|
/* Fallback to context diff with "diff -c" */
|
||||||
*/
|
if (run_tool("diff",
|
||||||
|
&ds_tmp, /* Get output from diff in ds_tmp */
|
||||||
|
"-c",
|
||||||
|
filename1,
|
||||||
|
filename2,
|
||||||
|
"2>&1",
|
||||||
|
NULL) > 1) /* Most "diff" tools return >1 if error */
|
||||||
|
{
|
||||||
|
have_diff= 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!(have_diff))
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
Fallback to dump both files to result file and inform
|
||||||
|
about installing "diff"
|
||||||
|
*/
|
||||||
|
|
||||||
dynstr_set(&ds_tmp, "");
|
dynstr_set(&ds_tmp, "");
|
||||||
|
|
||||||
dynstr_append(&ds_tmp,
|
dynstr_append(&ds_tmp,
|
||||||
@ -1397,8 +1443,7 @@ void show_diff(DYNAMIC_STRING* ds,
|
|||||||
dynstr_append(&ds_tmp, " >>>\n");
|
dynstr_append(&ds_tmp, " >>>\n");
|
||||||
cat_file(&ds_tmp, filename2);
|
cat_file(&ds_tmp, filename2);
|
||||||
dynstr_append(&ds_tmp, "<<<<\n");
|
dynstr_append(&ds_tmp, "<<<<\n");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (ds)
|
if (ds)
|
||||||
{
|
{
|
||||||
|
@ -280,7 +280,7 @@ AC_DEFUN([MYSQL_SETUP_NDBCLUSTER], [
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
# libndbclient versioning when linked with GNU ld.
|
# libndbclient versioning when linked with GNU ld.
|
||||||
if $LD --version 2>/dev/null|grep -q GNU; then
|
if $LD --version 2>/dev/null|grep GNU >/dev/null 2>&1 ; then
|
||||||
NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/storage/ndb/src/libndb.ver"
|
NDB_LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/storage/ndb/src/libndb.ver"
|
||||||
AC_CONFIG_FILES(storage/ndb/src/libndb.ver)
|
AC_CONFIG_FILES(storage/ndb/src/libndb.ver)
|
||||||
fi
|
fi
|
||||||
|
@ -377,7 +377,7 @@ fi
|
|||||||
MYSQL_PROG_AR
|
MYSQL_PROG_AR
|
||||||
|
|
||||||
# libmysqlclient versioning when linked with GNU ld.
|
# libmysqlclient versioning when linked with GNU ld.
|
||||||
if $LD --version 2>/dev/null|grep -q GNU; then
|
if $LD --version 2>/dev/null| grep GNU >/dev/null 2>&1; then
|
||||||
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libmysql/libmysql.ver"
|
LD_VERSION_SCRIPT="-Wl,--version-script=\$(top_builddir)/libmysql/libmysql.ver"
|
||||||
AC_CONFIG_FILES(libmysql/libmysql.ver)
|
AC_CONFIG_FILES(libmysql/libmysql.ver)
|
||||||
fi
|
fi
|
||||||
@ -449,11 +449,11 @@ AC_SUBST(PERL5)
|
|||||||
|
|
||||||
# Enable the abi_check rule only if gcc is available
|
# Enable the abi_check rule only if gcc is available
|
||||||
|
|
||||||
if expr "$CC" : ".*gcc.*"
|
if test "$GCC" != "yes" || expr "$CC" : ".*icc.*"
|
||||||
then
|
then
|
||||||
ABI_CHECK="abi_check"
|
|
||||||
else
|
|
||||||
ABI_CHECK=""
|
ABI_CHECK=""
|
||||||
|
else
|
||||||
|
ABI_CHECK="abi_check"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(ABI_CHECK)
|
AC_SUBST(ABI_CHECK)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -380,6 +380,9 @@ inline ulonglong double2ulonglong(double d)
|
|||||||
#define HAVE_OPENSSL 1
|
#define HAVE_OPENSSL 1
|
||||||
#define HAVE_YASSL 1
|
#define HAVE_YASSL 1
|
||||||
|
|
||||||
|
#define COMMUNITY_SERVER 1
|
||||||
|
#define ENABLED_PROFILING 1
|
||||||
|
|
||||||
/* Define charsets you want */
|
/* Define charsets you want */
|
||||||
/* #undef HAVE_CHARSET_armscii8 */
|
/* #undef HAVE_CHARSET_armscii8 */
|
||||||
/* #undef HAVE_CHARSET_ascii */
|
/* #undef HAVE_CHARSET_ascii */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -11,6 +11,6 @@ eval SET @@global.sort_buffer_size = $save;
|
|||||||
--enable_query_log
|
--enable_query_log
|
||||||
if (!$mach32)
|
if (!$mach32)
|
||||||
{
|
{
|
||||||
skip Need a 32 bit machine;
|
skip Need a 32 bit machine/binary;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,6 +9,6 @@ eval SET @@session.sort_buffer_size = $save;
|
|||||||
--enable_query_log
|
--enable_query_log
|
||||||
if (!$mach64)
|
if (!$mach64)
|
||||||
{
|
{
|
||||||
skip Need a 64 bit machine;
|
skip Need a 64 binary ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# -*- cperl -*-
|
# -*- cperl -*-
|
||||||
# Copyright (C) 2004-2006 MySQL AB
|
# Copyright 2004-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1578,16 +1578,22 @@ sub executable_setup_ndb () {
|
|||||||
"$glob_basedir/storage/ndb",
|
"$glob_basedir/storage/ndb",
|
||||||
"$glob_basedir/bin");
|
"$glob_basedir/bin");
|
||||||
|
|
||||||
|
# Some might be found in sbin, not bin.
|
||||||
|
my $daemon_path= mtr_file_exists("$glob_basedir/ndb",
|
||||||
|
"$glob_basedir/storage/ndb",
|
||||||
|
"$glob_basedir/sbin",
|
||||||
|
"$glob_basedir/bin");
|
||||||
|
|
||||||
$exe_ndbd=
|
$exe_ndbd=
|
||||||
mtr_exe_maybe_exists("$ndb_path/src/kernel/ndbd",
|
mtr_exe_maybe_exists("$ndb_path/src/kernel/ndbd",
|
||||||
"$ndb_path/ndbd",
|
"$daemon_path/ndbd",
|
||||||
"$glob_basedir/libexec/ndbd");
|
"$glob_basedir/libexec/ndbd");
|
||||||
$exe_ndb_mgm=
|
$exe_ndb_mgm=
|
||||||
mtr_exe_maybe_exists("$ndb_path/src/mgmclient/ndb_mgm",
|
mtr_exe_maybe_exists("$ndb_path/src/mgmclient/ndb_mgm",
|
||||||
"$ndb_path/ndb_mgm");
|
"$ndb_path/ndb_mgm");
|
||||||
$exe_ndb_mgmd=
|
$exe_ndb_mgmd=
|
||||||
mtr_exe_maybe_exists("$ndb_path/src/mgmsrv/ndb_mgmd",
|
mtr_exe_maybe_exists("$ndb_path/src/mgmsrv/ndb_mgmd",
|
||||||
"$ndb_path/ndb_mgmd",
|
"$daemon_path/ndb_mgmd",
|
||||||
"$glob_basedir/libexec/ndb_mgmd");
|
"$glob_basedir/libexec/ndb_mgmd");
|
||||||
$exe_ndb_waiter=
|
$exe_ndb_waiter=
|
||||||
mtr_exe_maybe_exists("$ndb_path/tools/ndb_waiter",
|
mtr_exe_maybe_exists("$ndb_path/tools/ndb_waiter",
|
||||||
|
@ -1767,4 +1767,25 @@ ref NULL
|
|||||||
rows 6
|
rows 6
|
||||||
Extra Using where; Using index
|
Extra Using where; Using index
|
||||||
DROP TABLE foo, bar, foo2;
|
DROP TABLE foo, bar, foo2;
|
||||||
|
DROP TABLE IF EXISTS t1,t3,t2;
|
||||||
|
DROP FUNCTION IF EXISTS f1;
|
||||||
|
CREATE FUNCTION f1() RETURNS VARCHAR(250)
|
||||||
|
BEGIN
|
||||||
|
return 'hhhhhhh' ;
|
||||||
|
END|
|
||||||
|
CREATE TABLE t1 (a VARCHAR(20), b VARCHAR(20), c VARCHAR(20)) ENGINE=INNODB;
|
||||||
|
BEGIN WORK;
|
||||||
|
CREATE TEMPORARY TABLE t2 (a VARCHAR(20), b VARCHAR(20), c varchar(20)) ENGINE=INNODB;
|
||||||
|
CREATE TEMPORARY TABLE t3 LIKE t2;
|
||||||
|
INSERT INTO t1 VALUES ('a','b',NULL),('c','d',NULL),('e','f',NULL);
|
||||||
|
SET @stmt := CONCAT('INSERT INTO t2 SELECT tbl.a, tbl.b, f1()',' FROM t1 tbl');
|
||||||
|
PREPARE stmt1 FROM @stmt;
|
||||||
|
SET @stmt := CONCAT('INSERT INTO t3', ' SELECT * FROM t2');
|
||||||
|
PREPARE stmt3 FROM @stmt;
|
||||||
|
EXECUTE stmt1;
|
||||||
|
COMMIT;
|
||||||
|
DEALLOCATE PREPARE stmt1;
|
||||||
|
DEALLOCATE PREPARE stmt3;
|
||||||
|
DROP TABLE t1,t3,t2;
|
||||||
|
DROP FUNCTION f1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
set names utf8;
|
|
||||||
create table `Ö` (id int);
|
|
||||||
show tables from test like 'Ö';
|
|
||||||
Tables_in_test (Ö)
|
|
||||||
ö
|
|
||||||
show tables from test like 'ö';
|
|
||||||
Tables_in_test (ö)
|
|
||||||
ö
|
|
||||||
drop table `Ö`;
|
|
@ -1,4 +1,16 @@
|
|||||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
|
CREATE TABLE t1
|
||||||
|
(a INT NOT NULL AUTO_INCREMENT,
|
||||||
|
b DATETIME,
|
||||||
|
PRIMARY KEY (a,b),
|
||||||
|
KEY (b))
|
||||||
|
PARTITION BY RANGE (to_days(b))
|
||||||
|
(PARTITION p0 VALUES LESS THAN (733681) COMMENT = 'LESS THAN 2008-10-01',
|
||||||
|
PARTITION p1 VALUES LESS THAN (733712) COMMENT = 'LESS THAN 2008-11-01',
|
||||||
|
PARTITION pX VALUES LESS THAN MAXVALUE);
|
||||||
|
SELECT a,b FROM t1 WHERE b >= '2008-12-01' AND b < '2009-12-00';
|
||||||
|
a b
|
||||||
|
DROP TABLE t1;
|
||||||
create table t1 ( a int not null) partition by hash(a) partitions 2;
|
create table t1 ( a int not null) partition by hash(a) partitions 2;
|
||||||
insert into t1 values (1),(2),(3);
|
insert into t1 values (1),(2),(3);
|
||||||
explain select * from t1 where a=5 and a=6;
|
explain select * from t1 where a=5 and a=6;
|
||||||
|
@ -194,4 +194,20 @@ DELETE FROM t1;
|
|||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
a b
|
a b
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
DROP TABLE IF EXISTS t1,t2;
|
||||||
|
DROP FUNCTION IF EXISTS f1;
|
||||||
|
CREATE TEMPORARY TABLE t1 (a INT);
|
||||||
|
CREATE TEMPORARY TABLE t2 LIKE t1;
|
||||||
|
CREATE FUNCTION f1() RETURNS INT
|
||||||
|
BEGIN
|
||||||
|
return 1;
|
||||||
|
END|
|
||||||
|
INSERT INTO t2 SELECT * FROM t1;
|
||||||
|
INSERT INTO t1 SELECT f1();
|
||||||
|
CREATE TABLE t3 SELECT * FROM t1;
|
||||||
|
INSERT INTO t1 SELECT f1();
|
||||||
|
UPDATE t1,t2 SET t1.a = t2.a;
|
||||||
|
INSERT INTO t2 SELECT f1();
|
||||||
|
DROP TABLE t1,t2,t3;
|
||||||
|
DROP FUNCTION f1;
|
||||||
End of 5.1 tests
|
End of 5.1 tests
|
||||||
|
@ -113,16 +113,17 @@ master-bin.000001 # Table_map # # table_id: # (test.t1)
|
|||||||
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
|
master-bin.000001 # Update_rows # # table_id: # flags: STMT_END_F
|
||||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
flush status;
|
||||||
show status like "binlog_cache_use";
|
show status like "binlog_cache_use";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_use 13
|
Binlog_cache_use 0
|
||||||
show status like "binlog_cache_disk_use";
|
show status like "binlog_cache_disk_use";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_disk_use 0
|
Binlog_cache_disk_use 0
|
||||||
create table t1 (a int) engine=innodb;
|
create table t1 (a int) engine=innodb;
|
||||||
show status like "binlog_cache_use";
|
show status like "binlog_cache_use";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_use 14
|
Binlog_cache_use 1
|
||||||
show status like "binlog_cache_disk_use";
|
show status like "binlog_cache_disk_use";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_disk_use 1
|
Binlog_cache_disk_use 1
|
||||||
@ -131,7 +132,7 @@ delete from t1;
|
|||||||
commit;
|
commit;
|
||||||
show status like "binlog_cache_use";
|
show status like "binlog_cache_use";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_use 15
|
Binlog_cache_use 2
|
||||||
show status like "binlog_cache_disk_use";
|
show status like "binlog_cache_disk_use";
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Binlog_cache_disk_use 1
|
Binlog_cache_disk_use 1
|
||||||
|
@ -101,6 +101,7 @@ DROP TABLE t1;
|
|||||||
# Actually this test has nothing to do with innodb per se, it just requires
|
# Actually this test has nothing to do with innodb per se, it just requires
|
||||||
# transactional table.
|
# transactional table.
|
||||||
#
|
#
|
||||||
|
flush status;
|
||||||
show status like "binlog_cache_use";
|
show status like "binlog_cache_use";
|
||||||
show status like "binlog_cache_disk_use";
|
show status like "binlog_cache_disk_use";
|
||||||
|
|
||||||
|
@ -40,9 +40,12 @@
|
|||||||
# Save initial value #
|
# Save initial value #
|
||||||
#############################################################
|
#############################################################
|
||||||
|
|
||||||
# due to differences when running on Windows (bug filed)
|
# due to differences when running on Windows (Bug#36695)
|
||||||
--source include/not_windows.inc
|
--source include/not_windows.inc
|
||||||
|
|
||||||
|
let $kbrange32 = BETWEEN 32776 AND 32999;
|
||||||
|
let $mbrange2 = BETWEEN 2097116 AND 2100000;
|
||||||
|
|
||||||
--disable_warnings
|
--disable_warnings
|
||||||
|
|
||||||
SET @start_global_value = @@global.sort_buffer_size;
|
SET @start_global_value = @@global.sort_buffer_size;
|
||||||
@ -55,11 +58,13 @@ SET @start_session_value = @@session.sort_buffer_size;
|
|||||||
|
|
||||||
SET @@global.sort_buffer_size = 1000;
|
SET @@global.sort_buffer_size = 1000;
|
||||||
SET @@global.sort_buffer_size = DEFAULT;
|
SET @@global.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $mbrange2;
|
||||||
|
|
||||||
SET @@session.sort_buffer_size = 2000;
|
SET @@session.sort_buffer_size = 2000;
|
||||||
SET @@session.sort_buffer_size = DEFAULT;
|
SET @@session.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
|
eval
|
||||||
|
SELECT @@session.sort_buffer_size $mbrange2;
|
||||||
|
|
||||||
|
|
||||||
--echo '#--------------------FN_DYNVARS_151_02-------------------------#'
|
--echo '#--------------------FN_DYNVARS_151_02-------------------------#'
|
||||||
@ -68,10 +73,12 @@ SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 30
|
|||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
SET @@global.sort_buffer_size = DEFAULT;
|
SET @@global.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $mbrange2;
|
||||||
|
|
||||||
SET @@session.sort_buffer_size = DEFAULT;
|
SET @@session.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
|
eval
|
||||||
|
SELECT @@session.sort_buffer_size $mbrange2;
|
||||||
|
|
||||||
|
|
||||||
--echo '#--------------------FN_DYNVARS_151_03-------------------------#'
|
--echo '#--------------------FN_DYNVARS_151_03-------------------------#'
|
||||||
@ -80,9 +87,11 @@ SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 30
|
|||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
SET @@global.sort_buffer_size = 32776;
|
SET @@global.sort_buffer_size = 32776;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $kbrange32;
|
||||||
SET @@global.sort_buffer_size = 32777;
|
SET @@global.sort_buffer_size = 32777;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $kbrange32;
|
||||||
SET @@global.sort_buffer_size = 4294967295;
|
SET @@global.sort_buffer_size = 4294967295;
|
||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
SET @@global.sort_buffer_size = 4294967294;
|
SET @@global.sort_buffer_size = 4294967294;
|
||||||
@ -94,9 +103,11 @@ SELECT @@global.sort_buffer_size;
|
|||||||
###################################################################################
|
###################################################################################
|
||||||
|
|
||||||
SET @@session.sort_buffer_size = 32776;
|
SET @@session.sort_buffer_size = 32776;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@session.sort_buffer_size $kbrange32;
|
||||||
SET @@session.sort_buffer_size = 32777;
|
SET @@session.sort_buffer_size = 32777;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@session.sort_buffer_size $kbrange32;
|
||||||
SET @@session.sort_buffer_size = 4294967295;
|
SET @@session.sort_buffer_size = 4294967295;
|
||||||
SELECT @@session.sort_buffer_size;
|
SELECT @@session.sort_buffer_size;
|
||||||
SET @@session.sort_buffer_size = 4294967294;
|
SET @@session.sort_buffer_size = 4294967294;
|
||||||
@ -109,9 +120,11 @@ SELECT @@session.sort_buffer_size;
|
|||||||
##################################################################
|
##################################################################
|
||||||
|
|
||||||
SET @@global.sort_buffer_size = 32775;
|
SET @@global.sort_buffer_size = 32775;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $kbrange32;
|
||||||
SET @@global.sort_buffer_size = -1024;
|
SET @@global.sort_buffer_size = -1024;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $kbrange32;
|
||||||
SET @@global.sort_buffer_size = 4294967296;
|
SET @@global.sort_buffer_size = 4294967296;
|
||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
--Error ER_PARSE_ERROR
|
--Error ER_PARSE_ERROR
|
||||||
@ -122,9 +135,11 @@ SET @@global.sort_buffer_size = test;
|
|||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
|
|
||||||
SET @@session.sort_buffer_size = 32775;
|
SET @@session.sort_buffer_size = 32775;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@session.sort_buffer_size $kbrange32;
|
||||||
SET @@session.sort_buffer_size = -2;
|
SET @@session.sort_buffer_size = -2;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@session.sort_buffer_size $kbrange32;
|
||||||
--Error ER_PARSE_ERROR
|
--Error ER_PARSE_ERROR
|
||||||
SET @@session.sort_buffer_size = 65530.34.;
|
SET @@session.sort_buffer_size = 65530.34.;
|
||||||
SET @@session.sort_buffer_size = 4294967296;
|
SET @@session.sort_buffer_size = 4294967296;
|
||||||
@ -148,7 +163,7 @@ SELECT @@global.sort_buffer_size = VARIABLE_VALUE FROM
|
|||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM
|
SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM
|
||||||
INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
|
INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
|
||||||
|
|
||||||
|
|
||||||
--echo '#------------------FN_DYNVARS_151_08-----------------------#'
|
--echo '#------------------FN_DYNVARS_151_08-----------------------#'
|
||||||
@ -157,9 +172,11 @@ SELECT @@session.sort_buffer_size = VARIABLE_VALUE FROM
|
|||||||
####################################################################
|
####################################################################
|
||||||
|
|
||||||
SET @@global.sort_buffer_size = TRUE;
|
SET @@global.sort_buffer_size = TRUE;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $kbrange32;
|
||||||
SET @@global.sort_buffer_size = FALSE;
|
SET @@global.sort_buffer_size = FALSE;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@global.sort_buffer_size $kbrange32;
|
||||||
|
|
||||||
--echo '#---------------------FN_DYNVARS_151_09----------------------#'
|
--echo '#---------------------FN_DYNVARS_151_09----------------------#'
|
||||||
####################################################################################
|
####################################################################################
|
||||||
@ -185,7 +202,8 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
|
|||||||
###################################################################################
|
###################################################################################
|
||||||
|
|
||||||
SET sort_buffer_size = 9100;
|
SET sort_buffer_size = 9100;
|
||||||
SELECT @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000;
|
eval
|
||||||
|
SELECT @@sort_buffer_size $kbrange32;
|
||||||
--Error ER_UNKNOWN_TABLE
|
--Error ER_UNKNOWN_TABLE
|
||||||
SELECT local.sort_buffer_size;
|
SELECT local.sort_buffer_size;
|
||||||
--Error ER_UNKNOWN_TABLE
|
--Error ER_UNKNOWN_TABLE
|
||||||
|
@ -3,31 +3,31 @@ SET @start_session_value = @@session.sort_buffer_size;
|
|||||||
'#--------------------FN_DYNVARS_151_01-------------------------#'
|
'#--------------------FN_DYNVARS_151_01-------------------------#'
|
||||||
SET @@global.sort_buffer_size = 1000;
|
SET @@global.sort_buffer_size = 1000;
|
||||||
SET @@global.sort_buffer_size = DEFAULT;
|
SET @@global.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
|
SELECT @@global.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
|
@@global.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 2000;
|
SET @@session.sort_buffer_size = 2000;
|
||||||
SET @@session.sort_buffer_size = DEFAULT;
|
SET @@session.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
|
SELECT @@session.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
|
@@session.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
'#--------------------FN_DYNVARS_151_02-------------------------#'
|
'#--------------------FN_DYNVARS_151_02-------------------------#'
|
||||||
SET @@global.sort_buffer_size = DEFAULT;
|
SET @@global.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
|
SELECT @@global.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
|
@@global.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = DEFAULT;
|
SET @@session.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
|
SELECT @@session.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
|
@@session.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
'#--------------------FN_DYNVARS_151_03-------------------------#'
|
'#--------------------FN_DYNVARS_151_03-------------------------#'
|
||||||
SET @@global.sort_buffer_size = 32776;
|
SET @@global.sort_buffer_size = 32776;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = 32777;
|
SET @@global.sort_buffer_size = 32777;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = 4294967295;
|
SET @@global.sort_buffer_size = 4294967295;
|
||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
@ -39,12 +39,12 @@ SELECT @@global.sort_buffer_size;
|
|||||||
4294967294
|
4294967294
|
||||||
'#--------------------FN_DYNVARS_151_04-------------------------#'
|
'#--------------------FN_DYNVARS_151_04-------------------------#'
|
||||||
SET @@session.sort_buffer_size = 32776;
|
SET @@session.sort_buffer_size = 32776;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 32777;
|
SET @@session.sort_buffer_size = 32777;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 4294967295;
|
SET @@session.sort_buffer_size = 4294967295;
|
||||||
SELECT @@session.sort_buffer_size;
|
SELECT @@session.sort_buffer_size;
|
||||||
@ -56,12 +56,12 @@ SELECT @@session.sort_buffer_size;
|
|||||||
4294967294
|
4294967294
|
||||||
'#------------------FN_DYNVARS_151_05-----------------------#'
|
'#------------------FN_DYNVARS_151_05-----------------------#'
|
||||||
SET @@global.sort_buffer_size = 32775;
|
SET @@global.sort_buffer_size = 32775;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = -1024;
|
SET @@global.sort_buffer_size = -1024;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = 4294967296;
|
SET @@global.sort_buffer_size = 4294967296;
|
||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
@ -78,12 +78,12 @@ SELECT @@global.sort_buffer_size;
|
|||||||
@@global.sort_buffer_size
|
@@global.sort_buffer_size
|
||||||
4294967295
|
4294967295
|
||||||
SET @@session.sort_buffer_size = 32775;
|
SET @@session.sort_buffer_size = 32775;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = -2;
|
SET @@session.sort_buffer_size = -2;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 65530.34.;
|
SET @@session.sort_buffer_size = 65530.34.;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
||||||
@ -105,12 +105,12 @@ INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
|
|||||||
1
|
1
|
||||||
'#------------------FN_DYNVARS_151_08-----------------------#'
|
'#------------------FN_DYNVARS_151_08-----------------------#'
|
||||||
SET @@global.sort_buffer_size = TRUE;
|
SET @@global.sort_buffer_size = TRUE;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = FALSE;
|
SET @@global.sort_buffer_size = FALSE;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
'#---------------------FN_DYNVARS_151_09----------------------#'
|
'#---------------------FN_DYNVARS_151_09----------------------#'
|
||||||
SET @@global.sort_buffer_size = 9000;
|
SET @@global.sort_buffer_size = 9000;
|
||||||
@ -127,8 +127,8 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
|
|||||||
1
|
1
|
||||||
'#---------------------FN_DYNVARS_151_11----------------------#'
|
'#---------------------FN_DYNVARS_151_11----------------------#'
|
||||||
SET sort_buffer_size = 9100;
|
SET sort_buffer_size = 9100;
|
||||||
SELECT @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000;
|
SELECT @@sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000
|
@@sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SELECT local.sort_buffer_size;
|
SELECT local.sort_buffer_size;
|
||||||
ERROR 42S02: Unknown table 'local' in field list
|
ERROR 42S02: Unknown table 'local' in field list
|
||||||
|
@ -3,31 +3,31 @@ SET @start_session_value = @@session.sort_buffer_size;
|
|||||||
'#--------------------FN_DYNVARS_151_01-------------------------#'
|
'#--------------------FN_DYNVARS_151_01-------------------------#'
|
||||||
SET @@global.sort_buffer_size = 1000;
|
SET @@global.sort_buffer_size = 1000;
|
||||||
SET @@global.sort_buffer_size = DEFAULT;
|
SET @@global.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
|
SELECT @@global.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
|
@@global.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 2000;
|
SET @@session.sort_buffer_size = 2000;
|
||||||
SET @@session.sort_buffer_size = DEFAULT;
|
SET @@session.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
|
SELECT @@session.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
|
@@session.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
'#--------------------FN_DYNVARS_151_02-------------------------#'
|
'#--------------------FN_DYNVARS_151_02-------------------------#'
|
||||||
SET @@global.sort_buffer_size = DEFAULT;
|
SET @@global.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000;
|
SELECT @@global.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@global.sort_buffer_size >= 2097116 AND @@global.sort_buffer_size < 3000000
|
@@global.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = DEFAULT;
|
SET @@session.sort_buffer_size = DEFAULT;
|
||||||
SELECT @@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000;
|
SELECT @@session.sort_buffer_size BETWEEN 2097116 AND 2100000;
|
||||||
@@session.sort_buffer_size >= 2097116 AND @@session.sort_buffer_size < 3000000
|
@@session.sort_buffer_size BETWEEN 2097116 AND 2100000
|
||||||
1
|
1
|
||||||
'#--------------------FN_DYNVARS_151_03-------------------------#'
|
'#--------------------FN_DYNVARS_151_03-------------------------#'
|
||||||
SET @@global.sort_buffer_size = 32776;
|
SET @@global.sort_buffer_size = 32776;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = 32777;
|
SET @@global.sort_buffer_size = 32777;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = 4294967295;
|
SET @@global.sort_buffer_size = 4294967295;
|
||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
@ -39,12 +39,12 @@ SELECT @@global.sort_buffer_size;
|
|||||||
4294967294
|
4294967294
|
||||||
'#--------------------FN_DYNVARS_151_04-------------------------#'
|
'#--------------------FN_DYNVARS_151_04-------------------------#'
|
||||||
SET @@session.sort_buffer_size = 32776;
|
SET @@session.sort_buffer_size = 32776;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 32777;
|
SET @@session.sort_buffer_size = 32777;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 4294967295;
|
SET @@session.sort_buffer_size = 4294967295;
|
||||||
SELECT @@session.sort_buffer_size;
|
SELECT @@session.sort_buffer_size;
|
||||||
@ -56,12 +56,12 @@ SELECT @@session.sort_buffer_size;
|
|||||||
4294967294
|
4294967294
|
||||||
'#------------------FN_DYNVARS_151_05-----------------------#'
|
'#------------------FN_DYNVARS_151_05-----------------------#'
|
||||||
SET @@global.sort_buffer_size = 32775;
|
SET @@global.sort_buffer_size = 32775;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = -1024;
|
SET @@global.sort_buffer_size = -1024;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = 4294967296;
|
SET @@global.sort_buffer_size = 4294967296;
|
||||||
SELECT @@global.sort_buffer_size;
|
SELECT @@global.sort_buffer_size;
|
||||||
@ -78,12 +78,12 @@ SELECT @@global.sort_buffer_size;
|
|||||||
@@global.sort_buffer_size
|
@@global.sort_buffer_size
|
||||||
4294967296
|
4294967296
|
||||||
SET @@session.sort_buffer_size = 32775;
|
SET @@session.sort_buffer_size = 32775;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = -2;
|
SET @@session.sort_buffer_size = -2;
|
||||||
SELECT @@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000;
|
SELECT @@session.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@session.sort_buffer_size >= 32776 AND @@session.sort_buffer_size < 33000
|
@@session.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@session.sort_buffer_size = 65530.34.;
|
SET @@session.sort_buffer_size = 65530.34.;
|
||||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
|
||||||
@ -105,12 +105,12 @@ INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
|
|||||||
1
|
1
|
||||||
'#------------------FN_DYNVARS_151_08-----------------------#'
|
'#------------------FN_DYNVARS_151_08-----------------------#'
|
||||||
SET @@global.sort_buffer_size = TRUE;
|
SET @@global.sort_buffer_size = TRUE;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SET @@global.sort_buffer_size = FALSE;
|
SET @@global.sort_buffer_size = FALSE;
|
||||||
SELECT @@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000;
|
SELECT @@global.sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@global.sort_buffer_size >= 32776 AND @@global.sort_buffer_size < 33000
|
@@global.sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
'#---------------------FN_DYNVARS_151_09----------------------#'
|
'#---------------------FN_DYNVARS_151_09----------------------#'
|
||||||
SET @@global.sort_buffer_size = 9000;
|
SET @@global.sort_buffer_size = 9000;
|
||||||
@ -127,8 +127,8 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
|
|||||||
1
|
1
|
||||||
'#---------------------FN_DYNVARS_151_11----------------------#'
|
'#---------------------FN_DYNVARS_151_11----------------------#'
|
||||||
SET sort_buffer_size = 9100;
|
SET sort_buffer_size = 9100;
|
||||||
SELECT @@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000;
|
SELECT @@sort_buffer_size BETWEEN 32776 AND 32999;
|
||||||
@@sort_buffer_size >= 32776 AND @@sort_buffer_size < 33000
|
@@sort_buffer_size BETWEEN 32776 AND 32999
|
||||||
1
|
1
|
||||||
SELECT local.sort_buffer_size;
|
SELECT local.sort_buffer_size;
|
||||||
ERROR 42S02: Unknown table 'local' in field list
|
ERROR 42S02: Unknown table 'local' in field list
|
||||||
|
@ -91,4 +91,45 @@ INSERT INTO foo2 SELECT * FROM foo;
|
|||||||
|
|
||||||
DROP TABLE foo, bar, foo2;
|
DROP TABLE foo, bar, foo2;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#41348: INSERT INTO tbl SELECT * FROM temp_tbl overwrites locking type of temp table
|
||||||
|
#
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP TABLE IF EXISTS t1,t3,t2;
|
||||||
|
DROP FUNCTION IF EXISTS f1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
DELIMITER |;
|
||||||
|
CREATE FUNCTION f1() RETURNS VARCHAR(250)
|
||||||
|
BEGIN
|
||||||
|
return 'hhhhhhh' ;
|
||||||
|
END|
|
||||||
|
DELIMITER ;|
|
||||||
|
|
||||||
|
CREATE TABLE t1 (a VARCHAR(20), b VARCHAR(20), c VARCHAR(20)) ENGINE=INNODB;
|
||||||
|
|
||||||
|
BEGIN WORK;
|
||||||
|
|
||||||
|
CREATE TEMPORARY TABLE t2 (a VARCHAR(20), b VARCHAR(20), c varchar(20)) ENGINE=INNODB;
|
||||||
|
CREATE TEMPORARY TABLE t3 LIKE t2;
|
||||||
|
|
||||||
|
INSERT INTO t1 VALUES ('a','b',NULL),('c','d',NULL),('e','f',NULL);
|
||||||
|
|
||||||
|
SET @stmt := CONCAT('INSERT INTO t2 SELECT tbl.a, tbl.b, f1()',' FROM t1 tbl');
|
||||||
|
PREPARE stmt1 FROM @stmt;
|
||||||
|
|
||||||
|
SET @stmt := CONCAT('INSERT INTO t3', ' SELECT * FROM t2');
|
||||||
|
PREPARE stmt3 FROM @stmt;
|
||||||
|
|
||||||
|
EXECUTE stmt1;
|
||||||
|
|
||||||
|
COMMIT;
|
||||||
|
|
||||||
|
DEALLOCATE PREPARE stmt1;
|
||||||
|
DEALLOCATE PREPARE stmt3;
|
||||||
|
|
||||||
|
DROP TABLE t1,t3,t2;
|
||||||
|
DROP FUNCTION f1;
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
--lower-case-table-names=1 --character-set-server=utf8
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
|||||||
#
|
|
||||||
# Bug#25830 SHOW TABLE STATUS behaves differently depending on table name
|
|
||||||
#
|
|
||||||
set names utf8;
|
|
||||||
create table `Ö` (id int);
|
|
||||||
show tables from test like 'Ö';
|
|
||||||
show tables from test like 'ö';
|
|
||||||
drop table `Ö`;
|
|
||||||
|
|
@ -8,6 +8,22 @@
|
|||||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||||
--enable_warnings
|
--enable_warnings
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#40972: some sql execution lead the whole database crashing
|
||||||
|
#
|
||||||
|
# Setup so the start is at partition pX and end is at p1
|
||||||
|
# Pruning does handle 'bad' dates differently.
|
||||||
|
CREATE TABLE t1
|
||||||
|
(a INT NOT NULL AUTO_INCREMENT,
|
||||||
|
b DATETIME,
|
||||||
|
PRIMARY KEY (a,b),
|
||||||
|
KEY (b))
|
||||||
|
PARTITION BY RANGE (to_days(b))
|
||||||
|
(PARTITION p0 VALUES LESS THAN (733681) COMMENT = 'LESS THAN 2008-10-01',
|
||||||
|
PARTITION p1 VALUES LESS THAN (733712) COMMENT = 'LESS THAN 2008-11-01',
|
||||||
|
PARTITION pX VALUES LESS THAN MAXVALUE);
|
||||||
|
SELECT a,b FROM t1 WHERE b >= '2008-12-01' AND b < '2009-12-00';
|
||||||
|
DROP TABLE t1;
|
||||||
|
|
||||||
# Check if we can infer from condition on partition fields that
|
# Check if we can infer from condition on partition fields that
|
||||||
# no records will match.
|
# no records will match.
|
||||||
|
@ -204,4 +204,35 @@ DELETE FROM t1;
|
|||||||
SELECT * FROM t1;
|
SELECT * FROM t1;
|
||||||
DROP TABLE t1;
|
DROP TABLE t1;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#41348: INSERT INTO tbl SELECT * FROM temp_tbl overwrites locking type of temp table
|
||||||
|
#
|
||||||
|
|
||||||
|
--disable_warnings
|
||||||
|
DROP TABLE IF EXISTS t1,t2;
|
||||||
|
DROP FUNCTION IF EXISTS f1;
|
||||||
|
--enable_warnings
|
||||||
|
|
||||||
|
CREATE TEMPORARY TABLE t1 (a INT);
|
||||||
|
CREATE TEMPORARY TABLE t2 LIKE t1;
|
||||||
|
|
||||||
|
DELIMITER |;
|
||||||
|
CREATE FUNCTION f1() RETURNS INT
|
||||||
|
BEGIN
|
||||||
|
return 1;
|
||||||
|
END|
|
||||||
|
DELIMITER ;|
|
||||||
|
|
||||||
|
INSERT INTO t2 SELECT * FROM t1;
|
||||||
|
INSERT INTO t1 SELECT f1();
|
||||||
|
|
||||||
|
CREATE TABLE t3 SELECT * FROM t1;
|
||||||
|
INSERT INTO t1 SELECT f1();
|
||||||
|
|
||||||
|
UPDATE t1,t2 SET t1.a = t2.a;
|
||||||
|
INSERT INTO t2 SELECT f1();
|
||||||
|
|
||||||
|
DROP TABLE t1,t2,t3;
|
||||||
|
DROP FUNCTION f1;
|
||||||
|
|
||||||
--echo End of 5.1 tests
|
--echo End of 5.1 tests
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2004-2006 MySQL AB
|
/* Copyright 2004-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -451,7 +451,7 @@ int main(int argc,char **argv)
|
|||||||
printf("/*\n\n Do " "not " "edit " "this " "file " "directly!\n\n*/\n");
|
printf("/*\n\n Do " "not " "edit " "this " "file " "directly!\n\n*/\n");
|
||||||
|
|
||||||
printf("\
|
printf("\
|
||||||
/* Copyright (C) 2001-2004 MySQL AB\n\
|
/* Copyright 2001-2008 MySQL AB, 2008 Sun Microsystems, Inc.\n\
|
||||||
\n\
|
\n\
|
||||||
This program is free software; you can redistribute it and/or modify\n\
|
This program is free software; you can redistribute it and/or modify\n\
|
||||||
it under the terms of the GNU General Public License as published by\n\
|
it under the terms of the GNU General Public License as published by\n\
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005 MySQL AB
|
/* Copyright 2005-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -4815,7 +4815,7 @@ int ha_partition::info(uint flag)
|
|||||||
/*
|
/*
|
||||||
Calculates statistical variables
|
Calculates statistical variables
|
||||||
records: Estimate of number records in table
|
records: Estimate of number records in table
|
||||||
We report sum (always at least 2)
|
We report sum (always at least 2 if not empty)
|
||||||
deleted: Estimate of number holes in the table due to
|
deleted: Estimate of number holes in the table due to
|
||||||
deletes
|
deletes
|
||||||
We report sum
|
We report sum
|
||||||
@ -4854,13 +4854,13 @@ int ha_partition::info(uint flag)
|
|||||||
stats.check_time= file->stats.check_time;
|
stats.check_time= file->stats.check_time;
|
||||||
}
|
}
|
||||||
} while (*(++file_array));
|
} while (*(++file_array));
|
||||||
if (stats.records < 2 &&
|
if (stats.records && stats.records < 2 &&
|
||||||
!(m_file[0]->ha_table_flags() & HA_STATS_RECORDS_IS_EXACT))
|
!(m_file[0]->ha_table_flags() & HA_STATS_RECORDS_IS_EXACT))
|
||||||
stats.records= 2;
|
stats.records= 2;
|
||||||
if (stats.records > 0)
|
if (stats.records > 0)
|
||||||
stats.mean_rec_length= (ulong) (stats.data_file_length / stats.records);
|
stats.mean_rec_length= (ulong) (stats.data_file_length / stats.records);
|
||||||
else
|
else
|
||||||
stats.mean_rec_length= 1; //? What should we set here
|
stats.mean_rec_length= 0;
|
||||||
}
|
}
|
||||||
if (flag & HA_STATUS_CONST)
|
if (flag & HA_STATUS_CONST)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005 MySQL AB
|
/* Copyright 2005-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2004 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -230,7 +230,7 @@ extern "C" sig_handler handle_segfault(int sig);
|
|||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
#define ENABLE_TEMP_POOL 1
|
#define ENABLE_TEMP_POOL 1
|
||||||
#else
|
#else
|
||||||
#define ENABLE_TEMP_TOOL 0
|
#define ENABLE_TEMP_POOL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2006 MySQL AB
|
/* Copyright 2006-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -1527,14 +1527,14 @@ bool sys_var_thd_ulong::update(THD *thd, set_var *var)
|
|||||||
ulonglong tmp= var->save_result.ulonglong_value;
|
ulonglong tmp= var->save_result.ulonglong_value;
|
||||||
|
|
||||||
/* Don't use bigger value than given with --maximum-variable-name=.. */
|
/* Don't use bigger value than given with --maximum-variable-name=.. */
|
||||||
if ((ulong) tmp > max_system_variables.*offset)
|
if (tmp > max_system_variables.*offset)
|
||||||
{
|
{
|
||||||
throw_bounds_warning(thd, TRUE, TRUE, name, (longlong) tmp);
|
throw_bounds_warning(thd, TRUE, TRUE, name, (longlong) tmp);
|
||||||
tmp= max_system_variables.*offset;
|
tmp= max_system_variables.*offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (option_limits)
|
if (option_limits)
|
||||||
tmp= (ulong) fix_unsigned(thd, tmp, option_limits);
|
tmp= fix_unsigned(thd, tmp, option_limits);
|
||||||
#if SIZEOF_LONG < SIZEOF_LONG_LONG
|
#if SIZEOF_LONG < SIZEOF_LONG_LONG
|
||||||
else if (tmp > ULONG_MAX)
|
else if (tmp > ULONG_MAX)
|
||||||
{
|
{
|
||||||
@ -1543,6 +1543,7 @@ bool sys_var_thd_ulong::update(THD *thd, set_var *var)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
DBUG_ASSERT(tmp <= ULONG_MAX);
|
||||||
if (var->type == OPT_GLOBAL)
|
if (var->type == OPT_GLOBAL)
|
||||||
global_system_variables.*offset= (ulong) tmp;
|
global_system_variables.*offset= (ulong) tmp;
|
||||||
else
|
else
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2002 MySQL AB
|
/* Copyright 2002-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -1111,6 +1111,27 @@ static void mark_temp_tables_as_free_for_reuse(THD *thd)
|
|||||||
*/
|
*/
|
||||||
if (table->child_l || table->parent)
|
if (table->child_l || table->parent)
|
||||||
detach_merge_children(table, TRUE);
|
detach_merge_children(table, TRUE);
|
||||||
|
/*
|
||||||
|
Reset temporary table lock type to it's default value (TL_WRITE).
|
||||||
|
|
||||||
|
Statements such as INSERT INTO .. SELECT FROM tmp, CREATE TABLE
|
||||||
|
.. SELECT FROM tmp and UPDATE may under some circumstances modify
|
||||||
|
the lock type of the tables participating in the statement. This
|
||||||
|
isn't a problem for non-temporary tables since their lock type is
|
||||||
|
reset at every open, but the same does not occur for temporary
|
||||||
|
tables for historical reasons.
|
||||||
|
|
||||||
|
Furthermore, the lock type of temporary tables is not really that
|
||||||
|
important because they can only be used by one query at a time and
|
||||||
|
not even twice in a query -- a temporary table is represented by
|
||||||
|
only one TABLE object. Nonetheless, it's safer from a maintenance
|
||||||
|
point of view to reset the lock type of this singleton TABLE object
|
||||||
|
as to not cause problems when the table is reused.
|
||||||
|
|
||||||
|
Even under LOCK TABLES mode its okay to reset the lock type as
|
||||||
|
LOCK TABLES is allowed (but ignored) for a temporary table.
|
||||||
|
*/
|
||||||
|
table->reginfo.lock_type= TL_WRITE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -4681,7 +4702,7 @@ int open_tables(THD *thd, TABLE_LIST **start, uint *counter, uint flags)
|
|||||||
else if (tables->lock_type == TL_READ_DEFAULT)
|
else if (tables->lock_type == TL_READ_DEFAULT)
|
||||||
tables->table->reginfo.lock_type=
|
tables->table->reginfo.lock_type=
|
||||||
read_lock_type_for_table(thd, tables->table);
|
read_lock_type_for_table(thd, tables->table);
|
||||||
else if (tables->table->s->tmp_table == NO_TMP_TABLE)
|
else
|
||||||
tables->table->reginfo.lock_type= tables->lock_type;
|
tables->table->reginfo.lock_type= tables->lock_type;
|
||||||
}
|
}
|
||||||
tables->table->grant= tables->grant;
|
tables->table->grant= tables->grant;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005, 2006 MySQL AB
|
/* Copyright 2005-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -6760,7 +6760,7 @@ int get_part_iter_for_interval_via_mapping(partition_info *part_info,
|
|||||||
store_key_image_to_rec(field, max_value, field_len);
|
store_key_image_to_rec(field, max_value, field_len);
|
||||||
bool include_endp= !test(flags & NEAR_MAX);
|
bool include_endp= !test(flags & NEAR_MAX);
|
||||||
part_iter->part_nums.end= get_endpoint(part_info, 0, include_endp);
|
part_iter->part_nums.end= get_endpoint(part_info, 0, include_endp);
|
||||||
if (part_iter->part_nums.start == part_iter->part_nums.end &&
|
if (part_iter->part_nums.start >= part_iter->part_nums.end &&
|
||||||
!part_iter->ret_null_part)
|
!part_iter->ret_null_part)
|
||||||
return 0; /* No partitions */
|
return 0; /* No partitions */
|
||||||
}
|
}
|
||||||
@ -6938,7 +6938,7 @@ int get_part_iter_for_interval_via_walking(partition_info *part_info,
|
|||||||
|
|
||||||
uint32 get_next_partition_id_range(PARTITION_ITERATOR* part_iter)
|
uint32 get_next_partition_id_range(PARTITION_ITERATOR* part_iter)
|
||||||
{
|
{
|
||||||
if (part_iter->part_nums.cur == part_iter->part_nums.end)
|
if (part_iter->part_nums.cur >= part_iter->part_nums.end)
|
||||||
{
|
{
|
||||||
part_iter->part_nums.cur= part_iter->part_nums.start;
|
part_iter->part_nums.cur= part_iter->part_nums.start;
|
||||||
return NOT_A_PARTITION_ID;
|
return NOT_A_PARTITION_ID;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2004 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@ -468,17 +468,11 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db,
|
|||||||
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
#ifndef NO_EMBEDDED_ACCESS_CHECKS
|
||||||
uint col_access=thd->col_access;
|
uint col_access=thd->col_access;
|
||||||
#endif
|
#endif
|
||||||
uint wild_length= 0;
|
|
||||||
TABLE_LIST table_list;
|
TABLE_LIST table_list;
|
||||||
DBUG_ENTER("find_files");
|
DBUG_ENTER("find_files");
|
||||||
|
|
||||||
if (wild)
|
if (wild && !wild[0])
|
||||||
{
|
wild=0;
|
||||||
if (!wild[0])
|
|
||||||
wild= 0;
|
|
||||||
else
|
|
||||||
wild_length= strlen(wild);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
bzero((char*) &table_list,sizeof(table_list));
|
bzero((char*) &table_list,sizeof(table_list));
|
||||||
@ -543,11 +537,8 @@ find_files(THD *thd, List<LEX_STRING> *files, const char *db,
|
|||||||
{
|
{
|
||||||
if (lower_case_table_names)
|
if (lower_case_table_names)
|
||||||
{
|
{
|
||||||
if (my_wildcmp(files_charset_info,
|
if (wild_case_compare(files_charset_info, uname, wild))
|
||||||
uname, uname + file_name_len,
|
continue;
|
||||||
wild, wild + wild_length,
|
|
||||||
wild_prefix, wild_one, wild_many))
|
|
||||||
continue;
|
|
||||||
}
|
}
|
||||||
else if (wild_compare(uname, wild, 0))
|
else if (wild_compare(uname, wild, 0))
|
||||||
continue;
|
continue;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2006 MySQL AB
|
/* Copyright 2006-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2004 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2003 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2000-2006 MySQL AB
|
/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -374,10 +374,8 @@ static struct my_option my_long_options[] =
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2007 MySQL AB");
|
puts("Copyright 2007-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,\nand you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
\nand you are welcome to modify and redistribute it under the GPL \
|
|
||||||
license\n");
|
|
||||||
puts("Read and modify Archive files directly\n");
|
puts("Read and modify Archive files directly\n");
|
||||||
printf("Usage: %s [OPTIONS] file_to_be_looked_at [file_for_backup]\n", my_progname);
|
printf("Usage: %s [OPTIONS] file_to_be_looked_at [file_for_backup]\n", my_progname);
|
||||||
print_defaults("my", load_default_groups);
|
print_defaults("my", load_default_groups);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005 MySQL AB
|
/* Copyright 2005-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 2005 MySQL AB
|
/* Copyright 2005-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
|
@ -300,7 +300,7 @@ static void print_version(void)
|
|||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
print_version();
|
print_version();
|
||||||
puts("Copyright (C) 2002 MySQL AB");
|
puts("Copyright 2002-2008 MySQL AB, 2008 Sun Microsystems, Inc.");
|
||||||
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,");
|
puts("This software comes with ABSOLUTELY NO WARRANTY. This is free software,");
|
||||||
puts("and you are welcome to modify and redistribute it under the GPL license\n");
|
puts("and you are welcome to modify and redistribute it under the GPL license\n");
|
||||||
|
|
||||||
|
@ -81,9 +81,9 @@ open (OUTFILE, "> ${destdir}/doxygen.sty.new")
|
|||||||
while (<INFILE>)
|
while (<INFILE>)
|
||||||
{
|
{
|
||||||
if (/\\rfoot/) {
|
if (/\\rfoot/) {
|
||||||
print OUTFILE "\\rfoot[\\fancyplain{}{\\bfseries\\small \\copyright~Copyright 2003-2004 MySQL AB\\hfill support-cluster\@mysql.com}]{}\n";
|
print OUTFILE "\\rfoot[\\fancyplain{}{\\bfseries\\small \\copyright~Copyright 2003-2008 MySQL AB, 2008 Sun Microsystems, Inc.\\hfill support-cluster\@mysql.com}]{}\n";
|
||||||
} elsif (/\\lfoot/) {
|
} elsif (/\\lfoot/) {
|
||||||
print OUTFILE "\\lfoot[]{\\fancyplain{}{\\bfseries\\small support-cluster\@mysql.com\\hfill \\copyright~Copyright 2003-2004 MySQL AB}}\n";
|
print OUTFILE "\\lfoot[]{\\fancyplain{}{\\bfseries\\small support-cluster\@mysql.com\\hfill \\copyright~Copyright 2003-2008 MySQL AB, 2008 Sun Microsystems, Inc.}}\n";
|
||||||
} else {
|
} else {
|
||||||
print OUTFILE;
|
print OUTFILE;
|
||||||
}
|
}
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; version 2 of the License.
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -2,8 +2,7 @@
|
|||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
This program is free software; you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
the Free Software Foundation; version 2 of the License.
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
This program is distributed in the hope that it will be useful,
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
@ -249,7 +249,7 @@ static void
|
|||||||
fprint_copyright(FILE *file)
|
fprint_copyright(FILE *file)
|
||||||
{
|
{
|
||||||
fprintf(file,
|
fprintf(file,
|
||||||
"/* Copyright (C) 2000-2007 MySQL AB\n"
|
"/* Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.\n"
|
||||||
"\n"
|
"\n"
|
||||||
" This program is free software; you can redistribute it and/or modify\n"
|
" This program is free software; you can redistribute it and/or modify\n"
|
||||||
" it under the terms of the GNU General Public License as published by\n"
|
" it under the terms of the GNU General Public License as published by\n"
|
||||||
|
@ -34,7 +34,7 @@ sort_buffer_size = 64K
|
|||||||
read_buffer_size = 256K
|
read_buffer_size = 256K
|
||||||
read_rnd_buffer_size = 256K
|
read_rnd_buffer_size = 256K
|
||||||
net_buffer_length = 2K
|
net_buffer_length = 2K
|
||||||
thread_stack = 64K
|
thread_stack = 128K
|
||||||
|
|
||||||
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
|
# Don't listen on a TCP/IP port at all. This can be a security enhancement,
|
||||||
# if all processes that need to connect to mysqld run on the same host.
|
# if all processes that need to connect to mysqld run on the same host.
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Copyright (C) 2000-2007 MySQL AB
|
# Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc.
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
@ -15,7 +15,11 @@
|
|||||||
# MA 02110-1301 USA.
|
# MA 02110-1301 USA.
|
||||||
|
|
||||||
%define mysql_version @VERSION@
|
%define mysql_version @VERSION@
|
||||||
%define mysql_vendor MySQL AB
|
|
||||||
|
# NOTE: "vendor" is used in upgrade/downgrade check, so you can't
|
||||||
|
# change these, has to be exactly as is.
|
||||||
|
%define mysql_old_vendor MySQL AB
|
||||||
|
%define mysql_vendor Sun Microsystems, Inc.
|
||||||
|
|
||||||
# use "rpmbuild --with static" or "rpm --define '_with_static 1'" (for RPM 3.x)
|
# use "rpmbuild --with static" or "rpm --define '_with_static 1'" (for RPM 3.x)
|
||||||
# to enable static linking (off by default)
|
# to enable static linking (off by default)
|
||||||
@ -38,7 +42,7 @@
|
|||||||
%define release 0.glibc23
|
%define release 0.glibc23
|
||||||
%endif
|
%endif
|
||||||
%define license GPL
|
%define license GPL
|
||||||
%define mysqld_user mysql
|
%define mysqld_user mysql
|
||||||
%define mysqld_group mysql
|
%define mysqld_group mysql
|
||||||
%define server_suffix -standard
|
%define server_suffix -standard
|
||||||
%define mysqldatadir /var/lib/mysql
|
%define mysqldatadir /var/lib/mysql
|
||||||
@ -71,10 +75,10 @@ Summary: MySQL: a very fast and reliable SQL database server
|
|||||||
Group: Applications/Databases
|
Group: Applications/Databases
|
||||||
Version: @MYSQL_NO_DASH_VERSION@
|
Version: @MYSQL_NO_DASH_VERSION@
|
||||||
Release: %{release}
|
Release: %{release}
|
||||||
License: %{license}
|
License: Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Under %{license} license as shown in the Description field.
|
||||||
Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%{mysql_version}.tar.gz
|
Source: http://www.mysql.com/Downloads/MySQL-@MYSQL_BASE_VERSION@/mysql-%{mysql_version}.tar.gz
|
||||||
URL: http://www.mysql.com/
|
URL: http://www.mysql.com/
|
||||||
Packager: MySQL Production Engineering Team <build@mysql.com>
|
Packager: Sun Microsystems, Inc. Product Engineering Team <build@mysql.com>
|
||||||
Vendor: %{mysql_vendor}
|
Vendor: %{mysql_vendor}
|
||||||
Provides: msqlormysql MySQL-server mysql
|
Provides: msqlormysql MySQL-server mysql
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
@ -90,9 +94,11 @@ The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
|
|||||||
and robust SQL (Structured Query Language) database server. MySQL Server
|
and robust SQL (Structured Query Language) database server. MySQL Server
|
||||||
is intended for mission-critical, heavy-load production systems as well
|
is intended for mission-critical, heavy-load production systems as well
|
||||||
as for embedding into mass-deployed software. MySQL is a trademark of
|
as for embedding into mass-deployed software. MySQL is a trademark of
|
||||||
MySQL AB.
|
Sun Microsystems, Inc.
|
||||||
|
|
||||||
|
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc. All rights reserved.
|
||||||
|
Use is subject to license terms.
|
||||||
|
|
||||||
Copyright (C) 2000-2007 MySQL AB
|
|
||||||
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
|
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
|
||||||
and you are welcome to modify and redistribute it under the GPL license.
|
and you are welcome to modify and redistribute it under the GPL license.
|
||||||
|
|
||||||
@ -112,9 +118,11 @@ The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
|
|||||||
and robust SQL (Structured Query Language) database server. MySQL Server
|
and robust SQL (Structured Query Language) database server. MySQL Server
|
||||||
is intended for mission-critical, heavy-load production systems as well
|
is intended for mission-critical, heavy-load production systems as well
|
||||||
as for embedding into mass-deployed software. MySQL is a trademark of
|
as for embedding into mass-deployed software. MySQL is a trademark of
|
||||||
MySQL AB.
|
Sun Microsystems, Inc.
|
||||||
|
|
||||||
|
Copyright 2000-2008 MySQL AB, 2008 Sun Microsystems, Inc. All rights reserved.
|
||||||
|
Use is subject to license terms.
|
||||||
|
|
||||||
Copyright (C) 2000-2007 MySQL AB
|
|
||||||
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
|
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
|
||||||
and you are welcome to modify and redistribute it under the GPL license.
|
and you are welcome to modify and redistribute it under the GPL license.
|
||||||
|
|
||||||
@ -264,7 +272,11 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
|
|||||||
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
|
--with-unix-socket-path=/var/lib/mysql/mysql.sock \
|
||||||
--with-pic \
|
--with-pic \
|
||||||
--prefix=/ \
|
--prefix=/ \
|
||||||
|
%if %{CLUSTER_BUILD}
|
||||||
--with-extra-charsets=all \
|
--with-extra-charsets=all \
|
||||||
|
%else
|
||||||
|
--with-extra-charsets=complex \
|
||||||
|
%endif
|
||||||
%if %{YASSL_BUILD}
|
%if %{YASSL_BUILD}
|
||||||
--with-ssl \
|
--with-ssl \
|
||||||
%endif
|
%endif
|
||||||
@ -279,7 +291,20 @@ sh -c "PATH=\"${MYSQL_BUILD_PATH:-$PATH}\" \
|
|||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--enable-thread-safe-client \
|
--enable-thread-safe-client \
|
||||||
--with-readline \
|
--with-readline \
|
||||||
"
|
--with-innodb \
|
||||||
|
%if %{CLUSTER_BUILD}
|
||||||
|
--with-ndbcluster \
|
||||||
|
%else
|
||||||
|
--without-ndbcluster \
|
||||||
|
%endif
|
||||||
|
--with-archive-storage-engine \
|
||||||
|
--with-csv-storage-engine \
|
||||||
|
--with-blackhole-storage-engine \
|
||||||
|
--with-federated-storage-engine \
|
||||||
|
--with-partition \
|
||||||
|
--with-big-tables \
|
||||||
|
--enable-shared \
|
||||||
|
"
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,6 +331,8 @@ mkdir -p $RBR%{_libdir}/mysql
|
|||||||
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
|
PATH=${MYSQL_BUILD_PATH:-/bin:/usr/bin}
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
|
# Build the Debug binary.
|
||||||
|
|
||||||
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
|
# Use gcc for C and C++ code (to avoid a dependency on libstdc++ and
|
||||||
# including exceptions into the code
|
# including exceptions into the code
|
||||||
if [ -z "$CXX" -a -z "$CC" ]
|
if [ -z "$CXX" -a -z "$CC" ]
|
||||||
@ -326,28 +353,20 @@ CXXFLAGS=${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno-except
|
|||||||
|
|
||||||
(
|
(
|
||||||
# We are in a subshell, so we can modify variables just for one run.
|
# We are in a subshell, so we can modify variables just for one run.
|
||||||
CFLAGS=`echo $CFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //' -e 's/$/ -g/'`
|
CFLAGS=`echo " $CFLAGS " | \
|
||||||
CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-O[0-9]* //' -e 's/-unroll2 //' -e 's/-ip //' -e 's/$/ -g/'`
|
sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
|
||||||
|
-e 's/^ //' -e 's/ $//'`
|
||||||
|
CXXFLAGS=`echo " $CXXFLAGS " | \
|
||||||
|
sed -e 's/ -O[0-9]* / /' -e 's/ -unroll2 / /' -e 's/ -ip / /' \
|
||||||
|
-e 's/^ //' -e 's/ $//'`
|
||||||
|
|
||||||
# Add -g and --with-debug.
|
# Add -g and --with-debug.
|
||||||
cd mysql-debug-%{mysql_version} &&
|
cd mysql-debug-%{mysql_version} &&
|
||||||
CFLAGS=\"$CFLAGS\" \
|
CFLAGS="$CFLAGS" \
|
||||||
CXXFLAGS=\"$CXXFLAGS\" \
|
CXXFLAGS="$CXXFLAGS" \
|
||||||
BuildMySQL "--enable-shared \
|
BuildMySQL "\
|
||||||
--with-debug \
|
--with-debug \
|
||||||
--with-innodb \
|
--with-comment=\"MySQL Community Server - Debug (%{license})\"")
|
||||||
%if %{CLUSTER_BUILD}
|
|
||||||
--with-ndbcluster \
|
|
||||||
%else
|
|
||||||
--without-ndbcluster \
|
|
||||||
%endif
|
|
||||||
--with-archive-storage-engine \
|
|
||||||
--with-csv-storage-engine \
|
|
||||||
--with-blackhole-storage-engine \
|
|
||||||
--with-federated-storage-engine \
|
|
||||||
--with-partition \
|
|
||||||
--with-big-tables \
|
|
||||||
--with-comment=\"MySQL Community Server - Debug (GPL)\"")
|
|
||||||
|
|
||||||
# We might want to save the config log file
|
# We might want to save the config log file
|
||||||
if test -n "$MYSQL_DEBUGCONFLOG_DEST"
|
if test -n "$MYSQL_DEBUGCONFLOG_DEST"
|
||||||
@ -364,23 +383,11 @@ fi
|
|||||||
##############################################################################
|
##############################################################################
|
||||||
|
|
||||||
(cd mysql-release-%{mysql_version} &&
|
(cd mysql-release-%{mysql_version} &&
|
||||||
CFLAGS=\"$CFLAGS\" \
|
CFLAGS="$CFLAGS" \
|
||||||
CXXFLAGS=\"$CXXFLAGS\" \
|
CXXFLAGS="$CXXFLAGS" \
|
||||||
BuildMySQL "--enable-shared \
|
BuildMySQL "\
|
||||||
--with-innodb \
|
|
||||||
%if %{CLUSTER_BUILD}
|
|
||||||
--with-ndbcluster \
|
|
||||||
%else
|
|
||||||
--without-ndbcluster \
|
|
||||||
%endif
|
|
||||||
--with-archive-storage-engine \
|
|
||||||
--with-csv-storage-engine \
|
|
||||||
--with-blackhole-storage-engine \
|
|
||||||
--with-federated-storage-engine \
|
|
||||||
--with-partition \
|
|
||||||
--with-embedded-server \
|
--with-embedded-server \
|
||||||
--with-big-tables \
|
--with-comment=\"MySQL Community Server (%{license})\"")
|
||||||
--with-comment=\"MySQL Community Server (GPL)\"")
|
|
||||||
# We might want to save the config log file
|
# We might want to save the config log file
|
||||||
if test -n "$MYSQL_CONFLOG_DEST"
|
if test -n "$MYSQL_CONFLOG_DEST"
|
||||||
then
|
then
|
||||||
@ -460,6 +467,7 @@ installed=`rpm -q --whatprovides mysql-server 2> /dev/null`
|
|||||||
if [ $? -eq 0 -a -n "$installed" ]; then
|
if [ $? -eq 0 -a -n "$installed" ]; then
|
||||||
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
|
vendor=`rpm -q --queryformat='%{VENDOR}' "$installed" 2>&1`
|
||||||
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
|
version=`rpm -q --queryformat='%{VERSION}' "$installed" 2>&1`
|
||||||
|
myoldvendor='%{mysql_old_vendor}'
|
||||||
myvendor='%{mysql_vendor}'
|
myvendor='%{mysql_vendor}'
|
||||||
myversion='%{mysql_version}'
|
myversion='%{mysql_version}'
|
||||||
|
|
||||||
@ -471,12 +479,12 @@ if [ $? -eq 0 -a -n "$installed" ]; then
|
|||||||
[ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
|
[ -z "$new_family" ] && new_family="<bad package specification: version $myversion>"
|
||||||
|
|
||||||
error_text=
|
error_text=
|
||||||
if [ "$vendor" != "$myvendor" ]; then
|
if [ "$vendor" != "$myoldvendor" -a "$vendor" != "$myvendor" ]; then
|
||||||
error_text="$error_text
|
error_text="$error_text
|
||||||
The current MySQL server package is provided by a different
|
The current MySQL server package is provided by a different
|
||||||
vendor ($vendor) than $myvendor. Some files may be installed
|
vendor ($vendor) than $myoldvendor or $myvendor.
|
||||||
to different locations, including log files and the service
|
Some files may be installed to different locations, including log
|
||||||
startup script in %{_sysconfdir}/init.d/.
|
files and the service startup script in %{_sysconfdir}/init.d/.
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -700,7 +708,6 @@ fi
|
|||||||
%attr(755, root, root) %{_bindir}/msql2mysql
|
%attr(755, root, root) %{_bindir}/msql2mysql
|
||||||
%attr(755, root, root) %{_bindir}/mysql
|
%attr(755, root, root) %{_bindir}/mysql
|
||||||
%attr(755, root, root) %{_bindir}/mysql_find_rows
|
%attr(755, root, root) %{_bindir}/mysql_find_rows
|
||||||
%attr(755, root, root) %{_bindir}/mysql_upgrade_shell
|
|
||||||
%attr(755, root, root) %{_bindir}/mysql_waitpid
|
%attr(755, root, root) %{_bindir}/mysql_waitpid
|
||||||
%attr(755, root, root) %{_bindir}/mysqlaccess
|
%attr(755, root, root) %{_bindir}/mysqlaccess
|
||||||
%attr(755, root, root) %{_bindir}/mysqladmin
|
%attr(755, root, root) %{_bindir}/mysqladmin
|
||||||
@ -840,6 +847,16 @@ fi
|
|||||||
# itself - note that they must be ordered by date (important when
|
# itself - note that they must be ordered by date (important when
|
||||||
# merging BK trees)
|
# merging BK trees)
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 07 2008 Joerg Bruehe <joerg@mysql.com>
|
||||||
|
|
||||||
|
- Correct yesterday's fix, so that it also works for the last flag,
|
||||||
|
and fix a wrong quoting: un-quoted quote marks must not be escaped.
|
||||||
|
|
||||||
|
* Thu Nov 06 2008 Kent Boortz <kent.boortz@sun.com>
|
||||||
|
|
||||||
|
- Removed "mysql_upgrade_shell"
|
||||||
|
- Removed some copy/paste between debug and normal build
|
||||||
|
|
||||||
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
|
* Thu Nov 06 2008 Joerg Bruehe <joerg@mysql.com>
|
||||||
|
|
||||||
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
|
- Modify CFLAGS and CXXFLAGS such that a debug build is not optimized.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user