Skip to content

Commit

Permalink
update sample queries in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rolang committed Jan 28, 2024
1 parent ca56bc8 commit 1644165
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ class MultipleStatementsTest extends SkunkTest {
List(
"""CREATE FUNCTION do_something() RETURNS integer AS $$ BEGIN RETURN 1; END; $$ LANGUAGE plpgsql;
SELECT do_something();
DROP FUNCTION do_something""", // query + command
"select 1", // query
"commit", // command
DROP FUNCTION do_something
""",
"""ALTER TABLE city ADD COLUMN idd SERIAL;
SELECT setval('city_idd_seq', max(id)) FROM city;
ALTER TABLE city DROP COLUMN idd""",
"/* empty */")
.permutations
.toList
Expand Down

0 comments on commit 1644165

Please sign in to comment.