Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: fix compatibility with Tarantool master #295

Merged
merged 1 commit into from
May 25, 2023

Conversation

oleg-jukovec
Copy link
Collaborator

New behavior: SELECT scan queries are only allowed if the SEQSCAN keyword is used correctly[1].

  1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/compat/sql_seq_scan_default/

I didn't forget about (remove if it is not applicable):

Related issues:

tarantool/tarantool#8602

New behavior: SELECT scan queries are only allowed if the SEQSCAN
keyword is used correctly[1].

1. https://www.tarantool.io/en/doc/latest/reference/reference_lua/compat/sql_seq_scan_default/

Related to tarantool/tarantool#8602
@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/fix-seq-scan branch from 6d7579b to 82a6f1d Compare May 24, 2023 19:13
@oleg-jukovec oleg-jukovec marked this pull request as ready for review May 24, 2023 19:21
query := "SELECT * FROM seqscan data;"
if isSeqScanOld, err := test_helpers.IsTarantoolVersionLess(3, 0, 0); err != nil {
t.Fatal("Could not check the Tarantool version")
} else if isSeqScanOld {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, Seqscan was introduced in 2.11.0-rc1 (but it's not required by default), so you may use this condition too.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is a good idea to test the default, which is 'old' for 2.11 and 'new` (with seqscan key word) in 3.0 and up.

@oleg-jukovec oleg-jukovec force-pushed the oleg-jukovec/fix-seq-scan branch 4 times, most recently from b950746 to 82a6f1d Compare May 25, 2023 09:22
@oleg-jukovec oleg-jukovec merged commit d6ede31 into master May 25, 2023
@oleg-jukovec oleg-jukovec deleted the oleg-jukovec/fix-seq-scan branch May 25, 2023 09:57
oleg-jukovec added a commit that referenced this pull request May 29, 2023
Overview

New features

    Connection.CloseGraceful() unlike Connection.Close() waits for all
    requests to complete (#257).

    ConnectionPool.CloseGraceful() unlike ConnectionPool.Close() waits
    for all requests to complete (#257).

    ConnectionPool.Add()/ConnectionPool.Remove() to add/remove endpoints
    from a pool (#290).

Other

    Updates crud tests with Tarantool 3.0 (#293).

    Updates SQL tests with Tarantool 3.0 (#295).
oleg-jukovec added a commit that referenced this pull request May 29, 2023
Overview

The release introduces the ability to gracefully close Connection
and ConnectionPool and also provides methods for adding or removing
an endpoint from a ConnectionPool.

Breaking changes

    There are no breaking changes in the release.

New features

    Connection.CloseGraceful() unlike Connection.Close() waits for all
    requests to complete (#257).

    ConnectionPool.CloseGraceful() unlike ConnectionPool.Close() waits
    for all requests to complete (#257).

    ConnectionPool.Add()/ConnectionPool.Remove() to add/remove endpoints
    from a pool (#290).

Other

    Updates crud tests with Tarantool 3.0 (#293).

    Updates SQL tests with Tarantool 3.0 (#295).
oleg-jukovec added a commit that referenced this pull request May 29, 2023
Overview

    The release introduces the ability to gracefully close Connection
    and ConnectionPool and also provides methods for adding or
    removing an endpoint from a ConnectionPool.

Breaking changes

    There are no breaking changes in the release.

New features

    Connection.CloseGraceful() unlike Connection.Close() waits for all
    requests to complete (#257).

    ConnectionPool.CloseGraceful() unlike ConnectionPool.Close() waits
    for all requests to complete (#257).

    ConnectionPool.Add()/ConnectionPool.Remove() to add/remove endpoints
    from a pool (#290).

Other

    Updates crud tests with Tarantool 3.0 (#293).

    Updates SQL tests with Tarantool 3.0 (#295).
@oleg-jukovec oleg-jukovec mentioned this pull request May 29, 2023
oleg-jukovec added a commit that referenced this pull request Jun 6, 2023
Overview

    The release introduces the ability to gracefully close Connection
    and ConnectionPool and also provides methods for adding or
    removing an endpoint from a ConnectionPool.

Breaking changes

    There are no breaking changes in the release.

New features

    Connection.CloseGraceful() unlike Connection.Close() waits for all
    requests to complete (#257).

    ConnectionPool.CloseGraceful() unlike ConnectionPool.Close() waits
    for all requests to complete (#257).

    ConnectionPool.Add()/ConnectionPool.Remove() to add/remove endpoints
    from a pool (#290).

Other

    Updates crud tests with Tarantool 3.0 (#293).

    Updates SQL tests with Tarantool 3.0 (#295).
oleg-jukovec added a commit that referenced this pull request Jun 7, 2023
Overview

    The release introduces the ability to gracefully close Connection
    and ConnectionPool and also provides methods for adding or
    removing an endpoint from a ConnectionPool.

Breaking changes

    There are no breaking changes in the release.

New features

    Connection.CloseGraceful() unlike Connection.Close() waits for all
    requests to complete (#257).

    ConnectionPool.CloseGraceful() unlike ConnectionPool.Close() waits
    for all requests to complete (#257).

    ConnectionPool.Add()/ConnectionPool.Remove() to add/remove endpoints
    from a pool (#290).

Other

    Updates crud tests with Tarantool 3.0 (#293).

    Updates SQL tests with Tarantool 3.0 (#295).
oleg-jukovec added a commit that referenced this pull request Jun 7, 2023
Overview

    The release introduces the ability to gracefully close Connection
    and ConnectionPool and also provides methods for adding or
    removing an endpoint from a ConnectionPool.

Breaking changes

    There are no breaking changes in the release.

New features

    Connection.CloseGraceful() unlike Connection.Close() waits for all
    requests to complete (#257).

    ConnectionPool.CloseGraceful() unlike ConnectionPool.Close() waits
    for all requests to complete (#257).

    ConnectionPool.Add()/ConnectionPool.Remove() to add/remove endpoints
    from a pool (#290).

Other

    Updates crud tests with Tarantool 3.0 (#293).

    Updates SQL tests with Tarantool 3.0 (#295).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants