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:
@@ -182,6 +182,54 @@ void DbExpression::put_name_value_separator()
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::schema_table_separator()
|
||||
{
|
||||
(*out_stream) << '.';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::table_field_separator()
|
||||
{
|
||||
(*out_stream) << '.';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::before_schema_name()
|
||||
{
|
||||
(*out_stream) << '"';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::after_schema_name()
|
||||
{
|
||||
(*out_stream) << '"';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::before_table_name()
|
||||
{
|
||||
(*out_stream) << '"';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::after_table_name()
|
||||
{
|
||||
(*out_stream) << '"';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::before_field_name()
|
||||
{
|
||||
(*out_stream) << '"';
|
||||
}
|
||||
|
||||
|
||||
void DbExpression::after_field_name()
|
||||
{
|
||||
(*out_stream) << '"';
|
||||
}
|
||||
|
||||
|
||||
|
||||
void DbExpression::before_field_value_string(const FT & field_type)
|
||||
{
|
||||
|
Reference in New Issue
Block a user