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 p-ganssle
Recipients berker.peksag, ghaering, jondo, matrixise, p-ganssle
Date 2018-11-05.16:56:49
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1541437009.42.0.788709270274.issue35145@psf.upfronthosting.co.za>
In-reply-to
Content
With regards to automatically deducing column types, I am -1 on that. It has way too many dangerous edge cases, and I know of countless bugs in software that are the direct result of stringly-typed data being coerced into a specific data type based on its form. For example, if you have an excel column of alphanumeric strings and happen to get one that looks like "13943E1", that will be coerced (lossily) into the number 139430.0, because it happens to take the form of exponential notation.

> I contains a table `t` with a TEXT column `x` and a DATETIME (according to SQLiteStudio) column `y`.

It sounds to me like SQLiteStudio is doing the same thing that Python is doing, by extending the "types" available to include a DATETIME. Presumably they do it the same way, with "datetime" in the column name. If that's the case then it's just a mismatch between what they call their datetime adapter and what python does, and you just need to rename the relevant columns to say "timestamp" instead of "datetime".

As an aside, this is what we get from people not offering real datetime types in their standards. JSON has the exact same problem - people need to transmit datetimes but there's no way to do it in the standard, so everyone extends the standard in a sightly different way and you end up with a bunch of incompatible ways of storing datetimes as strings. Bah humbug.
History
Date User Action Args
2018-11-05 16:56:49p-gansslesetrecipients: + p-ganssle, ghaering, berker.peksag, matrixise, jondo
2018-11-05 16:56:49p-gansslesetmessageid: <1541437009.42.0.788709270274.issue35145@psf.upfronthosting.co.za>
2018-11-05 16:56:49p-gansslelinkissue35145 messages
2018-11-05 16:56:49p-gansslecreate