changed the way how the table name is set in a Model - added prepare_table() method
removed from Model: virtual void table_name(PT::TextStream & stream); added to Model: virtual void prepare_table(); virtual void table(const wchar_t * table_name); virtual void table(const wchar_t * schema_name, const wchar_t * table_name);
This commit is contained in:
@@ -78,7 +78,7 @@ public:
|
||||
void map_fields()
|
||||
{
|
||||
field(L"id", id, FT::no_insertable | FT::no_updatable | FT::primary_key);
|
||||
//field(L"person_id", person_id);
|
||||
field(L"person_id", person_id);
|
||||
field(L"name", name);
|
||||
field(L"content", content);
|
||||
field(L"attachment_id", L"types", types, FT::foreign_key_in_child);
|
||||
@@ -87,10 +87,9 @@ public:
|
||||
field(L"language_id", L"language", language, FT::foreign_key);
|
||||
}
|
||||
|
||||
void table_name(PT::TextStream & stream)
|
||||
void prepare_table()
|
||||
{
|
||||
// schema.table_name or just table_name
|
||||
stream << "public.attachment2";
|
||||
table(L"public", L"attachment2");
|
||||
}
|
||||
|
||||
void after_select()
|
||||
|
Reference in New Issue
Block a user