[Mono-dev] [PATCH] Problem with sqlite in mono 1.1.13

Joshua Tauberer tauberer at for.net
Sun Jan 22 20:06:33 EST 2006


Aaron Bockover wrote:
> Attached is a patch that will return an Int64 for INTEGER columns unless
> the value can fit in an Int32, in which case it will return an Int32.
> Also changed from DateTime.Parse to DateTime.ParseExact. I'm not sure if
> I'm doing the proper thing with the culture. I'm pretty sure it returns
> UTC.

Why do you say that dates are in "yyyy-MM-dd HH:mm:ss" format?  It
depends on how they were put into the database -- probably the local
encoding if they're put in with DateTime.ToString(), right?

Also, checking if the long fits into an int, the negative lower bound
has to be checked too, I guess.  (Don't worry about resending a patch
just for that tho.)

-- 
- Joshua Tauberer

http://taubz.for.net

** Nothing Unreal Exists **





More information about the Mono-devel-list mailing list