You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though... it looks like there's a bug in that? It doesn't account for float values - "3.5".isdigit() return False - probably for the best, because int(3.5) would break that value anyway.
My hunch is that this mechanism doesn't actually do anything useful at all, because of the type conversion that automatically happens for data from tables based on the column type affinities, see:
So either remove the self.numeric type conversion bit entirely, or prove that it is necessary and upgrade it to be able to handle floating point values too.
I would expect this to break against SQL views that include calculated columns though - something like this:
createviewthis_will_breakasselect pk +1as pk_plus_one, 0.5as score from searchable;
Confirmed: the filter interface for that view plain doesn't work for any comparison against that table - except for score > 0 since 0 is converted to an integer. 0.1 breaks though because it doesn't get converted as it doesn't match .isdigit().
Originally posted by @simonw in #1671 (comment)
The text was updated successfully, but these errors were encountered: