diff options
author | Pavan Deolasee | 2017-08-25 06:09:48 +0000 |
---|---|---|
committer | Pavan Deolasee | 2017-08-25 06:09:48 +0000 |
commit | 333a544a96e100664e64575be59b89ac9a71e418 (patch) | |
tree | a559dcb5e6c80535b74eb39c5e2955a6800aa587 | |
parent | a506209646f89b80e753316faa09474f4d91a8ba (diff) |
Accept errors in hash_index test case
We don't support BACKWARD scan of RemoteSubplan and neither support WHERE
CURRENT OF. So accept the resulting errors.
-rw-r--r-- | src/test/regress/expected/hash_index.out | 6 | ||||
-rw-r--r-- | src/test/regress/sql/hash_index.sql | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/test/regress/expected/hash_index.out b/src/test/regress/expected/hash_index.out index 0bbaa2a768..3af055a81a 100644 --- a/src/test/regress/expected/hash_index.out +++ b/src/test/regress/expected/hash_index.out @@ -209,9 +209,15 @@ SET enable_seqscan = OFF; SET enable_bitmapscan = OFF; DECLARE c CURSOR FOR SELECT * from hash_split_heap WHERE keycol = 1; MOVE FORWARD ALL FROM c; +-- XL does not support backward scan of RemoteSubplan/RemoteSubquery and hence +-- the next statement will fail MOVE BACKWARD 10000 FROM c; +ERROR: cursor can only scan forward +HINT: Declare it with SCROLL option to enable backward scan. MOVE BACKWARD ALL FROM c; +ERROR: current transaction is aborted, commands ignored until end of transaction block CLOSE c; +ERROR: current transaction is aborted, commands ignored until end of transaction block END; -- DELETE, INSERT, VACUUM. DELETE FROM hash_split_heap WHERE keycol = 1; diff --git a/src/test/regress/sql/hash_index.sql b/src/test/regress/sql/hash_index.sql index 9af03d2bc1..08a36098a7 100644 --- a/src/test/regress/sql/hash_index.sql +++ b/src/test/regress/sql/hash_index.sql @@ -167,6 +167,8 @@ SET enable_bitmapscan = OFF; DECLARE c CURSOR FOR SELECT * from hash_split_heap WHERE keycol = 1; MOVE FORWARD ALL FROM c; +-- XL does not support backward scan of RemoteSubplan/RemoteSubquery and hence +-- the next statement will fail MOVE BACKWARD 10000 FROM c; MOVE BACKWARD ALL FROM c; CLOSE c; |