Return a CPLString of the SQL quoted identifier */
| 611 | |
| 612 | /** Return a CPLString of the SQL quoted identifier */ |
| 613 | CPLString CPLQuotedSQLIdentifier(const char *pszIdent) |
| 614 | |
| 615 | { |
| 616 | CPLString osIdent; |
| 617 | |
| 618 | if (pszIdent) |
| 619 | { |
| 620 | char *pszQuotedIdent = CPLEscapeString(pszIdent, -1, CPLES_SQLI); |
| 621 | osIdent.Printf("\"%s\"", pszQuotedIdent); |
| 622 | CPLFree(pszQuotedIdent); |
| 623 | } |
| 624 | |
| 625 | return osIdent; |
| 626 | } |
no test coverage detected