Closed mdesmet closed 2 years ago
While testing the sqlalchemy feature, I found a bug in the experimental_python_types
implementation. If there is a row coming back from the first POST request, this row would not be mapped using the experimental_python_types
logic. I didn't encounter this behaviour before and this was also not detected in the integration tests.
from sqlalchemy import create_engine
from sqlalchemy.schema import Table, MetaData
from sqlalchemy.sql.expression import select, text
engine = create_engine('trino://user@localhost:8080/system?experimental_python_types=true')
connection = engine.connect()
print(connection.execute(text("SELECT DECIMAL '1.2355'")).fetchall())
Merged, thanks!
Fixes #197