[racket] problem with database connectivity

From: Christian Wagenknecht (c.wagenknecht at hszg.de)
Date: Mon Jul 1 06:56:01 EDT 2013

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4630 bytes
Desc: S/MIME Kryptografische Unterschrift
URL: <http://lists.racket-lang.org/users/archive/attachments/20130701/65a05615/attachment.p7s>

Posted on the users mailing list.