Accept errors in hash_index test case
authorPavan Deolasee <[email protected]>
Fri, 25 Aug 2017 06:09:48 +0000 (11:39 +0530)
committerPavan Deolasee <[email protected]>
Fri, 25 Aug 2017 06:09:48 +0000 (11:39 +0530)
We don't support BACKWARD scan of RemoteSubplan and neither support WHERE
CURRENT OF. So accept the resulting errors.

src/test/regress/expected/hash_index.out
src/test/regress/sql/hash_index.sql

index 0bbaa2a7682723d48b6984b25eb8fbcfb480ad63..3af055a81ad5852e0efe9e0580493340b807e779 100644 (file)
@@ -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;
index 9af03d2bc16955282e7eb83ccbe99c2dbb255f17..08a36098a792c8a73db226ac256e639afcfbc2f1 100644 (file)
@@ -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;