From 3f6df85452c57f7266eae8771e63cf856dbd8484 Mon Sep 17 00:00:00 2001 From: Konstantin Shulgin <konstantin.shulgin@gmail.com> Date: Thu, 9 Feb 2012 19:48:28 +0400 Subject: [PATCH] Possibly select command result order violation in box_big/sql.test was fixed. Now request is executing via 'exec sql' command instead of 'exec admin' and the result is sorting in the test suite. --- test/box_big/sql.result | 9 ++++----- test/box_big/sql.test | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/test/box_big/sql.result b/test/box_big/sql.result index eaa1569245..ec1fe56abd 100644 --- a/test/box_big/sql.result +++ b/test/box_big/sql.result @@ -165,11 +165,10 @@ Found 2 tuples: ['41234567', 'part1_a', 'part2_a'] select * from t5 where k1='part_none' No match -lua box.space[5]:select(1, 'part1', 'part2') ---- - - '01234567': {'part1', 'part2'} - - '11234567': {'part1', 'part2'} -... +call box.select('5', '1', 'part1', 'part2') +Found 2 tuples: +['01234567', 'part1', 'part2'] +['11234567', 'part1', 'part2'] select * from t1 where k0='key1' Found 1 tuple: [830039403, 'part1', 'part2'] diff --git a/test/box_big/sql.test b/test/box_big/sql.test index 6aa607d720..602ca6b3f9 100644 --- a/test/box_big/sql.test +++ b/test/box_big/sql.test @@ -84,7 +84,7 @@ sql.sort = True exec sql "select * from t5 where k1='part1'" exec sql "select * from t5 where k1='part1_a'" exec sql "select * from t5 where k1='part_none'" -exec admin "lua box.space[5]:select(1, 'part1', 'part2')" +exec sql "call box.select('5', '1', 'part1', 'part2')" sql.sort = False # Check how build_idnexes() works server.stop() -- GitLab