Append a single-quoted SQL string literal to ret, doubling any embedded single quotes.
| 19 | |
| 20 | /// Append a single-quoted SQL string literal to ret, doubling any embedded single quotes. |
| 21 | static void appendSQLStringLiteral(String & ret, const String & s) |
| 22 | { |
| 23 | ret += '\''; |
| 24 | for (const char c : s) |
| 25 | { |
| 26 | if (c == '\'') |
| 27 | ret += '\''; |
| 28 | ret += c; |
| 29 | } |
| 30 | ret += '\''; |
| 31 | } |
| 32 | |
| 33 | CONV_FN(Expr, expr); |
| 34 | CONV_FN(Select, select); |
no outgoing calls
no test coverage detected