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

jdbc: metadata: provide nullsAreSorted*() #120

Closed
Totktonada opened this issue Jan 23, 2019 · 0 comments
Closed

jdbc: metadata: provide nullsAreSorted*() #120

Totktonada opened this issue Jan 23, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@Totktonada
Copy link
Member

Totktonada commented Jan 23, 2019

DatabaseMetaData.

The following methods should return the following values:

  • nullsAreSortedAtEnd -- false
  • nullsAreSortedAtStart -- false
  • nullsAreSortedHigh -- false
  • nullsAreSortedLow -- true

Also we need to cover these methods with a test.

How to check:

box.cfg{}
\set language sql
create table t(id int primary key, v text);
insert into t values (1, 'a') 
insert into t values (2, 'b') 
insert into t values (3, 'c') 
insert into t values (4, null)
insert into t values (5, null)
insert into t values (6, null)
select * from T order by v
---
- - [4, null]
  - [5, null]
  - [6, null]
  - [1, 'a']
  - [2, 'b']
  - [3, 'c']
... 

select * from T order by v desc
---
- - [3, 'c']
  - [2, 'b']
  - [1, 'a']
  - [4, null]
  - [5, null]
  - [6, null]
@Totktonada Totktonada modified the milestones: JDBC MVP, JDBC metadata Jan 23, 2019
nicktorwald added a commit that referenced this issue Apr 8, 2019
Add support for nullsAreSortedLow as a default sorting which is provided
by Tarantool DB.

Fixes: #120
@nicktorwald nicktorwald self-assigned this Apr 8, 2019
nicktorwald added a commit that referenced this issue Apr 16, 2019
Add support for nullsAreSortedLow as a default sorting which is provided
by Tarantool DB.

Fixes: #120
nicktorwald added a commit that referenced this issue Apr 17, 2019
Add support for nullsAreSortedLow as a default sorting which is provided
by Tarantool DB.

Fixes: #120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants