mirror of https://github.com/AMT-Cheif/drift.git
Merge pull request #470 from North101/develop
Fix generating class for results with nested results.
This commit is contained in:
commit
70c476425e
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue