mirror of
https://github.com/launchbadge/sqlx
synced 2024-09-20 22:31:56 +00:00
c9c11c8302
This solves a problem when needing to describe a query before executing it, in cases where the query is more of a dynamic nature and binding its parameters require the type info. In this case, the first describe doesn't know the input parameters, so the parameter type info is inferred from the database. In cases of `varchar(10)[]` or `json` column types, the parameter type is inferred to the column type. Now if we then try to use `text[]` or `jsonb` as the types, the database has already stored different types for these parameters for the statement, and will error out. So we'll now only store the statement to the cache when it comes from an actual execution of the query. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |