Commit 03fb2d30 authored by Chuck Bell's avatar Chuck Bell

Local merger for BUG#59752

parents 178bacbb ebaf3de8
...@@ -10,6 +10,9 @@ UNINSTALL PLUGIN archive; ...@@ -10,6 +10,9 @@ UNINSTALL PLUGIN archive;
INSTALL PLUGIN archive SONAME 'ha_archive.so'; INSTALL PLUGIN archive SONAME 'ha_archive.so';
CREATE TABLE t1(a int) ENGINE=ARCHIVE; CREATE TABLE t1(a int) ENGINE=ARCHIVE;
DROP TABLE t1; DROP TABLE t1;
SELECT 1;
1
1
UNINSTALL PLUGIN archive; UNINSTALL PLUGIN archive;
UNINSTALL PLUGIN archive; UNINSTALL PLUGIN archive;
ERROR 42000: PLUGIN archive does not exist ERROR 42000: PLUGIN archive does not exist
...@@ -10,6 +10,9 @@ UNINSTALL PLUGIN blackhole; ...@@ -10,6 +10,9 @@ UNINSTALL PLUGIN blackhole;
INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so'; INSTALL PLUGIN blackhole SONAME 'ha_blackhole.so';
CREATE TABLE t1(a int) ENGINE=BLACKHOLE; CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
DROP TABLE t1; DROP TABLE t1;
SELECT 1;
1
1
UNINSTALL PLUGIN blackhole; UNINSTALL PLUGIN blackhole;
UNINSTALL PLUGIN blackhole; UNINSTALL PLUGIN blackhole;
ERROR 42000: PLUGIN blackhole does not exist ERROR 42000: PLUGIN blackhole does not exist
...@@ -123,3 +123,16 @@ CREATE TABLE t2 SELECT 1 FROM t1, t1 t3 GROUP BY t3.a PROCEDURE ANALYSE(); ...@@ -123,3 +123,16 @@ CREATE TABLE t2 SELECT 1 FROM t1, t1 t3 GROUP BY t3.a PROCEDURE ANALYSE();
ERROR HY000: Incorrect usage of PROCEDURE and non-SELECT ERROR HY000: Incorrect usage of PROCEDURE and non-SELECT
DROP TABLE t1; DROP TABLE t1;
End of 5.0 tests End of 5.0 tests
#
# Bug#11765202: Dbug_violation_helper::~Dbug_violation_helper(): Assertion `!_entered' failed.
#
DROP TABLE IF EXISTS t1;
Warnings:
Note 1051 Unknown table 't1'
CREATE TABLE t1 (a VARCHAR(2) CHARSET UTF8 NOT NULL);
INSERT INTO t1 VALUES ('e'),('e'),('e-');
SELECT * FROM t1 PROCEDURE ANALYSE();
Field_name Min_value Max_value Min_length Max_length Empties_or_zeros Nulls Avg_value_or_avg_length Std Optimal_fieldtype
test.t1.a e e- 1 2 0 0 1.3333 NULL ENUM('e','e-') NOT NULL
DROP TABLE t1;
End of 5.1 tests
...@@ -20,6 +20,14 @@ CREATE TABLE t1(a int) ENGINE=ARCHIVE; ...@@ -20,6 +20,14 @@ CREATE TABLE t1(a int) ENGINE=ARCHIVE;
DROP TABLE t1; DROP TABLE t1;
# This dummy statement is required for --ps-protocol mode.
# The thing is that last prepared statement is "cached" in mysqltest.cc
# (unless "reconnect" is enabled, and that's not the case here).
# This statement forces mysqltest.cc to close prepared "DROP TABLE t1".
# Otherwise, the plugin can not be uninstalled because there is an active
# prepared statement using it.
SELECT 1;
UNINSTALL PLUGIN archive; UNINSTALL PLUGIN archive;
--error ER_SP_DOES_NOT_EXIST --error ER_SP_DOES_NOT_EXIST
......
...@@ -20,6 +20,14 @@ CREATE TABLE t1(a int) ENGINE=BLACKHOLE; ...@@ -20,6 +20,14 @@ CREATE TABLE t1(a int) ENGINE=BLACKHOLE;
DROP TABLE t1; DROP TABLE t1;
# This dummy statement is required for --ps-protocol mode.
# The thing is that last prepared statement is "cached" in mysqltest.cc
# (unless "reconnect" is enabled, and that's not the case here).
# This statement forces mysqltest.cc to close prepared "DROP TABLE t1".
# Otherwise, the plugin can not be uninstalled because there is an active
# prepared statement using it.
SELECT 1;
UNINSTALL PLUGIN blackhole; UNINSTALL PLUGIN blackhole;
--error ER_SP_DOES_NOT_EXIST --error ER_SP_DOES_NOT_EXIST
UNINSTALL PLUGIN blackhole; UNINSTALL PLUGIN blackhole;
......
...@@ -10,9 +10,10 @@ ...@@ -10,9 +10,10 @@
--perl --perl
print "\nChecking 'INFO_SRC' and 'INFO_BIN'\n"; print "\nChecking 'INFO_SRC' and 'INFO_BIN'\n";
$dir_docs = $ENV{'MYSQL_BINDIR'}; $dir_bin = $ENV{'MYSQL_BINDIR'};
if($dir_docs =~ m|/usr/|) { if ($dir_bin =~ m|/usr/|) {
# RPM package # RPM package
$dir_docs = $dir_bin;
$dir_docs =~ s|/lib|/share/doc|; $dir_docs =~ s|/lib|/share/doc|;
if(-d "$dir_docs/packages/MySQL-server") { if(-d "$dir_docs/packages/MySQL-server") {
# SuSE # SuSE
...@@ -21,8 +22,19 @@ if($dir_docs =~ m|/usr/|) { ...@@ -21,8 +22,19 @@ if($dir_docs =~ m|/usr/|) {
# RedHat: version number in directory name # RedHat: version number in directory name
$dir_docs = glob "$dir_docs/MySQL-server*"; $dir_docs = glob "$dir_docs/MySQL-server*";
} }
} elsif ($dir_bin =~ m|/usr$|) {
# RPM build during development
$dir_docs = "$dir_bin/share/doc";
if(-d "$dir_docs/packages/MySQL-server") {
# SuSE
$dir_docs = "$dir_docs/packages/MySQL-server";
} else {
# RedHat: version number in directory name
$dir_docs = glob "$dir_docs/MySQL-server*";
}
} else { } else {
# tar.gz package, Windows, or developer work (in BZR) # tar.gz package, Windows, or developer work (in BZR)
$dir_docs = $dir_bin;
$dir_docs =~ s|/lib||; $dir_docs =~ s|/lib||;
if(-d "$dir_docs/docs") { if(-d "$dir_docs/docs") {
$dir_docs = "$dir_docs/docs"; # package $dir_docs = "$dir_docs/docs"; # package
...@@ -32,7 +44,7 @@ if($dir_docs =~ m|/usr/|) { ...@@ -32,7 +44,7 @@ if($dir_docs =~ m|/usr/|) {
} }
$found_version = "No line 'MySQL source #.#.#'"; $found_version = "No line 'MySQL source #.#.#'";
$found_revision = "No line 'revision-id: .....'"; $found_revision = "No line 'revision-id: .....'";
open(I_SRC,"<","$dir_docs/INFO_SRC") or print "Cannot open 'INFO_SRC' in '$dir_docs'\n"; open(I_SRC,"<","$dir_docs/INFO_SRC") or print "Cannot open 'INFO_SRC' in '$dir_docs' (starting from bindir '$dir_bin')\n";
while(defined ($line = <I_SRC>)) { while(defined ($line = <I_SRC>)) {
if ($line =~ m|^MySQL source \d\.\d\.\d+|) {$found_version = "Found MySQL version number";} if ($line =~ m|^MySQL source \d\.\d\.\d+|) {$found_version = "Found MySQL version number";}
if ($line =~ m|^revision-id: .*@.*-2\d{13}-\w+$|) {$found_revision = "Found BZR revision id";} if ($line =~ m|^revision-id: .*@.*-2\d{13}-\w+$|) {$found_revision = "Found BZR revision id";}
...@@ -41,7 +53,7 @@ close I_SRC; ...@@ -41,7 +53,7 @@ close I_SRC;
print "INFO_SRC: $found_version / $found_revision\n"; print "INFO_SRC: $found_version / $found_revision\n";
$found_compiler = "No line about compiler information"; $found_compiler = "No line about compiler information";
$found_features = "No line 'Feature flags'"; $found_features = "No line 'Feature flags'";
open(I_BIN,"<","$dir_docs/INFO_BIN") or print "Cannot open 'INFO_BIN' in '$dir_docs'\n"; open(I_BIN,"<","$dir_docs/INFO_BIN") or print "Cannot open 'INFO_BIN' in '$dir_docs' (starting from bindir '$dir_bin')\n";
while(defined ($line = <I_BIN>)) { while(defined ($line = <I_BIN>)) {
# "generator" on Windows, "flags" on Unix: # "generator" on Windows, "flags" on Unix:
if (($line =~ m| Compiler / generator used: |) || if (($line =~ m| Compiler / generator used: |) ||
......
...@@ -133,3 +133,15 @@ DROP TABLE t1; ...@@ -133,3 +133,15 @@ DROP TABLE t1;
--echo End of 5.0 tests --echo End of 5.0 tests
--echo #
--echo # Bug#11765202: Dbug_violation_helper::~Dbug_violation_helper(): Assertion `!_entered' failed.
--echo #
DROP TABLE IF EXISTS t1;
CREATE TABLE t1 (a VARCHAR(2) CHARSET UTF8 NOT NULL);
INSERT INTO t1 VALUES ('e'),('e'),('e-');
SELECT * FROM t1 PROCEDURE ANALYSE();
DROP TABLE t1;
--echo End of 5.1 tests
...@@ -4656,10 +4656,15 @@ int mysqld_main(int argc, char **argv) ...@@ -4656,10 +4656,15 @@ int mysqld_main(int argc, char **argv)
#if defined(__WIN__) && !defined(EMBEDDED_LIBRARY) #if defined(__WIN__) && !defined(EMBEDDED_LIBRARY)
int mysql_service(void *p) int mysql_service(void *p)
{ {
if (my_thread_init())
return 1;
if (use_opt_args) if (use_opt_args)
win_main(opt_argc, opt_argv); win_main(opt_argc, opt_argv);
else else
win_main(Service.my_argc, Service.my_argv); win_main(Service.my_argc, Service.my_argv);
my_thread_end();
return 0; return 0;
} }
......
...@@ -242,7 +242,7 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len) ...@@ -242,7 +242,7 @@ bool test_if_number(NUM_INFO *info, const char *str, uint str_len)
if (str == end) if (str == end)
{ {
info->is_float = 1; // we can't use variable decimals here info->is_float = 1; // we can't use variable decimals here
return 1; DBUG_RETURN(1);
} }
DBUG_RETURN(0); DBUG_RETURN(0);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment