* Quotes input string if it's not a legitimate SQL identifier as-is. * * Note that the returned string must be used before calling fmtId again, * since we re-use the same return buffer each time. * * NB: This assumes setFmtEncoding() previously has been called to configure * the encoding of rawid. It is preferable to use fmtIdEnc() with an * explicit encoding. */
| 256 | * explicit encoding. |
| 257 | */ |
| 258 | const char * |
| 259 | fmtId(const char *rawid) |
| 260 | { |
| 261 | return fmtIdEnc(rawid, getFmtEncoding()); |
| 262 | } |
| 263 | |
| 264 | /* |
| 265 | * fmtQualifiedIdEnc - construct a schema-qualified name, with quoting as |