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

Cursor description return column name vs column label #169

Open
ikus060 opened this issue Sep 29, 2020 · 0 comments · May be fixed by Antfield-Creations/jaydebeapi#1
Open

Cursor description return column name vs column label #169

ikus060 opened this issue Sep 29, 2020 · 0 comments · May be fixed by Antfield-Creations/jaydebeapi#1

Comments

@ikus060
Copy link

ikus060 commented Sep 29, 2020

Current implementation return the colum name instead of the expected column label.

>>> import jaydebeapi
>>> conn = jaydebeapi.connect("org.h2.Driver", "jdbc:h2:./test;MV_STORE=FALSE;IFEXISTS=TRUE", ["sa", ""], "h2-1.4.200.jar") 
>>> curs = conn.cursor()
>>> curs.execute("SELECT ID AS RIDER_ID FROM RIDER")
>>> curs.description
[('ID', DBAPITypeObject('BOOLEAN', 'BIGINT', 'BIT', 'INTEGER', 'SMALLINT', 'TINYINT'), 20, 20, 19, 0, 0)]

While I would expect:

>>> curs.description
[('RIDER_ID', DBAPITypeObject('BOOLEAN', 'BIGINT', 'BIT', 'INTEGER', 'SMALLINT', 'TINYINT'), 20, 20, 19, 0, 0)]
reinvantveer added a commit to Antfield-Creations/jaydebeapi that referenced this issue May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant