some work: we need a different way of naming tables for joins
git-svn-id: svn://ttmath.org/publicrep/morm/branches/join_models@1187 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -61,7 +61,8 @@ public:
|
||||
virtual int get_work_mode();
|
||||
|
||||
virtual void prepare_to_new_expression();
|
||||
virtual void set_column_prefix(const std::wstring & prefix);
|
||||
virtual void set_column_prefix(const std::string & prefix);
|
||||
virtual std::string get_column_prefix();
|
||||
|
||||
virtual void generate_from_model(PT::TextStream & stream, Model & model);
|
||||
|
||||
@@ -91,7 +92,7 @@ public:
|
||||
PT::TextStream * old_out_stream = out_stream;
|
||||
|
||||
out_stream = &str;
|
||||
put_field_name(table_index, field_name, add_column_prefix);
|
||||
put_field_name(-1, field_name, add_column_prefix);
|
||||
out_stream = old_out_stream;
|
||||
|
||||
if( model_data )
|
||||
@@ -276,7 +277,7 @@ protected:
|
||||
PT::TextStream * out_stream;
|
||||
|
||||
|
||||
std::wstring column_prefix;
|
||||
std::string column_prefix;
|
||||
|
||||
virtual void generate_from_model(Model & model);
|
||||
|
||||
|
Reference in New Issue
Block a user