mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
dbms: fixed error with function negate on UInt32 [#METR-2944].
This commit is contained in:
parent
8038d2ab66
commit
69ba035488
@ -221,7 +221,7 @@ struct NegateImpl
|
||||
|
||||
static inline ResultType apply(A a)
|
||||
{
|
||||
return -a;
|
||||
return -static_cast<ResultType>(a);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -0,0 +1 @@
|
||||
-1 Int64
|
1
dbms/tests/queries/0_stateless/00064_negate_bug.sql
Normal file
1
dbms/tests/queries/0_stateless/00064_negate_bug.sql
Normal file
@ -0,0 +1 @@
|
||||
SELECT -toUInt32(1) AS x, toTypeName(x) AS t
|
Loading…
Reference in New Issue
Block a user