fixed has many and belongs to eager loading via sql join
This commit is contained in:
@@ -77,7 +77,7 @@ void query_compiler::visit(internal::query_select_part &select_part)
|
||||
void query_compiler::visit(internal::query_from_part &from_part)
|
||||
{
|
||||
query_.table = from_part.table();
|
||||
query_.sql += " " + query_compiler::build_table_name(from_part.token(), *dialect_, query_.table);
|
||||
query_.sql += " " + build_table_name(from_part.token(), *dialect_, query_.table);
|
||||
query_.table_aliases.insert({query_.table.name, query_.table.alias});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user