We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf33a04 commit 0ba83c4Copy full SHA for 0ba83c4
beets/dbcore/query.py
@@ -313,7 +313,7 @@ class NumericColumnQuery(MatchQuery[AnySQLiteType]):
313
def col_name(self) -> str:
314
"""Cast a flexible attribute column (string) to NUMERIC affinity."""
315
col_name = super().col_name
316
- return col_name if self.fast else f"CAST({col_name} AS NUMERIC)"
+ return col_name if self.on_model else f"CAST({col_name} AS NUMERIC)"
317
318
319
class BooleanQuery(NumericColumnQuery[bool]):
0 commit comments