Roundtrip SQL data especially datetime
Fredrik Lundh
fredrik at pythonware.com
Sun Dec 17 07:00:05 EST 2006
dyork wrote:
> Most values tend to work, but only because the SQL string representation
> happens to be the same as the Python representation. That may not apply to
> some float values, bool, perhaps others. I had hoped the tools would have
> solved those problems so I don't have to. In typed languages (Java, C#)
> those things tend to just work.
if you think that Python isn't typed, you've completely missed how
things work. your problem is that you're removing every trace of the
type information by casting everything to strings, not that Python
itself (nor the database adapters) cannot handle typed data.
</F>
More information about the Python-list
mailing list