added: support for generating LEFT JOIN statement in Finder

(the primary key should consist of only one column at the moment)



git-svn-id: svn://ttmath.org/publicrep/morm/branches/join_models@1186 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2019-03-26 18:34:07 +00:00
parent 440f56e376
commit 9c7a0f3d7e
10 changed files with 266 additions and 70 deletions

View File

@@ -51,6 +51,7 @@ public:
virtual ~DbExpression();
virtual void set_output_type(int output_type);
virtual int get_output_type();
virtual void prepare_to_where_clause();
@@ -61,7 +62,6 @@ public:
virtual DbExpression & page(PT::TextStream & stream, size_t page_number, size_t page_size);
template<typename FieldValue>
void add_field_for_select(const wchar_t * new_column_expression, const wchar_t * new_column_name, FieldValue & field_value)
{
@@ -71,7 +71,7 @@ public:
column_expression += L" as ";
column_expression += new_column_name;
field(column_expression.c_str(), field_value, false, false, false, false);
field(-1, column_expression.c_str(), field_value, false, false, false, false);
}