will generate the following:
"CREATE TABLE 'Foo' ( hi integer);"
which will fail with *** Exception: SqlError {sqlState = "42601", sqlExecStatus = FatalError, sqlErrorMsg = "syntax error at or near \"'Foo'\"", sqlErrorDetail = "", sqlErrorHint = ""}
The problem is the single quote, which is not allowed in this place, the " is allowed.
I run into this issue with variable table names:
the
formatQuery con mkTableStmt ["Foo"]
will generate the following:
"CREATE TABLE 'Foo' ( hi integer);"
which will fail with
*** Exception: SqlError {sqlState = "42601", sqlExecStatus = FatalError, sqlErrorMsg = "syntax error at or near \"'Foo'\"", sqlErrorDetail = "", sqlErrorHint = ""}
The problem is the single quote, which is not allowed in this place, the
"
is allowed.Is this intended ?
Cheers