Tarantool discussions archive
 help / color / mirror / Atom feed
From: Mergen Imeev <imeevma@tarantool.org>
To: tarantool-discussions@dev.tarantool.org,
	Peter Gulutzan <pgulutzan@ocelot.ca>,
	Nikita Pettik <korablev@tarantool.org>,
	Vladislav Shpilevoy <v.shpilevoy@tarantool.org>,
	tsafin@tarantool.org
Subject: [Tarantool-discussions] Check implicit cast between strings and numbers
Date: Mon, 6 Jul 2020 16:52:23 +0300	[thread overview]
Message-ID: <2a8578c7-10f5-fd38-409e-4e996f07b865@tarantool.org> (raw)

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.

             reply	other threads:[~2020-07-06 13:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-06 13:52 Mergen Imeev [this message]
2020-07-06 19:51 ` Peter Gulutzan
2020-07-08 16:58   ` Mergen Imeev
2020-07-08 18:58     ` Peter Gulutzan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2a8578c7-10f5-fd38-409e-4e996f07b865@tarantool.org \
    --to=imeevma@tarantool.org \
    --cc=korablev@tarantool.org \
    --cc=pgulutzan@ocelot.ca \
    --cc=tarantool-discussions@dev.tarantool.org \
    --cc=tsafin@tarantool.org \
    --cc=v.shpilevoy@tarantool.org \
    --subject='Re: [Tarantool-discussions] Check implicit cast between strings and numbers' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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