@@ -8426,8 +8426,56 @@ ERROR: argument 1: key must not be null
8426
8426
SELECT agtype_build_map('name', 'John', 'null'::agtype, 1);
8427
8427
ERROR: argument 3: key must not be null
8428
8428
--
8429
+ -- Issue 1953 - crash when trying to use a boolean as an object
8430
+ --
8431
+ SELECT * FROM create_graph('issue_1953');
8432
+ NOTICE: graph "issue_1953" has been created
8433
+ create_graph
8434
+ --------------
8435
+
8436
+ (1 row)
8437
+
8438
+ SELECT * FROM cypher('issue_1953', $$ RETURN delete_global_graphs('issue_1953')[{}][{}][{}][{}][{}] $$) AS (result agtype);
8439
+ ERROR: A_indirection could not convert type boolean to agtype
8440
+ LINE 1: ...ypher('issue_1953', $$ RETURN delete_global_graphs('issue_19...
8441
+ ^
8442
+ SELECT * FROM cypher('issue_1953', $$ RETURN delete_global_graphs('issue_1953')[{}] $$) AS (result agtype);
8443
+ ERROR: A_indirection could not convert type boolean to agtype
8444
+ LINE 1: ...ypher('issue_1953', $$ RETURN delete_global_graphs('issue_19...
8445
+ ^
8446
+ SELECT * FROM cypher('issue_1953', $$ RETURN delete_global_graphs('issue_1953')[0] $$) AS (result agtype);
8447
+ ERROR: A_indirection could not convert type boolean to agtype
8448
+ LINE 1: ...ypher('issue_1953', $$ RETURN delete_global_graphs('issue_19...
8449
+ ^
8450
+ SELECT * FROM cypher('issue_1953', $$ RETURN delete_global_graphs('issue_1953')[0..1] $$) AS (result agtype);
8451
+ ERROR: A_indirection could not convert type boolean to agtype
8452
+ LINE 1: ...ypher('issue_1953', $$ RETURN delete_global_graphs('issue_19...
8453
+ ^
8454
+ SELECT * FROM cypher('issue_1953', $$ RETURN is_valid_label_name('issue_1953')[{}] $$) AS (result agtype);
8455
+ ERROR: A_indirection could not convert type boolean to agtype
8456
+ LINE 1: ...cypher('issue_1953', $$ RETURN is_valid_label_name('issue_19...
8457
+ ^
8458
+ SELECT * FROM cypher('issue_1953', $$ RETURN is_valid_label_name('issue_1953')[0] $$) AS (result agtype);
8459
+ ERROR: A_indirection could not convert type boolean to agtype
8460
+ LINE 1: ...cypher('issue_1953', $$ RETURN is_valid_label_name('issue_19...
8461
+ ^
8462
+ SELECT * FROM cypher('issue_1953', $$ RETURN is_valid_label_name('issue_1953')[0..1] $$) AS (result agtype);
8463
+ ERROR: A_indirection could not convert type boolean to agtype
8464
+ LINE 1: ...cypher('issue_1953', $$ RETURN is_valid_label_name('issue_19...
8465
+ ^
8466
+ --
8429
8467
-- Cleanup
8430
8468
--
8469
+ SELECT * FROM drop_graph('issue_1953', true);
8470
+ NOTICE: drop cascades to 2 other objects
8471
+ DETAIL: drop cascades to table issue_1953._ag_label_vertex
8472
+ drop cascades to table issue_1953._ag_label_edge
8473
+ NOTICE: graph "issue_1953" has been dropped
8474
+ drop_graph
8475
+ ------------
8476
+
8477
+ (1 row)
8478
+
8431
8479
SELECT * FROM drop_graph('expanded_map', true);
8432
8480
NOTICE: drop cascades to 2 other objects
8433
8481
DETAIL: drop cascades to table expanded_map._ag_label_vertex
0 commit comments