◆ UpdateSetInfo() [1/2]
| duckdb::UpdateSetInfo::UpdateSetInfo |
( |
| ) |
|
◆ UpdateSetInfo() [2/2]
| duckdb::UpdateSetInfo::UpdateSetInfo |
( |
const UpdateSetInfo & | other | ) |
|
|
protected |
350080 : columns(other.columns) {
350081 if (other.condition) {
350082 condition = other.condition->Copy();
350083 }
350084 for (auto &expr : other.expressions) {
350085 expressions.emplace_back(expr->Copy());
350086 }
350087}
◆ Copy()
| unique_ptr< UpdateSetInfo > duckdb::UpdateSetInfo::Copy |
( |
| ) |
const |
350104 {
350105 return unique_ptr<UpdateSetInfo>(new UpdateSetInfo(*this));
350106}
◆ ToString()
| string duckdb::UpdateSetInfo::ToString |
( |
| ) |
const |
350089 {
350090 string result;
350091 result += "SET ";
350092 D_ASSERT(columns.size() == expressions.size());
350093 for (
idx_t i = 0; i < columns.size(); i++) {
350094 if (i > 0) {
350095 result += ", ";
350096 }
350098 result += " = ";
350099 result += expressions[i]->ToString();
350100 }
350101 return result;
350102}
static string WriteOptionallyQuoted(const string &text, char quote='"', bool allow_caps = true, KeywordCategory category = KeywordCategory::KEYWORD_NONE)
Writes a string that is optionally quoted + escaped so it can be used as an identifier.
Definition duckdb.cpp:338034
uint64_t idx_t
a saner size_t for loop indices etc
Definition duckdb.hpp:237
The documentation for this class was generated from the following file: