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

Function StringDetection

src/function/table/copy_csv.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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()) {
48 return;
49 }
50 if (str_2.find(str_1) != string::npos) {
51 throw BinderException("%s must not appear in the %s specification and vice versa", name_str_1, name_str_2);
52 }
53}
54
55//===--------------------------------------------------------------------===//
56// Bind

Callers 1

FinalizeMethod · 0.85

Calls 3

BinderExceptionClass · 0.85
emptyMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected