Adds the N syntax to a string if needed.
sql
string-prefix-with-n-if-needed string &key database => result
string⇩ |
A string. |
database⇩ |
A database. |
result |
A string or a sql-expression-object. |
The function string-prefix-with-n-if-needed
checks if string, when passed to database, needs to be prefixed by N. If the prefix is required, it returns a sql-expression-object with the string prefixed. Otherwise it returns string.
string-prefix-with-n-if-needed
is equivalent to:
(if (string-needs-n-prefix string :database database) (sql-expression :n-qualified string) string)
LispWorks® User Guide and Reference Manual - 01 Dec 2021 19:30:56