Subject Re: [firebird-support] Re: Decimal woes
Author Helen Borrie
At 10:02 PM 9/03/2008, you wrote:
>--- In firebird-support@yahoogroups.com, Helen Borrie <helebor@...>
>>
>> Tell us more about this weird language ;-) and particularly about
>the environment, that makes it totally dependent on having a Windows
>ODBC driver running in Wine.
>>
>> ./heLen
>>
>
>The weird language is Rebol, and it was last discussed on this list in
>2002. The same restrictions apply .. the only way to interface with
>Firebird is on windows 32 using ODBC. There is no native support on
>Linux hence my stab at using Wine ... which very nearly works. There
>are Linux mysql and postgresql drivers though.

But the ODBC driver is a client layer. It lives in the client environment. So your connection model would have your Rebol app + ODBC driver on the Windows client, connecting to the server on the Linux host machine.

App--->ODBC driver--->fbclient.dll--///////////////////////////////--Linux (or any other platform)
Win32 client environment TCP/IP hosting the Firebird server

Or did I miss some element here...?

>However, from that thread there is this suggestion:
>
>"Forget about direct connection and use the standard way - call
>functions from gds32.dll (libgdslib.so).

Well, there is the Firebird API (now fbclient.dll for Windows clients and libfbclient.so or libfbembed.so for Linux clients). Normally your driver makes calls to that API on behalf of your application but you could - at a very long stretch - write your own translation of the C API into Rebol (some kind of "reduced Cobol", is it?)


>SY, Dimitry Sibiryakov."
>
>So, maybe I need to look into this if I can find documentation
>suitable for me.

The InterBase 6 Beta API Guide, which you can access through various community links. But if the application can communicate with the ODBC driver, I don't right now see why you would need to go to those lengths.

./heLen