Skip to content

@databases/split-sql-query@1.0.3

Choose a tag to compare

@ForbesLindesay ForbesLindesay released this 06 Jul 21:27
76358bd

Bug Fixes

  • Do not split dollar quoted strings into separate statements (#175)

    Postgres allows strings to be quoted using $$ as an alternative to '. This is commonly used to declare functions/procedures that require you to put SQL code inside a string. We were previously still interpreting ;s inside those strings as boundaries between statements. This could result in an error that looked like:

    unterminated dollar-quoted string at or near "$$