I get different date formats back from a postmodern query at different times.
I am using SBCL 1.0.31.32 and the latest (as of the weekend) from clbuild.
The steps.
1. I delete all my .fasl files for a project
2. I do a require for the project to load and compile
3. I run a query/function and I get the correct "date" data back => #<DATE 01-01-2009>
4. I close emacs and re-open it
5. I do a require of the project to load
6. I run a query/function and I get incorrect "date" data back => 3439756800
Any ideas?
I guess you are using simple-date. If simple-date gets loaded after cl-postgres, it registers itself as the preferred date format. If it gets loaded before, nothing happens. That probably explains the strangeness. There is an extra system, :simple-date-postgres-glue, defined in simple-date.asd, which can be loaded to ensure the glue code is used.
Does clbuild pull from the repository, or load the latest released version?
clbuild pulls from darcs.
Ok thanx I got it to work now. Just as a note to anybody else that might find this one day, if you use the defsystem depends-on to load systems then remeber that it loads them in the reverse order of what you give.
That took me a couple of tries to figure out lol.
Thank you for the assistance it is much appreciated.
On Wed, 2009-11-04 at 20:01 +0100, Marijn Haverbeke wrote:
I guess you are using simple-date. If simple-date gets loaded after cl-postgres, it registers itself as the preferred date format. If it gets loaded before, nothing happens. That probably explains the strangeness. There is an extra system, :simple-date-postgres-glue, defined in simple-date.asd, which can be loaded to ensure the glue code is used.
Does clbuild pull from the repository, or load the latest released version?
postmodern-devel mailing list postmodern-devel@common-lisp.net http://common-lisp.net/cgi-bin/mailman/listinfo/postmodern-devel
postmodern-devel@common-lisp.net