Merge branch 'develop' of gh:simolus3/moor into develop

This commit is contained in:
Simon Binder 2020-04-04 11:51:45 +02:00
commit 4d56b861e4
No known key found for this signature in database
GPG Key ID: 7891917E4147B8C0
1 changed files with 2 additions and 1 deletions

View File

@ -163,7 +163,8 @@ class InferredResultSet {
/// Whether a new class needs to be written to store the result of this query. /// Whether a new class needs to be written to store the result of this query.
/// We don't need to do that for queries which return an existing table model /// We don't need to do that for queries which return an existing table model
/// or if they only return exactly one column. /// or if they only return exactly one column.
bool get needsOwnClass => matchingTable == null && columns.length > 1; bool get needsOwnClass => matchingTable == null && columns.length > 1
|| nestedResults.isNotEmpty;
/// Whether this query returns a single column that should be returned /// Whether this query returns a single column that should be returned
/// directly. /// directly.