fix: correctly use a table name when a Select::no_auto_generated_columns flag is used

This commit is contained in:
Tomasz Sowa 2023-05-08 10:26:31 +02:00
parent 86177889af
commit 25a91168ac
Signed by: tomasz.sowa
GPG Key ID: 662CC1438638588B
1 changed files with 7 additions and 1 deletions

View File

@ -1215,12 +1215,12 @@ protected:
was_query_error = false;
last_query_error.clear();
use_table_prefix_for_fetching = false;
set_db_expression();
if( model_connector )
{
if( out_stream )
{
set_db_expression();
out_stream->clear();
}
else
@ -1372,6 +1372,12 @@ private:
if( db_connector )
{
db_expression = db_connector->get_expression();
if( db_expression )
{
db_expression->clear();
db_expression->allow_to_use_prefix(true);
}
}
}
}