From: Matthew S. <ma...@we...> - 2006-10-01 19:57:56
|
Hi, I've been using the hdbc-postgresql driver, and there are problems with pulling timestamp values out of the database as they arrive as strings and then get interpreted as ints which causes errors. So, attached is a darcs patch which solves this problem. It adds a dependancy on parsedate, from http://www.cs.chalmers.se/~bringert/darcs/parsedate/doc/api/System-Time-Parse.html I'm not convinced my changes are in the right place - being in Types.hs makes it common to all the HDBC drivers. Plus the format string is going to vary between databases and installations, versions and configurations of PostgreSQL. On the other hand, it does at least work for me! Any comments gratefully received. The patch should apply in the hdbc directory. Matthew -- Matthew Sackman BOFH excuse #343: The ATM board has run out of 10 pound notes. We are having a whip round to refill it, care to contribute ? |