mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
str2decimal: don't return a negative zero
This commit is contained in:
parent
4a3acbcfd0
commit
02d153c7b9
4 changed files with 10 additions and 4 deletions
|
|
@ -222,7 +222,6 @@ drop table t1;
|
|||
create table t1 (a decimal(10,2) unsigned);
|
||||
insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'a' at row 2
|
||||
Warning 1264 Out of range value for column 'a' at row 6
|
||||
insert into t1 values ("-.1"),("+.1"),(".1");
|
||||
Warnings:
|
||||
|
|
@ -281,7 +280,6 @@ drop table t1;
|
|||
create table t1 (a decimal(10,2) zerofill);
|
||||
insert into t1 values ("0.0"),("-0.0"),("+0.0"),("01.0"),("+01.0"),("-01.0");
|
||||
Warnings:
|
||||
Warning 1264 Out of range value for column 'a' at row 2
|
||||
Warning 1264 Out of range value for column 'a' at row 6
|
||||
insert into t1 values ("-.1"),("+.1"),(".1");
|
||||
Warnings:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue