Thanks for the bug report, and the code has been patched with a newer version on planet. <div><br></div><div>Do (require (planet bzlib/dbd-spgsql:1:3)) to retrieve the latest version. </div><div><br></div><div>Cheers,</div>
<div>yc</div><div><br><div class="gmail_quote">On Sun, Nov 28, 2010 at 3:32 PM, prad <span dir="ltr"><<a href="mailto:prad@towardsfreedom.com">prad@towardsfreedom.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
some of this is speculation since i'm just a couple of days into the<br>
racket system.<br>
<br>
in the dbd-spgsql.plt package by bzlib we have:<br>
<br>
(define (sql-date->date date)<br>
(match date<br>
((struct dbd:sql-date (year month day))<br>
(make-date 0 0 0 0 day month day 0))))<br>
<a href="http://planet.plt-scheme.org/package-source/bzlib/dbd-spgsql.plt/1/2/spgsql.ss" target="_blank">http://planet.plt-scheme.org/package-source/bzlib/dbd-spgsql.plt/1/2/spgsql.ss</a><br>
<br>
which i believe is supposed to get a sql date and return it as a normal<br>
date which you can then get stuff out of with srfi/19 using date-year<br>
etc.<br>
<br>
however, i'm getting the day returned instead of the year, i assume<br>
because the last line in the code reads "day month day" instead of<br>
"year month day".<br>
<br>
if i am correct, how do i request a fix?<br>
<br>
meanwhile, can i make the change myself on my machine. i can't edit the<br>
actual dbd-spgsql.plt file in my .racket directory because it seems to<br>
be byte-coded(?) though i can read it in emacs. i tried downloading the<br>
code from the web, saved as dbd-spgsql.rkt along with array.rkt which<br>
it wants as a module and then did (require "dbd-spgsql.rkt") and now i<br>
can get the year printing out the way i think it should be:<br>
(tm:date 0 0 0 0 2010 9 18 0)<br>
instead of what i was getting"<br>
(tm:date 0 0 0 0 18 9 18 0)<br>
<br>
so i can probably get it to work right eventually, but is there a way i<br>
can modify the actual file i'm getting from planet?<br>
<br><br></blockquote></div><br>
</div>