Closed GoogleCodeExporter closed 9 years ago
I am pretty sure that this is working, but that the case isn't matching. The
library uses the column names that are returned from the database, so they may
not match your input SQL exactly. For example, you may use "select id, name
..." but the database may return the columns "ID" and "NAME". The way to find
out is to print cursor_description.
If they also show lowercase values, then please provide the results. Also
provide the results of this:
print repr(cursor.description[0][0])
If they are upper or mixed case and you do not want that (I never do), set
pyodbc.lowercase = True before you connect. All connections created after that
will force column names in results to lowercase.
I'll put this into Investigating state until I get more information.
Original comment by mkleehammer
on 11 Aug 2011 at 1:19
my bad they where upper case.
pyodc.lowecase = True is the way to go.
just moved to pyodbc as ibm_db is not supported anymore under osx 10.7 .
I will have a look at distutils to detect unixodbc without adding include and
compile flags manually and
do pull request on github.
Thanks.
Original comment by locojay...@gmail.com
on 11 Aug 2011 at 1:43
Original comment by mkleehammer
on 13 Sep 2011 at 11:15
Original issue reported on code.google.com by
locojay...@gmail.com
on 11 Aug 2011 at 1:05