Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow sqldeserialize to return non-T to allow value/schema mismatch (#…
…267) Fixes #244. Last time we refactored SQLite.Query, we took out any strict schema enforcement, mainly by defining the `Tales.schema` of `SQLite.Query` to be `nothing`, thus allowing sinks to "discover" the schema dynamically, which better fits the sqlite data type model. As reported in #244, however, we missed a case where we pass in the declared column's type to `sqlitevalue` and then `sqldeserialize` was being forced to assert that what it deserialized was a value of that type. That isn't generally possible, since the declared sqlite types are such a small subset of what we'll technically serialize/deserialize with custom Julia values. By removing the type assertion, we allow sqldeserialize to do its job and sqlitevalue to return whatever gets deserialized.
- Loading branch information