mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into mysql.com:/usr/home/ram/work/bug22271/my50-bug22271 sql/field.cc: Auto merged
This commit is contained in:
@ -602,4 +602,12 @@ NULL NULL
|
||||
0 0
|
||||
11111111 11111111
|
||||
drop table bug15583;
|
||||
create table t1(a bit(1), b smallint unsigned);
|
||||
insert into t1 (b, a) values ('2', '1');
|
||||
Warnings:
|
||||
Warning 1264 Out of range value adjusted for column 'a' at row 1
|
||||
select hex(a), b from t1;
|
||||
hex(a) b
|
||||
1 2
|
||||
drop table t1;
|
||||
End of 5.0 tests
|
||||
|
@ -252,5 +252,13 @@ select hex(b + 0), bin(b + 0), oct(b + 0), hex(n), bin(n), oct(n) from bug15583;
|
||||
select conv(b, 10, 2), conv(b + 0, 10, 2) from bug15583;
|
||||
drop table bug15583;
|
||||
|
||||
#
|
||||
# Bug #22271: data casting may affect data stored in the next column(s?)
|
||||
#
|
||||
|
||||
create table t1(a bit(1), b smallint unsigned);
|
||||
insert into t1 (b, a) values ('2', '1');
|
||||
select hex(a), b from t1;
|
||||
drop table t1;
|
||||
|
||||
--echo End of 5.0 tests
|
||||
|
Reference in New Issue
Block a user