MCPcopy Create free account
hub / github.com/duckdb/duckdb / SubstringDetection

Function SubstringDetection

src/function/table/copy_csv.cpp:37–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void SubstringDetection(char str_1, string &str_2, const string &name_str_1, const string &name_str_2) {
38 if (str_1 == '\0' || str_2.empty()) {
39 return;
40 }
41 if (str_2.find(str_1) != string::npos) {
42 throw BinderException("%s must not appear in the %s specification and vice versa", name_str_1, name_str_2);
43 }
44}
45
46void StringDetection(const string &str_1, const string &str_2, const string &name_str_1, const string &name_str_2) {
47 if (str_1.empty() || str_2.empty()) {

Callers 1

FinalizeMethod · 0.85

Calls 3

BinderExceptionClass · 0.85
emptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected