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

Enhance Cursor.description with type information #315

Merged
merged 1 commit into from
Jan 11, 2023

Conversation

mdesmet
Copy link
Contributor

@mdesmet mdesmet commented Jan 7, 2023

Description

Add internal_size, precision, scale to Cursor.description to make it easier to get type information of a result set.

Note that if this information can be extracted from the type, this is also removed from the type_code, making it easier to match upon.

Non-technical explanation

Release notes

( ) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
(x) Release notes are required, with the following suggested text:

* Add type information to DBAPI's cursor description (internal_size, scale, precision)

@cla-bot cla-bot bot added the cla-signed label Jan 7, 2023
@mdesmet mdesmet force-pushed the feature/improve-description branch from 0e9833e to cb29b0f Compare January 7, 2023 12:10
trino/constants.py Show resolved Hide resolved
@mdesmet mdesmet force-pushed the feature/improve-description branch from cb29b0f to 74cb3d7 Compare January 9, 2023 09:50
@mdesmet mdesmet requested a review from hashhar January 9, 2023 10:07
@mdesmet mdesmet self-assigned this Jan 9, 2023
@hashhar hashhar merged commit ea55fc0 into trinodb:master Jan 11, 2023
This was referenced Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants