X Tutup
The Wayback Machine - https://web.archive.org/web/20200904064335/https://github.com/launchbadge/sqlx/issues/239
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

[Postgres] Improve error message when a user-defined type name is not found #239

Open
mehcode opened this issue Apr 8, 2020 · 0 comments
Open

Comments

@mehcode
Copy link
Member

@mehcode mehcode commented Apr 8, 2020

Current

RowNotFound

Desired

user-defined type named "TEXT" not found

Where

let (oid,): (u32,) = query_as(
"
SELECT oid FROM pg_catalog.pg_type WHERE typname ILIKE $1
",
)
.bind(name)
.fetch_one(&mut *self)
.await?;


Context: #237 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.
X Tutup