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 authored and GitHub committed 2024-04-08 16:56:23 +02:00
1 parent fe3b6d3c5e
commit ccd13bf08e
5 files changed
+131

No files matched your search

@@ -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');