also looking at this
fix(postgres): skip literals and comments when numbering placeholders
#1151
7 files
+224
-45
| @@ -239,6 +239,11 @@ const tagged = await Post.query() | ||
| 239 | 239 | .get() |
| 240 | 240 | ``` |
| 241 | 241 | |
| 242 | A `?` inside a string literal, quoted identifier or comment is not a | |
| 243 | placeholder. Postgres' jsonb `?`, `?|` and `?&` operators can't be told apart | |
| 244 | from placeholders, so use their function forms, `jsonb_exists(tags, ?)`, | |
| 245 | `jsonb_exists_any(tags, ?)` and `jsonb_exists_all(tags, ?)`. | |
| 246 | ||
| 242 | 247 | ## Date Conditions |
| 243 | 248 | |
| 244 | 249 | ```typescript |