-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
add nullability info to Describe, fix bad "unknown type" errors in query!()
#108
Conversation
35e5a6b
to
b14c45b
Compare
ed13e07
to
93f4302
Compare
query!()
b57992c
to
7d234e4
Compare
4feb50e
to
f762013
Compare
* this breaks a lot internally as-is * mysql needs a restructure
type_, | ||
i + 1, | ||
) | ||
.into() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! This will probably help a lot of folks. Easy to forget to add feature flags.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! One small issue with the TEXT[]
bit, but other than that, lgtm!
… type; remove Cursor::first
* Allow `conn.fetch(" ... ")` to be called where `conn` is an owned Connection * Executor::fetch -> RefExecutor::fetch_by_ref * Executor::fetch_by_ref -> Executor::fetch * Move `Connection::describe` to `Executor::describe` * `Transaction` is no longer a `Connection` * `Connection` has `Executor` as a super-trait again which greatly simplifies bounds
…&Pool to continue working in 0.3
implement nullability check for Postgres as a query on pg_attribute implement type name fetching for Postgres as part of `describe()` add nullability for describe() to MySQL improve errors with unknown result column type IDs in `query!()` run cargo fmt and fix warnings improve error when feature gates for chrono/uuid types is not turned on workflows/rust: add step to UI-test missing optional features improve error for unsupported/feature-gated input parameter types fix `PgConnection::get_type_names()` for empty type IDs list fix `tests::mysql::test_describe()` on MariaDB 10.4 copy-edit unsupported/feature-gated type errors in `query!()` Postgres: fix SQL type of string array Co-Authored-By: Anthony Dodd <[email protected]>
3ac81ab
to
30d45e8
Compare
Rebased onto |
This is a subset of #88 that we can push in a patch release:
Describe
describe::Column
is marked#[non_exhaustive]
the new field is a backwards-compatible addition.pg_attribute
to get non-null columns in Postgres andpg_type
to get type namesWhile I was at it I fixed the "unknown type" error being useless for
query!()
params and columns since for Postgres it needed to fetch the type info anyway.Closes #107
Closes #17