use prepare_table() only with a database and not for flat strings

Model::prepare_table() will create a log: "you should provide the table name...."
and it is not needed if a Model object is used only for flat strings
This commit is contained in:
2021-04-14 17:46:19 +02:00
parent 1c5d32551a
commit c87afb40d2
2 changed files with 4 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ void Model::to_text(PT::TextStream & stream, ModelData * model_data, bool clear_
{
try
{
prepare_table();
// prepare_table(); at the moment flat strings (json/space) do not need a table name
flat_connector->to_text(stream, *this);
}
catch(...)