Skip to content
Snippets Groups Projects
Commit 7a1c93d1 authored by Konstantin Osipov's avatar Konstantin Osipov
Browse files

sql-tests-rewrite: review fixes

Remove trailing spaces, fix typos.
parent b7091e68
No related branches found
No related tags found
No related merge requests found
......@@ -9,8 +9,8 @@ box.cfg{
require('console').listen(os.getenv('ADMIN'))
function compare(a,b)
return a[1] < b[1]
function compare(a,b)
return a[1] < b[1]
end
function sorted(data)
......
......@@ -75,10 +75,9 @@ space:insert{'Britney'}
---
- error: Tuple field count 1 is less than required by a defined index (expected 2)
...
soretd(space.index.secondary:select('Anything'))
sorted(space.index.secondary:select('Anything'))
---
- error: '[string "return soretd(space.index.secondary:select(''A..."]:1: attempt
to call global ''soretd'' (a nil value)'
- []
...
space:insert{'Stephanie'}
---
......@@ -347,7 +346,7 @@ space:insert{4, 'world'}
---
- [4, 'world']
...
-- Check how build_idnexes() works
-- Check how build_indexes() works
--# stop server default
--# start server default
net_box = require('net.box')
......
......@@ -37,7 +37,7 @@ s:truncate()
-- get away with it.
space:insert{'Britney'}
soretd(space.index.secondary:select('Anything'))
sorted(space.index.secondary:select('Anything'))
space:insert{'Stephanie'}
sorted(space.index.secondary:select('Anything'))
space:insert{'Spears', 'Britney'}
......@@ -124,7 +124,7 @@ space:insert{3, 'new'}
space:insert{4, 'world'}
-- Check how build_idnexes() works
-- Check how build_indexes() works
--# stop server default
--# start server default
net_box = require('net.box')
......
......@@ -24,7 +24,7 @@ conn:ping()
- true
...
-- xxx: bug currently selects no rows
space:select()
space:select{}
---
- error: Invalid key part count in an exact match (expected 1, got 0)
...
......
......@@ -11,7 +11,7 @@ index = box.space.test:create_index('primary', { type = 'hash' })
conn:ping()
-- xxx: bug currently selects no rows
space:select()
space:select{}
space:insert{1, 'I am a tuple'}
space:select{1}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment