mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fix over-optimization that could result in an unsigned double field being
set to a negative value. (Bug #7700)
This commit is contained in:
@@ -67,3 +67,9 @@ drop table t1;
|
||||
create table t1 (f float(54)); # Should give an error
|
||||
drop table if exists t1;
|
||||
|
||||
# Don't allow 'double unsigned' to be set to a negative value (Bug #7700)
|
||||
create table t1 (d1 double, d2 double unsigned);
|
||||
insert into t1 set d1 = -1.0;
|
||||
update t1 set d2 = d1;
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user