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
I was doing some testing with a Snowflake database and discovered that Snowflake does not support query parameters like, for example, Postgres. An example of using query parameters in zdb would be:
varprepared_statement=tryconnection.prepareStatement("SELECT * from my_table where id > ?");
tryprepared_statement.addParam(1, 10);
zdb should support some level of query parameters even with drivers that do not support driver-side parameters. This could be done with simple serialization and substitution, however we should also make some calls to SQLColumns to ensure that the value's type matches the column.
This system should only be used as a fallback - we want to use the driver's parameter system whenever possible. This should probably also be handled automatically. The programmer shouldn't have to make any code changes if they switch to a new database that implements this differently.
The text was updated successfully, but these errors were encountered:
I was doing some testing with a Snowflake database and discovered that Snowflake does not support query parameters like, for example, Postgres. An example of using query parameters in zdb would be:
zdb should support some level of query parameters even with drivers that do not support driver-side parameters. This could be done with simple serialization and substitution, however we should also make some calls to SQLColumns to ensure that the value's type matches the column.
This system should only be used as a fallback - we want to use the driver's parameter system whenever possible. This should probably also be handled automatically. The programmer shouldn't have to make any code changes if they switch to a new database that implements this differently.
The text was updated successfully, but these errors were encountered: