Skip to content

Enhance Cursor.description with type information#315

Merged
hashhar merged 1 commit intotrinodb:masterfrom
mdesmet:feature/improve-description
Jan 11, 2023
Merged

Enhance Cursor.description with type information#315
hashhar merged 1 commit intotrinodb:masterfrom
mdesmet:feature/improve-description

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
@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