Returns whether a string needs the N syntax.
sql
string-needs-n-prefix string &key database => needs-n-prefix-p
string⇩ |
A string. |
database⇩ |
A database. |
needs-n-prefix-p |
A boolean. |
The function string-needs-n-prefix
returns true if string needs to be prefixed by N when passed to database (default *default-database*).
The function string-prefix-with-n-if-needed can be used to add the prefix if needed. The function sql-expression with :n-qualified
can be used to unconditionally add the prefix.
At the time of writing, the prefix is required only when database is a connection to Microsoft SQL Server, and string contains characters which are not recognized by the code page of the server.
string-prefix-with-n-if-needed
sql-expression
23.5.1.6 SQL string literals
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:56