dbms: fixed error with function negate on UInt32 [#METR-2944].

This commit is contained in:
Alexey Milovidov 2014-08-09 06:29:03 +04:00
parent 8038d2ab66
commit 69ba035488
3 changed files with 3 additions and 1 deletions

View File

@ -221,7 +221,7 @@ struct NegateImpl
static inline ResultType apply(A a)
{
return -a;
return -static_cast<ResultType>(a);
}
};

View File

@ -0,0 +1 @@
-1 Int64

View File

@ -0,0 +1 @@
SELECT -toUInt32(1) AS x, toTypeName(x) AS t