Skip to content

Selecting a field with a BIGINT data type in MS Access #1307

Answered by gordthompson
Omnitrix2013 asked this question in Q&A
Discussion options

You must be logged in to vote

Aha. Try

def decode_bigint(raw_bytes): return int.from_bytes(raw_bytes, byteorder="little", signed=True)

connection.add_output_converter(pyodbc.SQL_WCHAR, decode_bigint)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@Omnitrix2013
Comment options

@gordthompson
Comment options

Answer selected by Omnitrix2013
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants