[Gambas-devel] Change to gb.db.odbc to use ODBC Connection Strings.

Benoît Minisini gambas at ...1...
Wed Sep 16 21:54:01 CEST 2015


Le 16/09/2015 20:40, ML a écrit :
>
> Ok, I think I misunderstood your meaning (and maybe I still do!). If I
> can help in any way, just say the word.
> I just forced the attribute because it looked to me that at least MSSQL
> does not work with unixODBC correctly and I wanted to make the driver as
> general as possible.
>
> But, rereading your post, you say that it may be Gambas misbehaving, so
> I'll wait for you.
> In the meantime, I'll use what I already have because it works and I
> need it. I will not publish my changes other than here as I already did.
>
> Thanks,
> zxMarce.
>

Can you start playing with revision #7316?

I have modified gb.db and gb.db.odbc so that the query_fill() method return:

- DB_ERROR constant if query_fill() fails.
- DB_OK constant if it succeeds.
- DB_NO_DATA constant if we are moving forward and there is no row anymore.

The query_init() must return -1 in its 'count' argument to indicate that 
the result is "forward only".

Then 'gb.db' will raise an error if the user tries to use the Resule 
objet for something else that just forwarding one row by one row.

Tell me what you can do with that.

Regards,

-- 
Benoît Minisini




More information about the Devel mailing list