This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jondo
Recipients jondo
Date 2018-11-02.12:16:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541160984.12.0.788709270274.issue35145@psf.upfronthosting.co.za>
In-reply-to
Content
Currently, fields are converted to datetime as described in https://docs.python.org/3/library/sqlite3.html#sqlite3.PARSE_COLNAMES :

'select x as "x [datetime]" from table'

In my use case I don't know the names and locations of the datetime fields in advance. So I would need to do pandas.read_sql_query('select * from table', con) and get correct datetime columns.
(My current workaround is try calling pandas.to_datetime on each text column afterwards.)

The type info has to be available in the sqlite database, because I see that SQLiteStudio correctly detects the datetime columns.
History
Date User Action Args
2018-11-02 12:16:24jondosetrecipients: + jondo
2018-11-02 12:16:24jondosetmessageid: <1541160984.12.0.788709270274.issue35145@psf.upfronthosting.co.za>
2018-11-02 12:16:24jondolinkissue35145 messages
2018-11-02 12:16:23jondocreate