mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 5.5->5.5-mwl248
This commit is contained in:
34
mysql-test/include/mysqlbinlog_have_debug.inc
Normal file
34
mysql-test/include/mysqlbinlog_have_debug.inc
Normal file
@ -0,0 +1,34 @@
|
||||
#############################################
|
||||
# checks if mysqlbinlog is debug compiled
|
||||
# this "cannot" be done simply by using
|
||||
# have_debug.inc
|
||||
#############################################
|
||||
|
||||
--disable_query_log
|
||||
--let $temp_out_help_file=$MYSQL_TMP_DIR/mysqlbinlog_help.tmp
|
||||
--exec $MYSQL_BINLOG --help>$temp_out_help_file
|
||||
let log_tmp=$temp_out_help_file;
|
||||
--let $temp_inc=$MYSQL_TMP_DIR/temp.inc
|
||||
let inc_tmp=$temp_inc;
|
||||
|
||||
--perl
|
||||
use strict;
|
||||
my $tmp_file= $ENV{'log_tmp'} or die "log_tmp not set";
|
||||
open(FILE, "$tmp_file") or die("Unable to open $tmp_file: $!\n");
|
||||
my $count = () = grep(/Output debug log/g,<FILE>);
|
||||
close FILE;
|
||||
|
||||
my $temp_inc= $ENV{'inc_tmp'} or die "temp_inc not set";
|
||||
open(FILE_INC,">", "$temp_inc") or die("can't open file \"$temp_inc\": $!");
|
||||
print FILE_INC '--let $is_debug= '.$count;
|
||||
close FILE_INC;
|
||||
EOF
|
||||
--source $temp_inc
|
||||
|
||||
if (!$is_debug)
|
||||
{
|
||||
--skip mysqlbinlog needs to be debug compiled
|
||||
}
|
||||
--remove_file $temp_out_help_file
|
||||
--remove_file $temp_inc
|
||||
--enable_query_log
|
@ -472,11 +472,13 @@ sub process_suite {
|
||||
else
|
||||
{
|
||||
my @combs;
|
||||
@combs = combinations_from_file($parent, "$suitedir/combinations")
|
||||
unless $suite->{skip};
|
||||
my $from = "$suitedir/combinations";
|
||||
@combs = combinations_from_file($parent, $from) unless $suite->{skip};
|
||||
$suite->{combinations} = [ @combs ];
|
||||
# in overlays it's a union of parent's and overlay's files.
|
||||
unshift @{$suite->{combinations}}, @{$parent->{combinations}} if $parent;
|
||||
unshift @{$suite->{combinations}},
|
||||
grep { not $skip_combinations{"$from => $_->{name}"} }
|
||||
@{$parent->{combinations}} if $parent;
|
||||
}
|
||||
|
||||
# suite.opt
|
||||
@ -1039,8 +1041,11 @@ sub get_tags_from_file($$) {
|
||||
$suite = load_suite_for_file($comb_file) if $prefix[0] eq '';
|
||||
my @comb;
|
||||
unless ($suite->{skip}) {
|
||||
@comb = combinations_from_file($over, "$prefix[0]$comb_file");
|
||||
push @comb, combinations_from_file(undef, "$prefix[1]$comb_file") if $over;
|
||||
my $from = "$prefix[0]$comb_file";
|
||||
@comb = combinations_from_file($over, $from);
|
||||
push @comb,
|
||||
grep { not $skip_combinations{"$from => $_->{name}"} }
|
||||
combinations_from_file(undef, "$prefix[1]$comb_file") if $over;
|
||||
}
|
||||
push @combinations, [ @comb ];
|
||||
|
||||
|
@ -1147,7 +1147,6 @@ sub command_line_setup {
|
||||
'start-from=s' => \&collect_option,
|
||||
'big-test+' => \$opt_big_test,
|
||||
'combination=s' => \@opt_combinations,
|
||||
'skip-combinations' => \&collect_option,
|
||||
'experimental=s' => \@opt_experimentals,
|
||||
# skip-im is deprecated and silently ignored
|
||||
'skip-im' => \&ignore_option,
|
||||
@ -6261,7 +6260,6 @@ Options to control what engine/variation to run
|
||||
all generated configs
|
||||
combination=<opt> Use at least twice to run tests with specified
|
||||
options to mysqld
|
||||
skip-combinations Ignore combination file (or options)
|
||||
|
||||
Options to control directories to use
|
||||
tmpdir=DIR The directory where temporary files are stored
|
||||
|
@ -53,8 +53,8 @@ set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
|
||||
create table t1 select 1 as i;;
|
||||
set debug_sync='now WAIT_FOR parked';
|
||||
alter table t3 rename to t1;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
set debug_sync='now SIGNAL go';
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
@ -65,8 +65,8 @@ set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
|
||||
create table t1 select 1 as i;;
|
||||
set debug_sync='now WAIT_FOR parked';
|
||||
alter table t3 rename to t1, add k int;
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
set debug_sync='now SIGNAL go';
|
||||
ERROR 42S01: Table 't1' already exists
|
||||
show create table t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
|
@ -2039,6 +2039,8 @@ hex(concat(a)) a
|
||||
30303030303030303030303030303031303030302E31 00000000000000010000.1
|
||||
drop table t1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
select hex(concat(a)) from t1;
|
||||
hex(concat(a))
|
||||
@ -2352,6 +2354,8 @@ hex(a)
|
||||
drop table t1;
|
||||
drop view v1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
create view v1(a) as select concat(a) from t1;
|
||||
show columns from v1;
|
||||
|
@ -2431,6 +2431,8 @@ hex(concat(a)) a
|
||||
30303030303030303030303030303031303030302E31 00000000000000010000.1
|
||||
drop table t1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
select hex(concat(a)) from t1;
|
||||
hex(concat(a))
|
||||
@ -2744,6 +2746,8 @@ hex(a)
|
||||
drop table t1;
|
||||
drop view v1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
create view v1(a) as select concat(a) from t1;
|
||||
show columns from v1;
|
||||
|
@ -2458,6 +2458,8 @@ hex(concat(a)) a
|
||||
30303030303030303030303030303031303030302E31 00000000000000010000.1
|
||||
drop table t1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
select hex(concat(a)) from t1;
|
||||
hex(concat(a))
|
||||
@ -2771,6 +2773,8 @@ hex(a)
|
||||
drop table t1;
|
||||
drop view v1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
create view v1(a) as select concat(a) from t1;
|
||||
show columns from v1;
|
||||
|
@ -3341,6 +3341,8 @@ hex(concat(a)) a
|
||||
00300030003000300030003000300030003000300030003000300030003000310030003000300030002E0031 00000000000000010000.1
|
||||
drop table t1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
select hex(concat(a)) from t1;
|
||||
hex(concat(a))
|
||||
@ -3654,6 +3656,8 @@ hex(a)
|
||||
drop table t1;
|
||||
drop view v1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
create view v1(a) as select concat(a) from t1;
|
||||
show columns from v1;
|
||||
|
@ -1182,5 +1182,11 @@ a 256
|
||||
Warnings:
|
||||
Warning 1260 Row 1 was cut by GROUP_CONCAT()
|
||||
#
|
||||
# incorrect charset for val_str_ascii
|
||||
#
|
||||
SELECT '2010-10-10 10:10:10' + INTERVAL GeometryType(GeomFromText('POINT(1 1)')) hour_second;
|
||||
'2010-10-10 10:10:10' + INTERVAL GeometryType(GeomFromText('POINT(1 1)')) hour_second
|
||||
2010-10-10 10:10:10
|
||||
#
|
||||
# End of 5.5 tests
|
||||
#
|
||||
|
@ -4197,6 +4197,8 @@ hex(concat(a)) a
|
||||
30303030303030303030303030303031303030302E31 00000000000000010000.1
|
||||
drop table t1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
select hex(concat(a)) from t1;
|
||||
hex(concat(a))
|
||||
@ -4510,6 +4512,8 @@ hex(a)
|
||||
drop table t1;
|
||||
drop view v1;
|
||||
create table t1 (a year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (1);
|
||||
create view v1(a) as select concat(a) from t1;
|
||||
show columns from v1;
|
||||
|
@ -1527,6 +1527,8 @@ DROP TABLE t1;
|
||||
# Bug#43668: Wrong comparison and MIN/MAX for YEAR(2)
|
||||
#
|
||||
create table t1 (f1 year(2), f2 year(4), f3 date, f4 datetime);
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values
|
||||
(98,1998,19980101,"1998-01-01 00:00:00"),
|
||||
(00,2000,20000101,"2000-01-01 00:00:01"),
|
||||
|
14
mysql-test/r/mdev375.result
Normal file
14
mysql-test/r/mdev375.result
Normal file
@ -0,0 +1,14 @@
|
||||
SET GLOBAL log_warnings=4;
|
||||
SET GLOBAL max_connections=2;
|
||||
SELECT 1;
|
||||
1
|
||||
1
|
||||
SELECT 2;
|
||||
2
|
||||
2
|
||||
ERROR HY000: Too many connections
|
||||
SELECT 0;
|
||||
0
|
||||
0
|
||||
SET GLOBAL log_warnings=default;
|
||||
SET GLOBAL max_connections=default;
|
@ -697,7 +697,7 @@ The following options may be given as the first argument:
|
||||
partial matching
|
||||
--rpl-recovery-rank=#
|
||||
Unused, will be removed
|
||||
--safe-mode Skip some optimize stages (for testing).
|
||||
--safe-mode Skip some optimize stages (for testing). Deprecated.
|
||||
--safe-user-create Don't allow new user creation by the user who has no
|
||||
write privileges to the mysql.user table.
|
||||
--secure-auth Disallow authentication for accounts that have old
|
||||
@ -737,6 +737,9 @@ The following options may be given as the first argument:
|
||||
--slave-load-tmpdir=name
|
||||
The location where the slave should put its temporary
|
||||
files when replicating a LOAD DATA INFILE command
|
||||
--slave-max-allowed-packet=#
|
||||
The maximum packet length to sent successfully from the
|
||||
master to slave.
|
||||
--slave-net-timeout=#
|
||||
Number of seconds to wait for more data from a
|
||||
master/slave connection before aborting the read
|
||||
@ -1060,6 +1063,7 @@ skip-show-database FALSE
|
||||
skip-slave-start FALSE
|
||||
slave-compressed-protocol FALSE
|
||||
slave-exec-mode STRICT
|
||||
slave-max-allowed-packet 1073741824
|
||||
slave-net-timeout 3600
|
||||
slave-skip-errors (No default value)
|
||||
slave-sql-verify-checksum TRUE
|
||||
|
@ -2073,7 +2073,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` varchar(30)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v2`*/;
|
||||
@ -2167,7 +2167,7 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`a` int(11)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v1`*/;
|
||||
@ -2241,7 +2241,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` varchar(30)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v2`*/;
|
||||
@ -2355,9 +2355,9 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`a` int(11),
|
||||
`b` int(11),
|
||||
`c` varchar(30)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v2`;
|
||||
@ -2365,7 +2365,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` int(11)
|
||||
`a` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v3`;
|
||||
@ -2373,9 +2373,9 @@ DROP TABLE IF EXISTS `v3`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v3` (
|
||||
`a` int(11),
|
||||
`b` int(11),
|
||||
`c` varchar(30)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v1`*/;
|
||||
@ -3112,9 +3112,9 @@ DROP TABLE IF EXISTS `v0`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v0` (
|
||||
`a` int(11),
|
||||
`b` varchar(32),
|
||||
`c` varchar(32)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v1`;
|
||||
@ -3122,9 +3122,9 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`a` int(11),
|
||||
`b` varchar(32),
|
||||
`c` varchar(32)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
DROP TABLE IF EXISTS `v2`;
|
||||
@ -3132,9 +3132,9 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`a` int(11),
|
||||
`b` varchar(32),
|
||||
`c` varchar(32)
|
||||
`a` tinyint NOT NULL,
|
||||
`b` tinyint NOT NULL,
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
@ -3514,7 +3514,7 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`id` int(11)
|
||||
`id` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
@ -3574,7 +3574,7 @@ USE `mysqldump_views`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `nasishnasifu` (
|
||||
`id` bigint(20) unsigned
|
||||
`id` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
@ -3967,7 +3967,7 @@ DROP TABLE IF EXISTS `v2`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v2` (
|
||||
`c` int(11)
|
||||
`c` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
/*!50001 DROP TABLE IF EXISTS `v2`*/;
|
||||
@ -4384,7 +4384,7 @@ DROP TABLE IF EXISTS `v1`;
|
||||
SET @saved_cs_client = @@character_set_client;
|
||||
SET character_set_client = utf8;
|
||||
/*!50001 CREATE TABLE `v1` (
|
||||
`id` int(11)
|
||||
`id` tinyint NOT NULL
|
||||
) ENGINE=MyISAM */;
|
||||
SET character_set_client = @saved_cs_client;
|
||||
|
||||
|
@ -878,6 +878,8 @@ ERROR 42000: Column length too big for column 'a' (max = 255); use BLOB or TEXT
|
||||
CREATE TABLE b15776 (a char(4294967296));
|
||||
ERROR 42000: Display width out of range for 'a' (max = 4294967295)
|
||||
CREATE TABLE b15776 (a year(4294967295));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(4294967295)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
INSERT INTO b15776 VALUES (42);
|
||||
SELECT * FROM b15776;
|
||||
a
|
||||
@ -886,6 +888,8 @@ DROP TABLE b15776;
|
||||
CREATE TABLE b15776 (a year(4294967296));
|
||||
ERROR 42000: Display width out of range for 'a' (max = 4294967295)
|
||||
CREATE TABLE b15776 (a year(0));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(0)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
DROP TABLE b15776;
|
||||
CREATE TABLE b15776 (a year(-2));
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-2))' at line 1
|
||||
|
@ -1,5 +1,7 @@
|
||||
drop table if exists t1;
|
||||
create table t1 (y year,y2 year(2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert into t1 values (0,0),(1999,1999),(2000,2000),(2001,2001),(70,70),(69,69);
|
||||
select * from t1;
|
||||
y y2
|
||||
@ -50,6 +52,8 @@ End of 5.0 tests
|
||||
# Bug #49480: WHERE using YEAR columns returns unexpected results
|
||||
#
|
||||
CREATE TABLE t2(yy YEAR(2), c2 CHAR(4));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CREATE TABLE t4(yyyy YEAR(4), c4 CHAR(4));
|
||||
INSERT INTO t2 (c2) VALUES (NULL),(1970),(1999),(2000),(2001),(2069);
|
||||
INSERT INTO t4 (c4) SELECT c2 FROM t2;
|
||||
@ -358,9 +362,22 @@ total_rows min_value MAX(c1+0)
|
||||
3 0 2155
|
||||
DROP TABLE t1;
|
||||
#
|
||||
# WL#6219: Deprecate and remove YEAR(2) type
|
||||
#
|
||||
CREATE TABLE t1 (c1 YEAR(2), c2 YEAR(4));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
ALTER TABLE t1 MODIFY COLUMN c2 YEAR(2);
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
DROP TABLE t1;
|
||||
#
|
||||
End of 5.1 tests
|
||||
create function y2k() returns int deterministic return 2000;
|
||||
create table t1 (a year(2), b int);
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
insert t1 values (0,2000);
|
||||
select a from t1 where a=2000;
|
||||
a
|
||||
|
@ -96,3 +96,21 @@ master-bin.000001 # Query # # use `test`; DROP VIEW IF EXISTS db_bug_13684.v
|
||||
master-bin.000001 # Query # # use `test`; DROP EVENT IF EXISTS db_bug_13684.e
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS `db_bug_13684`.`t` /* generated by server */
|
||||
master-bin.000001 # Query # # DROP DATABASE IF EXISTS db_bug_13684
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE /* comment */ t1;
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE IF EXISTS /* comment */ t1;
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE /**/ t1;
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE IF EXISTS /* */ t1;
|
||||
show binlog events from <binlog_start>;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(id int)
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE /* comment */ `t1` /* generated by server */
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(id int)
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS /* comment */ `t1` /* generated by server */
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(id int)
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE /**/ `t1` /* generated by server */
|
||||
master-bin.000001 # Query # # use `test`; CREATE TABLE t1(id int)
|
||||
master-bin.000001 # Query # # use `test`; DROP TABLE IF EXISTS /* */ `t1` /* generated by server */
|
||||
|
@ -113,3 +113,18 @@ if($fixed_bug_25705)
|
||||
--source include/show_binlog_events.inc
|
||||
|
||||
enable_warnings;
|
||||
|
||||
# Drop comments in binlog
|
||||
let $binlog_start= query_get_value(SHOW MASTER STATUS, Position, 1);
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE /* comment */ t1;
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE IF EXISTS /* comment */ t1;
|
||||
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE /**/ t1;
|
||||
CREATE TABLE t1(id int);
|
||||
DROP TABLE IF EXISTS /* */ t1;
|
||||
|
||||
--source include/show_binlog_events.inc
|
||||
|
||||
|
@ -16,7 +16,13 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 VALUES(NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
INSERT INTO t1 VALUES(NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
ANALYZE TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 analyze status OK
|
||||
|
@ -25,7 +25,15 @@ INSERT INTO t3 VALUES('2008-02-29 13:13:13');
|
||||
DROP TABLE t3;
|
||||
CREATE TABLE t3(c1 TIME NOT NULL);
|
||||
INSERT INTO t3 VALUES('1000-01-01 00:00:00');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t3 VALUES('1999-12-31 23:59:59');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t3 VALUES('2000-01-01 00:00:00');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t3 VALUES('2008-02-29 13:13:13');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
DROP TABLE t3;
|
||||
|
@ -77,6 +77,7 @@ utf8_persian_ci utf8 208 # #
|
||||
utf8_esperanto_ci utf8 209 # #
|
||||
utf8_hungarian_ci utf8 210 # #
|
||||
utf8_sinhala_ci utf8 211 # #
|
||||
utf8_croatian_ci utf8 213 # #
|
||||
utf8_general_mysql500_ci utf8 223 # #
|
||||
ucs2_general_ci ucs2 35 Yes # #
|
||||
ucs2_bin ucs2 90 # #
|
||||
@ -100,6 +101,7 @@ ucs2_persian_ci ucs2 144 # #
|
||||
ucs2_esperanto_ci ucs2 145 # #
|
||||
ucs2_hungarian_ci ucs2 146 # #
|
||||
ucs2_sinhala_ci ucs2 147 # #
|
||||
ucs2_croatian_ci ucs2 149 # #
|
||||
ucs2_general_mysql500_ci ucs2 159 # #
|
||||
cp866_general_ci cp866 36 Yes # #
|
||||
cp866_bin cp866 68 # #
|
||||
@ -137,6 +139,7 @@ utf8mb4_persian_ci utf8mb4 240 # #
|
||||
utf8mb4_esperanto_ci utf8mb4 241 # #
|
||||
utf8mb4_hungarian_ci utf8mb4 242 # #
|
||||
utf8mb4_sinhala_ci utf8mb4 243 # #
|
||||
utf8mb4_croatian_ci utf8mb4 245 # #
|
||||
cp1251_bulgarian_ci cp1251 14 # #
|
||||
cp1251_ukrainian_ci cp1251 23 # #
|
||||
cp1251_bin cp1251 50 # #
|
||||
@ -164,6 +167,7 @@ utf16_persian_ci utf16 117 # #
|
||||
utf16_esperanto_ci utf16 118 # #
|
||||
utf16_hungarian_ci utf16 119 # #
|
||||
utf16_sinhala_ci utf16 120 # #
|
||||
utf16_croatian_ci utf16 215 # #
|
||||
cp1256_general_ci cp1256 57 Yes # #
|
||||
cp1256_bin cp1256 67 # #
|
||||
cp1257_lithuanian_ci cp1257 29 # #
|
||||
@ -191,6 +195,7 @@ utf32_persian_ci utf32 176 # #
|
||||
utf32_esperanto_ci utf32 177 # #
|
||||
utf32_hungarian_ci utf32 178 # #
|
||||
utf32_sinhala_ci utf32 179 # #
|
||||
utf32_croatian_ci utf32 214 # #
|
||||
binary binary 63 Yes # #
|
||||
geostd8_general_ci geostd8 92 Yes # #
|
||||
geostd8_bin geostd8 93 # #
|
||||
|
@ -77,6 +77,7 @@ utf8_persian_ci utf8 208 # #
|
||||
utf8_esperanto_ci utf8 209 # #
|
||||
utf8_hungarian_ci utf8 210 # #
|
||||
utf8_sinhala_ci utf8 211 # #
|
||||
utf8_croatian_ci utf8 213 # #
|
||||
utf8_general_mysql500_ci utf8 223 # #
|
||||
ucs2_general_ci ucs2 35 Yes # #
|
||||
ucs2_bin ucs2 90 # #
|
||||
@ -100,6 +101,7 @@ ucs2_persian_ci ucs2 144 # #
|
||||
ucs2_esperanto_ci ucs2 145 # #
|
||||
ucs2_hungarian_ci ucs2 146 # #
|
||||
ucs2_sinhala_ci ucs2 147 # #
|
||||
ucs2_croatian_ci ucs2 149 # #
|
||||
ucs2_general_mysql500_ci ucs2 159 # #
|
||||
cp866_general_ci cp866 36 Yes # #
|
||||
cp866_bin cp866 68 # #
|
||||
@ -137,6 +139,7 @@ utf8mb4_persian_ci utf8mb4 240 # #
|
||||
utf8mb4_esperanto_ci utf8mb4 241 # #
|
||||
utf8mb4_hungarian_ci utf8mb4 242 # #
|
||||
utf8mb4_sinhala_ci utf8mb4 243 # #
|
||||
utf8mb4_croatian_ci utf8mb4 245 # #
|
||||
cp1251_bulgarian_ci cp1251 14 # #
|
||||
cp1251_ukrainian_ci cp1251 23 # #
|
||||
cp1251_bin cp1251 50 # #
|
||||
@ -164,6 +167,7 @@ utf16_persian_ci utf16 117 # #
|
||||
utf16_esperanto_ci utf16 118 # #
|
||||
utf16_hungarian_ci utf16 119 # #
|
||||
utf16_sinhala_ci utf16 120 # #
|
||||
utf16_croatian_ci utf16 215 # #
|
||||
cp1256_general_ci cp1256 57 Yes # #
|
||||
cp1256_bin cp1256 67 # #
|
||||
cp1257_lithuanian_ci cp1257 29 # #
|
||||
@ -191,6 +195,7 @@ utf32_persian_ci utf32 176 # #
|
||||
utf32_esperanto_ci utf32 177 # #
|
||||
utf32_hungarian_ci utf32 178 # #
|
||||
utf32_sinhala_ci utf32 179 # #
|
||||
utf32_croatian_ci utf32 214 # #
|
||||
binary binary 63 Yes # #
|
||||
geostd8_general_ci geostd8 92 Yes # #
|
||||
geostd8_bin geostd8 93 # #
|
||||
|
@ -9,7 +9,7 @@ mysql
|
||||
performance_schema
|
||||
test
|
||||
USE DATABASE nond6;
|
||||
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 'DATABASE nond6' at line 1
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'DATABASE nond6' at line 1
|
||||
DROP DATABASE d6;
|
||||
SHOW DATABASES;
|
||||
Database
|
||||
|
@ -33,10 +33,20 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1
|
||||
09:09:33
|
||||
@ -47,8 +57,6 @@ c1
|
||||
DELETE FROM t1 WHERE c1 <= ADDTIME(NOW(),'2 02:01:01');
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1
|
||||
12:10:34
|
||||
13:10:34
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 DATETIME NOT NULL PRIMARY KEY);
|
||||
SET TIMESTAMP=1171346973;
|
||||
|
@ -66,12 +66,42 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NULL, c3 TIME NULL, PRIMARY KEY(c1), UNIQUE(c2));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'4 04:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),ADDTIME(NOW(),'3 03:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'2 02:01:01'),ADDTIME(NOW(),'2 02:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'3 03:01:01'),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'4 04:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'2 02:01:01'),ADDTIME(NOW(),'2 02:01:01'),NOW()) ON DUPLICATE KEY UPDATE c3=ADDTIME(NOW(),'6 06:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c3=ADDTIME(NOW(),'6 06:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1 c2 c3
|
||||
09:09:33 13:10:34 15:10:34
|
||||
|
@ -29,8 +29,15 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1
|
||||
10:10:34
|
||||
|
@ -28,7 +28,11 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
ERROR 23000: Duplicate entry '09:09:33' for key 'PRIMARY'
|
||||
SELECT * FROM t1;
|
||||
|
@ -28,7 +28,11 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL PRIMARY KEY);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
ERROR 23000: Duplicate entry '09:09:33' for key 'PRIMARY'
|
||||
SELECT * FROM t1;
|
||||
|
@ -29,8 +29,15 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL UNIQUE);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1
|
||||
10:10:34
|
||||
|
@ -28,7 +28,11 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL UNIQUE);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
ERROR 23000: Duplicate entry '09:09:33' for key 'c1'
|
||||
SELECT * FROM t1;
|
||||
|
@ -28,8 +28,14 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL UNIQUE);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT IGNORE INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1
|
||||
09:09:33
|
||||
|
@ -61,11 +61,40 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1 c2 c3
|
||||
09:09:33 10:10:34 09:09:33
|
||||
|
@ -52,9 +52,25 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'PRIMARY'
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
|
@ -52,9 +52,25 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'PRIMARY'
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
|
@ -61,11 +61,40 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1 c2 c3
|
||||
09:09:33 10:10:34 09:09:33
|
||||
|
@ -52,9 +52,25 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
ERROR 23000: Duplicate entry '09:09:33-09:09:33-09:09:33' for key 'c1'
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
|
@ -56,11 +56,35 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NULL, c2 TIME NULL, c3 TIME NULL, UNIQUE(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT IGNORE INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1 c2 c3
|
||||
09:09:33 09:09:33 09:09:33
|
||||
|
@ -61,11 +61,40 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL, c2 TIME NOT NULL, c3 TIME NOT NULL, PRIMARY KEY(c1,c2,c3));
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),ADDTIME(NOW(),'1 01:01:01'),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(ADDTIME(NOW(),'1 01:01:01'),NOW(),NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),NOW()) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01'),c3=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
INSERT INTO t1 (c1,c2,c3) VALUES(NOW(),NOW(),ADDTIME(NOW(),'1 01:01:01')) ON DUPLICATE KEY UPDATE c1=ADDTIME(NOW(),'2 02:01:01'),c2=ADDTIME(NOW(),'2 02:01:01');
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
Note 1265 Data truncated for column 'c3' at row 1
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
Note 1265 Data truncated for column 'c2' at row 1
|
||||
SELECT * FROM t1;
|
||||
c1 c2 c3
|
||||
09:09:33 10:10:34 09:09:33
|
||||
|
@ -7,7 +7,7 @@ INSERT INTO t4 (c1) VALUES(0);
|
||||
INSERT INTO t4 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('9');
|
||||
SELECT COUNT(c1) AS total_rows FROM t4;
|
||||
total_rows
|
||||
@ -26,7 +26,7 @@ INSERT INTO t4 (c1) VALUES(0);
|
||||
INSERT INTO t4 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('9');
|
||||
SELECT COUNT(c1) AS total_rows FROM t4;
|
||||
total_rows
|
||||
@ -45,7 +45,7 @@ INSERT INTO t4 (c1) VALUES(0);
|
||||
INSERT INTO t4 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('9');
|
||||
SELECT COUNT(c1) AS total_rows FROM t4;
|
||||
total_rows
|
||||
@ -64,7 +64,7 @@ INSERT INTO t4 (c1) VALUES(0);
|
||||
INSERT INTO t4 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('9');
|
||||
SELECT COUNT(c1) AS total_rows FROM t4;
|
||||
total_rows
|
||||
@ -83,7 +83,7 @@ INSERT INTO t4 (c1) VALUES(0);
|
||||
INSERT INTO t4 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('9');
|
||||
SELECT COUNT(c1) AS total_rows FROM t4;
|
||||
total_rows
|
||||
@ -102,7 +102,7 @@ INSERT INTO t4 (c1) VALUES(0);
|
||||
INSERT INTO t4 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect integer value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t4 (c1) VALUES('9');
|
||||
SELECT COUNT(c1) AS total_rows FROM t4;
|
||||
total_rows
|
||||
|
@ -7,7 +7,7 @@ INSERT INTO t5 (c1) VALUES(0);
|
||||
INSERT INTO t5 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES(999999);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
SELECT COUNT(c1) AS total_rows FROM t5;
|
||||
@ -27,7 +27,7 @@ INSERT INTO t5 (c1) VALUES(0);
|
||||
INSERT INTO t5 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES(999999);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
SELECT COUNT(c1) AS total_rows FROM t5;
|
||||
@ -47,7 +47,7 @@ INSERT INTO t5 (c1) VALUES(0);
|
||||
INSERT INTO t5 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES(999999);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
SELECT COUNT(c1) AS total_rows FROM t5;
|
||||
@ -67,7 +67,7 @@ INSERT INTO t5 (c1) VALUES(0);
|
||||
INSERT INTO t5 (c1) VALUES(-1);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES('x');
|
||||
ERROR HY000: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
ERROR 22007: Incorrect decimal value: 'x' for column 'c1' at row 1
|
||||
INSERT INTO t5 (c1) VALUES(999999);
|
||||
ERROR 22003: Out of range value for column 'c1' at row 1
|
||||
SELECT COUNT(c1) AS total_rows FROM t5;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -13,13 +13,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
100
|
||||
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
1
|
||||
2
|
||||
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
DROP TABLE t1;
|
||||
@ -37,13 +34,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
100
|
||||
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
1
|
||||
2
|
||||
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
DROP TABLE t1;
|
||||
@ -61,13 +55,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
100
|
||||
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
1
|
||||
2
|
||||
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
DROP TABLE t1;
|
||||
@ -85,13 +76,10 @@ SELECT c1 FROM t1 WHERE c1 > ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 >= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
100
|
||||
SELECT c1 FROM t1 WHERE c1 = ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
SELECT c1 FROM t1 WHERE c1 <= ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
1
|
||||
2
|
||||
SELECT c1 FROM t1 WHERE c1 <> ALL (SELECT c1 FROM t2);
|
||||
c1
|
||||
DROP TABLE t1;
|
||||
|
@ -11,7 +11,7 @@ INSERT INTO t2 VALUES (2,'abcde');
|
||||
SELECT * FROM t1 WHERE c2 IN (SELECT c2 FROM t2 ORDER BY c1 LIMIT 1)
|
||||
--error 1241
|
||||
SELECT (SELECT c1, c2 FROM t2) FROM t1;
|
||||
ERROR 42000: This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
|
||||
ERROR 21000: Subquery returns more than 1 row
|
||||
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
|
||||
@ -30,7 +30,7 @@ INSERT INTO t2 VALUES (2,'abcde');
|
||||
SELECT * FROM t1 WHERE c2 IN (SELECT c2 FROM t2 ORDER BY c1 LIMIT 1)
|
||||
--error 1241
|
||||
SELECT (SELECT c1, c2 FROM t2) FROM t1;
|
||||
ERROR 42000: This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
|
||||
ERROR 21000: Subquery returns more than 1 row
|
||||
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
|
||||
@ -49,7 +49,7 @@ INSERT INTO t2 VALUES (2,'abcde');
|
||||
SELECT * FROM t1 WHERE c2 IN (SELECT c2 FROM t2 ORDER BY c1 LIMIT 1)
|
||||
--error 1241
|
||||
SELECT (SELECT c1, c2 FROM t2) FROM t1;
|
||||
ERROR 42000: This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
|
||||
ERROR 21000: Subquery returns more than 1 row
|
||||
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
|
||||
@ -68,7 +68,7 @@ INSERT INTO t2 VALUES (2,'abcde');
|
||||
SELECT * FROM t1 WHERE c2 IN (SELECT c2 FROM t2 ORDER BY c1 LIMIT 1)
|
||||
--error 1241
|
||||
SELECT (SELECT c1, c2 FROM t2) FROM t1;
|
||||
ERROR 42000: This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery'
|
||||
SELECT * FROM t1 WHERE c1 = (SELECT c1 FROM t2);
|
||||
ERROR 21000: Subquery returns more than 1 row
|
||||
UPDATE t1 SET c2 = (SELECT MAX(c1) FROM t2);
|
||||
|
@ -39,10 +39,20 @@ DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 TIME NOT NULL);
|
||||
SET TIMESTAMP=1171346973;
|
||||
INSERT INTO t1 (c1) VALUES(NOW());
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'1 01:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'2 02:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'3 03:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
INSERT INTO t1 (c1) VALUES(ADDTIME(NOW(),'4 04:01:01'));
|
||||
Warnings:
|
||||
Note 1265 Data truncated for column 'c1' at row 1
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1
|
||||
09:09:33
|
||||
@ -54,10 +64,10 @@ UPDATE t1 SET c1 = NOW() WHERE c1 >= ADDTIME(NOW(),'2 02:01:01');
|
||||
SELECT * FROM t1 ORDER BY c1;
|
||||
c1
|
||||
09:09:33
|
||||
09:09:33
|
||||
09:09:33
|
||||
09:09:33
|
||||
10:10:34
|
||||
11:10:34
|
||||
12:10:34
|
||||
13:10:34
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1(c1 DATETIME NOT NULL);
|
||||
SET TIMESTAMP=1171346973;
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -497,10 +497,10 @@ c2
|
||||
00:13:13
|
||||
00:51:51
|
||||
01:01:01
|
||||
02:02:02
|
||||
03:03:00
|
||||
08:08:08
|
||||
100:04:04
|
||||
11:11:11
|
||||
11:11:27
|
||||
125:00:00
|
||||
125:05:00
|
||||
@ -644,7 +644,7 @@ c1 c2
|
||||
-838:59:59 -838:59:59
|
||||
00:04:00 00:04:00
|
||||
00:54:54 00:54:54
|
||||
11:11:11 11:11:11
|
||||
02:02:02 02:02:02
|
||||
12:34:56 NULL
|
||||
SELECT * FROM t2;
|
||||
c1 c2
|
||||
|
@ -2,7 +2,13 @@ DROP TABLE IF EXISTS t1,t2,t3,t4;
|
||||
CREATE TABLE t1(c1 YEAR NOT NULL,c2 YEAR, PRIMARY KEY(c1));
|
||||
CREATE TABLE t2(c1 YEAR NOT NULL, c2 YEAR, UNIQUE INDEX idx(c1,c2));
|
||||
CREATE TABLE t3(c1 YEAR(2) NOT NULL,c2 YEAR(2), PRIMARY KEY(c1));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CREATE TABLE t4(c1 YEAR(2), c2 YEAR(2), UNIQUE INDEX idx(c1,c2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
INSERT INTO t1 VALUES (1901,1901),(1970,1970),(1999,1999),(2000,2000),(2155,2155);
|
||||
INSERT INTO t2 VALUES (1901,1901),(1970,1970),(1999,1999),(2000,2000),(2155,2155);
|
||||
INSERT INTO t3 VALUES (1901,1901),(1970,1970),(1999,1999),(2000,2000),(2155,2155);
|
||||
|
@ -1013,7 +1013,7 @@ ROUND(c1,c2) TRUNCATE(c1,c2)
|
||||
1.133000 1.132000
|
||||
DROP TABLE t5;
|
||||
CREATE TABLE t7(c1 DECIMAL(66,0));
|
||||
ERROR 42000: Too big precision 66 specified for column 'c1'. Maximum is 65.
|
||||
ERROR 42000: Too big precision 66 specified for 'c1'. Maximum is 65.
|
||||
CREATE TABLE t7(c1 DECIMAL(5,10));
|
||||
ERROR 42000: For float(M,D), double(M,D) or decimal(M,D), M must be >= D (column 'c1').
|
||||
DROP TABLE t1,t2;
|
||||
|
@ -5316,12 +5316,20 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -128 26 27 28 29 30
|
||||
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 128 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 <> 128 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -128 1 2 3 4 5
|
||||
@ -11010,12 +11018,20 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -32768 26 27 28 29 30
|
||||
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 32768 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 <> 32768 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -32768 1 2 3 4 5
|
||||
@ -16809,12 +16825,20 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -8388608 26 27 28 29 30
|
||||
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 8388608 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 <> 8388608 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -8388608 1 2 3 4 5
|
||||
@ -22713,12 +22737,20 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -2147483648 26 27 28 29 30
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 <> 2147483648 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -2147483648 1 2 3 4 5
|
||||
@ -28627,12 +28659,20 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -2147483648 26 27 28 29 30
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 2147483648 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 <> 2147483648 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -2147483648 1 2 3 4 5
|
||||
@ -32275,8 +32315,6 @@ total_rows min_value max(c1)
|
||||
23 0 18446744073709551615
|
||||
SELECT * FROM t2 WHERE c2 = -9223372036854775809;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warnings:
|
||||
SELECT c1,c6 FROM t2;
|
||||
c1 c6
|
||||
0 0
|
||||
@ -34112,20 +34150,12 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 = -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34149,14 +34179,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 27 28 29 30 31
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34180,14 +34206,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 27 28 29 30 31
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34211,38 +34233,22 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 27 28 29 30 31
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34266,14 +34272,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 27 28 29 30 31
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34285,13 +34287,9 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
105 NULL 102 103 104 105 106
|
||||
@ -34348,14 +34346,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 22 23 24 25 26
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <> -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
@ -34379,14 +34373,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 22 23 24 25 26
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 > -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
@ -34410,38 +34400,22 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 22 23 24 25 26
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 < -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <= -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 <=> -9223372036854775809 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
@ -34465,14 +34439,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 22 23 24 25 26
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
@ -34484,13 +34454,9 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
105 NULL 102 103 104 105 106
|
||||
@ -34611,12 +34577,20 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 = 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t3 WHERE c2 <> 9223372036854775808 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34733,14 +34707,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 27 28 29 30 31
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
@ -34752,13 +34722,9 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
105 NULL 102 103 104 105 106
|
||||
@ -34908,14 +34874,10 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
0 124 22 23 24 25 26
|
||||
18446744073709551615 9223372036854775807 36 37 38 39 40
|
||||
18446744073709551615 9223372036854775807 26 27 28 29 30
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 BETWEEN -9223372036854775809 AND 9223372036854775808 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
0 -9223372036854775808 1 2 3 4 5
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IN (-9223372036854775809,9223372036854775808) ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
@ -34927,13 +34889,9 @@ c1 c2 c3 c4 c5 c6 c7
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 >= -9223372036854775809 AND c2 < 9223372036854775808 AND c7 = 35 ORDER BY c2,c7 DESC LIMIT 2;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
0 -9223372036854775808 31 32 33 34 35
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
SELECT * FROM t3 WHERE c2 IS NULL ORDER BY c2,c7 DESC;
|
||||
c1 c2 c3 c4 c5 c6 c7
|
||||
105 NULL 102 103 104 105 106
|
||||
|
@ -40,12 +40,12 @@ INSERT INTO t4 VALUES('10.22.22','10.22.22','2009-01-26'),(1234567,1234567,'2009
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c1' at row 1
|
||||
Warning 1265 Data truncated for column 'c2' at row 1
|
||||
Warning 1264 Out of range value for column 'c1' at row 2
|
||||
Warning 1264 Out of range value for column 'c2' at row 2
|
||||
Warning 1264 Out of range value for column 'c1' at row 3
|
||||
Warning 1264 Out of range value for column 'c2' at row 3
|
||||
Warning 1264 Out of range value for column 'c1' at row 4
|
||||
Warning 1264 Out of range value for column 'c2' at row 4
|
||||
Warning 1265 Data truncated for column 'c1' at row 2
|
||||
Warning 1265 Data truncated for column 'c2' at row 2
|
||||
Warning 1265 Data truncated for column 'c1' at row 3
|
||||
Warning 1265 Data truncated for column 'c2' at row 3
|
||||
Warning 1265 Data truncated for column 'c1' at row 4
|
||||
Warning 1265 Data truncated for column 'c2' at row 4
|
||||
Warning 1265 Data truncated for column 'c1' at row 6
|
||||
Warning 1265 Data truncated for column 'c2' at row 6
|
||||
INSERT INTO t1 VALUES('8:29:45',NULL,'2009-02-01');
|
||||
@ -135,6 +135,8 @@ c1 c2 c3
|
||||
-838:59:59 -838:59:59 2009-01-08
|
||||
00:00:00 00:00:00 2009-01-09
|
||||
00:00:00 00:00:00 2009-01-27
|
||||
00:00:00 00:00:00 2009-01-28
|
||||
00:00:00 00:00:00 2009-01-29
|
||||
00:00:10 00:00:10 2009-01-26
|
||||
00:00:11 00:00:11 2009-01-20
|
||||
00:00:12 00:00:12 2009-01-13
|
||||
@ -160,8 +162,6 @@ c1 c2 c3
|
||||
491:22:33 491:22:33 2009-01-04
|
||||
825:23:00 825:23:00 2009-01-05
|
||||
838:59:59 838:59:59 2009-01-10
|
||||
838:59:59 838:59:59 2009-01-28
|
||||
838:59:59 838:59:59 2009-01-29
|
||||
SELECT * FROM t1;
|
||||
c1 c2 c3
|
||||
-838:59:59 -838:59:59 2009-01-21
|
||||
@ -1650,8 +1650,10 @@ SELECT * FROM t1 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c2 LIMIT 2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 LIMIT 2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 LIMIT 2;
|
||||
@ -1723,8 +1725,10 @@ SELECT * FROM t1 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c2 DESC LIMIT 2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 DESC;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t1 WHERE c2 IN (NULL,'10:22:33') ORDER BY c2 DESC LIMIT 2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 DESC;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t1 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c2 DESC LIMIT 2;
|
||||
@ -3218,8 +3222,10 @@ SELECT * FROM t2 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 LIMIT 2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 LIMIT 2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 LIMIT 2;
|
||||
@ -3287,8 +3293,10 @@ SELECT * FROM t2 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 DESC LIMIT
|
||||
c1 c2 c3
|
||||
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t2 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC LIMIT 2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t2 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC LIMIT 2;
|
||||
@ -4814,8 +4822,10 @@ SELECT * FROM t3 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 LIMIT 2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 LIMIT 2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 LIMIT 2;
|
||||
@ -4887,8 +4897,10 @@ SELECT * FROM t3 WHERE c2 BETWEEN NULL AND '10:22:33' ORDER BY c1,c2 DESC LIMIT
|
||||
c1 c2 c3
|
||||
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t3 WHERE c2 IN (NULL,'10:22:33') ORDER BY c1,c2 DESC LIMIT 2;
|
||||
c1 c2 c3
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC;
|
||||
c1 c2 c3
|
||||
SELECT * FROM t3 WHERE c2 >= NULL AND c2 < '10:22:33' AND c1 = '491:22:33' ORDER BY c1,c2 DESC LIMIT 2;
|
||||
@ -5008,28 +5020,24 @@ c1 MIN(c2)
|
||||
838:59:59 838:59:59
|
||||
SELECT CAST(235959.123456 AS TIME);
|
||||
CAST(235959.123456 AS TIME)
|
||||
23:59:59.123456
|
||||
23:59:59
|
||||
SELECT CAST(0.235959123456e+6 AS TIME);
|
||||
CAST(0.235959123456e+6 AS TIME)
|
||||
23:59:59.123456
|
||||
23:59:59
|
||||
SELECT CAST(235959123456e-6 AS TIME);
|
||||
CAST(235959123456e-6 AS TIME)
|
||||
23:59:59.123456
|
||||
23:59:59
|
||||
SELECT CAST(235959.1234567 AS TIME);
|
||||
CAST(235959.1234567 AS TIME)
|
||||
23:59:59.123456
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect time value: '235959.1234567'
|
||||
23:59:59
|
||||
SELECT CAST(0.2359591234567e6 AS TIME);
|
||||
CAST(0.2359591234567e6 AS TIME)
|
||||
23:59:59.123456
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect time value: '235959.1234567'
|
||||
23:59:59
|
||||
SELECT CAST(0.2359591234567e+30 AS TIME);
|
||||
CAST(0.2359591234567e+30 AS TIME)
|
||||
NULL
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect time value: '2.359591234567e29'
|
||||
Warning 1292 Incorrect datetime value: '2.359591234567e29'
|
||||
select cast('100:55:50' as time) < cast('24:00:00' as time);
|
||||
cast('100:55:50' as time) < cast('24:00:00' as time)
|
||||
0
|
||||
@ -5077,7 +5085,6 @@ c1 c2 c3
|
||||
INSERT INTO t2(c1,c2) VALUES('12:34:56.78','12:34:56.78') ON DUPLICATE KEY UPDATE c1='12:34:56.79',c2='12:34:57.78';
|
||||
SELECT * FROM t2 WHERE c1='12:34:56.79' AND c2='12:34:57.78' /* 1 row */;
|
||||
c1 c2 c3
|
||||
12:34:56 12:34:57 2009-01-01
|
||||
SELECT * FROM t1 WHERE c1='10:22:35' AND c2='33 9:23' /* no rows */;
|
||||
c1 c2 c3
|
||||
INSERT INTO t1(c1,c2) VALUES('10:22:34','34 9:23') ON DUPLICATE KEY UPDATE c1='10:22:35',c2='33 9:23';
|
||||
@ -5137,8 +5144,8 @@ c1 c2 c3
|
||||
09:36:00 09:36:00 2009-01-25
|
||||
00:00:10 00:00:10 2009-01-26
|
||||
00:00:00 00:00:00 2009-01-27
|
||||
838:59:59 838:59:59 2009-01-28
|
||||
838:59:59 838:59:59 2009-01-29
|
||||
00:00:00 00:00:00 2009-01-28
|
||||
00:00:00 00:00:00 2009-01-29
|
||||
262:22:00 262:22:00 2009-01-30
|
||||
00:00:12 00:00:12 2009-01-31
|
||||
08:29:45 NULL 2009-02-01
|
||||
@ -5146,15 +5153,39 @@ c1 c2 c3
|
||||
TRUNCATE TABLE t5;
|
||||
INSERT INTO t5 SELECT * FROM t4 WHERE c1 >='12colon34colon56';
|
||||
Warnings:
|
||||
Warning 1292 Incorrect time value: '12colon34colon56' for column 'c1' at row 1
|
||||
Warning 1292 Truncated incorrect time value: '12colon34colon56'
|
||||
SELECT * FROM t5;
|
||||
c1 c2 c3
|
||||
12:34:56 12:34:56 2009-01-01
|
||||
10:22:33 10:22:33 2009-01-02
|
||||
01:23:00 01:23:00 2009-01-03
|
||||
491:22:33 491:22:33 2009-01-04
|
||||
825:23:00 825:23:00 2009-01-05
|
||||
10:00:00 10:00:00 2009-01-06
|
||||
00:00:45 00:00:45 2009-01-07
|
||||
00:00:00 00:00:00 2009-01-09
|
||||
838:59:59 838:59:59 2009-01-10
|
||||
838:59:59 838:59:59 2009-01-28
|
||||
838:59:59 838:59:59 2009-01-29
|
||||
10:11:12 10:11:12 2009-01-11
|
||||
11:11:12 11:11:12 2009-01-12
|
||||
00:00:12 00:00:12 2009-01-13
|
||||
00:12:34 00:12:34 2009-01-14
|
||||
12:34:58 12:34:58 2009-01-15
|
||||
12:35:56 12:35:56 2009-01-16
|
||||
11:11:27 11:11:27 2009-01-17
|
||||
08:03:02 08:03:02 2009-01-18
|
||||
00:11:12 00:11:12 2009-01-19
|
||||
00:00:11 00:00:11 2009-01-20
|
||||
00:12:30 00:12:30 2009-01-23
|
||||
09:00:45 09:00:45 2009-01-24
|
||||
09:36:00 09:36:00 2009-01-25
|
||||
00:00:10 00:00:10 2009-01-26
|
||||
00:00:00 00:00:00 2009-01-27
|
||||
00:00:00 00:00:00 2009-01-28
|
||||
00:00:00 00:00:00 2009-01-29
|
||||
262:22:00 262:22:00 2009-01-30
|
||||
00:00:12 00:00:12 2009-01-31
|
||||
08:29:45 NULL 2009-02-01
|
||||
00:00:00 07:23:55 NULL
|
||||
TRUNCATE TABLE t5;
|
||||
DROP TABLE t5;
|
||||
DROP TABLE t1,t2,t3,t4;
|
||||
|
@ -3235,9 +3235,21 @@ c1 c2 c3 c4
|
||||
1999 1999 1998-12-30 1998-12-30 11:30:45
|
||||
DROP TABLE t1,t2,t3,t4;
|
||||
CREATE TABLE t1(c1 YEAR(2) NOT NULL, c2 YEAR(2) NULL, c3 DATE, c4 DATETIME, PRIMARY KEY(c1), UNIQUE INDEX(c2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CREATE TABLE t2(c1 YEAR(2) NOT NULL, c2 YEAR(2) NULL, c3 DATE, c4 DATETIME, PRIMARY KEY(c1,c2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CREATE TABLE t3(c1 YEAR(2) NOT NULL, c2 YEAR(2) NULL, c3 DATE, c4 DATETIME, UNIQUE INDEX idx(c1,c2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CREATE TABLE t4(c1 YEAR(2) NOT NULL, c2 YEAR(2) NULL, c3 DATE, c4 DATETIME);
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
INSERT INTO t1 VALUES('1901','1901','98-12-31','98.12.31 11:30:45'),('1999','1999','98-12-30','98.12.30 11:30:45'),('2000','2000','98-12-29','98.12.29 11:30:45'),('2001','2001','98-12-28','98.12.28 11:30:45'),('2099','2099','98-12-27','98.12.27 11:30:45'),('2100','2100','98-12-26','98.12.26 11:30:45'),('2155','2155','98-12-26','98.12.26 11:30:45');
|
||||
INSERT INTO t2 VALUES('1901','1901','98-12-31','98.12.31 11:30:45'),('1999','1999','98-12-30','98.12.30 11:30:45'),('2000','2000','98-12-29','98.12.29 11:30:45'),('2001','2001','98-12-28','98.12.28 11:30:45'),('2099','2099','98-12-27','98.12.27 11:30:45'),('2100','2100','98-12-26','98.12.26 11:30:45'),('2155','2155','98-12-26','98.12.26 11:30:45');
|
||||
INSERT INTO t3 VALUES('1901','1901','98-12-31','98.12.31 11:30:45'),('1999','1999','98-12-30','98.12.30 11:30:45'),('2000','2000','98-12-29','98.12.29 11:30:45'),('2001','2001','98-12-28','98.12.28 11:30:45'),('2099','2099','98-12-27','98.12.27 11:30:45'),('2100','2100','98-12-26','98.12.26 11:30:45'),('2155','2155','98-12-26','98.12.26 11:30:45');
|
||||
|
@ -49,7 +49,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
000
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -854,7 +854,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
000
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -1704,7 +1704,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -2619,7 +2619,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -3692,7 +3692,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -5211,7 +5211,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -7252,7 +7252,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -10392,7 +10392,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -11224,7 +11224,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -12029,7 +12029,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -12879,7 +12879,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -13794,7 +13794,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -14867,7 +14867,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -16386,7 +16386,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -18427,7 +18427,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -21567,7 +21567,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -22405,7 +22405,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -23216,7 +23216,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -24066,7 +24066,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -24981,7 +24981,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -26054,7 +26054,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -27573,7 +27573,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -29614,7 +29614,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -32754,7 +32754,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -33592,7 +33592,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -34403,7 +34403,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -35259,7 +35259,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -36174,7 +36174,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -37247,7 +37247,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -38766,7 +38766,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -40807,7 +40807,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -43947,7 +43947,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -44785,7 +44785,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -45596,7 +45596,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -46452,7 +46452,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -47373,7 +47373,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -48452,7 +48452,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -49971,7 +49971,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -52012,7 +52012,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -55152,7 +55152,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -55941,7 +55941,7 @@ SELECT 0 + (101010101010101010101010101010<<0);
|
||||
0 + (101010101010101010101010101010<<0)
|
||||
9223372036854775807
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(0));
|
||||
CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0));
|
||||
INSERT INTO t1 VALUES (b'101010101010101010101010101010');
|
||||
@ -55992,7 +55992,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -56712,7 +56712,7 @@ SELECT 0 + (101010101010101010101010101010<<1);
|
||||
0 + (101010101010101010101010101010<<1)
|
||||
18446744073709551614
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(1));
|
||||
CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1));
|
||||
set @v1=1;
|
||||
@ -56805,7 +56805,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -57532,7 +57532,7 @@ SELECT 0 + (101010101010101010101010101010<<2);
|
||||
0 + (101010101010101010101010101010<<2)
|
||||
18446744073709551612
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(2));
|
||||
CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2));
|
||||
set @v1=2;
|
||||
@ -57663,7 +57663,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -58375,7 +58375,7 @@ SELECT 0 + (101010101010101010101010101010<<4);
|
||||
0 + (101010101010101010101010101010<<4)
|
||||
18446744073709551600
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(4));
|
||||
CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4));
|
||||
set @v1=4;
|
||||
@ -58586,7 +58586,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -59296,7 +59296,7 @@ SELECT 0 + (101010101010101010101010101010<<8);
|
||||
0 + (101010101010101010101010101010<<8)
|
||||
18446744073709551360
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(8));
|
||||
CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8));
|
||||
set @v1=8;
|
||||
@ -59667,7 +59667,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -60503,7 +60503,7 @@ SELECT 0 + (101010101010101010101010101010<<16);
|
||||
0 + (101010101010101010101010101010<<16)
|
||||
18446744073709486080
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(16));
|
||||
CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16));
|
||||
set @v1=16;
|
||||
@ -61194,7 +61194,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -61915,7 +61915,7 @@ SELECT 0 + (101010101010101010101010101010<<32);
|
||||
0 + (101010101010101010101010101010<<32)
|
||||
18446744069414584320
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(32));
|
||||
CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32));
|
||||
set @v1=32;
|
||||
@ -63237,7 +63237,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -63988,7 +63988,7 @@ SELECT 0 + (101010101010101010101010101010<<64);
|
||||
0 + (101010101010101010101010101010<<64)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(64));
|
||||
CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64));
|
||||
set @v1=64;
|
||||
@ -66379,7 +66379,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -67165,7 +67165,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<0)
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<0)
|
||||
9223372036854775807
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(0));
|
||||
CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0));
|
||||
INSERT INTO t1 VALUES (b'1010101010101010101010101010101010101010101010101010101010101010');
|
||||
@ -67216,7 +67216,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -67933,7 +67933,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<1)
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<1)
|
||||
18446744073709551614
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(1));
|
||||
CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1));
|
||||
set @v1=1;
|
||||
@ -68026,7 +68026,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -68750,7 +68750,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<2)
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<2)
|
||||
18446744073709551612
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(2));
|
||||
CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2));
|
||||
set @v1=2;
|
||||
@ -68881,7 +68881,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -69590,7 +69590,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<4)
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<4)
|
||||
18446744073709551600
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(4));
|
||||
CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4));
|
||||
set @v1=4;
|
||||
@ -69801,7 +69801,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -70508,7 +70508,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<8)
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<8)
|
||||
18446744073709551360
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(8));
|
||||
CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8));
|
||||
set @v1=8;
|
||||
@ -70879,7 +70879,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -71712,7 +71712,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<16
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<16)
|
||||
18446744073709486080
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(16));
|
||||
CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16));
|
||||
set @v1=16;
|
||||
@ -72403,7 +72403,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -73121,7 +73121,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<32
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<32)
|
||||
18446744069414584320
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(32));
|
||||
CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32));
|
||||
set @v1=32;
|
||||
@ -74449,7 +74449,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -75197,7 +75197,7 @@ SELECT 0 + (1010101010101010101010101010101010101010101010101010101010101010<<64
|
||||
0 + (1010101010101010101010101010101010101010101010101010101010101010<<64)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '1010101010101010101010101010101010101010101010101010101010101010' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(64));
|
||||
CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64));
|
||||
set @v1=64;
|
||||
@ -77588,7 +77588,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
@ -78374,7 +78374,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<0
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<0)
|
||||
9223372036854775807
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(0));
|
||||
CREATE TABLE t2(c1 BIT(0), c2 BIT(0), c3 BIT(0));
|
||||
INSERT INTO t1 VALUES (b'10101010101010101010101010101010101010101010101010101010101010101');
|
||||
@ -78425,7 +78425,7 @@ SELECT CONCAT(BIN(c1),BIN(c2),BIN(c3)) FROM t2;
|
||||
CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(0) NOT NULL PRIMARY KEY, c2 BIT(0));
|
||||
@ -79142,7 +79142,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<1
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<1)
|
||||
18446744073709551614
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(1));
|
||||
CREATE TABLE t2(c1 BIT(1), c2 BIT(1), c3 BIT(1));
|
||||
set @v1=1;
|
||||
@ -79235,7 +79235,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111
|
||||
111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(1) NOT NULL PRIMARY KEY, c2 BIT(1));
|
||||
@ -79959,7 +79959,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<2
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<2)
|
||||
18446744073709551612
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(2));
|
||||
CREATE TABLE t2(c1 BIT(2), c2 BIT(2), c3 BIT(2));
|
||||
set @v1=2;
|
||||
@ -80090,7 +80090,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111
|
||||
111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(2) NOT NULL PRIMARY KEY, c2 BIT(2));
|
||||
@ -80799,7 +80799,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<4
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<4)
|
||||
18446744073709551600
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(4));
|
||||
CREATE TABLE t2(c1 BIT(4), c2 BIT(4), c3 BIT(4));
|
||||
set @v1=4;
|
||||
@ -81010,7 +81010,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111
|
||||
111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(4) NOT NULL PRIMARY KEY, c2 BIT(4));
|
||||
@ -81717,7 +81717,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<8
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<8)
|
||||
18446744073709551360
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(8));
|
||||
CREATE TABLE t2(c1 BIT(8), c2 BIT(8), c3 BIT(8));
|
||||
set @v1=8;
|
||||
@ -82088,7 +82088,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111
|
||||
111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(8) NOT NULL PRIMARY KEY, c2 BIT(8));
|
||||
@ -82921,7 +82921,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<1
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<16)
|
||||
18446744073709486080
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(16));
|
||||
CREATE TABLE t2(c1 BIT(16), c2 BIT(16), c3 BIT(16));
|
||||
set @v1=16;
|
||||
@ -83612,7 +83612,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(16) NOT NULL PRIMARY KEY, c2 BIT(16));
|
||||
@ -84330,7 +84330,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<3
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<32)
|
||||
18446744069414584320
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(32));
|
||||
CREATE TABLE t2(c1 BIT(32), c2 BIT(32), c3 BIT(32));
|
||||
set @v1=32;
|
||||
@ -85658,7 +85658,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(32) NOT NULL PRIMARY KEY, c2 BIT(32));
|
||||
@ -86406,7 +86406,7 @@ SELECT 0 + (10101010101010101010101010101010101010101010101010101010101010101<<6
|
||||
0 + (10101010101010101010101010101010101010101010101010101010101010101<<64)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect DECIMAL value: ''
|
||||
Warning 1916 Got overflow when converting '10101010101010101010101010101010101010101010101010101010101010101' to INT. Value truncated.
|
||||
CREATE TABLE t1(c1 BIT(64));
|
||||
CREATE TABLE t2(c1 BIT(64), c2 BIT(64), c3 BIT(64));
|
||||
set @v1=64;
|
||||
@ -88803,7 +88803,7 @@ CONCAT(BIN(c1),BIN(c2),BIN(c3))
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111
|
||||
CREATE TABLE t3 (c1 BIT(65));
|
||||
ERROR 42000: Display width out of range for column 'c1' (max = 64)
|
||||
ERROR 42000: Display width out of range for 'c1' (max = 64)
|
||||
CREATE TABLE t4(i INT, b BIT NOT NULL);
|
||||
ALTER TABLE t4 ADD PRIMARY KEY (i);
|
||||
CREATE TABLE t5(c1 BIT(64) NOT NULL PRIMARY KEY, c2 BIT(64));
|
||||
|
@ -71,13 +71,6 @@ Warning 1265 Data truncated for column 'c2' at row 1
|
||||
SELECT count(*) FROM t1 WHERE c2='10:45:15' OR c2='2009-01-32' OR c2='2009-02-30' OR c2='2009-04-31' OR c2='2009-06-31' OR c2='2009-09-31' /* returns 0 */;
|
||||
count(*)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1292 Incorrect date value: '10:45:15' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect date value: '2009-01-32' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect date value: '10:45:15' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect date value: '2009-01-32' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect date value: '10:45:15' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect date value: '2009-01-32' for column 'c2' at row 1
|
||||
UPDATE t1 SET c2='2009-11-31' WHERE c2='2001-01-16';
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c2' at row 1
|
||||
@ -108,8 +101,7 @@ c1 c2 c3
|
||||
2001-01-16 0000-00-00 12
|
||||
2001-01-17 0000-00-00 13
|
||||
Warnings:
|
||||
Warning 1292 Incorrect date value: '0000-00-00' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect date value: '0000-00-00' for column 'c2' at row 1
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
UPDATE t1 SET c2='0000-00-00' WHERE c2='2001-01-18';
|
||||
ERROR 22007: Incorrect date value: '0000-00-00' for column 'c2' at row 1
|
||||
SET SQL_MODE=DEFAULT;
|
||||
@ -774,20 +766,17 @@ c1 c2 c3
|
||||
INSERT INTO t1 VALUES('2001-01-09','2001-01-10',6),('2001-01-11','2001-01-12',7);
|
||||
UPDATE t1 SET c1='2001-01-09 24:59:59',c2='2009-01-10 23:60:59' WHERE c1='2001-01-09';
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c1' at row 1
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
Warning 1265 Data truncated for column 'c1' at row 1
|
||||
Warning 1265 Data truncated for column 'c2' at row 1
|
||||
UPDATE t1 SET c2='2001-01-11 23:59:60' WHERE c1='2001-01-11';
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
Warning 1265 Data truncated for column 'c2' at row 1
|
||||
SELECT count(*) FROM t1 WHERE c1='2001-01-09 24:59:59' AND c2='2009-01-10 23:60:59';
|
||||
count(*)
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1
|
||||
Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1
|
||||
Warning 1292 Truncated incorrect datetime value: '2001-01-09 24:59:59'
|
||||
Warning 1292 Truncated incorrect datetime value: '2009-01-10 23:60:59'
|
||||
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59'
|
||||
Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59'
|
||||
SELECT count(*) FROM t1 WHERE c2='2001-01-11 23:59:60' /* returns 0 */;
|
||||
count(*)
|
||||
0
|
||||
@ -806,8 +795,7 @@ c1 c2 c3
|
||||
2001-01-11 00:00:00 0000-00-00 00:00:00 7
|
||||
2001-01-17 00:00:00 0000-00-00 00:00:00 8
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
UPDATE t1 SET c2='0000-00-00 00:00:00' WHERE c2='2001-01-18 07:35';
|
||||
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
|
||||
SET SQL_MODE=DEFAULT;
|
||||
@ -949,15 +937,13 @@ c1 c2 c3
|
||||
2003-01-01 01:02:03 2002-01-09 01:30:30 10
|
||||
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2 LIMIT 2;
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40'
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50'
|
||||
SELECT * FROM t1 WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2;
|
||||
c1 c2 c3
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40'
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50'
|
||||
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC LIMIT 2;
|
||||
SELECT * FROM t1 WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC;
|
||||
c1 c2 c3
|
||||
@ -1389,17 +1375,13 @@ SELECT count(*) FROM t1 WHERE c1='2001-01-09 24:59:59' AND c2='2009-01-10 23:60:
|
||||
count(*)
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1
|
||||
Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59' for column 'c1' at row 1
|
||||
Warning 1292 Truncated incorrect datetime value: '2001-01-09 24:59:59'
|
||||
Warning 1292 Truncated incorrect datetime value: '2009-01-10 23:60:59'
|
||||
Warning 1292 Incorrect datetime value: '2001-01-09 24:59:59'
|
||||
Warning 1292 Incorrect datetime value: '2009-01-10 23:60:59'
|
||||
SELECT count(*) FROM t1 WHERE c1='2001-01-11 23:59:59' AND c2='2001-01-11 23:59:60';
|
||||
count(*)
|
||||
1
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '2001-01-11 23:59:60' for column 'c2' at row 1
|
||||
Warning 1292 Truncated incorrect datetime value: '2001-01-11 23:59:60'
|
||||
Warning 1292 Incorrect datetime value: '2001-01-11 23:59:60'
|
||||
SELECT * FROM t1 WHERE c1='0000-00-00 00:00:00' OR c2='0000-00-00 00:00:00';
|
||||
c1 c2 c3
|
||||
0000-00-00 00:00:00 0000-00-00 00:00:00 6
|
||||
@ -1412,8 +1394,7 @@ c1 c2 c3
|
||||
2001-01-11 23:59:59 0000-00-00 00:00:00 7
|
||||
2001-01-17 00:00:00 0000-00-00 00:00:00 8
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
|
||||
Warning 1265 Data truncated for column 'c2' at row 1
|
||||
UPDATE t1 SET c1='1972-01-01 07:35',c2='0000-00-00 00:00:00' WHERE c2='2001-01-18 07:35';
|
||||
ERROR 22007: Incorrect datetime value: '0000-00-00 00:00:00' for column 'c2' at row 1
|
||||
SET SQL_MODE=DEFAULT;
|
||||
@ -1552,15 +1533,13 @@ c1 c2 c3
|
||||
2003-01-01 01:02:03 2002-01-09 01:30:30 10
|
||||
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2 LIMIT 2;
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40'
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50'
|
||||
SELECT * FROM t1 WHERE c2 BETWEEN '20020109 01:30:40' AND '20020109 01:30:50' ORDER BY c2;
|
||||
c1 c2 c3
|
||||
Warnings:
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50' for column 'c2' at row 1
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:40'
|
||||
Warning 1292 Incorrect datetime value: '20020109 01:30:50'
|
||||
UPDATE t1 SET c1='2003-01-01 1:2:3' WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC LIMIT 2;
|
||||
SELECT * FROM t1 WHERE c2 IN('2002-01-09 1:30:55','2002-01-09 2:00') ORDER BY c2 DESC;
|
||||
c1 c2 c3
|
||||
|
@ -56,6 +56,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
|
||||
SELECT COUNT(*) FROM t1 WHERE c1=4294967296 AND c2=2147483648 /* no rows */;
|
||||
COUNT(*)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t1 WHERE c1=4294967295 AND c2=2147483647;
|
||||
c1 c2 c3
|
||||
4294967295 2147483647 10
|
||||
@ -1150,6 +1152,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
|
||||
SELECT COUNT(*) FROM t1 WHERE c1=256 AND c2=128 /* no rows */;
|
||||
COUNT(*)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t1 WHERE c1=255 AND c2=127;
|
||||
c1 c2 c3
|
||||
255 127 10
|
||||
@ -1922,6 +1926,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
|
||||
SELECT COUNT(*) FROM t1 WHERE c1=65536 AND c2=32768 /* no rows */;
|
||||
COUNT(*)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t1 WHERE c1=65535 AND c2=32767;
|
||||
c1 c2 c3
|
||||
65535 32767 10
|
||||
@ -2669,6 +2675,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
|
||||
SELECT COUNT(*) FROM t1 WHERE c1=16777216 AND c2=8388608 /* no rows */;
|
||||
COUNT(*)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t1 WHERE c1=16777215 AND c2=8388607;
|
||||
c1 c2 c3
|
||||
16777215 8388607 10
|
||||
@ -3416,6 +3424,8 @@ Warning 1264 Out of range value for column 'c2' at row 3
|
||||
SELECT COUNT(*) FROM t1 WHERE c1=18446744073709551616 AND c2=9223372036854775808 /* no rows */;
|
||||
COUNT(*)
|
||||
0
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 1
|
||||
SELECT * FROM t1 WHERE c1=18446744073709551615 AND c2=9223372036854775807;
|
||||
c1 c2 c3
|
||||
18446744073709551615 9223372036854775807 10
|
||||
|
@ -793,10 +793,10 @@ c2
|
||||
00:09:09
|
||||
00:11:11
|
||||
00:11:11
|
||||
00:11:11
|
||||
00:13:13
|
||||
00:51:51
|
||||
01:01:01
|
||||
02:02:02
|
||||
03:03:00
|
||||
08:08:08
|
||||
100:04:04
|
||||
@ -1122,7 +1122,7 @@ c2
|
||||
838:59:59
|
||||
NULL
|
||||
UPDATE t4 SET c1=11:11:11 WHERE c2=NULL;
|
||||
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 ':11:11 WHERE c2=NULL' at line 1
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ':11:11 WHERE c2=NULL' at line 1
|
||||
SELECT c1 FROM t4;
|
||||
c1
|
||||
00:00:01
|
||||
@ -1262,7 +1262,7 @@ c1 c2
|
||||
838:59:59 838:59:59
|
||||
UPDATE t1 SET c1=c1+1,c2=c2-1 WHERE c1 IN (222222,8385955,1500000) ORDER BY c1;
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'c2' at row 2
|
||||
Warning 1265 Data truncated for column 'c2' at row 2
|
||||
SELECT * FROM t1;
|
||||
c1 c2
|
||||
-12:12:12 12:12:12
|
||||
@ -1332,7 +1332,7 @@ c1 c2
|
||||
00:51:51 02:22:22
|
||||
00:54:54 00:54:54
|
||||
01:01:01 02:22:22
|
||||
02:02:02 02:22:22
|
||||
02:02:02 02:02:02
|
||||
03:03:00 02:22:22
|
||||
08:08:08 00:00:00
|
||||
100:04:04 100:04:04
|
||||
@ -1374,7 +1374,7 @@ c1 c2
|
||||
00:51:51 00:51:51
|
||||
00:54:54 00:11:11
|
||||
01:01:01 01:01:01
|
||||
02:02:02 02:02:02
|
||||
02:02:02 00:11:11
|
||||
03:03:00 03:03:00
|
||||
08:08:08 08:08:08
|
||||
11:11:11 00:11:11
|
||||
|
@ -2,7 +2,13 @@ DROP TABLE IF EXISTS t1,t2,t3,t4;
|
||||
CREATE TABLE t1(c1 YEAR NOT NULL,c2 YEAR, PRIMARY KEY(c1));
|
||||
CREATE TABLE t2(c1 YEAR NOT NULL, c2 YEAR, UNIQUE INDEX idx(c1,c2));
|
||||
CREATE TABLE t3(c1 YEAR(2) NOT NULL,c2 YEAR(2), PRIMARY KEY(c1));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CREATE TABLE t4(c1 YEAR(2), c2 YEAR(2), UNIQUE INDEX idx(c1,c2));
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
INSERT INTO t1 VALUES (1901,1901),(1970,1970),(1999,1999),(2000,2000),(2155,2155);
|
||||
INSERT INTO t2 VALUES (1901,1901),(1970,1970),(1999,1999),(2000,2000),(2155,2155);
|
||||
INSERT INTO t3 VALUES (1901,1901),(1970,1970),(1999,1999),(2000,2000),(2155,2155);
|
||||
|
@ -53,6 +53,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb2.txt'
|
||||
into table tb2;
|
||||
DROP DATABASE IF EXISTS test1;
|
||||
@ -112,6 +114,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb2.txt'
|
||||
into table tb2;
|
||||
USE test;
|
||||
|
@ -132,6 +132,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb2.txt'
|
||||
into table tb2;
|
||||
drop table if exists tb3 ;
|
||||
@ -262,6 +264,8 @@ f239 varchar(20000) binary,
|
||||
f240 varchar(2000),
|
||||
f241 char(100)
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb4.txt'
|
||||
into table tb4;
|
||||
USE test1;
|
||||
@ -319,6 +323,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = innodb;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/innodb_tb2.txt'
|
||||
into table tb2;
|
||||
USE test;
|
||||
|
@ -128,6 +128,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = memory;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/memory_tb2.txt'
|
||||
into table tb2 ;
|
||||
drop table if exists tb3;
|
||||
@ -251,6 +253,8 @@ f238 varchar(25000) binary,
|
||||
f239 varbinary(0),
|
||||
f240 varchar(1200)
|
||||
) engine = memory;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/memory_tb4.txt'
|
||||
into table tb4;
|
||||
USE test1;
|
||||
@ -308,6 +312,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = memory;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/memory_tb2.txt'
|
||||
into table tb2 ;
|
||||
USE test;
|
||||
|
@ -144,6 +144,8 @@ f115 VARBINARY(27) null ,
|
||||
f116 VARBINARY(64) null,
|
||||
f117 VARBINARY(192) null
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb2.txt'
|
||||
into table tb2;
|
||||
drop table if exists tb3 ;
|
||||
@ -283,6 +285,8 @@ f240 varchar(120),
|
||||
f241 char(100),
|
||||
f242 bit(30)
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb4.txt'
|
||||
into table tb4;
|
||||
USE test1;
|
||||
@ -348,6 +352,8 @@ f115 VARBINARY(27) null ,
|
||||
f116 VARBINARY(64) null,
|
||||
f117 VARBINARY(192) null
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb2.txt'
|
||||
into table tb2;
|
||||
USE test;
|
||||
|
@ -144,6 +144,8 @@ f115 VARBINARY(27) null ,
|
||||
f116 VARBINARY(64) null,
|
||||
f117 VARBINARY(192) null
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb2.txt'
|
||||
into table tb2;
|
||||
drop table if exists tb3 ;
|
||||
@ -283,6 +285,8 @@ f240 varchar(120),
|
||||
f241 char(100),
|
||||
f242 bit(30)
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb4.txt'
|
||||
into table tb4;
|
||||
USE test1;
|
||||
@ -348,6 +352,8 @@ f115 VARBINARY(27) null ,
|
||||
f116 VARBINARY(64) null,
|
||||
f117 VARBINARY(192) null
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb2.txt'
|
||||
into table tb2;
|
||||
USE test;
|
||||
|
@ -54,6 +54,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = memory;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/memory_tb2.txt'
|
||||
into table tb2 ;
|
||||
DROP DATABASE IF EXISTS test1;
|
||||
@ -113,6 +115,8 @@ f107 year(4) not null default 2000,
|
||||
f108 enum("1enum","2enum") not null default "1enum",
|
||||
f109 set("1set","2set") not null default "1set"
|
||||
) engine = memory;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/memory_tb2.txt'
|
||||
into table tb2 ;
|
||||
USE test;
|
||||
|
@ -62,6 +62,8 @@ f115 VARBINARY(27) null ,
|
||||
f116 VARBINARY(64) null,
|
||||
f117 VARBINARY(192) null
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb2.txt'
|
||||
into table tb2;
|
||||
DROP DATABASE IF EXISTS test1;
|
||||
@ -129,6 +131,8 @@ f115 VARBINARY(27) null ,
|
||||
f116 VARBINARY(64) null,
|
||||
f117 VARBINARY(192) null
|
||||
) engine = myisam;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
load data infile '<MYSQLTEST_VARDIR>/std_data/funcs_1/myisam_tb2.txt'
|
||||
into table tb2;
|
||||
USE test;
|
||||
|
@ -7499,9 +7499,13 @@ BEGIN
|
||||
declare x, y, z year(3) default 2005;
|
||||
SELECT x, y, z;
|
||||
END//
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
CALL sp1();
|
||||
x y z
|
||||
2005 2005 2005
|
||||
Warnings:
|
||||
Note 1287 'YEAR(3)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
DROP PROCEDURE IF EXISTS sp1;
|
||||
CREATE PROCEDURE sp1( )
|
||||
BEGIN
|
||||
|
@ -58,6 +58,7 @@ col89 float unsigned zerofill DEFAULT NULL,
|
||||
col90 tinyblob
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=1;
|
||||
Warnings:
|
||||
Note 1287 'YEAR(2)' is deprecated and will be removed in a future release. Please use YEAR(4) instead
|
||||
Note 1291 Column 'col82' has duplicated value '' in ENUM
|
||||
Note 1291 Column 'col82' has duplicated value '' in ENUM
|
||||
INSERT INTO bug52745 SET
|
||||
|
5
mysql-test/suite/mtr2/combinations
Normal file
5
mysql-test/suite/mtr2/combinations
Normal file
@ -0,0 +1,5 @@
|
||||
[1st]
|
||||
lock-wait-timeout=5
|
||||
|
||||
[2nd]
|
||||
lock-wait-timeout=3
|
@ -9,4 +9,4 @@
|
||||
# Do not use any TAB characters for whitespace.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
misc : bug#14113704 24/04/2012 Mayank issue reported causing failure.
|
||||
|
@ -15,6 +15,9 @@ SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD'));
|
||||
SELECT (@before_count >= 0) as have_before_count;
|
||||
have_before_count
|
||||
1
|
||||
SELECT IF(@before_count > 0, 'Success', 'Failure') has_instrumentation;
|
||||
has_instrumentation
|
||||
Success
|
||||
@ -27,6 +30,9 @@ SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (1 = 1));
|
||||
SELECT (@after_count >= 0) as have_after_count;
|
||||
have_after_count
|
||||
1
|
||||
SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_ff1_timed;
|
||||
test_ff1_timed
|
||||
Success
|
||||
@ -35,6 +41,9 @@ SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (2 = 2));
|
||||
SELECT (@before_count >= 0) as have_before_count;
|
||||
have_before_count
|
||||
1
|
||||
SELECT * FROM t1 WHERE id < 6;
|
||||
id b
|
||||
1 initial value
|
||||
@ -46,6 +55,9 @@ SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
FROM performance_schema.events_waits_history_long
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (3 = 3));
|
||||
SELECT (@after_count >= 0) as have_after_count;
|
||||
have_after_count
|
||||
1
|
||||
SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_ff2_timed;
|
||||
test_ff2_timed
|
||||
Success
|
||||
|
@ -36,9 +36,9 @@ Qcache_hits 1
|
||||
select spins from performance_schema.events_waits_current order by event_name limit 1;
|
||||
spins
|
||||
NULL
|
||||
select name from performance_schema.setup_instruments order by name limit 1;
|
||||
name
|
||||
wait/io/file/aria/control
|
||||
select * from performance_schema.setup_timers where name='wait';
|
||||
NAME TIMER_NAME
|
||||
wait CYCLE
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
@ -51,9 +51,9 @@ Qcache_hits 1
|
||||
select spins from performance_schema.events_waits_current order by event_name limit 1;
|
||||
spins
|
||||
NULL
|
||||
select name from performance_schema.setup_instruments order by name limit 1;
|
||||
name
|
||||
wait/io/file/aria/control
|
||||
select * from performance_schema.setup_timers where name='wait';
|
||||
NAME TIMER_NAME
|
||||
wait CYCLE
|
||||
show status like "Qcache_queries_in_cache";
|
||||
Variable_name Value
|
||||
Qcache_queries_in_cache 1
|
||||
|
@ -41,6 +41,7 @@ SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD'));
|
||||
|
||||
SELECT (@before_count >= 0) as have_before_count;
|
||||
SELECT IF(@before_count > 0, 'Success', 'Failure') has_instrumentation;
|
||||
|
||||
SELECT * FROM t1 WHERE id < 4;
|
||||
@ -50,6 +51,7 @@ SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (1 = 1));
|
||||
|
||||
SELECT (@after_count >= 0) as have_after_count;
|
||||
SELECT IF((@after_count - @before_count) > 0, 'Success', 'Failure') test_ff1_timed;
|
||||
|
||||
UPDATE performance_schema.setup_instruments SET enabled='NO';
|
||||
@ -59,6 +61,7 @@ SET @before_count = (SELECT SUM(TIMER_WAIT)
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (2 = 2));
|
||||
|
||||
SELECT (@before_count >= 0) as have_before_count;
|
||||
SELECT * FROM t1 WHERE id < 6;
|
||||
|
||||
SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
@ -66,6 +69,7 @@ SET @after_count = (SELECT SUM(TIMER_WAIT)
|
||||
WHERE (EVENT_NAME = 'wait/io/file/myisam/dfile')
|
||||
AND (OBJECT_NAME LIKE '%t1.MYD') AND (3 = 3));
|
||||
|
||||
SELECT (@after_count >= 0) as have_after_count;
|
||||
SELECT IF((COALESCE(@after_count, 0) - COALESCE(@before_count, 0)) = 0, 'Success', 'Failure') test_ff2_timed;
|
||||
|
||||
#
|
||||
|
@ -34,7 +34,7 @@ show status like "Qcache_hits";
|
||||
|
||||
select spins from performance_schema.events_waits_current order by event_name limit 1;
|
||||
|
||||
select name from performance_schema.setup_instruments order by name limit 1;
|
||||
select * from performance_schema.setup_timers where name='wait';
|
||||
|
||||
show status like "Qcache_queries_in_cache";
|
||||
show status like "Qcache_inserts";
|
||||
@ -42,7 +42,7 @@ show status like "Qcache_hits";
|
||||
|
||||
select spins from performance_schema.events_waits_current order by event_name limit 1;
|
||||
|
||||
select name from performance_schema.setup_instruments order by name limit 1;
|
||||
select * from performance_schema.setup_timers where name='wait';
|
||||
|
||||
show status like "Qcache_queries_in_cache";
|
||||
show status like "Qcache_inserts";
|
||||
|
@ -114,22 +114,23 @@ id c
|
||||
3 3
|
||||
[on master]
|
||||
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
CREATE TABLE test.t5 (a INT AUTO_INCREMENT PRIMARY KEY, b INT, c INT);
|
||||
CREATE TABLE test.t5 (a INT AUTO_INCREMENT PRIMARY KEY, b DECIMAL(20,20), c INT);
|
||||
CREATE TABLE test.t1 (a INT);
|
||||
INSERT INTO test.t1 VALUES(1);
|
||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
||||
CREATE TABLE test.t_slave (a INT AUTO_INCREMENT PRIMARY KEY, b INT, c INT);
|
||||
CREATE TABLE test.t_slave (a INT AUTO_INCREMENT PRIMARY KEY, b DECIMAL(20,20), c INT);
|
||||
CREATE TRIGGER t1_update AFTER UPDATE ON test.t1 FOR EACH ROW
|
||||
INSERT INTO test.t_slave VALUES(NULL, ROUND(RAND() * 1000), @c);
|
||||
INSERT INTO test.t_slave VALUES(NULL, RAND(), @c);
|
||||
SET INSERT_ID=2;
|
||||
SET @c=2;
|
||||
SET @@rand_seed1=10000000, @@rand_seed2=1000000;
|
||||
INSERT INTO t5 VALUES (NULL, ROUND(RAND() * 1000), @c);
|
||||
INSERT INTO t5 VALUES (NULL, RAND(), @c);
|
||||
SELECT b into @b FROM test.t5;
|
||||
UPDATE test.t1 SET a=2;
|
||||
SELECT a AS 'ONE' into @a FROM test.t_slave;
|
||||
SELECT c AS 'NULL' into @c FROM test.t_slave;
|
||||
SELECT b into @b FROM test.t_slave;
|
||||
include/assert.inc [Random values from master and slave must be different]
|
||||
drop table test.t5;
|
||||
drop table test.t1;
|
||||
drop table test.t_slave;
|
||||
|
@ -11,7 +11,7 @@ include/stop_slave.inc
|
||||
change master to master_log_pos=MASTER_LOG_POS;
|
||||
start slave;
|
||||
include/wait_for_slave_io_error.inc [errno=1236]
|
||||
Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.''
|
||||
Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'binlog truncated in the middle of event; consider out of disk space on master; the first event 'master-bin.000001' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.''
|
||||
include/stop_slave_sql.inc
|
||||
show master status;
|
||||
File Position Binlog_Do_DB Binlog_Ignore_DB
|
||||
|
@ -1,7 +1,7 @@
|
||||
include/master-slave.inc
|
||||
[connection master]
|
||||
call mtr.add_suppression("Slave I/O: Got a packet bigger than 'max_allowed_packet' bytes, Error_code: 1153");
|
||||
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log:");
|
||||
call mtr.add_suppression("Slave I/O: Got a packet bigger than 'slave_max_allowed_packet' bytes, Error_code: 1153");
|
||||
call mtr.add_suppression("Log entry on master is longer than slave_max_allowed_packet");
|
||||
drop database if exists DB_NAME_OF_MAX_LENGTH_AKA_NAME_LEN_64_BYTES_____________________;
|
||||
create database DB_NAME_OF_MAX_LENGTH_AKA_NAME_LEN_64_BYTES_____________________;
|
||||
SET @@global.max_allowed_packet=1024;
|
||||
@ -30,14 +30,14 @@ include/start_slave.inc
|
||||
CREATE TABLE `t1` (`f1` LONGTEXT) ENGINE=MyISAM;
|
||||
INSERT INTO `t1`(`f1`) VALUES ('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa2048');
|
||||
include/wait_for_slave_io_error.inc [errno=1153]
|
||||
Last_IO_Error = 'Got a packet bigger than 'max_allowed_packet' bytes'
|
||||
Last_IO_Error = 'Got a packet bigger than 'slave_max_allowed_packet' bytes'
|
||||
include/stop_slave_sql.inc
|
||||
include/rpl_reset.inc
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (f1 int PRIMARY KEY, f2 LONGTEXT, f3 LONGTEXT) ENGINE=MyISAM;
|
||||
INSERT INTO t1(f1, f2, f3) VALUES(1, REPEAT('a', @@global.max_allowed_packet), REPEAT('b', @@global.max_allowed_packet));
|
||||
include/wait_for_slave_io_error.inc [errno=1236]
|
||||
Last_IO_Error = 'Got fatal error 1236 from master when reading data from binary log: 'log event entry exceeded max_allowed_packet; Increase max_allowed_packet on master; the first event '.' at XXX, the last event read from 'master-bin.000001' at XXX, the last byte read from 'master-bin.000001' at XXX.''
|
||||
include/wait_for_slave_io_error.inc [errno=1153]
|
||||
Last_IO_Error = 'Got a packet bigger than 'slave_max_allowed_packet' bytes'
|
||||
STOP SLAVE;
|
||||
RESET SLAVE;
|
||||
RESET MASTER;
|
||||
@ -52,6 +52,7 @@ SET @@global.max_allowed_packet= 1024;
|
||||
Warnings:
|
||||
Warning 1708 The value of 'max_allowed_packet' should be no less than the value of 'net_buffer_length'
|
||||
SET @@global.net_buffer_length= 1024;
|
||||
SET @@global.slave_max_allowed_packet= 1073741824;
|
||||
DROP TABLE t1;
|
||||
RESET SLAVE;
|
||||
include/rpl_end.inc
|
||||
|
@ -4,7 +4,7 @@ DROP TABLE IF EXISTS t1;
|
||||
DROP TABLE IF EXISTS t2;
|
||||
DROP TABLE IF EXISTS t3;
|
||||
create table t1 (a int auto_increment, primary key (a), b int, rand_value double not null);
|
||||
create table t2 (a int auto_increment, primary key (a), b int);
|
||||
create table t2 (a int auto_increment, primary key (a), b int) engine=innodb;
|
||||
create table t3 (a int auto_increment, primary key (a), name varchar(64) not null, old_a int, old_b int, rand_value double not null);
|
||||
create trigger t1 before insert on t1 for each row
|
||||
begin
|
||||
@ -29,7 +29,7 @@ a b
|
||||
1 2
|
||||
3 0
|
||||
4 0
|
||||
5 0
|
||||
6 0
|
||||
500 0
|
||||
select a,name, old_a, old_b, truncate(rand_value,4) from t3;
|
||||
a name old_a old_b truncate(rand_value,4)
|
||||
@ -39,7 +39,7 @@ a name old_a old_b truncate(rand_value,4)
|
||||
103 t2 1 2 0.9164
|
||||
104 t2 3 0 0.8826
|
||||
105 t2 4 0 0.6635
|
||||
106 t2 5 0 0.6699
|
||||
106 t2 6 0 0.6699
|
||||
107 t2 500 0 0.3593
|
||||
|
||||
--- On slave --
|
||||
@ -52,7 +52,7 @@ a b
|
||||
1 2
|
||||
3 0
|
||||
4 0
|
||||
5 0
|
||||
6 0
|
||||
500 0
|
||||
select a,name, old_a, old_b, truncate(rand_value,4) from t3;
|
||||
a name old_a old_b truncate(rand_value,4)
|
||||
@ -62,7 +62,7 @@ a name old_a old_b truncate(rand_value,4)
|
||||
103 t2 1 2 0.9164
|
||||
104 t2 3 0 0.8826
|
||||
105 t2 4 0 0.6635
|
||||
106 t2 5 0 0.6699
|
||||
106 t2 6 0 0.6699
|
||||
107 t2 500 0 0.3593
|
||||
drop table t1,t2,t3;
|
||||
select get_lock("bug12480",2);
|
||||
|
@ -215,21 +215,23 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
|
||||
# be filtered as well.
|
||||
#
|
||||
connection master;
|
||||
CREATE TABLE test.t5 (a INT AUTO_INCREMENT PRIMARY KEY, b INT, c INT); # ignored on slave
|
||||
# Although RAND() is from 0 to 1.0, DECIMAL(M,D), requires that M must be >= D.
|
||||
CREATE TABLE test.t5 (a INT AUTO_INCREMENT PRIMARY KEY, b DECIMAL(20,20), c INT); # ignored on slave
|
||||
CREATE TABLE test.t1 (a INT); # accepted on slave
|
||||
INSERT INTO test.t1 VALUES(1);
|
||||
|
||||
--sync_slave_with_master
|
||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
||||
CREATE TABLE test.t_slave (a INT AUTO_INCREMENT PRIMARY KEY, b INT, c INT);
|
||||
# Although RAND() is from 0 to 1.0, DECIMAL(M,D), requires that M must be >= D.
|
||||
CREATE TABLE test.t_slave (a INT AUTO_INCREMENT PRIMARY KEY, b DECIMAL(20,20), c INT);
|
||||
CREATE TRIGGER t1_update AFTER UPDATE ON test.t1 FOR EACH ROW
|
||||
INSERT INTO test.t_slave VALUES(NULL, ROUND(RAND() * 1000), @c);
|
||||
INSERT INTO test.t_slave VALUES(NULL, RAND(), @c);
|
||||
|
||||
connection master;
|
||||
SET INSERT_ID=2;
|
||||
SET @c=2;
|
||||
SET @@rand_seed1=10000000, @@rand_seed2=1000000;
|
||||
INSERT INTO t5 VALUES (NULL, ROUND(RAND() * 1000), @c); # to be ignored
|
||||
INSERT INTO t5 VALUES (NULL, RAND(), @c); # to be ignored
|
||||
SELECT b into @b FROM test.t5;
|
||||
--let $b_master=`select @b`
|
||||
UPDATE test.t1 SET a=2; # to run trigger on slave
|
||||
@ -253,10 +255,9 @@ if (`SELECT @a != 2 and @c != NULL`)
|
||||
SELECT b into @b FROM test.t_slave;
|
||||
--let $b_slave=`select @b`
|
||||
|
||||
if (`SELECT $b_slave = $b_master`)
|
||||
{
|
||||
--echo Might be pure coincidence of two randoms from master and slave table. Don not panic yet.
|
||||
}
|
||||
--let $assert_text= Random values from master and slave must be different
|
||||
--let $assert_cond= $b_master != $b_slave
|
||||
--source include/assert.inc
|
||||
|
||||
# cleanup BUG#11754117
|
||||
connection master;
|
||||
|
@ -1 +1 @@
|
||||
--max_allowed_packet=1024 --net_buffer_length=1024
|
||||
--max_allowed_packet=1024 --net_buffer_length=1024 --slave_max_allowed_packet=1024
|
||||
|
@ -11,9 +11,8 @@
|
||||
# max-out size db name
|
||||
source include/master-slave.inc;
|
||||
source include/have_binlog_format_row.inc;
|
||||
call mtr.add_suppression("Slave I/O: Got a packet bigger than 'max_allowed_packet' bytes, Error_code: 1153");
|
||||
call mtr.add_suppression("Slave I/O: Got fatal error 1236 from master when reading data from binary log:");
|
||||
|
||||
call mtr.add_suppression("Slave I/O: Got a packet bigger than 'slave_max_allowed_packet' bytes, Error_code: 1153");
|
||||
call mtr.add_suppression("Log entry on master is longer than slave_max_allowed_packet");
|
||||
let $db= DB_NAME_OF_MAX_LENGTH_AKA_NAME_LEN_64_BYTES_____________________;
|
||||
disable_warnings;
|
||||
eval drop database if exists $db;
|
||||
@ -23,6 +22,7 @@ eval create database $db;
|
||||
connection master;
|
||||
let $old_max_allowed_packet= `SELECT @@global.max_allowed_packet`;
|
||||
let $old_net_buffer_length= `SELECT @@global.net_buffer_length`;
|
||||
let $old_slave_max_allowed_packet= `SELECT @@global.slave_max_allowed_packet`;
|
||||
SET @@global.max_allowed_packet=1024;
|
||||
SET @@global.net_buffer_length=1024;
|
||||
|
||||
@ -123,11 +123,9 @@ INSERT INTO t1(f1, f2, f3) VALUES(1, REPEAT('a', @@global.max_allowed_packet), R
|
||||
|
||||
connection slave;
|
||||
# The slave I/O thread must stop after receiving
|
||||
# 1236=ER_MASTER_FATAL_ERROR_READING_BINLOG error message from master.
|
||||
--let $slave_io_errno= 1236
|
||||
|
||||
# Mask line numbers
|
||||
--let $slave_io_error_replace= / at [0-9]*/ at XXX/
|
||||
# 1153 = ER_NET_PACKET_TOO_LARGE
|
||||
--let $slave_io_errno= 1153
|
||||
--let $show_slave_io_error= 1
|
||||
--source include/wait_for_slave_io_error.inc
|
||||
|
||||
# Remove the bad binlog and clear error status on slave.
|
||||
@ -167,6 +165,7 @@ connection master;
|
||||
DROP TABLE t1;
|
||||
eval SET @@global.max_allowed_packet= $old_max_allowed_packet;
|
||||
eval SET @@global.net_buffer_length= $old_net_buffer_length;
|
||||
eval SET @@global.slave_max_allowed_packet= $old_slave_max_allowed_packet;
|
||||
# slave is stopped
|
||||
connection slave;
|
||||
DROP TABLE t1;
|
||||
|
@ -3,13 +3,10 @@
|
||||
# Adding statement include due to Bug 12574
|
||||
# TODO: Remove statement include once 12574 is patched
|
||||
--source include/have_binlog_format_mixed_or_statement.inc
|
||||
--source include/have_innodb.inc
|
||||
--source include/master-slave.inc
|
||||
--source include/have_innodb.inc
|
||||
connection slave;
|
||||
--source include/have_innodb.inc
|
||||
connection master;
|
||||
|
||||
|
||||
disable_query_log;
|
||||
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
|
||||
enable_query_log;
|
||||
@ -26,7 +23,7 @@ DROP TABLE IF EXISTS t3;
|
||||
#
|
||||
|
||||
create table t1 (a int auto_increment, primary key (a), b int, rand_value double not null);
|
||||
create table t2 (a int auto_increment, primary key (a), b int);
|
||||
create table t2 (a int auto_increment, primary key (a), b int) engine=innodb;
|
||||
create table t3 (a int auto_increment, primary key (a), name varchar(64) not null, old_a int, old_b int, rand_value double not null);
|
||||
|
||||
delimiter |;
|
||||
|
@ -0,0 +1,147 @@
|
||||
SET @start_value = @@global.slave_max_allowed_packet;
|
||||
SELECT @start_value;
|
||||
@start_value
|
||||
1073741824
|
||||
'#--------------------FN_DYNVARS_072_01------------------------#'
|
||||
SET @@global.slave_max_allowed_packet = 5000;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '5000'
|
||||
SET @@global.slave_max_allowed_packet = DEFAULT;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
||||
'#---------------------FN_DYNVARS_072_02-------------------------#'
|
||||
SET @@global.slave_max_allowed_packet = @start_value;
|
||||
SELECT @@global.slave_max_allowed_packet = 1073741824;
|
||||
@@global.slave_max_allowed_packet = 1073741824
|
||||
1
|
||||
'Bug# 34876: Incorrect Default Value is assigned to variable';
|
||||
'#--------------------FN_DYNVARS_072_03------------------------#'
|
||||
SET @@global.slave_max_allowed_packet = 1024;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
SET @@global.slave_max_allowed_packet = 1073741824;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
||||
SET @@global.slave_max_allowed_packet = 1073741824;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
||||
SET @@global.slave_max_allowed_packet = 1025;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '1025'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
SET @@global.slave_max_allowed_packet = 65535;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '65535'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
64512
|
||||
'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
|
||||
'#--------------------FN_DYNVARS_072_04-------------------------#'
|
||||
SET @@global.slave_max_allowed_packet = -1;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '-1'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
SET @@global.slave_max_allowed_packet = 100000000000;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '100000000000'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
||||
SET @@global.slave_max_allowed_packet = 10000.01;
|
||||
ERROR 42000: Incorrect argument type to variable 'slave_max_allowed_packet'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
||||
SET @@global.slave_max_allowed_packet = -1024;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '-1024'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
SET @@global.slave_max_allowed_packet = 4294967296;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '4294967296'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
||||
SET @@global.slave_max_allowed_packet = 1023;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '1023'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
|
||||
SET @@global.slave_max_allowed_packet = ON;
|
||||
ERROR 42000: Incorrect argument type to variable 'slave_max_allowed_packet'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
SET @@global.slave_max_allowed_packet = 'test';
|
||||
ERROR 42000: Incorrect argument type to variable 'slave_max_allowed_packet'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
'#-------------------FN_DYNVARS_072_05----------------------------#'
|
||||
SET @@session.slave_max_allowed_packet = 4096;
|
||||
ERROR HY000: Variable 'slave_max_allowed_packet' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SELECT @@session.slave_max_allowed_packet;
|
||||
ERROR HY000: Variable 'slave_max_allowed_packet' is a GLOBAL variable
|
||||
'#----------------------FN_DYNVARS_072_06------------------------#'
|
||||
SELECT @@global.slave_max_allowed_packet = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='slave_max_allowed_packet';
|
||||
@@global.slave_max_allowed_packet = VARIABLE_VALUE
|
||||
1
|
||||
SELECT @@slave_max_allowed_packet = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='slave_max_allowed_packet';
|
||||
@@slave_max_allowed_packet = VARIABLE_VALUE
|
||||
1
|
||||
'#---------------------FN_DYNVARS_072_07----------------------#'
|
||||
SET @@global.slave_max_allowed_packet = TRUE;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '1'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
SET @@global.slave_max_allowed_packet = FALSE;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '0'
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1024
|
||||
'#---------------------FN_DYNVARS_072_08----------------------#'
|
||||
SET @@global.slave_max_allowed_packet = 5000;
|
||||
Warnings:
|
||||
Warning 1292 Truncated incorrect slave_max_allowed_packet value: '5000'
|
||||
SELECT @@slave_max_allowed_packet = @@global.slave_max_allowed_packet;
|
||||
@@slave_max_allowed_packet = @@global.slave_max_allowed_packet
|
||||
1
|
||||
'#---------------------FN_DYNVARS_072_09----------------------#'
|
||||
SET slave_max_allowed_packet = 6000;
|
||||
ERROR HY000: Variable 'slave_max_allowed_packet' is a GLOBAL variable and should be set with SET GLOBAL
|
||||
SELECT @@slave_max_allowed_packet;
|
||||
@@slave_max_allowed_packet
|
||||
4096
|
||||
SET local.slave_max_allowed_packet = 7000;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slave_max_allowed_packet = 7000' at line 1
|
||||
SELECT local.slave_max_allowed_packet;
|
||||
ERROR 42S02: Unknown table 'local' in field list
|
||||
SET global.slave_max_allowed_packet = 8000;
|
||||
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'slave_max_allowed_packet = 8000' at line 1
|
||||
SELECT global.slave_max_allowed_packet;
|
||||
ERROR 42S02: Unknown table 'global' in field list
|
||||
SELECT slave_max_allowed_packet = @@session.slave_max_allowed_packet;
|
||||
ERROR 42S22: Unknown column 'slave_max_allowed_packet' in 'field list'
|
||||
SET @@global.slave_max_allowed_packet = @start_value;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
@@global.slave_max_allowed_packet
|
||||
1073741824
|
177
mysql-test/suite/sys_vars/t/slave_max_allowed_packet_basic.test
Normal file
177
mysql-test/suite/sys_vars/t/slave_max_allowed_packet_basic.test
Normal file
@ -0,0 +1,177 @@
|
||||
############## mysql-test\t\slave_max_allowed_packet_basic.test ##################
|
||||
# #
|
||||
# Variable Name: slave_max_allowed_packet #
|
||||
# Scope: GLOBAL #
|
||||
# Access Type: Dynamic #
|
||||
# Data Type: numeric #
|
||||
# Default Value:1073741824 #
|
||||
# Range: 1024 - 1073741824 #
|
||||
# #
|
||||
# #
|
||||
# #
|
||||
# Description: Test Cases of Dynamic System Variable slave_max_allowed_packet #
|
||||
# that checks the behavior of this variable in the following ways#
|
||||
# * Default Value #
|
||||
# * Valid & Invalid values #
|
||||
# * Scope & Access method #
|
||||
# * Data Integrity #
|
||||
# #
|
||||
###############################################################################
|
||||
|
||||
--source include/load_sysvars.inc
|
||||
|
||||
########################################################################
|
||||
# START OF slave_max_allowed_packet TESTS #
|
||||
########################################################################
|
||||
|
||||
|
||||
###########################################################################
|
||||
# Saving initial value of slave_max_allowed_packet in a temporary variable#
|
||||
###########################################################################
|
||||
|
||||
SET @start_value = @@global.slave_max_allowed_packet;
|
||||
SELECT @start_value;
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_072_01------------------------#'
|
||||
########################################################################
|
||||
# Display the DEFAULT value of slave_max_allowed_packet #
|
||||
########################################################################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = 5000;
|
||||
SET @@global.slave_max_allowed_packet = DEFAULT;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_072_02-------------------------#'
|
||||
###############################################
|
||||
# Verify default value of variable #
|
||||
###############################################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = @start_value;
|
||||
SELECT @@global.slave_max_allowed_packet = 1073741824;
|
||||
--echo 'Bug# 34876: Incorrect Default Value is assigned to variable';
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_072_03------------------------#'
|
||||
########################################################################
|
||||
# Change the value of slave_max_allowed_packet to a valid value #
|
||||
########################################################################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = 1024;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 1073741824;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 1073741824;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 1025;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 65535;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
|
||||
|
||||
|
||||
--echo '#--------------------FN_DYNVARS_072_04-------------------------#'
|
||||
###########################################################################
|
||||
# Change the value of slave_max_allowed_packet to invalid value #
|
||||
###########################################################################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = -1;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 100000000000;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_max_allowed_packet = 10000.01;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = -1024;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 4294967296;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = 1023;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
|
||||
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
|
||||
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_max_allowed_packet = ON;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
--Error ER_WRONG_TYPE_FOR_VAR
|
||||
SET @@global.slave_max_allowed_packet = 'test';
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
|
||||
|
||||
--echo '#-------------------FN_DYNVARS_072_05----------------------------#'
|
||||
###########################################################################
|
||||
# Test if accessing session slave_max_allowed_packet gives error #
|
||||
###########################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET @@session.slave_max_allowed_packet = 4096;
|
||||
--Error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
SELECT @@session.slave_max_allowed_packet;
|
||||
|
||||
|
||||
--echo '#----------------------FN_DYNVARS_072_06------------------------#'
|
||||
##############################################################################
|
||||
# Check if the value in GLOBAL & SESSION Tables matches values in variable #
|
||||
##############################################################################
|
||||
|
||||
SELECT @@global.slave_max_allowed_packet = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
|
||||
WHERE VARIABLE_NAME='slave_max_allowed_packet';
|
||||
|
||||
SELECT @@slave_max_allowed_packet = VARIABLE_VALUE
|
||||
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
|
||||
WHERE VARIABLE_NAME='slave_max_allowed_packet';
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_072_07----------------------#'
|
||||
###################################################################
|
||||
# Check if TRUE and FALSE values can be used on variable #
|
||||
###################################################################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = TRUE;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
SET @@global.slave_max_allowed_packet = FALSE;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_072_08----------------------#'
|
||||
########################################################################################################
|
||||
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
|
||||
########################################################################################################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = 5000;
|
||||
SELECT @@slave_max_allowed_packet = @@global.slave_max_allowed_packet;
|
||||
|
||||
|
||||
--echo '#---------------------FN_DYNVARS_072_09----------------------#'
|
||||
################################################################################
|
||||
# Check if slave_max_allowed_packet can be accessed with and without @@ sign #
|
||||
################################################################################
|
||||
|
||||
--Error ER_GLOBAL_VARIABLE
|
||||
SET slave_max_allowed_packet = 6000;
|
||||
SELECT @@slave_max_allowed_packet;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET local.slave_max_allowed_packet = 7000;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT local.slave_max_allowed_packet;
|
||||
--Error ER_PARSE_ERROR
|
||||
SET global.slave_max_allowed_packet = 8000;
|
||||
--Error ER_UNKNOWN_TABLE
|
||||
SELECT global.slave_max_allowed_packet;
|
||||
--Error ER_BAD_FIELD_ERROR
|
||||
SELECT slave_max_allowed_packet = @@session.slave_max_allowed_packet;
|
||||
|
||||
|
||||
##############################
|
||||
# Restore initial value #
|
||||
##############################
|
||||
|
||||
SET @@global.slave_max_allowed_packet = @start_value;
|
||||
SELECT @@global.slave_max_allowed_packet;
|
||||
|
||||
|
||||
########################################################################
|
||||
# END OF slave_max_allowed_packet TESTS #
|
||||
########################################################################
|
@ -132,11 +132,20 @@ set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
|
||||
--send create table t1 select 1 as i;
|
||||
connection addconroot1;
|
||||
set debug_sync='now WAIT_FOR parked';
|
||||
--error ER_TABLE_EXISTS_ERROR
|
||||
alter table t3 rename to t1;
|
||||
--send alter table t3 rename to t1
|
||||
connection addconroot2;
|
||||
# Wait until the above ALTER TABLE RENAME is blocked due to CREATE
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table metadata lock" and
|
||||
info = "alter table t3 rename to t1";
|
||||
--source include/wait_condition.inc
|
||||
set debug_sync='now SIGNAL go';
|
||||
connection default;
|
||||
--reap
|
||||
connection addconroot1;
|
||||
--error ER_TABLE_EXISTS_ERROR
|
||||
--reap
|
||||
connection default;
|
||||
show create table t1;
|
||||
drop table t1;
|
||||
@ -146,11 +155,21 @@ set debug_sync='create_table_select_before_create SIGNAL parked WAIT_FOR go';
|
||||
--send create table t1 select 1 as i;
|
||||
connection addconroot1;
|
||||
set debug_sync='now WAIT_FOR parked';
|
||||
--error ER_TABLE_EXISTS_ERROR
|
||||
alter table t3 rename to t1, add k int;
|
||||
--send alter table t3 rename to t1, add k int
|
||||
connection addconroot2;
|
||||
# Wait until the above ALTER TABLE RENAME is blocked due to CREATE
|
||||
let $wait_condition=
|
||||
select count(*) = 1 from information_schema.processlist
|
||||
where state = "Waiting for table metadata lock" and
|
||||
info = "alter table t3 rename to t1, add k int";
|
||||
--source include/wait_condition.inc
|
||||
set debug_sync='now SIGNAL go';
|
||||
connection default;
|
||||
--reap
|
||||
connection addconroot1;
|
||||
--error ER_TABLE_EXISTS_ERROR
|
||||
--reap
|
||||
connection default;
|
||||
show create table t1;
|
||||
drop table t1,t3;
|
||||
|
||||
|
@ -854,6 +854,11 @@ SELECT 'a' AS id, REPEAT('bla bla', 100) AS body) t1
|
||||
GROUP BY id
|
||||
ORDER BY l DESC;
|
||||
|
||||
--echo #
|
||||
--echo # incorrect charset for val_str_ascii
|
||||
--echo #
|
||||
|
||||
SELECT '2010-10-10 10:10:10' + INTERVAL GeometryType(GeomFromText('POINT(1 1)')) hour_second;
|
||||
|
||||
--echo #
|
||||
--echo # End of 5.5 tests
|
||||
|
20
mysql-test/t/mdev375.test
Normal file
20
mysql-test/t/mdev375.test
Normal file
@ -0,0 +1,20 @@
|
||||
#
|
||||
# MDEV-375 Server crashes in THD::print_aborted_warning with log_warnings > 3
|
||||
#
|
||||
SET GLOBAL log_warnings=4;
|
||||
SET GLOBAL max_connections=2;
|
||||
|
||||
--connect (con1,localhost,root,,)
|
||||
SELECT 1;
|
||||
--connect (con2,localhost,root,,)
|
||||
SELECT 2;
|
||||
--disable_query_log
|
||||
--error ER_CON_COUNT_ERROR
|
||||
--connect (con3,localhost,root,,)
|
||||
--enable_query_log
|
||||
|
||||
--connection default
|
||||
SELECT 0;
|
||||
|
||||
SET GLOBAL log_warnings=default;
|
||||
SET GLOBAL max_connections=default;
|
@ -372,11 +372,11 @@ let $MYSQL_PLUGIN_CMD= $MYSQL_PLUGIN -n --datadir=$MYSQL_DATADIR --basedir=$MYSQ
|
||||
--echo # Show the help.
|
||||
--echo #
|
||||
replace_result $MYSQL_PLUGIN mysql_plugin;
|
||||
--replace_regex /Ver [0-9.]+ Distrib [0-9.]+/Ver V.V.VV Distrib XX.XX.XX/ /XX-m[0-9]+/XX/
|
||||
--replace_regex /Ver [0-9.]+ Distrib [0-9.]+/Ver V.V.VV Distrib XX.XX.XX/ /XX-m[0-9]+/XX/ /XX[a-z]/XX/
|
||||
--exec $MYSQL_PLUGIN --help
|
||||
|
||||
replace_result $MYSQL_PLUGIN mysql_plugin;
|
||||
--replace_regex /Ver [0-9.]+ Distrib [0-9.]+/Ver V.V.VV Distrib XX.XX.XX/ /XX-m[0-9]+/XX/
|
||||
--replace_regex /Ver [0-9.]+ Distrib [0-9.]+/Ver V.V.VV Distrib XX.XX.XX/ /XX-m[0-9]+/XX/ /XX[a-z]/XX/
|
||||
--exec $MYSQL_PLUGIN --version
|
||||
|
||||
#
|
||||
|
@ -160,6 +160,14 @@ SELECT COUNT(*) AS total_rows, MIN(c1) AS min_value, MAX(c1) FROM t1;
|
||||
SELECT COUNT(*) AS total_rows, MIN(c1+0) AS min_value, MAX(c1+0) FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
--echo # WL#6219: Deprecate and remove YEAR(2) type
|
||||
--echo #
|
||||
|
||||
CREATE TABLE t1 (c1 YEAR(2), c2 YEAR(4));
|
||||
ALTER TABLE t1 MODIFY COLUMN c2 YEAR(2);
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
Reference in New Issue
Block a user