From: "Timur Safin" <tsafin@tarantool.org>
To: 'Roman Khabibov' <roman.habibov@tarantool.org>
Cc: tarantool-patches@dev.tarantool.org
Subject: Re: [Tarantool-patches] [PATCH] sql: fix number and boolean sorting rules
Date: Fri, 17 Apr 2020 14:51:36 +0300 [thread overview]
Message-ID: <1e3201d614ae$8cc16d40$a64447c0$@tarantool.org> (raw)
In-Reply-To: <8A7E5353-3471-4B54-91F7-F35AB4A4B039@tarantool.org>
: -----Original Message-----
: From: Roman Khabibov <roman.habibov@tarantool.org>
: Sent: Friday, April 17, 2020 2:25 PM
: To: Timur Safin <tsafin@tarantool.org>
: Cc: Mergen Imeev <imeevma@tarantool.org>; tarantool-
: patches@dev.tarantool.org
: Subject: Re: [PATCH] sql: fix number and boolean sorting rules
:
: Hi! Thanks for the review.
:
: > On Apr 17, 2020, at 10:27, Timur Safin <tsafin@tarantool.org> wrote:
: >
: > As a random bypasser I could not resist and not add my 5 kopecks (see
: below).
: >
: >
: Fixed.
:
: commit 386ba8676c0ebd381d9c03b2ebf80abd986de73b (HEAD -> romanhabibov/gh-
: 4697-scalar-bug, origin/romanhabibov/gh-4697-scalar-bug)
: Author: Roman Khabibov <roman.habibov@tarantool.org>
: Date: Mon Apr 13 05:03:54 2020 +0300
:
: sql: fix sorting rules for scalar
:
: Sort valuesin the correct order for scalar type when using the
: vdbe sorter. Boolean always precedes number if it is sorted in
: ascending order.
:
: Closes #4697
:
: diff --git a/test/sql-tap/gh-4697-scalar-bug.test.lua b/test/sql-tap/gh-
: 4697-scalar-bug.test.lua
: new file mode 100755
: index 000000000..6f600f27b
: --- /dev/null
: +++ b/test/sql-tap/gh-4697-scalar-bug.test.lua
: @@ -0,0 +1,35 @@
: +#!/usr/bin/env tarantool
: +test = require("sqltester")
: +test:plan(2)
: +
: +--
: +-- gh-4679: Make sure that boolean follow before any number within
: +-- scalar. Result with order by indexed (using index) and
: +-- non-indexed (using no index) must be the same.
: +--
Not everywhere (see the same problem above ^ in the test code)
Timur
P.S.
That was the purpose of 'g' modifier in my sed expression :)
To replace all occurrences, not only the first one.
next prev parent reply other threads:[~2020-04-17 11:51 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-13 4:11 Roman Khabibov
2020-04-15 19:41 ` Mergen Imeev
2020-04-16 0:34 ` Roman Khabibov
2020-04-16 8:17 ` Mergen Imeev
2020-04-17 0:48 ` Roman Khabibov
2020-04-17 6:35 ` Mergen Imeev
2020-04-17 7:27 ` Timur Safin
2020-04-17 11:25 ` Roman Khabibov
2020-04-17 11:51 ` Timur Safin [this message]
2020-04-18 2:46 ` Roman Khabibov
2020-04-18 9:18 ` Timur Safin
2020-04-20 0:12 ` Roman Khabibov
2020-04-20 1:05 ` Nikita Pettik
2020-04-20 20:28 ` Roman Khabibov
2020-04-20 23:57 ` Nikita Pettik
2020-04-24 13:03 ` Roman Khabibov
2020-04-27 1:34 ` Nikita Pettik
2020-04-27 15:31 ` Nikita Pettik
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='1e3201d614ae$8cc16d40$a64447c0$@tarantool.org' \
--to=tsafin@tarantool.org \
--cc=roman.habibov@tarantool.org \
--cc=tarantool-patches@dev.tarantool.org \
--subject='Re: [Tarantool-patches] [PATCH] sql: fix number and boolean sorting rules' \
/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