MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / escapeSQLString

Function escapeSQLString

src/Client/BuzzHouse/Generator/FuzzConfig.cpp:26–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24 = {"LZ4", "LZ4HC", "ZSTD", "Delta", "DoubleDelta", "Gorilla", "T64", "FPC", "GCD", "ALP", "AES_128_GCM_SIV", "AES_256_GCM_SIV", "NONE"};
25
26String escapeSQLString(const String & s, const char escape_char)
27{
28 String out;
29 out.reserve(s.size());
30 for (const char c : s)
31 {
32 if (c == escape_char)
33 out += escape_char;
34 out += c;
35 }
36 return out;
37}
38
39String urlEncodeQueryParam(const String & s)
40{

Callers 11

tableOrFunctionRefMethod · 0.85
quoteIdentifierMethod · 0.85
getSQLQuotedTableNameMethod · 0.85
setDatabaseDetailsMethod · 0.85
setTableEngineDetailsMethod · 0.85
getBottomNameSQLMethod · 0.85
tableHasPartitionsMethod · 0.85
tableCountSystemRowsMethod · 0.85
joinedTableOrFunctionMethod · 0.85

Calls 2

reserveMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected