[Tarantool-discussions] Implicit cast for ASSIGNMENT

Konstantin Osipov kostja.osipov at gmail.com
Thu Apr 30 17:28:21 MSK 2020


* Peter Gulutzan <pgulutzan at ocelot.ca> [20/04/30 17:16]:
> I of course think that it should work,
> but K. Yukhin decided it should not work.
> 
> With regard to the earlier questions
> 
> Unfortunately assigning 1.1 to an INTEGER fails.
> "Implicit casting among the numeric data types"
> is a mandatory feature of standard SQL,
> My opinion was that implicit cast should be legal
> https://github.com/tarantool/tarantool/issues/4216
> However, K. Yukhin closed that issue.
> 
> I also believed that typeof(1.0) should be DECIMAL.
> https://github.com/tarantool/tarantool/issues/4415
> But currently typeof(1.0) is DOUBLE.

OK, I didn't know it's ANSI. I withdraw my previous remarks and
side with Peter. Please do as he says about implicit casts of
numeric types.


-- 
Konstantin Osipov, Moscow, Russia


More information about the Tarantool-discussions mailing list