Tarantool development patches archive
 help / color / mirror / Atom feed
From: Konstantin Osipov <kostja@tarantool.org>
To: tarantool-patches@freelists.org
Cc: szudin@tarantool.org
Subject: [tarantool-patches] Re: [PATCH 04/13] sql: support big integers within sql binding
Date: Tue, 2 Apr 2019 10:46:46 +0300	[thread overview]
Message-ID: <20190402074646.GE25072@chai> (raw)
In-Reply-To: <7B68C4B8-A53B-483E-AD57-8A746682FD73@tarantool.org>

* n.pettik <korablev@tarantool.org> [19/03/25 18:13]:
> > +
> > +		SQL_BLOB,	/* 0x20 */
> > +		SQL_NULL,	/* 0x21 */
> > +		SQL_TEXT,	/* 0x22 */
> > +		SQL_NULL,	/* 0x23 */
> > +		SQL_UNSIGNED,	/* 0x24 */
> > +		SQL_NULL,	/* 0x25 */
> > +		SQL_UNSIGNED,	/* 0x26 */
> > +		SQL_NULL,	/* 0x27 */
> > +		SQL_FLOAT,	/* 0x28 */
> > +		SQL_NULL,	/* 0x29 */
> > +		SQL_FLOAT,	/* 0x2a */
> > +		SQL_NULL,	/* 0x2b */
> > +		SQL_INTEGER,	/* 0x2c */
> > +		SQL_NULL,	/* 0x2d */
> > +		SQL_INTEGER,	/* 0x2e */
> > +		SQL_NULL,	/* 0x2f */
> > +		SQL_BLOB,	/* 0x30 */
> > +		SQL_NULL,	/* 0x31 */
> > +		SQL_TEXT,	/* 0x32 */
> > +		SQL_NULL,	/* 0x33 */
> > +		SQL_INTEGER,	/* 0x34 */
> > +		SQL_NULL,	/* 0x35 */
> > +		SQL_INTEGER,	/* 0x36 */
> > +		SQL_NULL,	/* 0x37 */
> > +		SQL_FLOAT,	/* 0x38 */
> > +		SQL_NULL,	/* 0x39 */
> > +		SQL_FLOAT,	/* 0x3a */
> > +		SQL_NULL,	/* 0x3b */
> > +		SQL_INTEGER,	/* 0x3c */
> > +		SQL_NULL,	/* 0x3d */
> > +		SQL_INTEGER,	/* 0x3e */
> > +		SQL_NULL,	/* 0x3f */
> 
> Looks terrible. Could we rework this mechanism of fetching type?
> Soon we are going to add several types more, so the size of array
> will become enormous.

I hope we can kill this array altogether as well as mem flags and
use a combination of mp_type and enum field_type wherever
possible.

-- 
Konstantin Osipov, Moscow, Russia, +7 903 626 22 32
http://tarantool.io - www.twitter.com/kostja_osipov

  parent reply	other threads:[~2019-04-02  7:46 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-15 15:45 [PATCH 00/13] sql: support -2^63 .. 2^64-1 integer type Stanislav Zudin
2019-03-15 15:45 ` [PATCH 01/13] sql: Convert big integers from string Stanislav Zudin
2019-03-25 15:10   ` [tarantool-patches] " n.pettik
2019-04-01 20:39     ` Stanislav Zudin
2019-04-02  7:27     ` Konstantin Osipov
2019-03-15 15:45 ` [PATCH 02/13] sql: make VDBE recognize big integers Stanislav Zudin
2019-03-25 15:11   ` [tarantool-patches] " n.pettik
2019-04-01 20:42     ` Stanislav Zudin
2019-04-02  7:38   ` [tarantool-patches] " Konstantin Osipov
2019-03-15 15:45 ` [PATCH 03/13] sql: removes unused function Stanislav Zudin
2019-03-25 15:11   ` [tarantool-patches] " n.pettik
2019-04-01 20:39     ` Stanislav Zudin
2019-03-15 15:45 ` [PATCH 04/13] sql: support big integers within sql binding Stanislav Zudin
2019-03-25 15:12   ` [tarantool-patches] " n.pettik
2019-04-01 20:42     ` Stanislav Zudin
2019-04-02  7:46     ` Konstantin Osipov [this message]
2019-04-02  7:44   ` [tarantool-patches] " Konstantin Osipov
2019-03-15 15:45 ` [PATCH 05/13] sql: removes redundant function Stanislav Zudin
2019-03-25 15:12   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 06/13] sql: aux functions to support big integers Stanislav Zudin
2019-03-25 15:13   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 07/13] sql: arithmetic functions " Stanislav Zudin
2019-03-25 15:13   ` [tarantool-patches] " n.pettik
2019-04-01 20:43     ` Stanislav Zudin
2019-04-02  7:54       ` Konstantin Osipov
2019-04-02  7:52     ` Konstantin Osipov
2019-03-15 15:45 ` [PATCH 08/13] sql: aggregate sql functions support big int Stanislav Zudin
2019-03-25 15:13   ` [tarantool-patches] " n.pettik
2019-04-01 20:43     ` Stanislav Zudin
2019-04-02  7:57   ` [tarantool-patches] " Konstantin Osipov
2019-03-15 15:45 ` [PATCH 09/13] sql: fixes errors Stanislav Zudin
2019-03-25 15:14   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 10/13] sql: fixes an error in sqlSubInt64 Stanislav Zudin
2019-03-25 15:14   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 11/13] sql: fixes an error in string to int64 conversion Stanislav Zudin
2019-03-25 15:14   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 12/13] sql: fixes an error in uint64 to double casting Stanislav Zudin
2019-03-25 15:15   ` [tarantool-patches] " n.pettik
2019-03-15 15:45 ` [PATCH 13/13] sql: support -2^63 .. 2^64-1 integer type Stanislav Zudin
2019-03-25 15:25   ` [tarantool-patches] " n.pettik
2019-04-01 20:44     ` Stanislav Zudin
2019-03-25 15:10 ` [tarantool-patches] Re: [PATCH 00/13] " n.pettik
2019-04-01 20:38   ` Stanislav Zudin

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=20190402074646.GE25072@chai \
    --to=kostja@tarantool.org \
    --cc=szudin@tarantool.org \
    --cc=tarantool-patches@freelists.org \
    --subject='[tarantool-patches] Re: [PATCH 04/13] sql: support big integers within sql binding' \
    /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