[racket] problem with database connectivity
The unix domain socket library was broken for Windows. I fixed the bug
in May, but it isn't included in the last regular release. It will be
included in the upcoming 5.3.6 release.
You can get the fix by using the nightly build
(http://pre.racket-lang.org) or by replacing
collects/unstable/socket.rkt with the new version (at
https://github.com/plt/racket/blob/26545f29/collects/unstable/socket.rkt) and
running "raco setup".
Ryan
On 07/01/2013 06:56 AM, Christian Wagenknecht wrote:
> Regardless of using a postgresql or a mysql database server the
> following error message
>
> ptr-ref: contract violation
> expected: ctype?
> given: #<void>
> argument position: 2nd
> other arguments...:
> #<ffi-obj>
>
> appears when trying to connect it from drracket by
>
> #lang racket
> (require db)
>
> (define dbc1
> (postgresql-connect #:user "postgres"
> #:database "postgres"
> #:password "abcd"
> #:server "localhost"
> #:port 5432))
>
> I ensured to have the 64 bit versions of the systems installed under Win 7.
> Thanks for your help in advance, Christian
>
>
>
> ____________________
> Racket Users list:
> http://lists.racket-lang.org/users
>