Commit 5b32743
committed
fix: resolve #sql macro warnings with escaped apostrophes
Replace #sql() with SQLQueryExpression.init() for strings containing escaped apostrophes.
The #sql macro cannot properly parse escaped apostrophes within quoted strings.
Before: #sql("'Yesterday\'s Event'") - produces macro warning
After: SQLQueryExpression("'Yesterday\'s Event'") - clean compile
All 880 tests still passing with no warnings.1 parent ab140f5 commit 5b32743
File tree
1 file changed
+2
-2
lines changed- Tests/StructuredQueriesPostgresTests/Functions/UUID
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
| 281 | + | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
0 commit comments