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

Convert box/sql.test to the new data dictionary and new lua console.

parent 077697d2
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum')
---
- [0, 0, 'tweedledum']
...
box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num')
---
- [0, 0, 'primary', 1752392040, 1, 1, 0, 'num']
...
ping
ok
---
......@@ -15,9 +23,9 @@ No match
select * from t0 where k0 = 1
Found 1 tuple:
[1, 'I am a tuple']
save snapshot
box.snapshot()
---
ok
- ok
...
select * from t0 where k0 = 1
Found 1 tuple:
......@@ -96,7 +104,7 @@ select * from t65537 where k0 = 0
An error occurred: ER_NO_SUCH_SPACE, 'Space 65537 does not exist'
select * from t4294967295 where k0 = 0
An error occurred: ER_NO_SUCH_SPACE, 'Space 4294967295 does not exist'
box.space[0]:truncate()
box.space[0]:drop()
---
...
#
......@@ -105,5 +113,5 @@ box.space[0]:truncate()
show status
---
unknown command. try typing help.
- error: '[string "show status"]:1: ''='' expected near ''status'''
...
# encoding: utf-8
admin("box.insert(box.schema.SPACE_ID, 0, 0, 'tweedledum')")
admin("box.insert(box.schema.INDEX_ID, 0, 0, 'primary', 'hash', 1, 1, 0, 'num')")
sql("ping")
# xxx: bug -- currently selects no rows
sql("select * from t0")
......@@ -10,7 +12,7 @@ sql("select * from t0 where k0 = 0")
sql("select * from t0 where k0 = 2")
server.restart()
sql("select * from t0 where k0 = 1")
admin("save snapshot")
admin("box.snapshot()")
sql("select * from t0 where k0 = 1")
server.restart()
sql("select * from t0 where k0 = 1")
......@@ -57,7 +59,7 @@ print """#
sql("select * from t1 where k0 = 0")
sql("select * from t65537 where k0 = 0")
sql("select * from t4294967295 where k0 = 0")
admin("box.space[0]:truncate()")
admin("box.space[0]:drop()")
print """#
# A test case for: http://bugs.launchpad.net/bugs/716683
......
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