progress on query compiler
This commit is contained in:
@@ -18,16 +18,6 @@ const std::string &dialect::sql_function_at(const sql_function_t func) const {
|
||||
return sql_func_map_.at(func);
|
||||
}
|
||||
|
||||
std::string dialect::table_name(const std::string &table, const std::string &schema_name) const {
|
||||
if (schema_name.empty() && default_schema_name_.empty()) {
|
||||
return prepare_identifier_string(table);
|
||||
}
|
||||
if (schema_name.empty()) {
|
||||
return prepare_identifier_string(default_schema_name_) + "." + prepare_identifier_string(table);
|
||||
}
|
||||
return prepare_identifier_string(schema_name) + "." + prepare_identifier_string(table);
|
||||
}
|
||||
|
||||
const std::string &dialect::to_string(const bool val) const {
|
||||
return bool_strings_[static_cast<int>(val)];
|
||||
}
|
||||
@@ -89,7 +79,7 @@ dialect::escape_identifier_t dialect::identifier_escape_type() const {
|
||||
return identifier_escape_type_;
|
||||
}
|
||||
|
||||
void dialect::identifier_escape_type(escape_identifier_t escape_identifier) {
|
||||
void dialect::identifier_escape_type(const escape_identifier_t escape_identifier) {
|
||||
identifier_escape_type_ = escape_identifier;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user