mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
merge
This commit is contained in:
27
mysql-test/extra/binlog_tests/binlog_truncate.test
Normal file
27
mysql-test/extra/binlog_tests/binlog_truncate.test
Normal file
@ -0,0 +1,27 @@
|
||||
# BUG #36763: TRUNCATE TABLE fails to replicate when stmt-based
|
||||
# binlogging is not supported.
|
||||
|
||||
# This should always be logged as a statement, even when executed as a
|
||||
# row-by-row deletion.
|
||||
|
||||
# $before_truncate A statement to execute (just) before issuing the
|
||||
# TRUNCATE TABLE
|
||||
|
||||
|
||||
eval CREATE TABLE t1 (a INT) ENGINE=$engine;
|
||||
eval CREATE TABLE t2 (a INT) ENGINE=$engine;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
let $binlog_start = query_get_value("SHOW MASTER STATUS", Position, 1);
|
||||
if (`select length('$before_truncate') > 0`) {
|
||||
eval $before_truncate;
|
||||
}
|
||||
--echo **** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
|
||||
if (`select length('$before_truncate') > 0`) {
|
||||
eval $before_truncate;
|
||||
}
|
||||
TRUNCATE TABLE t2;
|
||||
source include/show_binlog_events.inc;
|
||||
|
||||
DROP TABLE t1,t2;
|
@ -9,27 +9,8 @@
|
||||
|
||||
--source include/master-slave.inc
|
||||
|
||||
let $format = STATEMENT;
|
||||
let $stmt = TRUNCATE TABLE;
|
||||
let $trunc_stmt = TRUNCATE TABLE;
|
||||
--source extra/rpl_tests/rpl_truncate_helper.test
|
||||
|
||||
let $format = MIXED;
|
||||
let $stmt = TRUNCATE TABLE;
|
||||
let $trunc_stmt = DELETE FROM;
|
||||
--source extra/rpl_tests/rpl_truncate_helper.test
|
||||
|
||||
let $format = ROW;
|
||||
let $stmt = TRUNCATE TABLE;
|
||||
--source extra/rpl_tests/rpl_truncate_helper.test
|
||||
|
||||
let $format = STATEMENT;
|
||||
let $stmt = DELETE FROM;
|
||||
--source extra/rpl_tests/rpl_truncate_helper.test
|
||||
|
||||
let $format = MIXED;
|
||||
let $stmt = DELETE FROM;
|
||||
--source extra/rpl_tests/rpl_truncate_helper.test
|
||||
|
||||
let $format = ROW;
|
||||
let $stmt = DELETE FROM;
|
||||
--source extra/rpl_tests/rpl_truncate_helper.test
|
||||
|
||||
|
@ -1,47 +1,35 @@
|
||||
connection slave;
|
||||
STOP SLAVE;
|
||||
source include/wait_for_slave_to_stop.inc;
|
||||
connection master;
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
connection slave;
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
RESET SLAVE;
|
||||
START SLAVE;
|
||||
source include/reset_master_and_slave.inc;
|
||||
|
||||
--echo **** On Master ****
|
||||
connection master;
|
||||
SET @old_session_binlog_format= @@session.binlog_format;
|
||||
SET @old_global_binlog_format= @@global.binlog_format;
|
||||
|
||||
eval SET SESSION BINLOG_FORMAT=$format;
|
||||
eval SET GLOBAL BINLOG_FORMAT=$format;
|
||||
|
||||
eval CREATE TABLE t1 (a INT, b LONG) ENGINE=$engine;
|
||||
INSERT INTO t1 VALUES (1,1), (2,2);
|
||||
SELECT * FROM t1;
|
||||
--echo **** On Slave ****
|
||||
sync_slave_with_master;
|
||||
INSERT INTO t1 VALUE (3,3);
|
||||
SELECT * FROM t1;
|
||||
--echo **** On Master ****
|
||||
connection master;
|
||||
eval $stmt t1;
|
||||
SELECT * FROM t1;
|
||||
--echo **** On Slave ****
|
||||
eval $trunc_stmt t1;
|
||||
sync_slave_with_master;
|
||||
# Should be empty
|
||||
SELECT * FROM t1;
|
||||
|
||||
let $diff_table_1=master:test.t1;
|
||||
let $diff_table_2=slave:test.t1;
|
||||
source include/diff_tables.inc;
|
||||
|
||||
--echo ==== Test using a table with delete triggers ====
|
||||
--echo **** On Master ****
|
||||
connection master;
|
||||
DROP TABLE t1;
|
||||
let $SERVER_VERSION=`select version()`;
|
||||
source include/show_binlog_events.inc;
|
||||
SET @count := 1;
|
||||
eval CREATE TABLE t2 (a INT, b LONG) ENGINE=$engine;
|
||||
CREATE TRIGGER trg1 BEFORE DELETE ON t1 FOR EACH ROW SET @count := @count + 1;
|
||||
sync_slave_with_master;
|
||||
--echo **** On Master ****
|
||||
connection master;
|
||||
eval $trunc_stmt t1;
|
||||
sync_slave_with_master;
|
||||
|
||||
let $diff_table_1=master:test.t2;
|
||||
let $diff_table_2=slave:test.t2;
|
||||
source include/diff_tables.inc;
|
||||
|
||||
connection master;
|
||||
RESET MASTER;
|
||||
SET @@session.binlog_format= @old_session_binlog_format;
|
||||
SET @@global.binlog_format= @old_global_binlog_format;
|
||||
DROP TABLE t1,t2;
|
||||
sync_slave_with_master;
|
||||
|
@ -2,6 +2,13 @@
|
||||
# By JBM 2006-02-16 So that the code is not repeated #
|
||||
# in test cases and can be reused. #
|
||||
######################################################
|
||||
|
||||
# Bug#41307: Tests using include/ndb_backup.inc won't work on Windows due to
|
||||
# 'grep' call
|
||||
# This test is disabled on Windows via the next line until the above bug is
|
||||
# resolved
|
||||
--source include/not_windows.inc
|
||||
|
||||
--exec $NDB_MGM --no-defaults --ndb-connectstring="$NDB_CONNECTSTRING" -e "start backup" >> $NDB_TOOLS_OUTPUT
|
||||
|
||||
# there is no neat way to find the backupid, this is a hack to find it...
|
||||
|
@ -69,9 +69,9 @@ let $_fake_relay_log_purge= `SELECT @@global.relay_log_purge`;
|
||||
# Create relay log file.
|
||||
copy_file $fake_relay_log $_fake_relay_log;
|
||||
# Create relay log index.
|
||||
--exec echo $_fake_relay_log > $_fake_relay_index
|
||||
--exec echo $_fake_filename-fake.000001 > $_fake_relay_index
|
||||
|
||||
# Setup replication from existing relay log.
|
||||
eval CHANGE MASTER TO MASTER_HOST='dummy.localdomain', RELAY_LOG_FILE='$_fake_relay_log', RELAY_LOG_POS=4;
|
||||
eval CHANGE MASTER TO MASTER_HOST='dummy.localdomain', RELAY_LOG_FILE='$_fake_filename-fake.000001', RELAY_LOG_POS=4;
|
||||
|
||||
--enable_query_log
|
||||
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Run a query over and over until it suceeds ot timeout occurs
|
||||
# Run a query over and over until it succeeds ot timeout occurs
|
||||
#
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ while ($mysql_errno)
|
||||
|
||||
if (!$counter)
|
||||
{
|
||||
die("Waited too long for query to suceed");
|
||||
--die "Waited too long for query to succeed";
|
||||
}
|
||||
}
|
||||
enable_abort_on_error;
|
78
mysql-test/include/wait_show_condition.inc
Normal file
78
mysql-test/include/wait_show_condition.inc
Normal file
@ -0,0 +1,78 @@
|
||||
# include/wait_show_condition.inc
|
||||
#
|
||||
# SUMMARY
|
||||
#
|
||||
# Waits until the show statement ($show_statement) has at least within one of
|
||||
# the rows of the result set for the field ($field) a value which fulfils
|
||||
# a condition ($condition), or the operation times out.
|
||||
#
|
||||
#
|
||||
# USAGE
|
||||
#
|
||||
# let $show_statement= SHOW PROCESSLIST;
|
||||
# let $field= State;
|
||||
# let $condition= = 'Updating';
|
||||
# --source include/wait_show_condition.inc
|
||||
#
|
||||
# OR
|
||||
#
|
||||
# let $wait_timeout= 60; # Override default of 30 seconds with 60.
|
||||
# let $show_statement= SHOW PROCESSLIST;
|
||||
# let $field= State;
|
||||
# let $condition= = 'Updating';
|
||||
# --source include/wait_show_condition.inc
|
||||
#
|
||||
# Please do not use this use routine if you can replace the SHOW statement
|
||||
# with a select. In such a case include/wait_condition.inc is recommended.
|
||||
#
|
||||
# Created: 2009-02-18 mleich
|
||||
#
|
||||
|
||||
let $max_run_time= 30;
|
||||
if ($wait_timeout)
|
||||
{
|
||||
let $max_run_time= $wait_timeout;
|
||||
}
|
||||
# Reset $wait_timeout so that its value won't be used on subsequent
|
||||
# calls, and default will be used instead.
|
||||
let $wait_timeout= 0;
|
||||
|
||||
# The smallest timespan till UNIX_TIMESTAMP() gets incremented is ~0 seconds.
|
||||
# We add one second to avoid the case that somebody measures timespans on a
|
||||
# real clock with fractions of seconds, detects that n seconds are sufficient,
|
||||
# assigns n to this routine and suffers because he sometimes gets n - 1
|
||||
# seconds in reality.
|
||||
inc $max_run_time;
|
||||
|
||||
let $found= 0;
|
||||
let $max_end_time= `SELECT UNIX_TIMESTAMP() + $max_run_time`;
|
||||
while (`SELECT UNIX_TIMESTAMP() <= $max_end_time AND $found = 0`)
|
||||
{
|
||||
# Sleep a bit to avoid too heavy load.
|
||||
real_sleep 0.2;
|
||||
let $rowno= 1;
|
||||
let $process_result= 1;
|
||||
while (`SELECT $process_result = 1 AND $found = 0`)
|
||||
{
|
||||
let $field_value= query_get_value($show_statement, $field, $rowno);
|
||||
if (`SELECT '$field_value' $condition`)
|
||||
{
|
||||
let $found= 1;
|
||||
}
|
||||
if (`SELECT '$field_value' = 'No such row'`)
|
||||
{
|
||||
# We are behind the last row of the result set.
|
||||
let $process_result= 0;
|
||||
}
|
||||
inc $rowno;
|
||||
}
|
||||
}
|
||||
if (!$found)
|
||||
{
|
||||
echo # Timeout in include/wait_show_condition.inc for $wait_condition;
|
||||
echo # show_statement : $show_statement;
|
||||
echo # field : $field;
|
||||
echo # condition : $condition;
|
||||
echo # max_run_time : $max_run_time;
|
||||
}
|
||||
|
@ -82,7 +82,7 @@
|
||||
# Created: 2009-01-14 mleich
|
||||
#
|
||||
|
||||
let $wait_counter= 50;
|
||||
let $wait_counter= 100;
|
||||
if ($wait_timeout)
|
||||
{
|
||||
let $wait_counter= `SELECT $wait_timeout * 10`;
|
||||
@ -108,5 +108,6 @@ if (!$success)
|
||||
{
|
||||
--echo # Timeout in wait_until_count_sessions.inc
|
||||
--echo # Number of sessions expected: $count_sessions found: $current_sessions
|
||||
SHOW PROCESSLIST;
|
||||
}
|
||||
|
||||
|
@ -104,9 +104,136 @@ EOF
|
||||
}
|
||||
|
||||
|
||||
# Check that Debugging tools for Windows are installed
|
||||
sub cdb_check {
|
||||
`cdb -? 2>&1`;
|
||||
if ($? >> 8)
|
||||
{
|
||||
print "Cannot find cdb. Please Install Debugging tools for Windows\n";
|
||||
print "from http://www.microsoft.com/whdc/devtools/debugging/";
|
||||
if($ENV{'ProgramW6432'})
|
||||
{
|
||||
print "install64bit.mspx (native x64 version)\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
print "installx86.mspx\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
sub _cdb {
|
||||
my ($core_name)= @_;
|
||||
print "\nTrying 'cdb' to get a backtrace\n";
|
||||
return unless -f $core_name;
|
||||
|
||||
# Try to set environment for debugging tools for Windows
|
||||
if ($ENV{'PATH'} !~ /Debugging Tools/)
|
||||
{
|
||||
if ($ENV{'ProgramW6432'})
|
||||
{
|
||||
# On x64 computer
|
||||
$ENV{'PATH'}.= ";".$ENV{'ProgramW6432'}."\\Debugging Tools For Windows (x64)";
|
||||
}
|
||||
else
|
||||
{
|
||||
# On x86 computer. Newest versions of Debugging tools are installed in the
|
||||
# directory with (x86) suffix, older versions did not have this suffix.
|
||||
$ENV{'PATH'}.= ";".$ENV{'ProgramFiles'}."\\Debugging Tools For Windows (x86)";
|
||||
$ENV{'PATH'}.= ";".$ENV{'ProgramFiles'}."\\Debugging Tools For Windows";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Read module list, find out the name of executable and
|
||||
# build symbol path (required by cdb if executable was built on
|
||||
# different machine)
|
||||
my $tmp_name= $core_name.".cdb_lmv";
|
||||
`cdb -z $core_name -c \"lmv;q\" > $tmp_name 2>&1`;
|
||||
if ($? >> 8)
|
||||
{
|
||||
unlink($tmp_name);
|
||||
# check if cdb is installed and complain if not
|
||||
cdb_check();
|
||||
return;
|
||||
}
|
||||
|
||||
open(temp,"< $tmp_name");
|
||||
my %dirhash=();
|
||||
while(<temp>)
|
||||
{
|
||||
if($_ =~ /Image path\: (.*)/)
|
||||
{
|
||||
if (rindex($1,'\\') != -1)
|
||||
{
|
||||
my $dir= substr($1, 0, rindex($1,'\\'));
|
||||
$dirhash{$dir}++;
|
||||
}
|
||||
}
|
||||
}
|
||||
close(temp);
|
||||
unlink($tmp_name);
|
||||
|
||||
my $image_path= join(";", (keys %dirhash),".");
|
||||
|
||||
# For better callstacks, setup _NT_SYMBOL_PATH to include
|
||||
# OS symbols. Note : Dowloading symbols for the first time
|
||||
# can take some minutes
|
||||
if (!$ENV{'_NT_SYMBOL_PATH'})
|
||||
{
|
||||
my $windir= $ENV{'windir'};
|
||||
my $symbol_cache= substr($windir ,0, index($windir,'\\'))."\\cdb_symbols";
|
||||
|
||||
print "OS debug symbols will be downloaded and stored in $symbol_cache.\n";
|
||||
print "You can control the location of symbol cache with _NT_SYMBOL_PATH\n";
|
||||
print "environment variable. Please refer to Microsoft KB article\n";
|
||||
print "http://support.microsoft.com/kb/311503 for details about _NT_SYMBOL_PATH\n";
|
||||
print "-------------------------------------------------------------------------\n";
|
||||
|
||||
$ENV{'_NT_SYMBOL_PATH'}.=
|
||||
"srv*".$symbol_cache."*http://msdl.microsoft.com/download/symbols";
|
||||
}
|
||||
|
||||
my $symbol_path= $image_path.";".$ENV{'_NT_SYMBOL_PATH'};
|
||||
|
||||
|
||||
# Run cdb. Use "analyze" extension to print crashing thread stacktrace
|
||||
# and "uniqstack" to print other threads
|
||||
|
||||
my $cdb_cmd = "!sym prompts off; !analyze -v; .ecxr; !for_each_frame dv /t;!uniqstack -p;q";
|
||||
my $cdb_output=
|
||||
`cdb -z $core_name -i "$image_path" -y "$symbol_path" -t 0 -lines -c "$cdb_cmd" 2>&1`;
|
||||
return if $? >> 8;
|
||||
return unless $cdb_output;
|
||||
|
||||
# Remove comments (lines starting with *), stack pointer and frame
|
||||
# pointer adresses and offsets to function to make output better readable
|
||||
$cdb_output=~ s/^\*.*\n//gm;
|
||||
$cdb_output=~ s/^([\:0-9a-fA-F\`]+ )+//gm;
|
||||
$cdb_output=~ s/^ChildEBP RetAddr//gm;
|
||||
$cdb_output=~ s/^Child\-SP RetAddr Call Site//gm;
|
||||
$cdb_output=~ s/\+0x([0-9a-fA-F]+)//gm;
|
||||
|
||||
print <<EOF, $cdb_output, "\n";
|
||||
Output from cdb follows. Faulting thread is printed twice,with and without function parameters
|
||||
Search for STACK_TEXT to see the stack trace of
|
||||
the faulting thread. Callstacks of other threads are printed after it.
|
||||
EOF
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
sub show {
|
||||
my ($class, $core_name)= @_;
|
||||
|
||||
# On Windows, rely on cdb to be there...
|
||||
if (IS_WINDOWS)
|
||||
{
|
||||
_cdb($core_name);
|
||||
return;
|
||||
}
|
||||
|
||||
# We try dbx first; gdb itself may coredump if run on a Sun Studio
|
||||
# compiled binary on Solaris.
|
||||
|
||||
|
@ -77,14 +77,29 @@ static void message(const char* fmt, ...)
|
||||
|
||||
static void die(const char* fmt, ...)
|
||||
{
|
||||
DWORD last_err= GetLastError();
|
||||
va_list args;
|
||||
fprintf(stderr, "%s: FATAL ERROR, ", safe_process_name);
|
||||
va_start(args, fmt);
|
||||
vfprintf(stderr, fmt, args);
|
||||
fprintf(stderr, "\n");
|
||||
va_end(args);
|
||||
if (int last_err= GetLastError())
|
||||
fprintf(stderr, "error: %d, %s\n", last_err, strerror(last_err));
|
||||
if (last_err)
|
||||
{
|
||||
char *message_text;
|
||||
if (FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_ALLOCATE_BUFFER
|
||||
|FORMAT_MESSAGE_IGNORE_INSERTS, NULL, last_err , 0, (LPSTR)&message_text,
|
||||
0, NULL))
|
||||
{
|
||||
fprintf(stderr,"error: %d, %s\n",last_err, message_text);
|
||||
LocalFree(message_text);
|
||||
}
|
||||
else
|
||||
{
|
||||
/* FormatMessage failed, print error code only */
|
||||
fprintf(stderr,"error:%d\n", last_err);
|
||||
}
|
||||
}
|
||||
fflush(stderr);
|
||||
exit(1);
|
||||
}
|
||||
|
@ -28,7 +28,17 @@ sub msg {
|
||||
# print "### unique($$) - ", join(" ", @_), "\n";
|
||||
}
|
||||
|
||||
my $file= "/tmp/mysql-test-ports";
|
||||
my $file;
|
||||
|
||||
if(!IS_WINDOWS)
|
||||
{
|
||||
$file= "/tmp/mysql-test-ports";
|
||||
}
|
||||
else
|
||||
{
|
||||
$file= $ENV{'TEMP'}."/mysql-test-ports";
|
||||
}
|
||||
|
||||
|
||||
my %mtr_unique_ids;
|
||||
|
||||
|
@ -45,8 +45,8 @@ BEGIN {
|
||||
print "=======================================================\n";
|
||||
print " WARNING: Using mysql-test-run.pl version 1! \n";
|
||||
print "=======================================================\n";
|
||||
require "lib/v1/mysql-test-run.pl";
|
||||
exit(1);
|
||||
# Should use exec() here on *nix but this appears not to work on Windows
|
||||
exit(system($^X, "lib/v1/mysql-test-run.pl", @ARGV) >> 8);
|
||||
}
|
||||
elsif ( $version == 2 )
|
||||
{
|
||||
@ -107,6 +107,17 @@ our $default_vardir;
|
||||
our $opt_vardir; # Path to use for var/ dir
|
||||
my $path_vardir_trace; # unix formatted opt_vardir for trace files
|
||||
my $opt_tmpdir; # Path to use for tmp/ dir
|
||||
my $opt_tmpdir_pid;
|
||||
|
||||
END {
|
||||
if (defined $opt_tmpdir_pid and
|
||||
$opt_tmpdir_pid == $$){
|
||||
# Remove the tempdir this process has created
|
||||
mtr_verbose("Removing tmpdir '$opt_tmpdir");
|
||||
rmtree($opt_tmpdir);
|
||||
}
|
||||
}
|
||||
|
||||
my $path_config_file; # The generated config file, var/my.cnf
|
||||
|
||||
# Visual Studio produces executables in different sub-directories based on the
|
||||
@ -1066,8 +1077,11 @@ sub command_line_setup {
|
||||
" creating a shorter one...");
|
||||
|
||||
# Create temporary directory in standard location for temporary files
|
||||
$opt_tmpdir= tempdir( TMPDIR => 1, CLEANUP => 1 );
|
||||
$opt_tmpdir= tempdir( TMPDIR => 1, CLEANUP => 0 );
|
||||
mtr_report(" - using tmpdir: '$opt_tmpdir'\n");
|
||||
|
||||
# Remember pid that created dir so it's removed by correct process
|
||||
$opt_tmpdir_pid= $$;
|
||||
}
|
||||
}
|
||||
$opt_tmpdir =~ s,/+$,,; # Remove ending slash if any
|
||||
@ -2860,9 +2874,6 @@ test case was executed:\n";
|
||||
$result= 2;
|
||||
}
|
||||
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
|
||||
# Remove the .result file the check generated
|
||||
unlink("$base_file.result");
|
||||
|
||||
@ -3480,6 +3491,7 @@ sub start_check_warnings ($$) {
|
||||
|
||||
mtr_add_arg($args, "--skip-safemalloc");
|
||||
mtr_add_arg($args, "--test-file=%s", "include/check-warnings.test");
|
||||
mtr_add_arg($args, "--verbose");
|
||||
|
||||
if ( $opt_embedded_server )
|
||||
{
|
||||
@ -3569,10 +3581,9 @@ sub check_warnings ($) {
|
||||
|
||||
if ( $res == 62 ) {
|
||||
# Test case was ok and called "skip"
|
||||
;
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
}
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
|
||||
if ( keys(%started) == 0){
|
||||
# All checks completed
|
||||
@ -3594,8 +3605,6 @@ sub check_warnings ($) {
|
||||
|
||||
$result= 2;
|
||||
}
|
||||
# Remove the .err file the check generated
|
||||
unlink($err_file);
|
||||
}
|
||||
elsif ( $proc eq $timeout_proc ) {
|
||||
$tinfo->{comment}.= "Timeout $timeout_proc for ".
|
||||
@ -4479,6 +4488,7 @@ sub start_check_testcase ($$$) {
|
||||
|
||||
mtr_add_arg($args, "--result-file=%s", "$opt_vardir/tmp/$name.result");
|
||||
mtr_add_arg($args, "--test-file=%s", "include/check-testcase.test");
|
||||
mtr_add_arg($args, "--verbose");
|
||||
|
||||
if ( $mode eq "before" )
|
||||
{
|
||||
@ -4648,8 +4658,7 @@ sub start_mysqltest ($) {
|
||||
elsif ( $opt_client_debugger )
|
||||
{
|
||||
debugger_arguments(\$args, \$exe, "client");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
my $proc= My::SafeProcess->new
|
||||
(
|
||||
|
@ -292,7 +292,7 @@ Note 1003 select astext(startpoint(`test`.`gis_line`.`g`)) AS `AsText(StartPoint
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
108 POINT(15 15)
|
||||
109 POINT(25.416666666667 25.416666666667)
|
||||
109 POINT(25.4166666666667 25.4166666666667)
|
||||
110 POINT(20 10)
|
||||
SELECT fid, Area(g) FROM gis_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
@ -326,8 +326,8 @@ fid IsClosed(g)
|
||||
116 0
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
117 POINT(55.588527753042 17.426536064114)
|
||||
118 POINT(55.588527753042 17.426536064114)
|
||||
117 POINT(55.5885277530424 17.426536064114)
|
||||
118 POINT(55.5885277530424 17.426536064114)
|
||||
119 POINT(2 2)
|
||||
SELECT fid, Area(g) FROM gis_multi_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
|
@ -4,23 +4,23 @@ create table t4(n int);
|
||||
backup table t4 to '../../bogus';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t4 backup error Failed copying .frm file (errno: X)
|
||||
test.t4 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 backup Error Can't create/write to file 'MYSQLTEST_VARDIR/bogus/t4.frm' (Errcode: X)
|
||||
test.t4 backup status Operation failed
|
||||
backup table t4 to '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t4 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 backup status OK
|
||||
backup table t4 to '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t4 backup error Failed copying .frm file (errno: X)
|
||||
test.t4 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 backup Error Can't create/write to file 'MYSQLTEST_VARDIR/tmp/t4.frm' (Errcode: X)
|
||||
test.t4 backup status Operation failed
|
||||
drop table t4;
|
||||
restore table t4 from '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t4 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t4 restore status OK
|
||||
select count(*) from t4;
|
||||
count(*)
|
||||
@ -29,18 +29,18 @@ create table t1(n int);
|
||||
insert into t1 values (23),(45),(67);
|
||||
backup table t1 to '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 backup status OK
|
||||
drop table t1;
|
||||
restore table t1 from '../../bogus';
|
||||
Table Op Msg_type Msg_text
|
||||
t1 restore error Failed copying .frm file
|
||||
Warnings:
|
||||
Warning 1287 The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
Warning 1287 The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
Error 29 File 'MYSQLTEST_VARDIR/bogus/t1.frm' not found (Errcode: X)
|
||||
restore table t1 from '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore status OK
|
||||
select n from t1;
|
||||
n
|
||||
@ -53,13 +53,13 @@ insert into t2 values (123),(145),(167);
|
||||
insert into t3 values (223),(245),(267);
|
||||
backup table t2,t3 to '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t2 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t2 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t2 backup status OK
|
||||
test.t3 backup status OK
|
||||
drop table t1,t2,t3;
|
||||
restore table t1,t2,t3 from '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore status OK
|
||||
test.t2 restore status OK
|
||||
test.t3 restore status OK
|
||||
@ -81,14 +81,14 @@ k
|
||||
drop table t1,t2,t3,t4;
|
||||
restore table t1 from '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore status OK
|
||||
rename table t1 to t5;
|
||||
lock tables t5 write;
|
||||
backup table t5 to '../../tmp';
|
||||
unlock tables;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t5 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t5 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t5 backup status OK
|
||||
drop table t5;
|
||||
DROP TABLE IF EXISTS `t+1`;
|
||||
@ -96,12 +96,12 @@ CREATE TABLE `t+1` (c1 INT);
|
||||
INSERT INTO `t+1` VALUES (1), (2), (3);
|
||||
BACKUP TABLE `t+1` TO '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t+1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t+1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t+1 backup status OK
|
||||
DROP TABLE `t+1`;
|
||||
RESTORE TABLE `t+1` FROM '../../tmp';
|
||||
Table Op Msg_type Msg_text
|
||||
test.t+1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t+1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t+1 restore status OK
|
||||
SELECT * FROM `t+1`;
|
||||
c1
|
||||
|
@ -687,8 +687,8 @@ SUCCESS
|
||||
|
||||
truncate table t2;
|
||||
call p_verify_status_increment(4, 0, 4, 0);
|
||||
SUCCESS
|
||||
|
||||
ERROR
|
||||
Expected commit increment: 4 actual: 2
|
||||
commit;
|
||||
# There is nothing left to commit
|
||||
call p_verify_status_increment(0, 0, 0, 0);
|
||||
@ -854,8 +854,8 @@ SUCCESS
|
||||
|
||||
truncate table t3;
|
||||
call p_verify_status_increment(4, 4, 4, 4);
|
||||
SUCCESS
|
||||
|
||||
ERROR
|
||||
Expected commit increment: 4 actual: 2
|
||||
create view v1 as select * from t2;
|
||||
call p_verify_status_increment(1, 0, 1, 0);
|
||||
SUCCESS
|
||||
|
@ -531,3 +531,7 @@ SELECT MATCH(a) AGAINST('aaa1* aaa14 aaa15 aaa16' IN BOOLEAN MODE) FROM t1;
|
||||
MATCH(a) AGAINST('aaa1* aaa14 aaa15 aaa16' IN BOOLEAN MODE)
|
||||
2
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1(a TEXT);
|
||||
SELECT GROUP_CONCAT(a) AS st FROM t1 HAVING MATCH(st) AGAINST('test' IN BOOLEAN MODE);
|
||||
ERROR HY000: Incorrect arguments to AGAINST
|
||||
DROP TABLE t1;
|
||||
|
@ -61,7 +61,7 @@ grp sum
|
||||
NULL NULL
|
||||
1 7
|
||||
2 20.25
|
||||
3 45.483163247594
|
||||
3 45.4831632475944
|
||||
create table t2 (grp int, a bigint unsigned, c char(10));
|
||||
insert into t2 select grp,max(a)+max(grp),max(c) from t1 group by grp;
|
||||
replace into t2 select grp, a, c from t1 limit 2,1;
|
||||
@ -1186,7 +1186,7 @@ std(s1/s2)
|
||||
0.21325764
|
||||
select std(o1/o2) from bug22555;
|
||||
std(o1/o2)
|
||||
0.21325763586649
|
||||
0.213257635866493
|
||||
select std(e1/e2) from bug22555;
|
||||
std(e1/e2)
|
||||
0.21325764
|
||||
@ -1212,7 +1212,7 @@ round(std(s1/s2), 17)
|
||||
0.21325763586649341
|
||||
select std(o1/o2) from bug22555;
|
||||
std(o1/o2)
|
||||
0.21325763586649
|
||||
0.213257635866493
|
||||
select round(std(e1/e2), 17) from bug22555;
|
||||
round(std(e1/e2), 17)
|
||||
0.21325763586649341
|
||||
@ -1237,7 +1237,7 @@ round(std(s1/s2), 17)
|
||||
0.21325763586649341
|
||||
select std(o1/o2) from bug22555;
|
||||
std(o1/o2)
|
||||
0.21325763586649
|
||||
0.213257635866493
|
||||
select round(std(e1/e2), 17) from bug22555;
|
||||
round(std(e1/e2), 17)
|
||||
0.21325763586649341
|
||||
|
@ -60,7 +60,7 @@ Warnings:
|
||||
Note 1003 select ln(exp(10)) AS `ln(exp(10))`,exp((ln(sqrt(10)) * 2)) AS `exp(ln(sqrt(10))*2)`,ln(-(1)) AS `ln(-1)`,ln(0) AS `ln(0)`,ln(NULL) AS `ln(NULL)`
|
||||
select log2(8),log2(15),log2(-2),log2(0),log2(NULL);
|
||||
log2(8) log2(15) log2(-2) log2(0) log2(NULL)
|
||||
3 3.9068905956085 NULL NULL NULL
|
||||
3 3.90689059560852 NULL NULL NULL
|
||||
explain extended select log2(8),log2(15),log2(-2),log2(0),log2(NULL);
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||
@ -68,7 +68,7 @@ Warnings:
|
||||
Note 1003 select log2(8) AS `log2(8)`,log2(15) AS `log2(15)`,log2(-(2)) AS `log2(-2)`,log2(0) AS `log2(0)`,log2(NULL) AS `log2(NULL)`
|
||||
select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
|
||||
log10(100) log10(18) log10(-4) log10(0) log10(NULL)
|
||||
2 1.2552725051033 NULL NULL NULL
|
||||
2 1.25527250510331 NULL NULL NULL
|
||||
explain extended select log10(100),log10(18),log10(-4),log10(0),log10(NULL);
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||
@ -85,7 +85,7 @@ Note 1003 select pow(10,log10(10)) AS `pow(10,log10(10))`,pow(2,4) AS `power(2,4
|
||||
set @@rand_seed1=10000000,@@rand_seed2=1000000;
|
||||
select rand(999999),rand();
|
||||
rand(999999) rand()
|
||||
0.014231365187309 0.028870999839968
|
||||
0.0142313651873091 0.028870999839968
|
||||
explain extended select rand(999999),rand();
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||
@ -101,7 +101,7 @@ Warnings:
|
||||
Note 1003 select pi() AS `pi()`,format(sin((pi() / 2)),6) AS `format(sin(pi()/2),6)`,format(cos((pi() / 2)),6) AS `format(cos(pi()/2),6)`,format(abs(tan(pi())),6) AS `format(abs(tan(pi())),6)`,format((1 / tan(1)),6) AS `format(cot(1),6)`,format(asin(1),6) AS `format(asin(1),6)`,format(acos(0),6) AS `format(acos(0),6)`,format(atan(1),6) AS `format(atan(1),6)`
|
||||
select degrees(pi()),radians(360);
|
||||
degrees(pi()) radians(360)
|
||||
180 6.2831853071796
|
||||
180 6.28318530717959
|
||||
select format(atan(-2, 2), 6);
|
||||
format(atan(-2, 2), 6)
|
||||
-0.785398
|
||||
@ -368,7 +368,7 @@ mod(5, cast(-2 as unsigned)) mod(5, 18446744073709551614) mod(5, -2)
|
||||
5 5 1
|
||||
select pow(cast(-2 as unsigned), 5), pow(18446744073709551614, 5), pow(-2, 5);
|
||||
pow(cast(-2 as unsigned), 5) pow(18446744073709551614, 5) pow(-2, 5)
|
||||
2.1359870359209e+96 2.1359870359209e+96 -32
|
||||
2.13598703592091e+96 2.13598703592091e+96 -32
|
||||
CREATE TABLE t1 (a timestamp, b varchar(20), c bit(1));
|
||||
INSERT INTO t1 VALUES('1998-09-23', 'str1', 1), ('2003-03-25', 'str2', 0);
|
||||
SELECT a DIV 900 y FROM t1 GROUP BY y;
|
||||
|
@ -1351,10 +1351,10 @@ cast(rtrim(ltrim(' 20.06 ')) as decimal(19,2))
|
||||
20.06
|
||||
select conv("18383815659218730760",10,10) + 0;
|
||||
conv("18383815659218730760",10,10) + 0
|
||||
1.8383815659219e+19
|
||||
1.83838156592187e+19
|
||||
select "18383815659218730760" + 0;
|
||||
"18383815659218730760" + 0
|
||||
1.8383815659219e+19
|
||||
1.83838156592187e+19
|
||||
CREATE TABLE t1 (code varchar(10));
|
||||
INSERT INTO t1 VALUES ('a12'), ('A12'), ('a13');
|
||||
SELECT ASCII(code), code FROM t1 WHERE code='A12';
|
||||
@ -2519,4 +2519,10 @@ def format(a, 2) 253 49 4 Y 0 31 8
|
||||
format(a, 2)
|
||||
1.33
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (c DATE, aa VARCHAR(30));
|
||||
INSERT INTO t1 VALUES ('2008-12-31','aaaaaa');
|
||||
SELECT DATE_FORMAT(c, GET_FORMAT(DATE, 'eur')) h, CONCAT(UPPER(aa),', ', aa) i FROM t1;
|
||||
h i
|
||||
31.12.2008 AAAAAA, aaaaaa
|
||||
DROP TABLE t1;
|
||||
End of 5.0 tests
|
||||
|
@ -284,7 +284,7 @@ Note 1003 select astext(startpoint(`test`.`gis_line`.`g`)) AS `AsText(StartPoint
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_polygon;
|
||||
fid AsText(Centroid(g))
|
||||
108 POINT(15 15)
|
||||
109 POINT(25.416666666667 25.416666666667)
|
||||
109 POINT(25.4166666666667 25.4166666666667)
|
||||
110 POINT(20 10)
|
||||
SELECT fid, Area(g) FROM gis_polygon;
|
||||
fid Area(g)
|
||||
@ -318,8 +318,8 @@ fid IsClosed(g)
|
||||
116 0
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon;
|
||||
fid AsText(Centroid(g))
|
||||
117 POINT(55.588527753042 17.426536064114)
|
||||
118 POINT(55.588527753042 17.426536064114)
|
||||
117 POINT(55.5885277530424 17.426536064114)
|
||||
118 POINT(55.5885277530424 17.426536064114)
|
||||
119 POINT(2 2)
|
||||
SELECT fid, Area(g) FROM gis_multi_polygon;
|
||||
fid Area(g)
|
||||
@ -651,11 +651,11 @@ insert into t1 values ('85984',GeomFromText('MULTIPOLYGON(((-115.006363
|
||||
select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from
|
||||
t1 where object_id=85998;
|
||||
object_id geometrytype(geo) ISSIMPLE(GEO) ASTEXT(centroid(geo))
|
||||
85998 MULTIPOLYGON 0 POINT(115.31877315203 -36.237472821022)
|
||||
85998 MULTIPOLYGON 0 POINT(115.318773152032 -36.2374728210215)
|
||||
select object_id, geometrytype(geo), ISSIMPLE(GEO), ASTEXT(centroid(geo)) from
|
||||
t1 where object_id=85984;
|
||||
object_id geometrytype(geo) ISSIMPLE(GEO) ASTEXT(centroid(geo))
|
||||
85984 MULTIPOLYGON 0 POINT(-114.87787186923 36.33101763469)
|
||||
85984 MULTIPOLYGON 0 POINT(-114.877871869233 36.3310176346905)
|
||||
drop table t1;
|
||||
create table t1 (fl geometry not null);
|
||||
insert into t1 values (1);
|
||||
|
@ -164,7 +164,7 @@ Warnings:
|
||||
Warning 1364 Field 'ssl_cipher' doesn't have a default value
|
||||
Warning 1364 Field 'x509_issuer' doesn't have a default value
|
||||
Warning 1364 Field 'x509_subject' doesn't have a default value
|
||||
insert into mysql.db (host, db, user, select_priv) values
|
||||
insert into mysql.db (host, db, user, select_priv) values
|
||||
('localhost', 'a%', 'test11', 'Y'), ('localhost', 'ab%', 'test11', 'Y');
|
||||
alter table mysql.db order by db asc;
|
||||
flush privileges;
|
||||
@ -264,7 +264,7 @@ drop user mysqltest_1@localhost;
|
||||
SET NAMES koi8r;
|
||||
CREATE DATABASE <20><>;
|
||||
USE <20><>;
|
||||
CREATE TABLE <20><><EFBFBD> (<28><><EFBFBD> int);
|
||||
CREATE TABLE <20><><EFBFBD> (<28><><EFBFBD> INT);
|
||||
GRANT SELECT ON <20><>.* TO <20><><EFBFBD><EFBFBD>@localhost;
|
||||
SHOW GRANTS FOR <20><><EFBFBD><EFBFBD>@localhost;
|
||||
Grants for <20><><EFBFBD><EFBFBD>@localhost
|
||||
@ -383,21 +383,21 @@ grant update (a) on mysqltest_1.t1 to mysqltest_3@localhost;
|
||||
grant select (b) on mysqltest_1.t2 to mysqltest_3@localhost;
|
||||
grant select (c) on mysqltest_2.t1 to mysqltest_3@localhost;
|
||||
grant update (d) on mysqltest_2.t2 to mysqltest_3@localhost;
|
||||
SELECT * FROM INFORMATION_SCHEMA.COLUMN_PRIVILEGES
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
ORDER BY TABLE_NAME,COLUMN_NAME,PRIVILEGE_TYPE;
|
||||
SELECT * FROM INFORMATION_SCHEMA.COLUMN_PRIVILEGES
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
ORDER BY TABLE_NAME,COLUMN_NAME,PRIVILEGE_TYPE;
|
||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
||||
'mysqltest_3'@'localhost' NULL mysqltest_1 t1 a UPDATE NO
|
||||
'mysqltest_3'@'localhost' NULL mysqltest_2 t1 c SELECT NO
|
||||
'mysqltest_3'@'localhost' NULL mysqltest_1 t2 b SELECT NO
|
||||
'mysqltest_3'@'localhost' NULL mysqltest_2 t2 d UPDATE NO
|
||||
SELECT * FROM INFORMATION_SCHEMA.TABLE_PRIVILEGES
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
ORDER BY TABLE_NAME,PRIVILEGE_TYPE;
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
ORDER BY TABLE_NAME,PRIVILEGE_TYPE;
|
||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA TABLE_NAME PRIVILEGE_TYPE IS_GRANTABLE
|
||||
SELECT * from INFORMATION_SCHEMA.SCHEMA_PRIVILEGES
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
ORDER BY TABLE_SCHEMA,PRIVILEGE_TYPE;
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
ORDER BY TABLE_SCHEMA,PRIVILEGE_TYPE;
|
||||
GRANTEE TABLE_CATALOG TABLE_SCHEMA PRIVILEGE_TYPE IS_GRANTABLE
|
||||
SELECT * from INFORMATION_SCHEMA.USER_PRIVILEGES
|
||||
WHERE GRANTEE = '''mysqltest_3''@''localhost'''
|
||||
@ -884,11 +884,11 @@ flush privileges;
|
||||
drop table t2;
|
||||
drop table t1;
|
||||
CREATE DATABASE mysqltest3;
|
||||
use mysqltest3;
|
||||
USE mysqltest3;
|
||||
CREATE TABLE t_nn (c1 INT);
|
||||
CREATE VIEW v_nn AS SELECT * FROM t_nn;
|
||||
CREATE DATABASE mysqltest2;
|
||||
use mysqltest2;
|
||||
USE mysqltest2;
|
||||
CREATE TABLE t_nn (c1 INT);
|
||||
CREATE VIEW v_nn AS SELECT * FROM t_nn;
|
||||
CREATE VIEW v_yn AS SELECT * FROM t_nn;
|
||||
@ -958,7 +958,7 @@ DROP TABLE mysqltest3.t_nn;
|
||||
DROP DATABASE mysqltest3;
|
||||
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'mysqltest_1'@'localhost';
|
||||
DROP USER 'mysqltest_1'@'localhost';
|
||||
use test;
|
||||
USE test;
|
||||
create user mysqltest1_thisisreallytoolong;
|
||||
ERROR HY000: String 'mysqltest1_thisisreallytoolong' is too long for user name (should be no longer than 16)
|
||||
CREATE DATABASE mysqltest1;
|
||||
@ -1196,16 +1196,16 @@ DROP DATABASE mysqltest1;
|
||||
DROP DATABASE mysqltest2;
|
||||
DROP USER mysqltest_1@localhost;
|
||||
DROP USER mysqltest_2@localhost;
|
||||
use test;
|
||||
USE test;
|
||||
CREATE TABLE t1 (f1 int, f2 int);
|
||||
INSERT INTO t1 VALUES(1,1), (2,2);
|
||||
CREATE DATABASE db27878;
|
||||
GRANT UPDATE(f1) ON t1 TO 'mysqltest_1'@'localhost';
|
||||
GRANT SELECT ON `test`.* TO 'mysqltest_1'@'localhost';
|
||||
GRANT ALL ON db27878.* TO 'mysqltest_1'@'localhost';
|
||||
use db27878;
|
||||
USE db27878;
|
||||
CREATE SQL SECURITY INVOKER VIEW db27878.v1 AS SELECT * FROM test.t1;
|
||||
use db27878;
|
||||
USE db27878;
|
||||
UPDATE v1 SET f2 = 4;
|
||||
ERROR HY000: View 'db27878.v1' references invalid table(s) or column(s) or function(s) or definer/invoker of view lack rights to use them
|
||||
SELECT * FROM test.t1;
|
||||
@ -1217,7 +1217,7 @@ REVOKE SELECT ON `test`.* FROM 'mysqltest_1'@'localhost';
|
||||
REVOKE ALL ON db27878.* FROM 'mysqltest_1'@'localhost';
|
||||
DROP USER mysqltest_1@localhost;
|
||||
DROP DATABASE db27878;
|
||||
use test;
|
||||
USE test;
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# Bug#33275 Server crash when creating temporary table mysql.user
|
||||
@ -1355,6 +1355,6 @@ Warnings:
|
||||
Warning 1403 There is no such grant defined for user 'userbug33464' on host 'localhost' on routine 'fn2'
|
||||
DROP PROCEDURE sp3;
|
||||
DROP USER 'userbug33464'@'localhost';
|
||||
use test;
|
||||
USE test;
|
||||
DROP DATABASE dbbug33464;
|
||||
SET @@global.log_bin_trust_function_creators= @old_log_bin_trust_function_creators;
|
||||
|
@ -99,7 +99,7 @@ t2
|
||||
t3
|
||||
t5
|
||||
v1
|
||||
select c,table_name from v1
|
||||
select c,table_name from v1
|
||||
inner join information_schema.TABLES v2 on (v1.c=v2.table_name)
|
||||
where v1.c like "t%";
|
||||
c table_name
|
||||
@ -118,7 +118,7 @@ t4 t4
|
||||
t2 t2
|
||||
t3 t3
|
||||
t5 t5
|
||||
select c,table_name from v1
|
||||
select c,table_name from v1
|
||||
left join information_schema.TABLES v2 on (v1.c=v2.table_name)
|
||||
where v1.c like "t%";
|
||||
c table_name
|
||||
@ -197,7 +197,7 @@ a int(11) YES NULL
|
||||
create view mysqltest.v1 (c) as select a from mysqltest.t1;
|
||||
grant select (a) on mysqltest.t1 to mysqltest_2@localhost;
|
||||
grant select on mysqltest.v1 to mysqltest_3;
|
||||
select table_name, column_name, privileges from information_schema.columns
|
||||
select table_name, column_name, privileges from information_schema.columns
|
||||
where table_schema = 'mysqltest' and table_name = 't1';
|
||||
table_name column_name privileges
|
||||
t1 a select
|
||||
@ -275,7 +275,7 @@ begin
|
||||
select * from t1;
|
||||
select * from t2;
|
||||
end|
|
||||
select parameter_style, sql_data_access, dtd_identifier
|
||||
select parameter_style, sql_data_access, dtd_identifier
|
||||
from information_schema.routines where routine_schema='test';
|
||||
parameter_style sql_data_access dtd_identifier
|
||||
SQL CONTAINS SQL NULL
|
||||
@ -560,7 +560,7 @@ drop view v1;
|
||||
create table t1(a NUMERIC(5,3), b NUMERIC(5,1), c float(5,2),
|
||||
d NUMERIC(6,4), e float, f DECIMAL(6,3), g int(11), h DOUBLE(10,3),
|
||||
i DOUBLE);
|
||||
select COLUMN_NAME,COLUMN_TYPE, CHARACTER_MAXIMUM_LENGTH,
|
||||
select COLUMN_NAME,COLUMN_TYPE, CHARACTER_MAXIMUM_LENGTH,
|
||||
CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE
|
||||
from information_schema.columns where table_name= 't1';
|
||||
COLUMN_NAME COLUMN_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE
|
||||
@ -621,7 +621,7 @@ TABLE_NAME= "vo";
|
||||
CONSTRAINT_CATALOG CONSTRAINT_SCHEMA CONSTRAINT_NAME TABLE_CATALOG TABLE_SCHEMA TABLE_NAME COLUMN_NAME ORDINAL_POSITION POSITION_IN_UNIQUE_CONSTRAINT REFERENCED_TABLE_SCHEMA REFERENCED_TABLE_NAME REFERENCED_COLUMN_NAME
|
||||
drop view vo;
|
||||
select TABLE_NAME,TABLE_TYPE,ENGINE
|
||||
from information_schema.tables
|
||||
from information_schema.tables
|
||||
where table_schema='information_schema' limit 2;
|
||||
TABLE_NAME TABLE_TYPE ENGINE
|
||||
CHARACTER_SETS SYSTEM VIEW MEMORY
|
||||
@ -726,7 +726,7 @@ where table_schema="information_schema" and table_name="COLUMNS" and
|
||||
column_type
|
||||
varchar(32)
|
||||
varchar(32)
|
||||
select TABLE_ROWS from information_schema.tables where
|
||||
select TABLE_ROWS from information_schema.tables where
|
||||
table_schema="information_schema" and table_name="COLUMNS";
|
||||
TABLE_ROWS
|
||||
NULL
|
||||
@ -760,7 +760,7 @@ count(*)
|
||||
drop view a2, a1;
|
||||
drop table t_crashme;
|
||||
select table_schema,table_name, column_name from
|
||||
information_schema.columns
|
||||
information_schema.columns
|
||||
where data_type = 'longtext';
|
||||
table_schema table_name column_name
|
||||
information_schema COLUMNS COLUMN_DEFAULT
|
||||
@ -804,7 +804,7 @@ event last_executed datetime
|
||||
event starts datetime
|
||||
event ends datetime
|
||||
SELECT COUNT(*) FROM INFORMATION_SCHEMA.TABLES A
|
||||
WHERE NOT EXISTS
|
||||
WHERE NOT EXISTS
|
||||
(SELECT * FROM INFORMATION_SCHEMA.COLUMNS B
|
||||
WHERE A.TABLE_SCHEMA = B.TABLE_SCHEMA
|
||||
AND A.TABLE_NAME = B.TABLE_NAME);
|
||||
@ -833,7 +833,7 @@ x_float NULL NULL
|
||||
x_double_precision NULL NULL
|
||||
drop table t1;
|
||||
grant select on test.* to mysqltest_4@localhost;
|
||||
SELECT TABLE_NAME, COLUMN_NAME, PRIVILEGES FROM INFORMATION_SCHEMA.COLUMNS
|
||||
SELECT TABLE_NAME, COLUMN_NAME, PRIVILEGES FROM INFORMATION_SCHEMA.COLUMNS
|
||||
where COLUMN_NAME='TABLE_NAME';
|
||||
TABLE_NAME COLUMN_NAME PRIVILEGES
|
||||
COLUMNS TABLE_NAME select
|
||||
@ -1079,7 +1079,7 @@ BEGIN
|
||||
SELECT 'foo' FROM DUAL;
|
||||
END |
|
||||
ERROR 42000: Unknown database 'information_schema'
|
||||
select ROUTINE_NAME from routines where ROUTINE_SCHEMA='information_schema';
|
||||
select ROUTINE_NAME from routines where ROUTINE_SCHEMA='information_schema';
|
||||
ROUTINE_NAME
|
||||
grant all on information_schema.* to 'user1'@'localhost';
|
||||
ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
|
||||
@ -1634,7 +1634,7 @@ show events where Db= 'information_schema';
|
||||
Db Name Definer Time zone Type Execute at Interval value Interval field Starts Ends Status Originator character_set_client collation_connection Database Collation
|
||||
use test;
|
||||
#
|
||||
# Bug#34166: Server crash in SHOW OPEN TABLES and prelocking
|
||||
# Bug#34166 Server crash in SHOW OPEN TABLES and prelocking
|
||||
#
|
||||
drop table if exists t1;
|
||||
drop function if exists f1;
|
||||
|
17
mysql-test/r/innodb_bug42419.result
Normal file
17
mysql-test/r/innodb_bug42419.result
Normal file
@ -0,0 +1,17 @@
|
||||
CREATE TABLE t1 (a INT AUTO_INCREMENT PRIMARY KEY, b INT) ENGINE = InnoDB;
|
||||
INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
|
||||
COMMIT;
|
||||
SET AUTOCOMMIT = 0;
|
||||
CREATE TEMPORARY TABLE t1_tmp ( b INT );
|
||||
INSERT INTO t1_tmp (b) SELECT b FROM t1 WHERE a = 3;
|
||||
INSERT INTO t1_tmp (b) SELECT b FROM t1 WHERE a = 2;
|
||||
SET AUTOCOMMIT = 0;
|
||||
CREATE TEMPORARY TABLE t2_tmp ( a int, new_a int );
|
||||
INSERT INTO t2_tmp VALUES (1,51),(2,52),(3,53);
|
||||
UPDATE t1 SET a = (SELECT new_a FROM t2_tmp WHERE t2_tmp.a = t1.a) WHERE a = 1;
|
||||
UPDATE t1 SET a = (SELECT new_a FROM t2_tmp WHERE t2_tmp.a = t1.a) WHERE a = 2;
|
||||
INSERT INTO t1_tmp (b) SELECT b FROM t1 WHERE a = 1;
|
||||
ERROR 40001: Deadlock found when trying to get lock; try restarting transaction
|
||||
Reap the server message for connection user2 UPDATE t1 ...
|
||||
UPDATE t1 SET a = (SELECT new_a FROM t2_tmp WHERE t2_tmp.a = t1.a) WHERE a = 3;
|
||||
DROP TABLE t1;
|
@ -292,7 +292,7 @@ Note 1003 select astext(startpoint(`test`.`gis_line`.`g`)) AS `AsText(StartPoint
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
108 POINT(15 15)
|
||||
109 POINT(25.416666666667 25.416666666667)
|
||||
109 POINT(25.4166666666667 25.4166666666667)
|
||||
110 POINT(20 10)
|
||||
SELECT fid, Area(g) FROM gis_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
@ -326,8 +326,8 @@ fid IsClosed(g)
|
||||
116 0
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
117 POINT(55.588527753042 17.426536064114)
|
||||
118 POINT(55.588527753042 17.426536064114)
|
||||
117 POINT(55.5885277530424 17.426536064114)
|
||||
118 POINT(55.5885277530424 17.426536064114)
|
||||
119 POINT(2 2)
|
||||
SELECT fid, Area(g) FROM gis_multi_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
|
9
mysql-test/r/innodb_ignore_builtin.result
Normal file
9
mysql-test/r/innodb_ignore_builtin.result
Normal file
@ -0,0 +1,9 @@
|
||||
show variables like 'ignore_builtin_innodb';
|
||||
Variable_name Value
|
||||
ignore_builtin_innodb ON
|
||||
select PLUGIN_NAME from information_schema.plugins
|
||||
where PLUGIN_NAME = "InnoDb";
|
||||
PLUGIN_NAME
|
||||
select ENGINE from information_schema.engines
|
||||
where ENGINE = "InnoDB";
|
||||
ENGINE
|
@ -1,11 +1,11 @@
|
||||
call mtr.add_suppression("Cannot find or open table test/BUG29839 from");
|
||||
call mtr.add_suppression("Cannot find or open table test/BUG29839 from .*");
|
||||
DROP TABLE IF EXISTS t1,T1;
|
||||
CREATE TABLE t1 (a int);
|
||||
SELECT * from T1;
|
||||
CREATE TABLE t1 (a INT);
|
||||
SELECT * FROM T1;
|
||||
a
|
||||
drop table t1;
|
||||
flush tables;
|
||||
CREATE TABLE bug29839 (a int) ENGINE=INNODB;
|
||||
SELECT * from BUG29839;
|
||||
FLUSH TABLES;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE bug29839 (a INT) ENGINE=INNODB;
|
||||
SELECT * FROM BUG29839;
|
||||
ERROR 42S02: Table 'test.BUG29839' doesn't exist
|
||||
drop table bug29839;
|
||||
DROP TABLE bug29839;
|
||||
|
9
mysql-test/r/lowercase_utf8.result
Normal file
9
mysql-test/r/lowercase_utf8.result
Normal file
@ -0,0 +1,9 @@
|
||||
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 `Ö`;
|
@ -2025,7 +2025,6 @@ TABLE_SCHEMA = 'test' and TABLE_NAME='tm1';
|
||||
TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT
|
||||
NULL test tm1 BASE TABLE NULL NULL NULL # # # # # # # # # # NULL # # Unable to open underlying table which is differently defined or of non-MyISAM ty
|
||||
DROP TABLE tm1;
|
||||
End of 5.1 tests
|
||||
CREATE TABLE t1(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2)) ENGINE=MYISAM;
|
||||
CREATE TABLE t2(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2)) ENGINE=MYISAM;
|
||||
CREATE TABLE t3(C1 INT, C2 INT, KEY C1(C1), KEY C2(C2)) ENGINE=MYISAM;
|
||||
@ -2041,4 +2040,67 @@ EXPLAIN SELECT COUNT(*) FROM t4;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
|
||||
DROP TABLE t1, t2, t3, t4;
|
||||
CREATE TABLE t1(a INT, KEY(a));
|
||||
INSERT INTO t1 VALUES(0),(1),(2),(3),(4);
|
||||
ANALYZE TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
CREATE TABLE m1(a INT, KEY(a)) ENGINE=MERGE UNION=(t1);
|
||||
SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
|
||||
CARDINALITY
|
||||
5
|
||||
SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
|
||||
CARDINALITY
|
||||
5
|
||||
SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
|
||||
CARDINALITY
|
||||
5
|
||||
SELECT CARDINALITY FROM INFORMATION_SCHEMA.STATISTICS WHERE TABLE_SCHEMA='test' AND TABLE_NAME='m1';
|
||||
CARDINALITY
|
||||
5
|
||||
DROP TABLE t1, m1;
|
||||
#
|
||||
# Bug #40675 MySQL 5.1 crash with index merge algorithm and Merge tables
|
||||
#
|
||||
# create MYISAM table t1 and insert values into it
|
||||
CREATE TABLE t1(a INT);
|
||||
INSERT INTO t1 VALUES(1);
|
||||
# create MYISAM table t2 and insert values into it
|
||||
CREATE TABLE t2(a INT, b INT, dummy CHAR(16) DEFAULT '', KEY(a), KEY(b));
|
||||
INSERT INTO t2(a,b) VALUES
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),(0,0),
|
||||
(1,2);
|
||||
# Create the merge table t3
|
||||
CREATE TABLE t3(a INT, b INT, dummy CHAR(16) DEFAULT '', KEY(a), KEY(b))
|
||||
ENGINE=MERGE UNION=(t2) INSERT_METHOD=FIRST;
|
||||
# Lock tables t1 and t3 for write
|
||||
LOCK TABLES t1 WRITE, t3 WRITE;
|
||||
# Insert values into the merge table t3
|
||||
INSERT INTO t3(a,b) VALUES(1,2);
|
||||
# select from the join of t2 and t3 (The merge table)
|
||||
SELECT t3.a FROM t1,t3 WHERE t3.b=2 AND t3.a=1;
|
||||
a
|
||||
1
|
||||
1
|
||||
# Unlock the tables
|
||||
UNLOCK TABLES;
|
||||
# drop the created tables
|
||||
DROP TABLE t1, t2, t3;
|
||||
End of 5.1 tests
|
||||
|
@ -375,7 +375,7 @@ update t2, t1 set t2.field=t1.field
|
||||
where t1.id1=t2.id2 and 0=1;
|
||||
delete t1, t2 from t2 inner join t1 on t1.id1=t2.id2
|
||||
where 0=1;
|
||||
delete t1, t2 from t2,t1
|
||||
delete t1, t2 from t2,t1
|
||||
where t1.id1=t2.id2 and 0=1;
|
||||
drop table t1,t2;
|
||||
CREATE TABLE t1 ( a int );
|
||||
@ -443,12 +443,12 @@ delete t1 from t1,t2 where t1.col1 < (select max(col1) from t1) and t1.col1 = t2
|
||||
ERROR HY000: You can't specify target table 't1' for update in FROM clause
|
||||
drop table t1,t2;
|
||||
create table t1 (
|
||||
aclid bigint not null primary key,
|
||||
status tinyint(1) not null
|
||||
aclid bigint not null primary key,
|
||||
status tinyint(1) not null
|
||||
) engine = innodb;
|
||||
create table t2 (
|
||||
refid bigint not null primary key,
|
||||
aclid bigint, index idx_acl(aclid)
|
||||
refid bigint not null primary key,
|
||||
aclid bigint, index idx_acl(aclid)
|
||||
) engine = innodb;
|
||||
insert into t2 values(1,null);
|
||||
delete t2, t1 from t2 left join t1 on (t2.aclid=t1.aclid) where t2.refid='1';
|
||||
|
@ -395,7 +395,14 @@ flush logs;
|
||||
INSERT INTO t1 VALUES ('0123456789');
|
||||
flush logs;
|
||||
DROP TABLE t1;
|
||||
# Query thread_id=REMOVED exec_time=REMOVED error_code=REMOVED
|
||||
We expect this value to be 1
|
||||
The bug being tested was that 'Query' lines were not preceded by '#'
|
||||
If the line is in the table, it had to have been preceded by a '#'
|
||||
|
||||
SELECT COUNT(*) AS `BUG#28293_expect_1` FROM patch WHERE a LIKE '%Query%';
|
||||
BUG#28293_expect_1
|
||||
1
|
||||
DROP TABLE patch;
|
||||
flush logs;
|
||||
create table t1(a int);
|
||||
insert into t1 values(connection_id());
|
||||
|
@ -215,7 +215,7 @@ COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
BEGIN
|
||||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
@ -223,22 +223,6 @@ SET TIMESTAMP=1000000000/*!*/;
|
||||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
BEGIN
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
BEGIN
|
||||
@ -347,17 +331,9 @@ COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
BEGIN
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
TRUNCATE TABLE t2
|
||||
@ -473,17 +449,9 @@ ROLLBACK
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
BEGIN
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
TRUNCATE TABLE t1
|
||||
/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Xid = #
|
||||
COMMIT/*!*/;
|
||||
# at #
|
||||
#010909 4:46:40 server id 1 end_log_pos # Query thread_id=# exec_time=# error_code=0
|
||||
SET TIMESTAMP=1000000000/*!*/;
|
||||
TRUNCATE TABLE t2
|
||||
|
@ -215,7 +215,6 @@ source database
|
||||
"MySQL: The world's most popular ;open source database"
|
||||
echo message echo message
|
||||
|
||||
mysqltest: At line 1: command "false" failed
|
||||
mysqltest: At line 1: Missing argument in exec
|
||||
MySQL
|
||||
"MySQL"
|
||||
@ -383,7 +382,6 @@ mysqltest: At line 1: The argument to dec must be a variable (start with $)
|
||||
mysqltest: At line 1: End of line junk detected: "1000"
|
||||
mysqltest: At line 1: Missing arguments to system, nothing to do!
|
||||
mysqltest: At line 1: Missing arguments to system, nothing to do!
|
||||
mysqltest: At line 1: system command 'false' failed
|
||||
system command 'NonExistsinfComamdn 2> /dev/null' failed
|
||||
test
|
||||
test2
|
||||
|
@ -1,3 +1,5 @@
|
||||
set @max_allowed_packet=@@global.max_allowed_packet;
|
||||
set @net_buffer_length=@@global.net_buffer_length;
|
||||
set global max_allowed_packet=100;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect max_allowed_packet value: '100'
|
||||
@ -23,3 +25,5 @@ len
|
||||
select length(repeat('a',2000));
|
||||
length(repeat('a',2000))
|
||||
2000
|
||||
set global max_allowed_packet=@max_allowed_packet;
|
||||
set global net_buffer_length=@net_buffer_length;
|
||||
|
@ -522,7 +522,7 @@ select conv(255 AS p1, 10 AS p2, 16 AS p3);
|
||||
ERROR 42000: Incorrect parameters in the call to native function 'conv'
|
||||
select atan(10);
|
||||
atan(10)
|
||||
1.4711276743037
|
||||
1.47112767430373
|
||||
select atan(10 AS p1);
|
||||
ERROR 42000: Incorrect parameters in the call to native function 'atan'
|
||||
select atan(10 p1);
|
||||
@ -533,7 +533,7 @@ select atan(10 "p1");
|
||||
ERROR 42000: Incorrect parameters in the call to native function 'atan'
|
||||
select atan(10, 20);
|
||||
atan(10, 20)
|
||||
0.46364760900081
|
||||
0.463647609000806
|
||||
select atan(10 AS p1, 20);
|
||||
ERROR 42000: Incorrect parameters in the call to native function 'atan'
|
||||
select atan(10 p1, 20);
|
||||
|
@ -1,5 +1,9 @@
|
||||
SET @old_general_log= @@global.general_log;
|
||||
drop table if exists t1, t2;
|
||||
CREATE TABLE t1 (a INT, FOREIGN KEY (a) REFERENCES t0 (a))
|
||||
ENGINE=MyISAM
|
||||
PARTITION BY HASH (a);
|
||||
ERROR HY000: Foreign key clause is not yet supported in conjunction with partitioning
|
||||
CREATE TABLE t1 (
|
||||
pk INT NOT NULL AUTO_INCREMENT,
|
||||
PRIMARY KEY (pk)
|
||||
|
@ -1,4 +1,13 @@
|
||||
drop table if exists t1;
|
||||
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a));
|
||||
INSERT INTO t1 VALUES (1),(1);
|
||||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a INTEGER NOT NULL, PRIMARY KEY (a))
|
||||
PARTITION BY KEY (a) PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (1),(1);
|
||||
ERROR 23000: Duplicate entry '1' for key 'PRIMARY'
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a INT)
|
||||
PARTITION BY HASH (a)
|
||||
( PARTITION p0 ENGINE=MyISAM,
|
||||
|
@ -25,13 +25,13 @@ ALTER TABLE t1 DROP PARTITION x10, x1, x2, x3;
|
||||
ERROR HY000: Error in list of partitions to DROP
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2,x3,x4,x5,x6,x7,x8,x9,x10 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (22));
|
||||
ERROR HY000: More partitions to reorganise than there are partitions
|
||||
ERROR HY000: More partitions to reorganize than there are partitions
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0,x1,x2 INTO
|
||||
(PARTITION x3 VALUES LESS THAN (6));
|
||||
ERROR HY000: Duplicate partition name x3
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0, x2 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (2));
|
||||
ERROR HY000: When reorganising a set of partitions they must be in consecutive order
|
||||
ERROR HY000: When reorganizing a set of partitions they must be in consecutive order
|
||||
ALTER TABLE t1 REORGANIZE PARTITION x0, x1, x1 INTO
|
||||
(PARTITION x11 VALUES LESS THAN (4));
|
||||
ERROR HY000: Error in list of partitions to REORGANIZE
|
||||
|
@ -22,3 +22,52 @@ Qcache_queries_in_cache 0
|
||||
set global query_cache_size= 0;
|
||||
use test;
|
||||
drop table t1;
|
||||
SET @old_concurrent_insert= @@GLOBAL.concurrent_insert;
|
||||
SET @old_query_cache_size= @@GLOBAL.query_cache_size;
|
||||
DROP TABLE IF EXISTS t1, t2;
|
||||
CREATE TABLE t1 (a INT);
|
||||
CREATE TABLE t2 (a INT);
|
||||
INSERT INTO t1 VALUES (1),(2),(3);
|
||||
SET GLOBAL concurrent_insert= 1;
|
||||
SET GLOBAL query_cache_size= 1024*512;
|
||||
SET GLOBAL query_cache_type= ON;
|
||||
# Switch to connection con1
|
||||
SET SESSION debug='+d,wait_after_query_cache_invalidate';
|
||||
# Send concurrent insert, will wait in the query cache table invalidate
|
||||
INSERT INTO t1 VALUES (4);
|
||||
# Switch to connection default
|
||||
# Wait for concurrent insert to reach the debug point
|
||||
# Switch to connection con2
|
||||
# Send SELECT that shouldn't be cached
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
# Switch to connection default
|
||||
# Notify the concurrent insert to proceed
|
||||
SELECT ID FROM INFORMATION_SCHEMA.PROCESSLIST
|
||||
WHERE STATE = 'wait_after_query_cache_invalidate' INTO @thread_id;
|
||||
KILL QUERY @thread_id;
|
||||
# Switch to connection con1
|
||||
# Gather insert result
|
||||
SHOW STATUS LIKE "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 0
|
||||
# Test that it's cacheable
|
||||
SELECT * FROM t1;
|
||||
a
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
SHOW STATUS LIKE "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
# Disconnect
|
||||
# Restore defaults
|
||||
RESET QUERY CACHE;
|
||||
DROP TABLE t1,t2;
|
||||
SET GLOBAL concurrent_insert= DEFAULT;
|
||||
SET GLOBAL query_cache_size= DEFAULT;
|
||||
SET GLOBAL query_cache_type= DEFAULT;
|
||||
|
@ -375,6 +375,7 @@ id
|
||||
show status like 'Qcache_queries_in_cache';
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
USE test;
|
||||
DROP DATABASE bug30269;
|
||||
DROP USER 'bug30269'@'localhost';
|
||||
set GLOBAL query_cache_type=default;
|
||||
|
@ -1,12 +1,18 @@
|
||||
set @start_read_only= @@global.read_only;
|
||||
DROP TABLE IF EXISTS t1,t2,t3;
|
||||
grant CREATE, SELECT, DROP on *.* to test@localhost;
|
||||
connect (con1,localhost,test,,test);
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
connection con1;
|
||||
create table t1 (a int);
|
||||
insert into t1 values(1);
|
||||
create table t2 select * from t1;
|
||||
connection default;
|
||||
set global read_only=1;
|
||||
create table t3 (a int);
|
||||
drop table t3;
|
||||
connection con1;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
@ -39,13 +45,18 @@ delete t1 from t1,t3 where t1.a=t3.a;
|
||||
drop table t1;
|
||||
insert into t1 values(1);
|
||||
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
lock table t1 write;
|
||||
connection con1;
|
||||
lock table t2 write;
|
||||
connection default;
|
||||
set global read_only=1;
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
unlock tables ;
|
||||
send set global read_only=1;
|
||||
set global read_only=1;
|
||||
connection con1;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
0
|
||||
@ -53,13 +64,20 @@ unlock tables ;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
connection default;
|
||||
reap;
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
lock table t1 read;
|
||||
connection con1;
|
||||
lock table t2 read;
|
||||
connection default;
|
||||
set global read_only=1;
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
unlock tables ;
|
||||
send set global read_only=1;
|
||||
set global read_only=1;
|
||||
connection con1;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
0
|
||||
@ -67,24 +85,35 @@ unlock tables ;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
connection default;
|
||||
reap;
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
BEGIN;
|
||||
connection con1;
|
||||
BEGIN;
|
||||
connection default;
|
||||
set global read_only=1;
|
||||
ERROR HY000: Can't execute the given command because you have active locked tables or an active transaction
|
||||
ROLLBACK;
|
||||
set global read_only=1;
|
||||
connection con1;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
ROLLBACK;
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
flush tables with read lock;
|
||||
set global read_only=1;
|
||||
unlock tables;
|
||||
connect (root2,localhost,root,,test);
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
flush tables with read lock;
|
||||
connection root2;
|
||||
set global read_only=1;
|
||||
connection default;
|
||||
select @@global.read_only;
|
||||
@@global.read_only
|
||||
1
|
||||
@ -94,6 +123,7 @@ ERROR 42S02: Unknown table 'ttt'
|
||||
drop temporary table if exists ttt;
|
||||
Warnings:
|
||||
Note 1051 Unknown table 'ttt'
|
||||
connection default;
|
||||
set global read_only=0;
|
||||
drop table t1,t2;
|
||||
drop user test@localhost;
|
||||
@ -112,16 +142,20 @@ grant all on mysqltest_db2.* to `mysqltest_u1`@`%`;
|
||||
create database mysqltest_db1;
|
||||
grant all on mysqltest_db1.* to `mysqltest_u1`@`%`;
|
||||
flush privileges;
|
||||
connect (con_bug27440,127.0.0.1,mysqltest_u1,,test,MASTER_MYPORT,);
|
||||
connection con_bug27440;
|
||||
create database mysqltest_db2;
|
||||
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||
show databases like '%mysqltest_db2%';
|
||||
Database (%mysqltest_db2%)
|
||||
drop database mysqltest_db1;
|
||||
ERROR HY000: The MySQL server is running with the --read-only option so it cannot execute this statement
|
||||
disconnect con_bug27440;
|
||||
connection default;
|
||||
delete from mysql.user where User like 'mysqltest_%';
|
||||
delete from mysql.db where User like 'mysqltest_%';
|
||||
delete from mysql.tables_priv where User like 'mysqltest_%';
|
||||
delete from mysql.columns_priv where User like 'mysqltest_%';
|
||||
flush privileges;
|
||||
drop database mysqltest_db1;
|
||||
set global read_only=0;
|
||||
set global read_only= @start_read_only;
|
||||
|
@ -443,3 +443,17 @@ SELECT ROW(a, 1) IN (SELECT SUM(b), 3) FROM t1 GROUP BY a;
|
||||
ROW(a, 1) IN (SELECT SUM(b), 3)
|
||||
0
|
||||
DROP TABLE t1;
|
||||
create table t1 (a varchar(200),
|
||||
b int unsigned not null primary key auto_increment)
|
||||
default character set 'utf8';
|
||||
create table t2 (c varchar(200),
|
||||
d int unsigned not null primary key auto_increment)
|
||||
default character set 'latin1';
|
||||
insert into t1 (a) values('abc');
|
||||
insert into t2 (c) values('abc');
|
||||
select * from t1,t2 where (a,b) = (c,d);
|
||||
a b c d
|
||||
abc 1 abc 1
|
||||
select host,user from mysql.user where (host,user) = ('localhost','test');
|
||||
host user
|
||||
drop table t1,t2;
|
||||
|
@ -2784,26 +2784,26 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 SIMPLE NULL NULL NULL NULL NULL NULL NULL Select tables optimized away
|
||||
select max(key1) from t1 where key1 <= 0.6158;
|
||||
max(key1)
|
||||
0.61580002307892
|
||||
0.615800023078918
|
||||
select max(key2) from t2 where key2 <= 1.6158;
|
||||
max(key2)
|
||||
1.6158000230789
|
||||
1.61580002307892
|
||||
select min(key1) from t1 where key1 >= 0.3762;
|
||||
min(key1)
|
||||
0.37619999051094
|
||||
0.376199990510941
|
||||
select min(key2) from t2 where key2 >= 1.3762;
|
||||
min(key2)
|
||||
1.3761999607086
|
||||
1.37619996070862
|
||||
select max(key1), min(key2) from t1, t2
|
||||
where key1 <= 0.6158 and key2 >= 1.3762;
|
||||
max(key1) min(key2)
|
||||
0.61580002307892 1.3761999607086
|
||||
0.615800023078918 1.37619996070862
|
||||
select max(key1) from t1 where key1 <= 0.6158 and rand() + 0.5 >= 0.5;
|
||||
max(key1)
|
||||
0.61580002307892
|
||||
0.615800023078918
|
||||
select min(key1) from t1 where key1 >= 0.3762 and rand() + 0.5 >= 0.5;
|
||||
min(key1)
|
||||
0.37619999051094
|
||||
0.376199990510941
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (i BIGINT UNSIGNED NOT NULL);
|
||||
INSERT INTO t1 VALUES (10);
|
||||
|
@ -1295,7 +1295,7 @@ drop database mysqltest;
|
||||
show full plugin;
|
||||
show warnings;
|
||||
Level Code Message
|
||||
Warning 1287 The syntax 'SHOW PLUGIN' is deprecated and will be removed in MySQL 5.2. Please use 'SHOW PLUGINS' instead
|
||||
Warning 1287 The syntax 'SHOW PLUGIN' is deprecated and will be removed in MySQL 6.0. Please use 'SHOW PLUGINS' instead
|
||||
show plugin;
|
||||
show plugins;
|
||||
create database `mysqlttest\1`;
|
||||
|
@ -1643,7 +1643,7 @@ create table t1 (a int) type=MyISAM;
|
||||
drop table t1;
|
||||
end|
|
||||
Warnings:
|
||||
Warning 1287 The syntax 'TYPE=storage_engine' is deprecated and will be removed in MySQL 5.2. Please use 'ENGINE=storage_engine' instead
|
||||
Warning 1287 The syntax 'TYPE=storage_engine' is deprecated and will be removed in MySQL 6.0. Please use 'ENGINE=storage_engine' instead
|
||||
call p1();
|
||||
call p1();
|
||||
drop procedure p1;
|
||||
|
@ -581,7 +581,7 @@ return 2.7182818284590452354|
|
||||
set @e = e()|
|
||||
select e(), @e|
|
||||
e() @e
|
||||
2.718281828459 2.718281828459
|
||||
2.71828182845905 2.71828182845905
|
||||
drop function if exists inc|
|
||||
create function inc(i int) returns int
|
||||
return i+1|
|
||||
@ -618,7 +618,7 @@ create function fun(d double, i int, u int unsigned) returns double
|
||||
return mul(inc(i), fac(u)) / e()|
|
||||
select fun(2.3, 3, 5)|
|
||||
fun(2.3, 3, 5)
|
||||
176.58213176229
|
||||
176.582131762292
|
||||
insert into t2 values (append("xxx", "yyy"), mul(4,3), e())|
|
||||
insert into t2 values (append("a", "b"), mul(2,mul(3,4)), fun(1.7, 4, 6))|
|
||||
select * from t2 where s = append("a", "b")|
|
||||
@ -4350,10 +4350,10 @@ call bug13012()|
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 repair status OK
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 backup Warning The syntax 'BACKUP TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 backup status OK
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 5.2. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore Warning The syntax 'RESTORE TABLE' is deprecated and will be removed in MySQL 6.0. Please use MySQL Administrator (mysqldump, mysql) instead
|
||||
test.t1 restore status OK
|
||||
drop procedure bug13012|
|
||||
create view v1 as select * from t1|
|
||||
@ -6018,9 +6018,9 @@ CREATE TABLE t3 (f1 INT, f2 FLOAT)|
|
||||
INSERT INTO t3 VALUES (1, 3.4), (1, 2), (1, 0.9), (2, 8), (2, 7)|
|
||||
SELECT SUM(f2), bug25373(f1) FROM t3 GROUP BY bug25373(f1) WITH ROLLUP|
|
||||
SUM(f2) bug25373(f1)
|
||||
6.3000000715256 1
|
||||
6.30000007152557 1
|
||||
15 2
|
||||
21.300000071526 NULL
|
||||
21.3000000715256 NULL
|
||||
DROP FUNCTION bug25373|
|
||||
DROP TABLE t3|
|
||||
DROP DATABASE IF EXISTS mysqltest1|
|
||||
|
@ -535,7 +535,7 @@ use db_bug7787|
|
||||
CREATE PROCEDURE p1()
|
||||
SHOW INNODB STATUS; |
|
||||
Warnings:
|
||||
Warning 1287 The syntax 'SHOW INNODB STATUS' is deprecated and will be removed in MySQL 5.2. Please use 'SHOW ENGINE INNODB STATUS' instead
|
||||
Warning 1287 The syntax 'SHOW INNODB STATUS' is deprecated and will be removed in MySQL 6.0. Please use 'SHOW ENGINE INNODB STATUS' instead
|
||||
GRANT EXECUTE ON PROCEDURE p1 TO user_bug7787@localhost|
|
||||
DROP DATABASE db_bug7787|
|
||||
drop user user_bug7787@localhost|
|
||||
|
@ -192,11 +192,11 @@ select (select a from t3 where a<t2.a*4 order by 1 desc limit 1), a from t2;
|
||||
(select a from t3 where a<t2.a*4 order by 1 desc limit 1) a
|
||||
3 1
|
||||
7 2
|
||||
select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
|
||||
select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
|
||||
(select * from t2 where a>1) as tt;
|
||||
(select t3.a from t3 where a<8 order by 1 desc limit 1) a
|
||||
7 2
|
||||
explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
|
||||
explain extended select (select t3.a from t3 where a<8 order by 1 desc limit 1), a from
|
||||
(select * from t2 where a>1) as tt;
|
||||
id select_type table type possible_keys key key_len ref rows filtered Extra
|
||||
1 PRIMARY <derived3> system NULL NULL NULL NULL 1 100.00
|
||||
@ -2303,20 +2303,20 @@ drop table t1,t2;
|
||||
CREATE TABLE t1 ( a int, b int );
|
||||
CREATE TABLE t2 ( c int, d int );
|
||||
INSERT INTO t1 VALUES (1,2), (2,3), (3,4);
|
||||
SELECT a AS abc, b FROM t1 outr WHERE b =
|
||||
SELECT a AS abc, b FROM t1 outr WHERE b =
|
||||
(SELECT MIN(b) FROM t1 WHERE a=outr.a);
|
||||
abc b
|
||||
1 2
|
||||
2 3
|
||||
3 4
|
||||
INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
|
||||
INSERT INTO t2 SELECT a AS abc, b FROM t1 outr WHERE b =
|
||||
(SELECT MIN(b) FROM t1 WHERE a=outr.a);
|
||||
select * from t2;
|
||||
c d
|
||||
1 2
|
||||
2 3
|
||||
3 4
|
||||
CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
|
||||
CREATE TABLE t3 SELECT a AS abc, b FROM t1 outr WHERE b =
|
||||
(SELECT MIN(b) FROM t1 WHERE a=outr.a);
|
||||
select * from t3;
|
||||
abc b
|
||||
@ -2517,8 +2517,8 @@ INSERT INTO t1 VALUES ('ASM','American Samoa','Oceania','Polynesia',199.00,0,680
|
||||
INSERT INTO t1 VALUES ('ATF','French Southern territories','Antarctica','Antarctica',7780.00,0,0,NULL,0.00,NULL,'Terres australes françaises','Nonmetropolitan Territory of France','Jacques Chirac',NULL,'TF');
|
||||
INSERT INTO t1 VALUES ('UMI','United States Minor Outlying Islands','Oceania','Micronesia/Caribbean',16.00,0,0,NULL,0.00,NULL,'United States Minor Outlying Islands','Dependent Territory of the US','George W. Bush',NULL,'UM');
|
||||
/*!40000 ALTER TABLE t1 ENABLE KEYS */;
|
||||
SELECT DISTINCT Continent AS c FROM t1 outr WHERE
|
||||
Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
|
||||
SELECT DISTINCT Continent AS c FROM t1 outr WHERE
|
||||
Code <> SOME ( SELECT Code FROM t1 WHERE Continent = outr.Continent AND
|
||||
Population < 200);
|
||||
c
|
||||
Oceania
|
||||
@ -2628,32 +2628,32 @@ select
|
||||
count(distinct t2.userid) pass,
|
||||
groupstuff.*,
|
||||
count(t2.courseid) crse,
|
||||
t1.categoryid,
|
||||
t1.categoryid,
|
||||
t2.courseid,
|
||||
date_format(date, '%b%y') as colhead
|
||||
from t2
|
||||
join t1 on t2.courseid=t1.courseid
|
||||
from t2
|
||||
join t1 on t2.courseid=t1.courseid
|
||||
join
|
||||
(
|
||||
select
|
||||
t5.userid,
|
||||
parentid,
|
||||
parentgroup,
|
||||
childid,
|
||||
groupname,
|
||||
grouptypeid
|
||||
from t5
|
||||
join
|
||||
select
|
||||
t5.userid,
|
||||
parentid,
|
||||
parentgroup,
|
||||
childid,
|
||||
groupname,
|
||||
grouptypeid
|
||||
from t5
|
||||
join
|
||||
(
|
||||
select t4.id as parentid,
|
||||
t4.name as parentgroup,
|
||||
t4.id as childid,
|
||||
t4.name as groupname,
|
||||
t4.grouptypeid
|
||||
from t4
|
||||
) as gin on t5.groupid=gin.childid
|
||||
) as groupstuff on t2.userid = groupstuff.userid
|
||||
group by
|
||||
select t4.id as parentid,
|
||||
t4.name as parentgroup,
|
||||
t4.id as childid,
|
||||
t4.name as groupname,
|
||||
t4.grouptypeid
|
||||
from t4
|
||||
) as gin on t5.groupid=gin.childid
|
||||
) as groupstuff on t2.userid = groupstuff.userid
|
||||
group by
|
||||
groupstuff.groupname, colhead , t2.courseid;
|
||||
pass userid parentid parentgroup childid groupname grouptypeid crse categoryid courseid colhead
|
||||
1 5141 12 group2 12 group2 5 1 5 12 Aug04
|
||||
@ -2929,9 +2929,9 @@ INSERT INTO t1 VALUES("0037", "1", "2005-12-06 12:18:56");
|
||||
INSERT INTO t1 VALUES("0037", "2", "2006-01-06 12:25:53");
|
||||
INSERT INTO t1 VALUES("0048", "1", "2006-01-06 12:37:50");
|
||||
INSERT INTO t1 VALUES("0059", "1", "2006-01-06 12:37:50");
|
||||
select * from t1 r1
|
||||
where (r1.retailerID,(r1.changed)) in
|
||||
(SELECT r2.retailerId,(max(changed)) from t1 r2
|
||||
select * from t1 r1
|
||||
where (r1.retailerID,(r1.changed)) in
|
||||
(SELECT r2.retailerId,(max(changed)) from t1 r2
|
||||
group by r2.retailerId);
|
||||
retailerID statusID changed
|
||||
0026 2 2006-01-06 12:25:53
|
||||
@ -2943,41 +2943,41 @@ create table t1(a int, primary key (a));
|
||||
insert into t1 values (10);
|
||||
create table t2 (a int primary key, b varchar(32), c int, unique key b(c, b));
|
||||
insert into t2(a, c, b) values (1,10,'359'), (2,10,'35988'), (3,10,'35989');
|
||||
explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
|
||||
explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
|
||||
1 PRIMARY r const PRIMARY PRIMARY 4 const 1
|
||||
2 DEPENDENT SUBQUERY t2 range b b 40 NULL 2 Using where
|
||||
SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
|
||||
SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c DESC, t2.b DESC LIMIT 1) WHERE t1.a = 10;
|
||||
a a b
|
||||
10 3 35989
|
||||
explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
|
||||
explain SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 system PRIMARY NULL NULL NULL 1
|
||||
1 PRIMARY r const PRIMARY PRIMARY 4 const 1
|
||||
2 DEPENDENT SUBQUERY t2 range b b 40 NULL 2 Using where
|
||||
SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
|
||||
SELECT sql_no_cache t1.a, r.a, r.b FROM t1 LEFT JOIN t2 r
|
||||
ON r.a = (SELECT t2.a FROM t2 WHERE t2.c = t1.a AND t2.b <= '359899'
|
||||
ORDER BY t2.c, t2.b LIMIT 1) WHERE t1.a = 10;
|
||||
a a b
|
||||
10 1 359
|
||||
drop table t1,t2;
|
||||
CREATE TABLE t1 (
|
||||
field1 int NOT NULL,
|
||||
field2 int NOT NULL,
|
||||
field3 int NOT NULL,
|
||||
PRIMARY KEY (field1,field2,field3)
|
||||
CREATE TABLE t1 (
|
||||
field1 int NOT NULL,
|
||||
field2 int NOT NULL,
|
||||
field3 int NOT NULL,
|
||||
PRIMARY KEY (field1,field2,field3)
|
||||
);
|
||||
CREATE TABLE t2 (
|
||||
fieldA int NOT NULL,
|
||||
fieldB int NOT NULL,
|
||||
PRIMARY KEY (fieldA,fieldB)
|
||||
CREATE TABLE t2 (
|
||||
fieldA int NOT NULL,
|
||||
fieldB int NOT NULL,
|
||||
PRIMARY KEY (fieldA,fieldB)
|
||||
);
|
||||
INSERT INTO t1 VALUES
|
||||
(1,1,1), (1,1,2), (1,2,1), (1,2,2), (1,2,3), (1,3,1);
|
||||
@ -2991,14 +2991,14 @@ field1 field2 COUNT(*)
|
||||
SELECT field1, field2
|
||||
FROM t1
|
||||
GROUP BY field1, field2
|
||||
HAVING COUNT(*) >= ALL (SELECT fieldB
|
||||
HAVING COUNT(*) >= ALL (SELECT fieldB
|
||||
FROM t2 WHERE fieldA = field1);
|
||||
field1 field2
|
||||
1 2
|
||||
SELECT field1, field2
|
||||
FROM t1
|
||||
GROUP BY field1, field2
|
||||
HAVING COUNT(*) < ANY (SELECT fieldB
|
||||
HAVING COUNT(*) < ANY (SELECT fieldB
|
||||
FROM t2 WHERE fieldA = field1);
|
||||
field1 field2
|
||||
1 1
|
||||
@ -3021,8 +3021,8 @@ a a IN (SELECT a FROM t1)
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a DATETIME);
|
||||
INSERT INTO t1 VALUES ('1998-09-23'), ('2003-03-25');
|
||||
CREATE TABLE t2 AS SELECT
|
||||
(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
|
||||
CREATE TABLE t2 AS SELECT
|
||||
(SELECT a FROM t1 WHERE a < '2000-01-01') AS sub_a
|
||||
FROM t1 WHERE a > '2000-01-01';
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -3188,7 +3188,7 @@ INSERT INTO t2 VALUES ( 6 );
|
||||
CREATE TABLE t3 ( c3 integer );
|
||||
INSERT INTO t3 VALUES ( 7 );
|
||||
INSERT INTO t3 VALUES ( 8 );
|
||||
SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
|
||||
SELECT c1,c2 FROM t1 LEFT JOIN t2 ON c1 = c2
|
||||
WHERE EXISTS (SELECT c3 FROM t3 WHERE c2 IS NULL );
|
||||
c1 c2
|
||||
2 NULL
|
||||
@ -3231,20 +3231,20 @@ E1
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1(select_id BIGINT, values_id BIGINT);
|
||||
INSERT INTO t1 VALUES (1, 1);
|
||||
CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
|
||||
CREATE TABLE t2 (select_id BIGINT, values_id BIGINT,
|
||||
PRIMARY KEY(select_id,values_id));
|
||||
INSERT INTO t2 VALUES (0, 1), (0, 2), (0, 3), (1, 5);
|
||||
SELECT values_id FROM t1
|
||||
SELECT values_id FROM t1
|
||||
WHERE values_id IN (SELECT values_id FROM t2
|
||||
WHERE select_id IN (1, 0));
|
||||
values_id
|
||||
1
|
||||
SELECT values_id FROM t1
|
||||
SELECT values_id FROM t1
|
||||
WHERE values_id IN (SELECT values_id FROM t2
|
||||
WHERE select_id BETWEEN 0 AND 1);
|
||||
values_id
|
||||
1
|
||||
SELECT values_id FROM t1
|
||||
SELECT values_id FROM t1
|
||||
WHERE values_id IN (SELECT values_id FROM t2
|
||||
WHERE select_id = 0 OR select_id = 1);
|
||||
values_id
|
||||
@ -3259,7 +3259,7 @@ drop table t1;
|
||||
CREATE TABLE t1 (a int, b int);
|
||||
CREATE TABLE t2 (c int, d int);
|
||||
CREATE TABLE t3 (e int);
|
||||
INSERT INTO t1 VALUES
|
||||
INSERT INTO t1 VALUES
|
||||
(1,10), (2,10), (1,20), (2,20), (3,20), (2,30), (4,40);
|
||||
INSERT INTO t2 VALUES
|
||||
(2,10), (2,20), (4,10), (5,10), (3,20), (2,40);
|
||||
@ -3322,7 +3322,7 @@ a
|
||||
2
|
||||
SELECT a FROM t1 GROUP BY a
|
||||
HAVING a IN (SELECT c FROM t2
|
||||
WHERE MIN(b) < d AND
|
||||
WHERE MIN(b) < d AND
|
||||
EXISTS(SELECT e FROM t3 WHERE MAX(b)=e AND e <= d));
|
||||
a
|
||||
2
|
||||
@ -3373,7 +3373,7 @@ a
|
||||
4
|
||||
SELECT t1.a FROM t1 GROUP BY t1.a
|
||||
HAVING t1.a > ALL(SELECT t2.c FROM t2
|
||||
WHERE EXISTS(SELECT t3.e FROM t3
|
||||
WHERE EXISTS(SELECT t3.e FROM t3
|
||||
WHERE SUM(t1.a+t2.c) < t3.e/4));
|
||||
ERROR HY000: Invalid use of group function
|
||||
SELECT t1.a from t1 GROUP BY t1.a HAVING AVG(SUM(t1.b)) > 20;
|
||||
@ -3486,7 +3486,7 @@ mid bigint(20) unsigned NOT NULL,
|
||||
date date NOT NULL,
|
||||
PRIMARY KEY (id)
|
||||
);
|
||||
INSERT INTO t2 VALUES
|
||||
INSERT INTO t2 VALUES
|
||||
(1, 1, '2006-03-30'), (2, 2, '2006-04-06'), (3, 3, '2006-04-13'),
|
||||
(4, 2, '2006-04-20'), (5, 1, '2006-05-01');
|
||||
SELECT *,
|
||||
@ -3524,7 +3524,7 @@ i2 int(11) NOT NULL default '0',
|
||||
t datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
PRIMARY KEY (i1,i2,t)
|
||||
);
|
||||
INSERT INTO t1 VALUES
|
||||
INSERT INTO t1 VALUES
|
||||
(24,1,'2005-03-03 16:31:31'),(24,1,'2005-05-27 12:40:07'),
|
||||
(24,1,'2005-05-27 12:40:08'),(24,1,'2005-05-27 12:40:10'),
|
||||
(24,1,'2005-05-27 12:40:25'),(24,1,'2005-05-27 12:40:30'),
|
||||
@ -3540,7 +3540,7 @@ PRIMARY KEY (i1)
|
||||
INSERT INTO t2 VALUES (24,1,'2006-06-20 12:29:40');
|
||||
EXPLAIN
|
||||
SELECT * FROM t1,t2
|
||||
WHERE t1.t = (SELECT t1.t FROM t1
|
||||
WHERE t1.t = (SELECT t1.t FROM t1
|
||||
WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
|
||||
ORDER BY t1.t DESC LIMIT 1);
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
@ -3548,7 +3548,7 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t1 index NULL PRIMARY 16 NULL 11 Using where; Using index
|
||||
2 DEPENDENT SUBQUERY t1 range PRIMARY PRIMARY 16 NULL 5 Using where; Using index
|
||||
SELECT * FROM t1,t2
|
||||
WHERE t1.t = (SELECT t1.t FROM t1
|
||||
WHERE t1.t = (SELECT t1.t FROM t1
|
||||
WHERE t1.t < t2.t AND t1.i2=1 AND t2.i1=t1.i1
|
||||
ORDER BY t1.t DESC LIMIT 1);
|
||||
i1 i2 t i1 i2 t
|
||||
@ -3557,22 +3557,22 @@ DROP TABLE t1, t2;
|
||||
CREATE TABLE t1 (i INT);
|
||||
(SELECT i FROM t1) UNION (SELECT i FROM t1);
|
||||
i
|
||||
SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
|
||||
SELECT sql_no_cache * FROM t1 WHERE NOT EXISTS
|
||||
(
|
||||
(SELECT i FROM t1) UNION
|
||||
(SELECT i FROM t1) UNION
|
||||
(SELECT i FROM t1)
|
||||
);
|
||||
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 'UNION
|
||||
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 'UNION
|
||||
(SELECT i FROM t1)
|
||||
)' at line 3
|
||||
SELECT * FROM t1
|
||||
SELECT * FROM t1
|
||||
WHERE NOT EXISTS (((SELECT i FROM t1) UNION (SELECT i FROM t1)));
|
||||
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 'UNION (SELECT i FROM t1)))' at line 2
|
||||
explain select ((select t11.i from t1 t11) union (select t12.i from t1 t12))
|
||||
from t1;
|
||||
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 'union (select t12.i from t1 t12))
|
||||
from t1' at line 1
|
||||
explain select * from t1 where not exists
|
||||
explain select * from t1 where not exists
|
||||
((select t11.i from t1 t11) union (select t12.i from t1 t12));
|
||||
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 'union (select t12.i from t1 t12))' at line 2
|
||||
DROP TABLE t1;
|
||||
@ -3591,9 +3591,9 @@ insert into t1 (a) select FLOOR(rand() * 100) from t1;
|
||||
insert into t1 (a) select FLOOR(rand() * 100) from t1;
|
||||
insert into t1 (a) select FLOOR(rand() * 100) from t1;
|
||||
insert into t1 (a) select FLOOR(rand() * 100) from t1;
|
||||
SELECT a,
|
||||
(SELECT REPEAT(' ',250) FROM t1 i1
|
||||
WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
|
||||
SELECT a,
|
||||
(SELECT REPEAT(' ',250) FROM t1 i1
|
||||
WHERE i1.b=t1.a ORDER BY RAND() LIMIT 1) AS a
|
||||
FROM t1 ORDER BY a LIMIT 5;
|
||||
a a
|
||||
0 NULL
|
||||
@ -3622,7 +3622,7 @@ COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b))
|
||||
2 2
|
||||
1 1
|
||||
1 1
|
||||
SELECT COUNT(DISTINCT t1.b),
|
||||
SELECT COUNT(DISTINCT t1.b),
|
||||
(SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
|
||||
FROM t1 GROUP BY t1.a;
|
||||
COUNT(DISTINCT t1.b) (SELECT COUNT(DISTINCT t1.b) union select 1 from DUAL where 12 < 3)
|
||||
@ -3633,7 +3633,7 @@ SELECT (
|
||||
SELECT (
|
||||
SELECT COUNT(DISTINCT t1.b)
|
||||
)
|
||||
)
|
||||
)
|
||||
FROM t1 GROUP BY t1.a;
|
||||
(
|
||||
SELECT (
|
||||
@ -3648,8 +3648,8 @@ SELECT (
|
||||
SELECT (
|
||||
SELECT COUNT(DISTINCT t1.b)
|
||||
)
|
||||
)
|
||||
FROM t1 GROUP BY t1.a LIMIT 1)
|
||||
)
|
||||
FROM t1 GROUP BY t1.a LIMIT 1)
|
||||
FROM t1 t2
|
||||
GROUP BY t2.a;
|
||||
(
|
||||
@ -3657,7 +3657,7 @@ SELECT (
|
||||
SELECT (
|
||||
SELECT COUNT(DISTINCT t1.b)
|
||||
)
|
||||
)
|
||||
)
|
||||
FROM t1 GROUP BY t1.a LIMIT 1)
|
||||
2
|
||||
2
|
||||
@ -3669,13 +3669,13 @@ PRIMARY KEY (x), FOREIGN KEY (y) REFERENCES t1 (b));
|
||||
SET SESSION sort_buffer_size = 32 * 1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect sort_buffer_size value: '32768'
|
||||
SELECT SQL_NO_CACHE COUNT(*)
|
||||
SELECT SQL_NO_CACHE COUNT(*)
|
||||
FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
|
||||
FROM t1) t;
|
||||
COUNT(*)
|
||||
3000
|
||||
SET SESSION sort_buffer_size = 8 * 1024 * 1024;
|
||||
SELECT SQL_NO_CACHE COUNT(*)
|
||||
SELECT SQL_NO_CACHE COUNT(*)
|
||||
FROM (SELECT a, b, (SELECT x FROM t2 WHERE y=b ORDER BY z DESC LIMIT 1) c
|
||||
FROM t1) t;
|
||||
COUNT(*)
|
||||
@ -3736,7 +3736,7 @@ sq
|
||||
2
|
||||
4
|
||||
DEALLOCATE PREPARE stmt1;
|
||||
SELECT f2, AVG(f21),
|
||||
SELECT f2, AVG(f21),
|
||||
(SELECT t.f3 FROM t2 AS t WHERE t2.f2=t.f2 AND t.f3=MAX(t2.f3)) AS test
|
||||
FROM t2 GROUP BY f2;
|
||||
f2 AVG(f21) test
|
||||
@ -3744,12 +3744,12 @@ f2 AVG(f21) test
|
||||
2 2.0000 2004-02-29 11:11:11
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a int, b INT, c CHAR(10) NOT NULL);
|
||||
INSERT INTO t1 VALUES
|
||||
(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
|
||||
(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
|
||||
INSERT INTO t1 VALUES
|
||||
(1,1,'a'), (1,2,'b'), (1,3,'c'), (1,4,'d'), (1,5,'e'),
|
||||
(2,1,'f'), (2,2,'g'), (2,3,'h'), (3,4,'i'), (3,3,'j'),
|
||||
(3,2,'k'), (3,1,'l'), (1,9,'m');
|
||||
SELECT a, MAX(b),
|
||||
(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
|
||||
SELECT a, MAX(b),
|
||||
(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b)) AS test
|
||||
FROM t1 GROUP BY a;
|
||||
a MAX(b) test
|
||||
1 9 m
|
||||
@ -3900,7 +3900,7 @@ COUNT(*) a (SELECT MIN(m) FROM t2 WHERE m = count(*))
|
||||
2 2 2
|
||||
3 3 3
|
||||
1 4 1
|
||||
SELECT COUNT(*), a
|
||||
SELECT COUNT(*), a
|
||||
FROM t1 GROUP BY a
|
||||
HAVING (SELECT MIN(m) FROM t2 WHERE m = count(*)) > 1;
|
||||
COUNT(*) a
|
||||
@ -3931,7 +3931,7 @@ INSERT INTO t1 VALUES (1,1,0,'a'), (1,2,0,'b'), (1,3,0,'c'), (1,4,0,'d'),
|
||||
(1,5,0,'e'), (2,1,0,'f'), (2,2,0,'g'), (2,3,0,'h'), (3,4,0,'i'), (3,3,0,'j'),
|
||||
(3,2,0,'k'), (3,1,0,'l'), (1,9,0,'m'), (1,0,10,'n'), (2,0,5,'o'), (3,0,7,'p');
|
||||
SELECT a, MAX(b),
|
||||
(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
|
||||
(SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.b=MAX(t1.b + 0)) as test
|
||||
FROM t1 GROUP BY a;
|
||||
a MAX(b) test
|
||||
1 9 m
|
||||
@ -3953,7 +3953,7 @@ a AVG(b) test
|
||||
3 2.5000 NULL
|
||||
SELECT tt.a,
|
||||
(SELECT (SELECT c FROM t1 as t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
|
||||
LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
|
||||
LIMIT 1) FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
|
||||
FROM t1 as tt;
|
||||
a test
|
||||
1 n
|
||||
@ -3975,7 +3975,7 @@ a test
|
||||
SELECT tt.a,
|
||||
(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
|
||||
LIMIT 1)
|
||||
FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
|
||||
FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1) as test
|
||||
FROM t1 as tt GROUP BY tt.a;
|
||||
a test
|
||||
1 n
|
||||
@ -3984,7 +3984,7 @@ a test
|
||||
SELECT tt.a, MAX(
|
||||
(SELECT (SELECT t.c FROM t1 AS t WHERE t1.a=t.a AND t.d=MAX(t1.b + tt.a)
|
||||
LIMIT 1)
|
||||
FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
|
||||
FROM t1 WHERE t1.a=tt.a GROUP BY a LIMIT 1)) as test
|
||||
FROM t1 as tt GROUP BY tt.a;
|
||||
a test
|
||||
1 n
|
||||
@ -4027,11 +4027,11 @@ COUNT(1)
|
||||
1
|
||||
SELECT SUM( (SELECT AVG( (SELECT t1.a FROM t2) ) FROM DUAL) ) FROM t1;
|
||||
ERROR HY000: Invalid use of group function
|
||||
SELECT
|
||||
SELECT
|
||||
SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING t1.a < 12) ) FROM t2) )
|
||||
FROM t1;
|
||||
ERROR HY000: Invalid use of group function
|
||||
SELECT t1.a as XXA,
|
||||
SELECT t1.a as XXA,
|
||||
SUM( (SELECT AVG( (SELECT COUNT(*) FROM t1 t HAVING XXA < 12) ) FROM t2) )
|
||||
FROM t1;
|
||||
ERROR HY000: Invalid use of group function
|
||||
@ -4048,25 +4048,25 @@ INSERT INTO t1 VALUES
|
||||
(3,'FL'), (2,'GA'), (4,'FL'), (1,'GA'), (5,'NY'), (7,'FL'), (6,'NY');
|
||||
CREATE TABLE t2 (id int NOT NULL, INDEX idx(id));
|
||||
INSERT INTO t2 VALUES (7), (5), (1), (3);
|
||||
SELECT id, st FROM t1
|
||||
SELECT id, st FROM t1
|
||||
WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
|
||||
id st
|
||||
3 FL
|
||||
1 GA
|
||||
7 FL
|
||||
SELECT id, st FROM t1
|
||||
SELECT id, st FROM t1
|
||||
WHERE st IN ('GA','FL') AND EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
|
||||
GROUP BY id;
|
||||
id st
|
||||
1 GA
|
||||
3 FL
|
||||
7 FL
|
||||
SELECT id, st FROM t1
|
||||
SELECT id, st FROM t1
|
||||
WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id);
|
||||
id st
|
||||
2 GA
|
||||
4 FL
|
||||
SELECT id, st FROM t1
|
||||
SELECT id, st FROM t1
|
||||
WHERE st IN ('GA','FL') AND NOT EXISTS(SELECT 1 FROM t2 WHERE t2.id=t1.id)
|
||||
GROUP BY id;
|
||||
id st
|
||||
@ -4237,7 +4237,7 @@ a b
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1(a INT, b INT);
|
||||
INSERT INTO t1 VALUES (1,1), (1,2), (2,3), (2,4);
|
||||
EXPLAIN
|
||||
EXPLAIN
|
||||
SELECT a AS out_a, MIN(b) FROM t1
|
||||
WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
|
||||
GROUP BY a;
|
||||
@ -4246,7 +4246,7 @@ SELECT a AS out_a, MIN(b) FROM t1
|
||||
WHERE b > (SELECT MIN(b) FROM t1 WHERE a = out_a)
|
||||
GROUP BY a;
|
||||
ERROR 42S22: Unknown column 'out_a' in 'where clause'
|
||||
EXPLAIN
|
||||
EXPLAIN
|
||||
SELECT a AS out_a, MIN(b) FROM t1 t1_outer
|
||||
WHERE b > (SELECT MIN(b) FROM t1 WHERE a = t1_outer.a)
|
||||
GROUP BY a;
|
||||
@ -4277,16 +4277,16 @@ Warnings:
|
||||
Note 1276 Field or reference 'test.t1.a' of SELECT #2 was resolved in SELECT #1
|
||||
Note 1003 select 2 AS `2` from `test`.`t1` where exists(select 1 AS `1` from `test`.`t2` where (`test`.`t1`.`a` = `test`.`t2`.`a`))
|
||||
EXPLAIN EXTENDED
|
||||
SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
|
||||
SELECT 2 FROM t1 WHERE EXISTS ((SELECT 1 FROM t2 WHERE t1.a=t2.a) UNION
|
||||
(SELECT 1 FROM t2 WHERE t1.a = t2.a));
|
||||
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 'UNION
|
||||
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 'UNION
|
||||
(SELECT 1 FROM t2 WHERE t1.a = t2.a))' at line 2
|
||||
DROP TABLE t1,t2;
|
||||
create table t1(f11 int, f12 int);
|
||||
create table t2(f21 int unsigned not null, f22 int, f23 varchar(10));
|
||||
insert into t1 values(1,1),(2,2), (3, 3);
|
||||
set session sort_buffer_size= 33*1024;
|
||||
select count(*) from t1 where f12 =
|
||||
select count(*) from t1 where f12 =
|
||||
(select f22 from t2 where f22 = f12 order by f21 desc, f22, f23 limit 1);
|
||||
count(*)
|
||||
3
|
||||
@ -4327,12 +4327,12 @@ IF(
|
||||
FROM t2 VPC, t4 a2, t2 a3
|
||||
WHERE
|
||||
VPC.f4 = a2.f10 AND a3.f2 = a4
|
||||
LIMIT 1) IS NULL,
|
||||
0,
|
||||
LIMIT 1) IS NULL,
|
||||
0,
|
||||
t3.f5
|
||||
)
|
||||
) AS a6
|
||||
FROM
|
||||
FROM
|
||||
t2, t3, t1 JOIN t2 a1 ON t1.f9 = a1.f4
|
||||
GROUP BY a4;
|
||||
a4 f3 a6
|
||||
@ -4341,7 +4341,7 @@ a4 f3 a6
|
||||
DROP TABLE t1, t2, t3, t4;
|
||||
create table t1 (a float(5,4) zerofill);
|
||||
create table t2 (a float(5,4),b float(2,0));
|
||||
select t1.a from t1 where
|
||||
select t1.a from t1 where
|
||||
t1.a= (select b from t2 limit 1) and not
|
||||
t1.a= (select a from t2 limit 1) ;
|
||||
a
|
||||
@ -4362,7 +4362,7 @@ Warnings:
|
||||
Note 1003 select 1 AS `1` from `test`.`t1` where <in_optimizer>(1,<exists>(select 1 AS `1` from `test`.`t1` where (`test`.`t1`.`a` > 3) group by `test`.`t1`.`a` having (<cache>(1) = <ref_null_helper>(1))))
|
||||
DROP TABLE t1;
|
||||
End of 5.0 tests.
|
||||
CREATE TABLE t1 (a int, b int);
|
||||
CREATE TABLE t1 (a INT, b INT);
|
||||
INSERT INTO t1 VALUES (2,22),(1,11),(2,22);
|
||||
SELECT a FROM t1 WHERE (SELECT COUNT(b) FROM DUAL) > 0 GROUP BY a;
|
||||
a
|
||||
@ -4385,22 +4385,22 @@ WHERE (SELECT COUNT(t0.b) FROM t1 t WHERE t.b>20) GROUP BY a;
|
||||
ERROR HY000: Invalid use of group function
|
||||
SET @@sql_mode=default;
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (s1 char(1));
|
||||
CREATE TABLE t1 (s1 CHAR(1));
|
||||
INSERT INTO t1 VALUES ('a');
|
||||
SELECT * FROM t1 WHERE _utf8'a' = ANY (SELECT s1 FROM t1);
|
||||
s1
|
||||
a
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1(c int, KEY(c));
|
||||
CREATE TABLE t2(a int, b int);
|
||||
CREATE TABLE t1(c INT, KEY(c));
|
||||
CREATE TABLE t2(a INT, b INT);
|
||||
INSERT INTO t2 VALUES (1, 10), (2, NULL);
|
||||
INSERT INTO t1 VALUES (1), (3);
|
||||
SELECT * FROM t2 WHERE b NOT IN (SELECT max(t.c) FROM t1, t1 t WHERE t.c>10);
|
||||
a b
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1(pk int PRIMARY KEY, a int, INDEX idx(a));
|
||||
CREATE TABLE t1(pk INT PRIMARY KEY, a INT, INDEX idx(a));
|
||||
INSERT INTO t1 VALUES (1, 10), (3, 30), (2, 20);
|
||||
CREATE TABLE t2(pk int PRIMARY KEY, a int, b int, INDEX idxa(a));
|
||||
CREATE TABLE t2(pk INT PRIMARY KEY, a INT, b INT, INDEX idxa(a));
|
||||
INSERT INTO t2 VALUES (2, 20, 700), (1, 10, 200), (4, 10, 100);
|
||||
SELECT * FROM t1
|
||||
WHERE EXISTS (SELECT DISTINCT a FROM t2 WHERE t1.a < t2.a ORDER BY b);
|
||||
@ -4409,36 +4409,36 @@ pk a
|
||||
3 30
|
||||
2 20
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a int, b int, PRIMARY KEY (a), KEY b (b));
|
||||
CREATE TABLE t1 (a INT, b INT, PRIMARY KEY (a), KEY b (b));
|
||||
INSERT INTO t1 VALUES (1,NULL), (9,NULL);
|
||||
CREATE TABLE t2 (
|
||||
a int,
|
||||
b int,
|
||||
c int,
|
||||
d int,
|
||||
a INT,
|
||||
b INT,
|
||||
c INT,
|
||||
d INT,
|
||||
PRIMARY KEY (a),
|
||||
UNIQUE KEY b (b,c,d),
|
||||
KEY b_2 (b),
|
||||
KEY c (c),
|
||||
KEY d (d)
|
||||
);
|
||||
INSERT INTO t2 VALUES
|
||||
INSERT INTO t2 VALUES
|
||||
(43, 2, 11 ,30),
|
||||
(44, 2, 12 ,30),
|
||||
(45, 1, 1 ,10000),
|
||||
(46, 1, 2 ,10000),
|
||||
(556,1, 32 ,10000);
|
||||
CREATE TABLE t3 (
|
||||
a int,
|
||||
b int,
|
||||
c int,
|
||||
a INT,
|
||||
b INT,
|
||||
c INT,
|
||||
PRIMARY KEY (a),
|
||||
UNIQUE KEY b (b,c),
|
||||
KEY c (c),
|
||||
KEY b_2 (b)
|
||||
);
|
||||
INSERT INTO t3 VALUES (1,1,1), (2,32,1);
|
||||
explain
|
||||
explain
|
||||
SELECT t1.a, (SELECT 1 FROM t2 WHERE t2.b=t3.c AND t2.c=t1.a ORDER BY t2.d LIMIT 1) AS incorrect FROM t1, t3 WHERE t3.b=t1.a;
|
||||
id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY t3 index b,b_2 b 10 NULL 2 Using index
|
||||
@ -4479,7 +4479,7 @@ DELETE FROM v3;
|
||||
DROP VIEW v1,v2,v3;
|
||||
DROP TABLE t1,t2;
|
||||
#
|
||||
# BUG#37822: Correlated subquery with IN and IS UNKNOWN provides wrong result
|
||||
# Bug#37822 Correlated subquery with IN and IS UNKNOWN provides wrong result
|
||||
#
|
||||
create table t1(id integer primary key, g integer, v integer, s char(1));
|
||||
create table t2(id integer primary key, g integer, v integer, s char(1));
|
||||
|
@ -1,6 +1,6 @@
|
||||
drop table if exists t1,t2;
|
||||
CREATE TABLE t1 (x1 int);
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
DROP TABLE IF EXISTS t1,t2;
|
||||
CREATE TABLE t1 (x1 INT);
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -8,7 +8,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -16,7 +16,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -24,7 +24,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -32,7 +32,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -40,7 +40,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -48,7 +48,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -56,7 +56,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -64,7 +64,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -72,7 +72,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -80,7 +80,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -88,7 +88,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -96,7 +96,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -104,7 +104,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -112,7 +112,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -120,7 +120,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -128,7 +128,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -136,7 +136,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -144,7 +144,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x1 x2 int;
|
||||
ALTER TABLE t1 CHANGE x1 x2 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
@ -152,7 +152,7 @@ t2 CREATE TABLE `t2` (
|
||||
`xx` int(11) DEFAULT NULL
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1
|
||||
DROP TABLE t2;
|
||||
ALTER TABLE t1 CHANGE x2 x1 int;
|
||||
ALTER TABLE t1 CHANGE x2 x1 INT;
|
||||
CREATE TABLE t2 LIKE t1;
|
||||
SHOW CREATE TABLE t2;
|
||||
Table Create Table
|
||||
|
@ -12,9 +12,7 @@ GRANT CREATE, TRIGGER ON mysqltest_db1.* TO mysqltest_dfn@localhost;
|
||||
---> connection: wl2818_definer_con
|
||||
CREATE TABLE t1(num_value INT);
|
||||
CREATE TABLE t2(user_str TEXT);
|
||||
CREATE TRIGGER wl2818_trg1 BEFORE INSERT ON t1
|
||||
FOR EACH ROW
|
||||
INSERT INTO t2 VALUES(CURRENT_USER());
|
||||
CREATE TRIGGER wl2818_trg1 BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t2 VALUES(CURRENT_USER());
|
||||
|
||||
---> patching t1.TRG...
|
||||
|
||||
|
@ -891,11 +891,11 @@ CREATE TABLE b15776 (a year(-2));
|
||||
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 '-2))' at line 1
|
||||
CREATE TABLE b15776 (a timestamp(4294967294));
|
||||
Warnings:
|
||||
Warning 1287 The syntax 'TIMESTAMP(4294967294)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(4294967294)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
DROP TABLE b15776;
|
||||
CREATE TABLE b15776 (a timestamp(4294967295));
|
||||
Warnings:
|
||||
Warning 1287 The syntax 'TIMESTAMP(4294967295)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(4294967295)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
DROP TABLE b15776;
|
||||
CREATE TABLE b15776 (a timestamp(4294967296));
|
||||
ERROR 42000: Display width out of range for column 'a' (max = 4294967295)
|
||||
|
@ -619,3 +619,22 @@ ERROR 42000: Invalid default value for 'da'
|
||||
create table t1 (t time default '916:00:00 a');
|
||||
ERROR 42000: Invalid default value for 't'
|
||||
set @@sql_mode= @org_mode;
|
||||
SELECT CAST(CAST('2006-08-10 10:11:12.0123450' AS DATETIME) AS DECIMAL(30,7));
|
||||
CAST(CAST('2006-08-10 10:11:12.0123450' AS DATETIME) AS DECIMAL(30,7))
|
||||
20060810101112.0123450
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect datetime value: '2006-08-10 10:11:12.0123450'
|
||||
SELECT CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.0123450' AS DATETIME) AS DECIMAL(30,7));
|
||||
CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.0123450' AS DATETIME) AS DECIMAL(30,7))
|
||||
20060810101112.0123450
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect datetime value: '00000002006-000008-0000010 000010:0000011:00000012.0123450'
|
||||
SELECT CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.012345' AS DATETIME) AS DECIMAL(30,7));
|
||||
CAST(CAST('00000002006-000008-0000010 000010:0000011:00000012.012345' AS DATETIME) AS DECIMAL(30,7))
|
||||
20060810101112.0123450
|
||||
SELECT CAST(CAST('2008-07-29T10:42:51.1234567' AS DateTime) AS DECIMAL(30,7));
|
||||
CAST(CAST('2008-07-29T10:42:51.1234567' AS DateTime) AS DECIMAL(30,7))
|
||||
20080729104251.1234560
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect datetime value: '2008-07-29T10:42:51.1234567'
|
||||
End of 5.1 tests
|
||||
|
@ -385,12 +385,12 @@ Warning 1264 Out of range value for column 'f1' at row 1
|
||||
Warning 1264 Out of range value for column 'f1' at row 2
|
||||
select f1 + 0e0 from t1;
|
||||
f1 + 0e0
|
||||
1.0000000150475e+29
|
||||
-1.0000000150475e+29
|
||||
1.0000000150475e+30
|
||||
-1.0000000150475e+30
|
||||
1.0000000150475e+30
|
||||
-1.0000000150475e+30
|
||||
1.00000001504747e+29
|
||||
-1.00000001504747e+29
|
||||
1.00000001504747e+30
|
||||
-1.00000001504747e+30
|
||||
1.00000001504747e+30
|
||||
-1.00000001504747e+30
|
||||
drop table t1;
|
||||
create table t1(d double, u bigint unsigned);
|
||||
insert into t1(d) values (9.22337203685479e18),
|
||||
@ -401,4 +401,10 @@ u
|
||||
9223372036854790144
|
||||
18400000000000000000
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (f1 DOUBLE);
|
||||
INSERT INTO t1 VALUES(-1.79769313486231e+308);
|
||||
SELECT f1 FROM t1;
|
||||
f1
|
||||
-1.79769313486231e+308
|
||||
DROP TABLE t1;
|
||||
End of 5.0 tests
|
||||
|
@ -101,13 +101,13 @@ create table t1 (t2 timestamp(2), t4 timestamp(4), t6 timestamp(6),
|
||||
t8 timestamp(8), t10 timestamp(10), t12 timestamp(12),
|
||||
t14 timestamp(14));
|
||||
Warnings:
|
||||
Warning 1287 The syntax 'TIMESTAMP(2)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(4)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(6)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(8)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(10)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(12)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(14)' is deprecated and will be removed in MySQL 5.2. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(2)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(4)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(6)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(8)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(10)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(12)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
Warning 1287 The syntax 'TIMESTAMP(14)' is deprecated and will be removed in MySQL 6.0. Please use 'TIMESTAMP' instead
|
||||
insert t1 values (0,0,0,0,0,0,0),
|
||||
("1997-12-31 23:47:59", "1997-12-31 23:47:59", "1997-12-31 23:47:59",
|
||||
"1997-12-31 23:47:59", "1997-12-31 23:47:59", "1997-12-31 23:47:59",
|
||||
|
@ -168,7 +168,7 @@ max_error_count 10
|
||||
drop table t1;
|
||||
set table_type=MYISAM;
|
||||
Warnings:
|
||||
Warning 1287 The syntax '@@table_type' is deprecated and will be removed in MySQL 5.2. Please use '@@storage_engine' instead
|
||||
Warning 1287 The syntax '@@table_type' is deprecated and will be removed in MySQL 6.0. Please use '@@storage_engine' instead
|
||||
create table t1 (a int);
|
||||
insert into t1 (a) values (1), (2), (3), (4), (5), (6), (7), (8), (9), (10);
|
||||
update t1 set a='abc';
|
||||
|
@ -19,6 +19,24 @@ id select_type table type possible_keys key key_len ref rows Extra
|
||||
1 PRIMARY NULL NULL NULL NULL NULL NULL NULL Impossible WHERE noticed after reading const tables
|
||||
2 SUBQUERY NULL NULL NULL NULL NULL NULL NULL No tables used
|
||||
DROP TABLE t1;
|
||||
CREATE DATABASE `TESTDB`;
|
||||
USE `TESTDB`;
|
||||
CREATE FUNCTION test_fn() RETURNS INTEGER
|
||||
BEGIN
|
||||
DECLARE rId bigint;
|
||||
RETURN rId;
|
||||
END
|
||||
//
|
||||
CREATE FUNCTION test_fn2() RETURNS INTEGER
|
||||
BEGIN
|
||||
DECLARE rId bigint;
|
||||
RETURN rId;
|
||||
END
|
||||
//
|
||||
DROP FUNCTION `TESTDB`.`test_fn`;
|
||||
DROP FUNCTION `testdb`.`test_fn2`;
|
||||
USE test;
|
||||
DROP DATABASE `TESTDB`;
|
||||
End of 5.0 tests.
|
||||
drop procedure if exists proc_1;
|
||||
create procedure proc_1() install plugin my_plug soname '\\root\\some_plugin.dll';
|
||||
|
@ -379,9 +379,7 @@ master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # use `test`; COMMIT
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE table t2
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
@ -401,9 +399,7 @@ master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
master-bin.000001 # Query # # use `test`; ROLLBACK
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE table t2
|
||||
master-bin.000001 # Query # # use `test`; COMMIT
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Table_map # # table_id: # (test.t1)
|
||||
master-bin.000001 # Write_rows # # table_id: # flags: STMT_END_F
|
||||
|
@ -346,9 +346,7 @@ master-bin.000001 # Query # # use `test`; INSERT INTO t1 values (3,3)
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS t2
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t2 (a int, b int, primary key (a)) engine=innodb
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (4,4)
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE table t2
|
||||
master-bin.000001 # Xid # # COMMIT /* XID */
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 VALUES (5,5)
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE t2
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 values (6,6)
|
||||
@ -356,9 +354,7 @@ master-bin.000001 # Query # # use `test`; CREATE TEMPORARY TABLE t2 (a int, b in
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 values (7,7)
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 values (8,8)
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 values (9,9)
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE table t2
|
||||
master-bin.000001 # Query # # use `test`; COMMIT
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t1 values (10,10)
|
||||
master-bin.000001 # Query # # use `test`; BEGIN
|
||||
master-bin.000001 # Query # # use `test`; INSERT INTO t2 values (100,100)
|
||||
|
63
mysql-test/suite/binlog/r/binlog_truncate_innodb.result
Normal file
63
mysql-test/suite/binlog/r/binlog_truncate_innodb.result
Normal file
@ -0,0 +1,63 @@
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
**** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
TRUNCATE TABLE t2;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t2
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
||||
**** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
||||
TRUNCATE TABLE t2;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t2
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
||||
**** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
||||
TRUNCATE TABLE t2;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t2
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
||||
**** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
||||
TRUNCATE TABLE t2;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t2
|
||||
DROP TABLE t1,t2;
|
||||
CREATE TABLE t1 (a INT) ENGINE=InnoDB;
|
||||
CREATE TABLE t2 (a INT) ENGINE=InnoDB;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
**** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
TRUNCATE TABLE t2;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t2
|
||||
DROP TABLE t1,t2;
|
12
mysql-test/suite/binlog/r/binlog_truncate_myisam.result
Normal file
12
mysql-test/suite/binlog/r/binlog_truncate_myisam.result
Normal file
@ -0,0 +1,12 @@
|
||||
RESET MASTER;
|
||||
CREATE TABLE t1 (a INT) ENGINE=MyISAM;
|
||||
CREATE TABLE t2 (a INT) ENGINE=MyISAM;
|
||||
INSERT INTO t2 VALUES (1),(2),(3);
|
||||
**** Truncate of empty table shall be logged
|
||||
TRUNCATE TABLE t1;
|
||||
TRUNCATE TABLE t2;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t1
|
||||
master-bin.000001 # Query # # use `test`; TRUNCATE TABLE t2
|
||||
DROP TABLE t1,t2;
|
@ -220,3 +220,10 @@ Warning 1592 Statement is not safe to log in statement format.
|
||||
Warning 1592 Statement is not safe to log in statement format.
|
||||
DROP PROCEDURE p1;
|
||||
DROP TABLE t1;
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (a VARCHAR(100), b VARCHAR(100));
|
||||
INSERT INTO t1 VALUES ('a','b');
|
||||
UPDATE t1 SET b = '%s%s%s%s%s%s%s%s%s%s%s%s%s%s' WHERE a = 'a' LIMIT 1;
|
||||
Warnings:
|
||||
Warning 1592 Statement is not safe to log in statement format.
|
||||
DROP TABLE t1;
|
||||
|
@ -0,0 +1 @@
|
||||
--loose-innodb
|
29
mysql-test/suite/binlog/t/binlog_truncate_innodb.test
Normal file
29
mysql-test/suite/binlog/t/binlog_truncate_innodb.test
Normal file
@ -0,0 +1,29 @@
|
||||
source include/have_log_bin.inc;
|
||||
source include/have_innodb.inc;
|
||||
|
||||
# It is necessary to reset the master since otherwise the binlog test
|
||||
# might show the wrong binary log. The default for SHOW BINLOG EVENTS
|
||||
# is to show the first binary log, not the current one (which is
|
||||
# actually a better idea).
|
||||
|
||||
RESET MASTER;
|
||||
|
||||
let $engine = InnoDB;
|
||||
source extra/binlog_tests/binlog_truncate.test;
|
||||
|
||||
# Under transaction isolation level READ UNCOMMITTED and READ
|
||||
# COMMITTED, InnoDB does not permit statement-based replication of
|
||||
# row-deleting statement. In these cases, TRUNCATE TABLE should still
|
||||
# be replicated as a statement.
|
||||
|
||||
let $before_truncate = SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
||||
source extra/binlog_tests/binlog_truncate.test;
|
||||
|
||||
let $before_truncate = SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
|
||||
source extra/binlog_tests/binlog_truncate.test;
|
||||
|
||||
let $before_truncate = SET TRANSACTION ISOLATION LEVEL REPEATABLE READ;
|
||||
source extra/binlog_tests/binlog_truncate.test;
|
||||
|
||||
let $before_truncate = SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
|
||||
source extra/binlog_tests/binlog_truncate.test;
|
11
mysql-test/suite/binlog/t/binlog_truncate_myisam.test
Normal file
11
mysql-test/suite/binlog/t/binlog_truncate_myisam.test
Normal file
@ -0,0 +1,11 @@
|
||||
source include/have_log_bin.inc;
|
||||
|
||||
# It is necessary to reset the master since otherwise the binlog test
|
||||
# might show the wrong binary log. The default for SHOW BINLOG EVENTS
|
||||
# is to show the first binary log, not the current one (which is
|
||||
# actually a better idea).
|
||||
|
||||
RESET MASTER;
|
||||
|
||||
let $engine = MyISAM;
|
||||
source extra/binlog_tests/binlog_truncate.test;
|
@ -257,3 +257,17 @@ delimiter ;|
|
||||
CALL p1();
|
||||
DROP PROCEDURE p1;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
# Bug#42634: % character in query can cause mysqld signal 11 segfault
|
||||
#
|
||||
|
||||
--disable_warnings
|
||||
DROP TABLE IF EXISTS t1;
|
||||
--enable_warnings
|
||||
|
||||
CREATE TABLE t1 (a VARCHAR(100), b VARCHAR(100));
|
||||
INSERT INTO t1 VALUES ('a','b');
|
||||
UPDATE t1 SET b = '%s%s%s%s%s%s%s%s%s%s%s%s%s%s' WHERE a = 'a' LIMIT 1;
|
||||
DROP TABLE t1;
|
||||
|
||||
|
@ -9,3 +9,5 @@
|
||||
# Do not use any TAB characters for whitespace.
|
||||
#
|
||||
##############################################################################
|
||||
binlog_truncate_innodb : BUG#42643 2009-02-06 mats Changes to InnoDB requires to complete fix for BUG#36763
|
||||
|
||||
|
@ -103,7 +103,7 @@ END//
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -208,75 +208,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode
|
||||
@ -390,7 +321,7 @@ ALTER FUNCTION fn_2 MODIFIES SQL DATA;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -495,75 +426,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode
|
||||
@ -670,7 +532,7 @@ ALTER FUNCTION fn_2 CONTAINS SQL;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -775,75 +637,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode
|
||||
|
@ -348,13 +348,13 @@ for each row set @test_var2='trig1_a';
|
||||
create trigger trig_db2.trig2 before insert on trig_db2.t1
|
||||
for each row set @test_var3='trig2';
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema like 'trig_db%'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
trig_db1 trig1_a t1
|
||||
trig_db1 trig1_b t1
|
||||
trig_db2 trig2 t1
|
||||
mtr ts_insert test_suppressions
|
||||
set @test_var1= '', @test_var2= '', @test_var3= '';
|
||||
insert into t1 (f1,f2) values ('insert to db1 t1 from db1',352);
|
||||
insert into trig_db2.t1 (f1,f2) values ('insert to db2 t1 from db1',352);
|
||||
|
@ -90,10 +90,10 @@ f1
|
||||
Trigger 3.5.4.1
|
||||
drop trigger trg1;
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema = 'db_drop'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
mtr ts_insert test_suppressions
|
||||
Insert into t1 values ('Insert no trigger 3.5.4.1');
|
||||
Select * from t1 order by f1;
|
||||
f1
|
||||
@ -151,12 +151,8 @@ Select * from t1;
|
||||
f1
|
||||
Trigger 3.5.4.4
|
||||
Drop database db_drop4;
|
||||
Show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
Show databases like 'db_drop4';
|
||||
Database (db_drop4)
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers
|
||||
where information_schema.triggers.trigger_name='trg4';
|
||||
|
@ -5246,7 +5246,7 @@ WHERE select_id = 1 OR select_id IS NULL order by id;
|
||||
sqrt(my_bigint) my_bigint id
|
||||
NULL NULL 1
|
||||
NULL -9223372036854775808 2
|
||||
3037000499.976 9223372036854775807 3
|
||||
3037000499.97605 9223372036854775807 3
|
||||
0 0 4
|
||||
NULL -1 5
|
||||
2 4 6
|
||||
@ -5260,7 +5260,7 @@ WHERE select_id = 1 OR select_id IS NULL) order by id;
|
||||
sqrt(my_bigint) my_bigint id
|
||||
NULL NULL 1
|
||||
NULL -9223372036854775808 2
|
||||
3037000499.976 9223372036854775807 3
|
||||
3037000499.97605 9223372036854775807 3
|
||||
0 0 4
|
||||
NULL -1 5
|
||||
2 4 6
|
||||
|
@ -104,7 +104,7 @@ END//
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -209,75 +209,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode NO_ENGINE_SUBSTITUTION
|
||||
@ -391,7 +322,7 @@ ALTER FUNCTION fn_2 MODIFIES SQL DATA;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -496,75 +427,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode NO_ENGINE_SUBSTITUTION
|
||||
@ -671,7 +533,7 @@ ALTER FUNCTION fn_2 CONTAINS SQL;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -776,75 +638,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode NO_ENGINE_SUBSTITUTION
|
||||
|
@ -349,13 +349,13 @@ for each row set @test_var2='trig1_a';
|
||||
create trigger trig_db2.trig2 before insert on trig_db2.t1
|
||||
for each row set @test_var3='trig2';
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema like 'trig_db%'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
trig_db1 trig1_a t1
|
||||
trig_db1 trig1_b t1
|
||||
trig_db2 trig2 t1
|
||||
mtr ts_insert test_suppressions
|
||||
set @test_var1= '', @test_var2= '', @test_var3= '';
|
||||
insert into t1 (f1,f2) values ('insert to db1 t1 from db1',352);
|
||||
insert into trig_db2.t1 (f1,f2) values ('insert to db2 t1 from db1',352);
|
||||
|
@ -91,10 +91,10 @@ f1
|
||||
Trigger 3.5.4.1
|
||||
drop trigger trg1;
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema = 'db_drop'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
mtr ts_insert test_suppressions
|
||||
Insert into t1 values ('Insert no trigger 3.5.4.1');
|
||||
Select * from t1 order by f1;
|
||||
f1
|
||||
@ -152,12 +152,8 @@ Select * from t1;
|
||||
f1
|
||||
Trigger 3.5.4.4
|
||||
Drop database db_drop4;
|
||||
Show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
Show databases like 'db_drop4';
|
||||
Database (db_drop4)
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers
|
||||
where information_schema.triggers.trigger_name='trg4';
|
||||
|
@ -22826,7 +22826,7 @@ f1 f2
|
||||
ABC 3
|
||||
SELECT * FROM v1 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
ALTER TABLE t1 CHANGE COLUMN f2 f2 VARCHAR(30);
|
||||
INSERT INTO t1 SET f1 = 'ABC', f2 = 'DEF';
|
||||
DESCRIBE t1;
|
||||
@ -22844,7 +22844,7 @@ ABC DEF
|
||||
SELECT * FROM v1 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 0
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
SELECT SQRT('DEF');
|
||||
SQRT('DEF')
|
||||
0
|
||||
@ -22864,7 +22864,7 @@ my_sqrt double YES NULL
|
||||
SELECT * FROM v2 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 0
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
CREATE TABLE t2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
|
||||
SELECT * FROM t2 order by 2;
|
||||
f1 ABC
|
||||
|
@ -5246,7 +5246,7 @@ WHERE select_id = 1 OR select_id IS NULL order by id;
|
||||
sqrt(my_bigint) my_bigint id
|
||||
NULL NULL 1
|
||||
NULL -9223372036854775808 2
|
||||
3037000499.976 9223372036854775807 3
|
||||
3037000499.97605 9223372036854775807 3
|
||||
0 0 4
|
||||
NULL -1 5
|
||||
2 4 6
|
||||
@ -5260,7 +5260,7 @@ WHERE select_id = 1 OR select_id IS NULL) order by id;
|
||||
sqrt(my_bigint) my_bigint id
|
||||
NULL NULL 1
|
||||
NULL -9223372036854775808 2
|
||||
3037000499.976 9223372036854775807 3
|
||||
3037000499.97605 9223372036854775807 3
|
||||
0 0 4
|
||||
NULL -1 5
|
||||
2 4 6
|
||||
|
@ -104,7 +104,7 @@ END//
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -209,75 +209,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode NO_ENGINE_SUBSTITUTION
|
||||
@ -391,7 +322,7 @@ ALTER FUNCTION fn_2 MODIFIES SQL DATA;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -496,75 +427,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode NO_ENGINE_SUBSTITUTION
|
||||
@ -671,7 +533,7 @@ ALTER FUNCTION fn_2 CONTAINS SQL;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -776,75 +638,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode NO_ENGINE_SUBSTITUTION
|
||||
|
@ -349,13 +349,13 @@ for each row set @test_var2='trig1_a';
|
||||
create trigger trig_db2.trig2 before insert on trig_db2.t1
|
||||
for each row set @test_var3='trig2';
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema like 'trig_db%'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
trig_db1 trig1_a t1
|
||||
trig_db1 trig1_b t1
|
||||
trig_db2 trig2 t1
|
||||
mtr ts_insert test_suppressions
|
||||
set @test_var1= '', @test_var2= '', @test_var3= '';
|
||||
insert into t1 (f1,f2) values ('insert to db1 t1 from db1',352);
|
||||
insert into trig_db2.t1 (f1,f2) values ('insert to db2 t1 from db1',352);
|
||||
|
@ -91,10 +91,10 @@ f1
|
||||
Trigger 3.5.4.1
|
||||
drop trigger trg1;
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema = 'db_drop'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
mtr ts_insert test_suppressions
|
||||
Insert into t1 values ('Insert no trigger 3.5.4.1');
|
||||
Select * from t1 order by f1;
|
||||
f1
|
||||
@ -152,12 +152,8 @@ Select * from t1;
|
||||
f1
|
||||
Trigger 3.5.4.4
|
||||
Drop database db_drop4;
|
||||
Show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
Show databases like 'db_drop4';
|
||||
Database (db_drop4)
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers
|
||||
where information_schema.triggers.trigger_name='trg4';
|
||||
|
@ -24528,7 +24528,7 @@ f1 f2
|
||||
ABC 3
|
||||
SELECT * FROM v1 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
ALTER TABLE t1 CHANGE COLUMN f2 f2 VARCHAR(30);
|
||||
INSERT INTO t1 SET f1 = 'ABC', f2 = 'DEF';
|
||||
DESCRIBE t1;
|
||||
@ -24546,7 +24546,7 @@ ABC DEF
|
||||
SELECT * FROM v1 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 0
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
SELECT SQRT('DEF');
|
||||
SQRT('DEF')
|
||||
0
|
||||
@ -24566,7 +24566,7 @@ my_sqrt double YES NULL
|
||||
SELECT * FROM v2 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 0
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
CREATE TABLE t2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
|
||||
SELECT * FROM t2 order by 2;
|
||||
f1 ABC
|
||||
|
@ -5245,7 +5245,7 @@ WHERE select_id = 1 OR select_id IS NULL order by id;
|
||||
sqrt(my_bigint) my_bigint id
|
||||
NULL NULL 1
|
||||
NULL -9223372036854775808 2
|
||||
3037000499.976 9223372036854775807 3
|
||||
3037000499.97605 9223372036854775807 3
|
||||
0 0 4
|
||||
NULL -1 5
|
||||
2 4 6
|
||||
@ -5259,7 +5259,7 @@ WHERE select_id = 1 OR select_id IS NULL) order by id;
|
||||
sqrt(my_bigint) my_bigint id
|
||||
NULL NULL 1
|
||||
NULL -9223372036854775808 2
|
||||
3037000499.976 9223372036854775807 3
|
||||
3037000499.97605 9223372036854775807 3
|
||||
0 0 4
|
||||
NULL -1 5
|
||||
2 4 6
|
||||
|
@ -103,7 +103,7 @@ END//
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -208,75 +208,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode
|
||||
@ -390,7 +321,7 @@ ALTER FUNCTION fn_2 MODIFIES SQL DATA;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -495,75 +426,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode
|
||||
@ -670,7 +532,7 @@ ALTER FUNCTION fn_2 CONTAINS SQL;
|
||||
|
||||
... now check what is stored:
|
||||
-----------------------------
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
SPECIFIC_NAME fn_1
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA db_storedproc
|
||||
@ -775,75 +637,6 @@ DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME add_suppression
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME add_suppression
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN INSERT INTO test_suppressions (pattern) VALUES (pattern); END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_testcase
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_testcase
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN SELECT * FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE variable_name != 'timestamp' ORDER BY VARIABLE_NAME; SELECT * FROM INFORMATION_SCHEMA.SCHEMATA; SELECT table_name AS tables_in_test FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='test'; SELECT CONCAT(table_schema, '.', table_name) AS tables_in_mysql FROM INFORMATION_SCHEMA.TABLES WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY tables_in_mysql; SELECT CONCAT(table_schema, '.', table_name) AS columns_in_mysql, column_name, ordinal_position, column_default, is_nullable, data_type, character_maximum_length, character_octet_length, numeric_precision, numeric_scale, character_set_name, collation_name, column_type, column_key, extra, column_comment FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema='mysql' AND table_name != 'ndb_apply_status' ORDER BY columns_in_mysql; checksum table mysql.columns_priv, mysql.db, mysql.func, mysql.help_category, mysql.help_keyword, mysql.help_relation, mysql.host, mysql.proc, mysql.procs_priv, mysql.tables_priv, mysql.time_zone, mysql.time_zone_leap_second, mysql.time_zone_name, mysql.time_zone_transition, mysql.time_zone_transition_type, mysql.user; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SPECIFIC_NAME check_warnings
|
||||
ROUTINE_CATALOG NULL
|
||||
ROUTINE_SCHEMA mtr
|
||||
ROUTINE_NAME check_warnings
|
||||
ROUTINE_TYPE PROCEDURE
|
||||
DTD_IDENTIFIER NULL
|
||||
ROUTINE_BODY SQL
|
||||
ROUTINE_DEFINITION BEGIN DECLARE `pos` bigint unsigned; SET SQL_LOG_BIN=0; UPDATE error_log el, global_suppressions gs SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP gs.pattern; UPDATE error_log el, test_suppressions ts SET suspicious=0 WHERE el.suspicious=1 AND el.line REGEXP ts.pattern; SELECT COUNT(*) INTO @num_warnings FROM error_log WHERE suspicious=1; IF @num_warnings > 0 THEN SELECT file_name, line FROM error_log WHERE suspicious=1; SELECT 2 INTO result; ELSE SELECT 0 INTO RESULT; END IF; TRUNCATE test_suppressions; DROP TABLE error_log; END
|
||||
EXTERNAL_NAME NULL
|
||||
EXTERNAL_LANGUAGE NULL
|
||||
PARAMETER_STYLE SQL
|
||||
IS_DETERMINISTIC NO
|
||||
SQL_DATA_ACCESS CONTAINS SQL
|
||||
SQL_PATH NULL
|
||||
SECURITY_TYPE DEFINER
|
||||
CREATED <modified>
|
||||
LAST_ALTERED <created>
|
||||
SQL_MODE
|
||||
ROUTINE_COMMENT
|
||||
DEFINER root@localhost
|
||||
CHARACTER_SET_CLIENT latin1
|
||||
COLLATION_CONNECTION latin1_swedish_ci
|
||||
DATABASE_COLLATION latin1_swedish_ci
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
Function fn_1
|
||||
sql_mode
|
||||
|
@ -348,13 +348,13 @@ for each row set @test_var2='trig1_a';
|
||||
create trigger trig_db2.trig2 before insert on trig_db2.t1
|
||||
for each row set @test_var3='trig2';
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema like 'trig_db%'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
trig_db1 trig1_a t1
|
||||
trig_db1 trig1_b t1
|
||||
trig_db2 trig2 t1
|
||||
mtr ts_insert test_suppressions
|
||||
set @test_var1= '', @test_var2= '', @test_var3= '';
|
||||
insert into t1 (f1,f2) values ('insert to db1 t1 from db1',352);
|
||||
insert into trig_db2.t1 (f1,f2) values ('insert to db2 t1 from db1',352);
|
||||
|
@ -90,10 +90,10 @@ f1
|
||||
Trigger 3.5.4.1
|
||||
drop trigger trg1;
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema = 'db_drop'
|
||||
order by trigger_name;
|
||||
trigger_schema trigger_name event_object_table
|
||||
mtr gs_insert global_suppressions
|
||||
mtr ts_insert test_suppressions
|
||||
Insert into t1 values ('Insert no trigger 3.5.4.1');
|
||||
Select * from t1 order by f1;
|
||||
f1
|
||||
@ -151,12 +151,8 @@ Select * from t1;
|
||||
f1
|
||||
Trigger 3.5.4.4
|
||||
Drop database db_drop4;
|
||||
Show databases;
|
||||
Database
|
||||
information_schema
|
||||
mtr
|
||||
mysql
|
||||
test
|
||||
Show databases like 'db_drop4';
|
||||
Database (db_drop4)
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers
|
||||
where information_schema.triggers.trigger_name='trg4';
|
||||
|
@ -22824,7 +22824,7 @@ f1 f2
|
||||
ABC 3
|
||||
SELECT * FROM v1 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
ALTER TABLE t1 CHANGE COLUMN f2 f2 VARCHAR(30);
|
||||
INSERT INTO t1 SET f1 = 'ABC', f2 = 'DEF';
|
||||
DESCRIBE t1;
|
||||
@ -22842,7 +22842,7 @@ ABC DEF
|
||||
SELECT * FROM v1 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 0
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
SELECT SQRT('DEF');
|
||||
SQRT('DEF')
|
||||
0
|
||||
@ -22862,7 +22862,7 @@ my_sqrt double YES NULL
|
||||
SELECT * FROM v2 order by 2;
|
||||
f1 my_sqrt
|
||||
ABC 0
|
||||
ABC 1.7320508075689
|
||||
ABC 1.73205080756888
|
||||
CREATE TABLE t2 AS SELECT f1, SQRT(f2) my_sqrt FROM t1;
|
||||
SELECT * FROM t2 order by 2;
|
||||
f1 ABC
|
||||
|
@ -92,11 +92,8 @@ END//
|
||||
ERROR 42000: Identifier name 'sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde' is too long
|
||||
CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( 'abc' );
|
||||
ERROR 42000: Identifier name 'sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde' is too long
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 BINARY )
|
||||
LANGUAGE SQL DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
@ -109,12 +106,9 @@ CALL sp1( 34 );
|
||||
3
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'f1' at row 1
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sp1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 BLOB )
|
||||
LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
@ -125,12 +119,9 @@ END//
|
||||
CALL sp1( 34 );
|
||||
@v1
|
||||
34
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sp1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 INT )
|
||||
LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
@ -141,12 +132,9 @@ END//
|
||||
CALL sp1( 34 );
|
||||
@v1
|
||||
34
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sp1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 DECIMAL(256, 30) )
|
||||
LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
@ -185,13 +173,10 @@ LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
BEGIN
|
||||
RETURN f1;
|
||||
END//
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sproc_1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
SHOW FUNCTION STATUS;
|
||||
SHOW FUNCTION STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc func_1 FUNCTION root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
UPDATE t1_aux SET f1 = NULL;
|
||||
@ -1431,12 +1416,9 @@ f1
|
||||
value1
|
||||
Warnings:
|
||||
Note 1291 Column '' has duplicated value 'value1' in ENUM
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sp1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 SET("value1", "value1") )
|
||||
LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
@ -1451,12 +1433,9 @@ value1
|
||||
Warnings:
|
||||
Note 1291 Column '' has duplicated value 'value1' in SET
|
||||
Warning 1265 Data truncated for column 'f1' at row 1
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sp1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 ENUM("value1", "value1") )
|
||||
LANGUAGE SQL NOT DETERMINISTIC SQL SECURITY INVOKER COMMENT 'this is simple'
|
||||
@ -1470,12 +1449,9 @@ f1
|
||||
value1
|
||||
Warnings:
|
||||
Note 1291 Column '' has duplicated value 'value1' in ENUM
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
Db Name Type Definer Modified Created Security_type Comment character_set_client collation_connection Database Collation
|
||||
db_storedproc sp1 PROCEDURE root@localhost <modified> <created> INVOKER this is simple latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr add_suppression PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_testcase PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
mtr check_warnings PROCEDURE root@localhost <modified> <created> DEFINER latin1 latin1_swedish_ci latin1_swedish_ci
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( f1 TEXT ) LANGUAGE SQL SELECT f1;
|
||||
CALL sp1( 'abc' );
|
||||
|
@ -2,15 +2,14 @@
|
||||
#
|
||||
# used from .../storedproc_08.inc to show all created / altered routines
|
||||
|
||||
let $message= ... now check what is stored:;
|
||||
--source include/show_msg.inc
|
||||
--echo
|
||||
--echo ... now check what is stored:
|
||||
--echo -----------------------------
|
||||
|
||||
--vertical_results
|
||||
|
||||
#--replace_column 16 "YYYY-MM-DD hh:mm:ss" 17 "YYYY-MM-DD hh:mm:ss"
|
||||
|
||||
--replace_column 16 <modified> 17 <created>
|
||||
SELECT * FROM information_schema.routines;
|
||||
SELECT * FROM information_schema.routines where routine_schema = 'db_storedproc';
|
||||
|
||||
|
||||
SHOW CREATE FUNCTION fn_1;
|
||||
|
@ -72,7 +72,7 @@ delimiter ;//
|
||||
CALL sp1_thisisaveryverylongname234872934_thisisaveryverylongnameabcde( 'abc' );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
@ -90,7 +90,7 @@ delimiter ;//
|
||||
CALL sp1( 34 );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
@ -108,7 +108,7 @@ delimiter ;//
|
||||
CALL sp1( 34 );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
@ -126,7 +126,7 @@ delimiter ;//
|
||||
CALL sp1( 34 );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
@ -191,9 +191,9 @@ BEGIN
|
||||
END//
|
||||
delimiter ;//
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW FUNCTION STATUS;
|
||||
SHOW FUNCTION STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
let $test_value = 1.7976931348623157493578e+308;
|
||||
--source suite/funcs_1/storedproc/param_check.inc
|
||||
@ -245,7 +245,7 @@ delimiter ;//
|
||||
CALL sp1( "value1" );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
@ -262,7 +262,7 @@ delimiter ;//
|
||||
CALL sp1( "value1, value1" );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
@ -279,7 +279,7 @@ delimiter ;//
|
||||
CALL sp1( "value1" );
|
||||
|
||||
--replace_column 5 <modified> 6 <created>
|
||||
SHOW PROCEDURE STATUS;
|
||||
SHOW PROCEDURE STATUS WHERE db = 'db_storedproc';
|
||||
|
||||
--disable_warnings
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
|
@ -458,7 +458,9 @@ let $message= Testcase 3.5.2.1/2/3:;
|
||||
create trigger trig_db2.trig2 before insert on trig_db2.t1
|
||||
for each row set @test_var3='trig2';
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema like 'trig_db%'
|
||||
order by trigger_name;
|
||||
|
||||
set @test_var1= '', @test_var2= '', @test_var3= '';
|
||||
insert into t1 (f1,f2) values ('insert to db1 t1 from db1',352);
|
||||
|
@ -60,7 +60,9 @@ let $message= Testcase 3.5.4.1:;
|
||||
connection con1_super;
|
||||
drop trigger trg1;
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers order by trigger_name;
|
||||
from information_schema.triggers
|
||||
where trigger_schema = 'db_drop'
|
||||
order by trigger_name;
|
||||
connection con1_general;
|
||||
Insert into t1 values ('Insert no trigger 3.5.4.1');
|
||||
Select * from t1 order by f1;
|
||||
@ -160,7 +162,7 @@ let $message= Testcase 3.5.4.4:;
|
||||
Select * from t1;
|
||||
connection con1_super;
|
||||
Drop database db_drop4;
|
||||
Show databases;
|
||||
Show databases like 'db_drop4';
|
||||
select trigger_schema, trigger_name, event_object_table
|
||||
from information_schema.triggers
|
||||
where information_schema.triggers.trigger_name='trg4';
|
||||
|
@ -292,7 +292,7 @@ Note 1003 select astext(startpoint(`test`.`gis_line`.`g`)) AS `AsText(StartPoint
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
108 POINT(15 15)
|
||||
109 POINT(25.416666666667 25.416666666667)
|
||||
109 POINT(25.4166666666667 25.4166666666667)
|
||||
110 POINT(20 10)
|
||||
SELECT fid, Area(g) FROM gis_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
@ -326,8 +326,8 @@ fid IsClosed(g)
|
||||
116 0
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
117 POINT(55.588527753042 17.426536064114)
|
||||
118 POINT(55.588527753042 17.426536064114)
|
||||
117 POINT(55.5885277530424 17.426536064114)
|
||||
118 POINT(55.5885277530424 17.426536064114)
|
||||
119 POINT(2 2)
|
||||
SELECT fid, Area(g) FROM gis_multi_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
@ -842,7 +842,7 @@ Note 1003 select astext(startpoint(`test`.`gis_line`.`g`)) AS `AsText(StartPoint
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
108 POINT(15 15)
|
||||
109 POINT(25.416666666667 25.416666666667)
|
||||
109 POINT(25.4166666666667 25.4166666666667)
|
||||
110 POINT(20 10)
|
||||
SELECT fid, Area(g) FROM gis_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
@ -876,8 +876,8 @@ fid IsClosed(g)
|
||||
116 0
|
||||
SELECT fid, AsText(Centroid(g)) FROM gis_multi_polygon ORDER by fid;
|
||||
fid AsText(Centroid(g))
|
||||
117 POINT(55.588527753042 17.426536064114)
|
||||
118 POINT(55.588527753042 17.426536064114)
|
||||
117 POINT(55.5885277530424 17.426536064114)
|
||||
118 POINT(55.5885277530424 17.426536064114)
|
||||
119 POINT(2 2)
|
||||
SELECT fid, Area(g) FROM gis_multi_polygon ORDER by fid;
|
||||
fid Area(g)
|
||||
|
@ -1,6 +1,12 @@
|
||||
-- source include/have_ndb.inc
|
||||
-- source include/not_embedded.inc
|
||||
|
||||
# Bug#41308: Test main.ndb_autodiscover.test doesn't work on Windows due
|
||||
# to 'grep' calls
|
||||
# Test is currently disabled on Windows via the next line until this bug
|
||||
# can be resolved.
|
||||
--source include/not_windows.inc
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9,t10;
|
||||
--enable_warnings
|
||||
|
@ -29,10 +29,11 @@ INSERT INTO t1 VALUES (5), (16);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (17);
|
||||
INSERT INTO t1 VALUES (19), (NULL);
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (NULL), (10), (NULL);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -116,16 +117,17 @@ ENGINE=$engine
|
||||
PARTITION BY HASH(c2)
|
||||
PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_KEY, ER_DUP_ENTRY
|
||||
INSERT INTO t1 VALUES (1, 1), (99, 99);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
let $old_sql_mode = `select @@session.sql_mode`;
|
||||
SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (1, 0);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -140,7 +142,7 @@ eval CREATE TABLE t1 (
|
||||
ENGINE=$engine
|
||||
PARTITION BY HASH(c2)
|
||||
PARTITIONS 2;
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (1, 0);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -163,26 +165,27 @@ PARTITION BY HASH(c1)
|
||||
PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (2), (4), (NULL);
|
||||
INSERT INTO t1 VALUES (0);
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_KEY, ER_DUP_ENTRY
|
||||
INSERT INTO t1 VALUES (5), (16);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (17), (19), (NULL);
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (NULL), (10), (NULL);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Archive) mysql_errno: $mysql_errno;
|
||||
}
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (NULL), (9);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Archive) mysql_errno: $mysql_errno;
|
||||
}
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (59), (55);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -270,7 +273,7 @@ SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test'
|
||||
AND TABLE_NAME='t1';
|
||||
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test'
|
||||
AND TABLE_NAME='t1';
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (10);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -281,7 +284,7 @@ INSERT INTO t1 VALUES (NULL);
|
||||
SELECT AUTO_INCREMENT FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='test'
|
||||
AND TABLE_NAME='t1';
|
||||
INSERT INTO t1 VALUES (NULL);
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (15);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -340,7 +343,7 @@ connection con1;
|
||||
INSERT INTO t1 (c1) VALUES (NULL);
|
||||
connection default;
|
||||
-- echo # con default
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 (c1) VALUES (16);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -426,7 +429,7 @@ connection con1;
|
||||
INSERT INTO t1 (c1) VALUES (NULL);
|
||||
connection default;
|
||||
-- echo # con default
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 (c1) VALUES (16);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -483,6 +486,7 @@ INSERT INTO t1 VALUES (1, 1);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
INSERT INTO t1 VALUES (2, NULL), (3, 11), (3, NULL), (2, 0);
|
||||
@ -492,6 +496,7 @@ INSERT INTO t1 VALUES (2, 2);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (2, 22);
|
||||
INSERT INTO t1 VALUES (2, NULL);
|
||||
@ -527,16 +532,18 @@ INSERT INTO t1 VALUES (1, 1);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
INSERT INTO t1 VALUES (2, NULL);
|
||||
INSERT INTO t1 VALUES (3, NULL);
|
||||
INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL);
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 VALUES (2, 2);
|
||||
if (!$mysql_errno)
|
||||
{
|
||||
echo # ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY;
|
||||
echo # mysql_errno: $mysql_errno;
|
||||
}
|
||||
INSERT INTO t1 VALUES (2, 22), (2, NULL);
|
||||
SELECT * FROM t1 ORDER BY c1,c2;
|
||||
@ -550,7 +557,7 @@ eval CREATE TABLE t1 (c1 INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (c1))
|
||||
PARTITION BY HASH(c1)
|
||||
PARTITIONS 2;
|
||||
SHOW CREATE TABLE t1;
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 (c1) VALUES (4);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
@ -568,7 +575,7 @@ let $old_sql_mode = `select @@session.sql_mode`;
|
||||
SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||
INSERT INTO t1 (c1) VALUES (300);
|
||||
SHOW CREATE TABLE t1;
|
||||
-- error 0, ER_DUP_KEY
|
||||
-- error 0, ER_DUP_ENTRY, ER_DUP_KEY
|
||||
INSERT INTO t1 (c1) VALUES (0);
|
||||
if ($mysql_errno)
|
||||
{
|
||||
|
@ -86,7 +86,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -578,7 +578,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1085,7 +1085,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1588,7 +1588,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2087,7 +2087,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2597,7 +2597,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3107,7 +3107,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3607,7 +3607,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4100,7 +4100,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4592,7 +4592,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5099,7 +5099,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5602,7 +5602,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6101,7 +6101,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6611,7 +6611,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7121,7 +7121,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7621,7 +7621,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8115,7 +8115,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8623,7 +8623,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9146,7 +9146,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9665,7 +9665,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10180,7 +10180,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10706,7 +10706,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11232,7 +11232,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11748,7 +11748,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12257,7 +12257,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12765,7 +12765,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13288,7 +13288,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13807,7 +13807,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14322,7 +14322,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14848,7 +14848,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15374,7 +15374,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15890,7 +15890,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -16401,7 +16401,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -16894,7 +16894,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -17402,7 +17402,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -17906,7 +17906,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -18406,7 +18406,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -18917,7 +18917,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -19428,7 +19428,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -19929,7 +19929,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -20423,7 +20423,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -20916,7 +20916,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -21424,7 +21424,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -21928,7 +21928,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -22428,7 +22428,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -22939,7 +22939,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -23450,7 +23450,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -23951,7 +23951,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -24445,7 +24445,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -24938,7 +24938,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -25446,7 +25446,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -25950,7 +25950,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -26450,7 +26450,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -26961,7 +26961,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27472,7 +27472,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27973,7 +27973,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -94,7 +94,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -617,7 +617,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1161,7 +1161,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1697,7 +1697,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2233,7 +2233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2780,7 +2780,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3327,7 +3327,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3866,7 +3866,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4384,7 +4384,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4907,7 +4907,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5451,7 +5451,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5987,7 +5987,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6523,7 +6523,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7070,7 +7070,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7617,7 +7617,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8156,7 +8156,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -404,7 +404,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -896,7 +896,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1403,7 +1403,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1906,7 +1906,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2405,7 +2405,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2917,7 +2917,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3427,7 +3427,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3927,7 +3927,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4420,7 +4420,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4912,7 +4912,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5419,7 +5419,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5922,7 +5922,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6421,7 +6421,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6933,7 +6933,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7443,7 +7443,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7943,7 +7943,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8437,7 +8437,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8945,7 +8945,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9468,7 +9468,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9987,7 +9987,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10502,7 +10502,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11030,7 +11030,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11556,7 +11556,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12072,7 +12072,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12581,7 +12581,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13089,7 +13089,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13612,7 +13612,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14131,7 +14131,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14646,7 +14646,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15174,7 +15174,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15700,7 +15700,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -16216,7 +16216,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -253,7 +253,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -776,7 +776,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1320,7 +1320,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -1856,7 +1856,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2392,7 +2392,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -2941,7 +2941,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -3488,7 +3488,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4027,7 +4027,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4545,7 +4545,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5068,7 +5068,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5612,7 +5612,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6148,7 +6148,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6684,7 +6684,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7233,7 +7233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7780,7 +7780,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8319,7 +8319,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -3815,7 +3815,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4307,7 +4307,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4814,7 +4814,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5317,7 +5317,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5816,7 +5816,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6328,7 +6328,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6838,7 +6838,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7338,7 +7338,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7831,7 +7831,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8323,7 +8323,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8830,7 +8830,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9333,7 +9333,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9832,7 +9832,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10344,7 +10344,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10854,7 +10854,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11354,7 +11354,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11848,7 +11848,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12356,7 +12356,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12879,7 +12879,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13398,7 +13398,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13913,7 +13913,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14441,7 +14441,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14967,7 +14967,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15483,7 +15483,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15992,7 +15992,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -16500,7 +16500,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -17023,7 +17023,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -17542,7 +17542,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -18057,7 +18057,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -18585,7 +18585,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -19111,7 +19111,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -19627,7 +19627,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27596,7 +27596,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28088,7 +28088,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28595,7 +28595,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29098,7 +29098,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29597,7 +29597,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30109,7 +30109,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30619,7 +30619,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31119,7 +31119,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31612,7 +31612,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32104,7 +32104,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32611,7 +32611,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33114,7 +33114,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33613,7 +33613,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34123,7 +34123,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34633,7 +34633,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35133,7 +35133,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35626,7 +35626,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36118,7 +36118,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36625,7 +36625,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -37128,7 +37128,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -37627,7 +37627,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -38139,7 +38139,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -38649,7 +38649,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -39149,7 +39149,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -39642,7 +39642,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -40134,7 +40134,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -40641,7 +40641,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -41144,7 +41144,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -41643,7 +41643,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -42153,7 +42153,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -42663,7 +42663,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -43163,7 +43163,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -43657,7 +43657,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -44165,7 +44165,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -44688,7 +44688,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -45207,7 +45207,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -45722,7 +45722,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -46250,7 +46250,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -46776,7 +46776,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -47292,7 +47292,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -47801,7 +47801,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -48309,7 +48309,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -48832,7 +48832,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -49351,7 +49351,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -49866,7 +49866,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -50392,7 +50392,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -50918,7 +50918,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -51434,7 +51434,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -51943,7 +51943,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -52451,7 +52451,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -52974,7 +52974,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -53493,7 +53493,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -54008,7 +54008,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -54536,7 +54536,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -55062,7 +55062,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -55578,7 +55578,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -56087,7 +56087,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -56595,7 +56595,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -57118,7 +57118,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -57637,7 +57637,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -58152,7 +58152,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -58678,7 +58678,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -59204,7 +59204,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -59720,7 +59720,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -3971,7 +3971,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4494,7 +4494,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5038,7 +5038,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5574,7 +5574,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6110,7 +6110,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6659,7 +6659,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7206,7 +7206,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7745,7 +7745,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8263,7 +8263,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8786,7 +8786,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9330,7 +9330,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9866,7 +9866,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10402,7 +10402,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10951,7 +10951,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11498,7 +11498,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12037,7 +12037,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -20311,7 +20311,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -20834,7 +20834,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -21378,7 +21378,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -21914,7 +21914,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -22450,7 +22450,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -22999,7 +22999,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -23546,7 +23546,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -24085,7 +24085,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -24603,7 +24603,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -25126,7 +25126,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -25670,7 +25670,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -26206,7 +26206,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -26742,7 +26742,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27289,7 +27289,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27836,7 +27836,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28375,7 +28375,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28893,7 +28893,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29416,7 +29416,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29960,7 +29960,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30496,7 +30496,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31032,7 +31032,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31581,7 +31581,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32128,7 +32128,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32667,7 +32667,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33185,7 +33185,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33708,7 +33708,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34252,7 +34252,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34788,7 +34788,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35324,7 +35324,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35871,7 +35871,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36418,7 +36418,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36957,7 +36957,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -3826,7 +3826,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4320,7 +4320,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4829,7 +4829,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5334,7 +5334,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5833,7 +5833,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6347,7 +6347,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6857,7 +6857,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7359,7 +7359,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7854,7 +7854,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8348,7 +8348,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8857,7 +8857,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9362,7 +9362,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9861,7 +9861,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10375,7 +10375,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10885,7 +10885,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11387,7 +11387,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11883,7 +11883,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12393,7 +12393,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12918,7 +12918,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13439,7 +13439,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -13954,7 +13954,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -14484,7 +14484,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15010,7 +15010,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -15528,7 +15528,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -16039,7 +16039,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -16549,7 +16549,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -17074,7 +17074,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -17595,7 +17595,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -18110,7 +18110,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -18640,7 +18640,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -19166,7 +19166,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -19684,7 +19684,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27712,7 +27712,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28207,7 +28207,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28717,7 +28717,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29223,7 +29223,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29727,7 +29727,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30242,7 +30242,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30757,7 +30757,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31260,7 +31260,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31756,7 +31756,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32251,7 +32251,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32761,7 +32761,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33267,7 +33267,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33771,7 +33771,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34286,7 +34286,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34801,7 +34801,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35304,7 +35304,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35800,7 +35800,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36295,7 +36295,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36805,7 +36805,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -37311,7 +37311,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -37815,7 +37815,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -38330,7 +38330,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -38845,7 +38845,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -39348,7 +39348,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -39844,7 +39844,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -40339,7 +40339,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -40849,7 +40849,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -41355,7 +41355,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -41859,7 +41859,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -42374,7 +42374,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -42889,7 +42889,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -43392,7 +43392,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'PRIMARY'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -43889,7 +43889,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -44400,7 +44400,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -44926,7 +44926,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -45448,7 +45448,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -45968,7 +45968,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -46499,7 +46499,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -47030,7 +47030,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -47549,7 +47549,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -48061,7 +48061,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -48572,7 +48572,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -49098,7 +49098,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -49620,7 +49620,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -50140,7 +50140,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -50671,7 +50671,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -51202,7 +51202,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -51721,7 +51721,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -52233,7 +52233,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -52744,7 +52744,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -53270,7 +53270,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -53792,7 +53792,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -54312,7 +54312,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -54843,7 +54843,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -55374,7 +55374,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -55893,7 +55893,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -56405,7 +56405,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -56916,7 +56916,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -57442,7 +57442,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -57964,7 +57964,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -58484,7 +58484,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -59015,7 +59015,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -59546,7 +59546,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -60065,7 +60065,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -3983,7 +3983,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -4508,7 +4508,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5054,7 +5054,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -5592,7 +5592,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6128,7 +6128,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -6679,7 +6679,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7226,7 +7226,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -7767,7 +7767,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8287,7 +8287,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -8812,7 +8812,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9358,7 +9358,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -9896,7 +9896,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10432,7 +10432,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -10983,7 +10983,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -11530,7 +11530,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -12071,7 +12071,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx1'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -20404,7 +20404,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -20930,7 +20930,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -21477,7 +21477,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -22016,7 +22016,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -22557,7 +22557,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -23109,7 +23109,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -23661,7 +23661,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -24203,7 +24203,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -24724,7 +24724,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -25250,7 +25250,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -25797,7 +25797,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -26336,7 +26336,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -26877,7 +26877,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27429,7 +27429,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -27981,7 +27981,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -28523,7 +28523,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29044,7 +29044,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -29570,7 +29570,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30117,7 +30117,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -30656,7 +30656,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31197,7 +31197,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -31749,7 +31749,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32301,7 +32301,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -32843,7 +32843,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33364,7 +33364,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -33890,7 +33890,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34437,7 +34437,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -34976,7 +34976,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -35517,7 +35517,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36069,7 +36069,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -36621,7 +36621,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
@ -37163,7 +37163,7 @@ INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
SELECT f_int1, f_int1, CAST(f_int1 AS CHAR),
|
||||
CAST(f_int1 AS CHAR), 'delete me' FROM t0_template
|
||||
WHERE f_int1 IN (2,3);
|
||||
ERROR 23000: Can't write; duplicate key in table 't1'
|
||||
ERROR 23000: Duplicate entry '2-2' for key 'uidx'
|
||||
# check prerequisites-3 success: 1
|
||||
# INFO: f_int1 AND/OR f_int2 AND/OR (f_int1,f_int2) is UNIQUE
|
||||
INSERT INTO t1 (f_int1, f_int2, f_char1, f_char2, f_charbig)
|
||||
|
@ -28,6 +28,7 @@ AUTO_INCREMENT
|
||||
INSERT INTO t1 VALUES (0);
|
||||
INSERT INTO t1 VALUES (5), (16);
|
||||
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (17);
|
||||
INSERT INTO t1 VALUES (19), (NULL);
|
||||
INSERT INTO t1 VALUES (NULL), (10), (NULL);
|
||||
@ -144,6 +145,7 @@ PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
INSERT INTO t1 VALUES (1, 1), (99, 99);
|
||||
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
SET @@session.sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||
INSERT INTO t1 VALUES (1, 0);
|
||||
@ -176,6 +178,7 @@ INSERT INTO t1 VALUES (2), (4), (NULL);
|
||||
INSERT INTO t1 VALUES (0);
|
||||
INSERT INTO t1 VALUES (5), (16);
|
||||
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (17), (19), (NULL);
|
||||
INSERT INTO t1 VALUES (NULL), (10), (NULL);
|
||||
INSERT INTO t1 VALUES (NULL), (9);
|
||||
@ -441,11 +444,13 @@ PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (1, 0);
|
||||
INSERT INTO t1 VALUES (1, 1);
|
||||
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
INSERT INTO t1 VALUES (2, NULL), (3, 11), (3, NULL), (2, 0);
|
||||
INSERT INTO t1 VALUES (2, NULL);
|
||||
INSERT INTO t1 VALUES (2, 2);
|
||||
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (2, 22);
|
||||
INSERT INTO t1 VALUES (2, NULL);
|
||||
SELECT * FROM t1 ORDER BY c1,c2;
|
||||
@ -462,12 +467,14 @@ PARTITIONS 2;
|
||||
INSERT INTO t1 VALUES (1, 0);
|
||||
INSERT INTO t1 VALUES (1, 1);
|
||||
# ERROR (only OK if Blackhole) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (1, NULL);
|
||||
INSERT INTO t1 VALUES (2, NULL);
|
||||
INSERT INTO t1 VALUES (3, NULL);
|
||||
INSERT INTO t1 VALUES (3, NULL), (2, 0), (2, NULL);
|
||||
INSERT INTO t1 VALUES (2, 2);
|
||||
# ERROR (only OK if Blackhole/NDB) should give ER_DUP_KEY or ER_DUP_ENTRY
|
||||
# mysql_errno: 0
|
||||
INSERT INTO t1 VALUES (2, 22), (2, NULL);
|
||||
SELECT * FROM t1 ORDER BY c1,c2;
|
||||
c1 c2
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user