mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Fix for bug when zeros are to be prepended to decimal field
This commit is contained in:
@ -363,3 +363,9 @@ CREATE TABLE t1 (a_dec DECIMAL(-2,1));
|
||||
Too big column length for column 'a_dec' (max = 255). Use BLOB instead
|
||||
CREATE TABLE t1 (a_dec DECIMAL(-1,1));
|
||||
Too big column length for column 'a_dec' (max = 255). Use BLOB instead
|
||||
create table t1(a decimal(10,4));
|
||||
insert into t1 values ("+0000100000000");
|
||||
select * from t1;
|
||||
a
|
||||
9999999.9999
|
||||
drop table t1;
|
||||
|
@ -240,3 +240,9 @@ CREATE TABLE t1 (a_dec DECIMAL(-1,0));
|
||||
CREATE TABLE t1 (a_dec DECIMAL(-2,1));
|
||||
--error 1074
|
||||
CREATE TABLE t1 (a_dec DECIMAL(-1,1));
|
||||
|
||||
# Zero prepend overflow bug
|
||||
create table t1(a decimal(10,4));
|
||||
insert into t1 values ("+0000100000000");
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user