[squeak-dev] FFI + ODBC problems

riccardo.sangalli at edor.it riccardo.sangalli at edor.it
Mon Dec 22 17:37:38 UTC 2008


Hello,
sorry for my english and for annoying you, but I have a question about FFI...
I am a newbie in smalltalk and I tried to use Seaside to make an ODBC connection.
So we tryied to make a simple connection + query:

| con |
  con := ODBCConnection dsn:'testsqueak' user:'sa' password:''.
  (con query: 'SELECT count(*) FROM Clienti') results do:[:row | Transcript show: row; cr].

  con close.

...but we obtained the error explained in the attachment image file.
We use Squeak 3.9 (Seaside OneClickExperience version) + FFI loaded by Squeak Map + 
ODBC for Squeak loaded with Squeak Map.
Running that code in an old version of Squeak (3.7) everithing works...
Do you know why? 
Maybe that are different versions of FFI?
Maybe the call at odbc32.dll OLD deprecated function "SQLAllocEnv" instead of new "SQLAllocHandle"?

Thank you a lot in advance and best wishes for holidays.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20081222/c4a1b461/attachment.htm


More information about the Squeak-dev mailing list