changed the way how to quote schemas, tables and field names,
added escaping table names in insert/update/remove removed methods from BaseExpression: virtual void before_short_field_name(); virtual void after_short_field_name(); virtual void before_first_part_long_field_name(); virtual void after_first_part_long_field_name(); virtual void before_second_part_long_field_name(); virtual void after_second_part_long_field_name(); added methods to BaseExpression: virtual void schema_table_separator(); virtual void table_field_separator(); virtual void before_schema_name(); virtual void after_schema_name(); virtual void before_table_name(); virtual void after_table_name(); virtual void before_field_name(); virtual void after_field_name();
This commit is contained in:
@@ -614,22 +614,18 @@ protected:
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* escaping column names in a case when using short form - just only column_name
|
||||
* [before_short_field_name]column_name[after_short_field_name]
|
||||
*/
|
||||
virtual void before_short_field_name();
|
||||
virtual void after_short_field_name();
|
||||
virtual void schema_table_separator();
|
||||
virtual void table_field_separator();
|
||||
|
||||
virtual void before_schema_name();
|
||||
virtual void after_schema_name();
|
||||
|
||||
virtual void before_table_name();
|
||||
virtual void after_table_name();
|
||||
|
||||
virtual void before_field_name();
|
||||
virtual void after_field_name();
|
||||
|
||||
/*
|
||||
* escaping column names in a case when using long form: table_name.column_name
|
||||
* [before_first_part_long_field_name]table_name[after_first_part_long_field_name].[before_second_part_long_field_name]column_name[after_second_part_long_field_name]
|
||||
*
|
||||
*/
|
||||
virtual void before_first_part_long_field_name();
|
||||
virtual void after_first_part_long_field_name();
|
||||
virtual void before_second_part_long_field_name();
|
||||
virtual void after_second_part_long_field_name();
|
||||
|
||||
virtual void before_field_value(const std::wstring &, const FT & field_type);
|
||||
virtual void after_field_value(const std::wstring &, const FT & field_type);
|
||||
@@ -721,6 +717,7 @@ protected:
|
||||
|
||||
void esc(const wchar_t * val, bool has_known_length, size_t len, PT::TextStream & stream, const FT & field_type = FT::default_type);
|
||||
|
||||
bool is_empty_field(const wchar_t * value);
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user