mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
MDEV-6287 Bad warning level when inserting a DATETIME value into a TIME column
This commit is contained in:
parent
4211b1cd48
commit
ce84ba2f81
7 changed files with 27 additions and 27 deletions
|
@ -3256,7 +3256,7 @@ values
|
|||
( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3264,7 +3264,7 @@ values
|
|||
( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt1 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3273,7 +3273,7 @@ values
|
|||
execute stmt1 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt2 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3282,7 +3282,7 @@ values
|
|||
execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
set @arg00= 'abc' ;
|
||||
set @arg00= NULL ;
|
||||
|
|
|
@ -3239,7 +3239,7 @@ values
|
|||
( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3247,7 +3247,7 @@ values
|
|||
( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt1 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3256,7 +3256,7 @@ values
|
|||
execute stmt1 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt2 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3265,7 +3265,7 @@ values
|
|||
execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
set @arg00= 'abc' ;
|
||||
set @arg00= NULL ;
|
||||
|
|
|
@ -3240,7 +3240,7 @@ values
|
|||
( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3248,7 +3248,7 @@ values
|
|||
( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt1 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3257,7 +3257,7 @@ values
|
|||
execute stmt1 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt2 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3266,7 +3266,7 @@ values
|
|||
execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
set @arg00= 'abc' ;
|
||||
set @arg00= NULL ;
|
||||
|
|
|
@ -3176,7 +3176,7 @@ values
|
|||
( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3184,7 +3184,7 @@ values
|
|||
( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt1 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3193,7 +3193,7 @@ values
|
|||
execute stmt1 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt2 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3202,7 +3202,7 @@ values
|
|||
execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
set @arg00= 'abc' ;
|
||||
set @arg00= NULL ;
|
||||
|
@ -6530,7 +6530,7 @@ values
|
|||
( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -6538,7 +6538,7 @@ values
|
|||
( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt1 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -6547,7 +6547,7 @@ values
|
|||
execute stmt1 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt2 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -6556,7 +6556,7 @@ values
|
|||
execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
set @arg00= 'abc' ;
|
||||
set @arg00= NULL ;
|
||||
|
|
|
@ -11,10 +11,10 @@ Warnings:
|
|||
Note 1265 Data truncated for column 'a' at row 1
|
||||
insert t1 values (20101211010203.45678);
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'a' at row 1
|
||||
Note 1265 Data truncated for column 'a' at row 1
|
||||
insert t1 values (20101211030405.789e0);
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'a' at row 1
|
||||
Note 1265 Data truncated for column 'a' at row 1
|
||||
insert t1 values (99991231235959e1);
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'a' at row 1
|
||||
|
|
|
@ -3256,7 +3256,7 @@ values
|
|||
( 50, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10, 1.0e+10 ) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3264,7 +3264,7 @@ values
|
|||
( 51, @arg00, @arg00, @arg00, @arg00, @arg00) ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt1 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3273,7 +3273,7 @@ values
|
|||
execute stmt1 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
prepare stmt2 from "insert into t9
|
||||
( c1, c13, c14, c15, c16, c17 )
|
||||
|
@ -3282,7 +3282,7 @@ values
|
|||
execute stmt2 using @arg00, @arg00, @arg00, @arg00, @arg00 ;
|
||||
Warnings:
|
||||
Warning 1265 Data truncated for column 'c15' at row 1
|
||||
Warning 1265 Data truncated for column 'c16' at row 1
|
||||
Note 1265 Data truncated for column 'c16' at row 1
|
||||
Warning 1264 Out of range value for column 'c17' at row 1
|
||||
set @arg00= 'abc' ;
|
||||
set @arg00= NULL ;
|
||||
|
|
|
@ -1317,7 +1317,7 @@ int number_to_time(my_bool neg, longlong nr, ulong sec_part,
|
|||
|
||||
ltime->year= ltime->month= ltime->day= 0;
|
||||
ltime->time_type= MYSQL_TIMESTAMP_TIME;
|
||||
*was_cut= MYSQL_TIME_WARN_TRUNCATED;
|
||||
*was_cut= MYSQL_TIME_NOTE_TRUNCATED;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue