mirror of
https://code.sup39.dev/repos/Wqawg
synced 2024-12-27 16:04:52 +09:00
Migration: When escaping names, forgot to surround then with "s
This commit is contained in:
parent
bff41673c4
commit
e027789fbd
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ quoteName =
|
|||
let f '\0' _ = error "quoteName found \\0 character, invalid in names"
|
||||
f '"' cs = '"' : '"' : cs
|
||||
f c cs = c : cs
|
||||
in T.pack . T.foldr f []
|
||||
in T.pack . ('"' :) . T.foldr f "\""
|
||||
|
||||
table2sql :: TableName -> Text
|
||||
table2sql = quoteName . unTableName
|
||||
|
|
Loading…
Reference in a new issue