Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Untyped param #1001

Merged
merged 13 commits into from
Feb 13, 2024
Prev Previous commit
Next Next commit
changes
  • Loading branch information
asthamohta committed Aug 17, 2023
commit 9f8a92d8a29c1cf54bc46e1ba3a7cb9071938e6b
2 changes: 1 addition & 1 deletion tests/system/test_session_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def test_batch_insert_then_read_wo_param_types(sessions_database, database_diale
with sessions_database.snapshot(multi_use=True) as snapshot:
for column_type, value in list(zip(QUERY_ALL_TYPES_COLUMNS, QUERY_ALL_TYPES_DATA)):
placeholder = "$1" if database_dialect == DatabaseDialect.POSTGRESQL else f"@value"
sql = 'SELECT * FROM `' + ALL_TYPES_TABLE + '` WHERE ' + column_type + ' = ' + placeholder
sql = 'SELECT * FROM ' + ALL_TYPES_TABLE + ' WHERE ' + column_type + ' = ' + placeholder
param = {"p1": value} if database_dialect == DatabaseDialect.POSTGRESQL else {"value": value}
rows = list(snapshot.execute_sql(sql,params=param))
assert len(rows) == 1
Expand Down