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
When no Model subclass has been registered for a table, a row from that table contained in a query result isn't parsed at all, it's returned as a string. It would be nicer if the nested row was cast to the same type as the top-level row.
Current behavior:
>>>db.run("CREATE TABLE foo (bar int, baz text)")
>>>db.run("INSERT INTO foo VALUES (1, 'one')")
>>>db.one("SELECT true AS x, (SELECT foo FROM foo) AS foo", back_as='Row')
Row(x=True, foo='(1,foo)')
Desired behavior:
>>>db.one("SELECT true AS x, (SELECT foo FROM foo) AS foo", back_as='Row')
Row(x=True, foo=Row(bar=1, baz='foo'))
The text was updated successfully, but these errors were encountered:
When no
Model
subclass has been registered for a table, a row from that table contained in a query result isn't parsed at all, it's returned as a string. It would be nicer if the nested row was cast to the same type as the top-level row.Current behavior:
Desired behavior:
The text was updated successfully, but these errors were encountered: