Repository navigation
@databases/split-sql-query@1.0.3
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 "$$