branch: elpa/pg
commit 4d7472cb1e4b9671099c8dcbe21f0dba179942e2
Author: Eric Marsden <[email protected]>
Commit: Eric Marsden <[email protected]>
Tests: parsing of invalid array syntax
---
test/test-pg.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/test/test-pg.el b/test/test-pg.el
index d3d02b3f39e..7d150599460 100755
--- a/test/test-pg.el
+++ b/test/test-pg.el
@@ -3073,6 +3073,9 @@ bar$$"))))
(should (eql 'ok (condition-case nil
(funcall scalar-fn "SELECT '1f2'::json")
(pg-invalid-text-representation 'ok))))
+ (should (eql 'ok (condition-case nil
+ (funcall scalar-fn "SELECT
'{1,2,invalid,4}'::integer[]")
+ (pg-invalid-text-representation 'ok))))
(should (eql 'ok (condition-case nil
(funcall scalar-fn "SELECT int2 '10__000'")
(pg-invalid-text-representation 'ok))))