-
Notifications
You must be signed in to change notification settings - Fork 566
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
Expose sql_type information about columns in resultset #167
Comments
Same here. https://github.com/mkleehammer/pyodbc/wiki/Cursor#description docs suggests that it returns just that:
but instead it returns Python type that values will be mapped to (e.g. @mkleehammer is there a way to get original (ODBC-level) type information? |
@findepi |
@jstastny-cz , is it |
@findepi I exposed the information in an additional field 'coldescription': and the PR is already in place (it never got into the project, as it is not project's priority I am afraid): |
Expose sql_type for columns in resultset mkleehammer#167
Hi, It would be really helpful to get this issue fixed and rolled into production. We are reading data from Microsoft SQL Server and need to know if the string column is 'char' or 'varchar'. Both show up as Python strings, the char value is blank padded, while the varchar is not. Can the priority of this be bumped up. Thanks. Sundar Mudupalli |
I am looking for an extension of metadata returned through Cursor.
For every column in a result set I'd like to be able to get sql_type code of that column.
Together with getTypeInfo method of cursor, user can get further information about the datatype.
The text was updated successfully, but these errors were encountered: