postgres: add tests to handle multiple statements in the same query (#85523)

* postgres: add tests to handle multiple statements in the same query

* better test explanation
This commit is contained in:
Gábor Farkas
2024-04-08 16:56:23 +02:00
committed by GitHub
parent fe3b6d3c5e
commit ccd13bf08e
5 changed files with 131 additions and 0 deletions
@@ -0,0 +1,7 @@
-- SELECT t FROM tbl WHERE t='one'; SELECT t FROM tbl WHERE t='three';
-- lib/pq allows multiple queries to run, and return results for all the queries
CREATE TEMPORARY TABLE tbl (
t text
);
INSERT INTO tbl (t) VALUES ('one'),('two'),('three');