in BaseExpression: changed the way how field names are escaped:
methods removed: virtual void before_field_name(); virtual void after_field_name(); methods added: virtual void before_short_field_name(); virtual void after_short_field_name(); they are used for escaping column names in a case when using short form - just only column_name e.g.: [before_short_field_name]column_name[after_short_field_name] methods added: 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(); they are used for escaping column names in a case when using long form: table_name.column_name e.g.: [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] methods added: virtual void esc(wchar_t val, PT::TextStream & stream);
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2018, Tomasz Sowa
|
||||
* Copyright (c) 2018-2021, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
@@ -51,6 +51,14 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
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();
|
||||
|
||||
void before_field_value(const std::wstring &);
|
||||
void after_field_value(const std::wstring &);
|
||||
|
||||
|
Reference in New Issue
Block a user