Skip to content
Advertisement

ValueError when reading dates from hfsql database using ODBC

With some struggles I connected to a hfsql server using ODBC. I’ve tried both pypyodbc and pyodbc. My goal is to get some insights in the data (and visualize some aspects).

For some planning visualization I need to read out some of the data, which works fine for most tables and columns. However, when I try to read out a column containing dates i get a ValueError:

All rows contain a valid date.

This is the code that currently produces the error above:

db is the database (it works with other queries)

gives: [(‘deliverydate’, <class ‘datetime.date’>, 11, 9, 9, 0, True)]

I also tried:

(dates are e.g. 27-6-2022) Which unfortunately gives the same error.

Any help would be appreciated, cheers,

Advertisement

Answer

(as suggested in a comment to the question) solved the issue.

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement