Tarantool discussions archive
 help / color / mirror / Atom feed
* [Tarantool-discussions] Check implicit cast between strings and numbers
@ 2020-07-06 13:52 Mergen Imeev
  2020-07-06 19:51 ` Peter Gulutzan
  0 siblings, 1 reply; 4+ messages in thread
From: Mergen Imeev @ 2020-07-06 13:52 UTC (permalink / raw)
  To: tarantool-discussions, Peter Gulutzan, Nikita Pettik,
	Vladislav Shpilevoy, tsafin

Hi,

Peter, could you please take a look at my branch and say if
something is wrong with the implicit casts between strings and
numerics. I mean, there shouldn't be any.

Branch: imeevma/gh-3809-disallow-imlicit-cast-from-string-to-nums

There should be no implicit casts for assignment after this patch,
except for the following:
1) Any type can be implicitly cast to ANY.
2) Any scalar type can be implicitly cast to SCALAR.
3) Any numeric type can be implicitly cast to NUMBER.
4) In some cases, numbers can be implicitly converted to another
number type. The rules can be seen in the commit message of the
patches.

For comparison, we say that any numbers can be compared with each
other. However, you may find some cases where the result is not
what it should be. This will be fixed in another issue.

Also, comparison with SCALAR does not work correctly. This will
also be fixed later after we decide how this should work.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-07-08 18:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-06 13:52 [Tarantool-discussions] Check implicit cast between strings and numbers Mergen Imeev
2020-07-06 19:51 ` Peter Gulutzan
2020-07-08 16:58   ` Mergen Imeev
2020-07-08 18:58     ` Peter Gulutzan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox