Hello Mindaugas, Tuesday, March 23, 2010, 12:06:24 PM, you wrote:
MK> Hi, MK> [email protected] wrote: >> 2010-03-23 12:55 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) >> * harbour/contrib/rddsql/sddfb/sddfb.c MK> I've committed, but some requested things does not work, i.e. sddfb. MK> isc_start_transaction( status, &hTrans, 1, &hDb, 0, NULL ) returns MK> error and does not create transaction handle, though, value of hTrans is MK> changed. status array has number in status[0] that is not equal to any MK> error code and are different on different function calls, status[1] is MK> equal 0. In case of real error reporting firebird status[0] is equal 1, MK> and status[1] contains error code. I've spend half of a day trying to MK> find a reason yesterday, but without any success. MK> Perhaps, I'll try to reinstall new version of FB, unless someone more MK> familiar with FB will solve the issue. I can only confirm ;-( persistent problems with sddfb and returned problem with "neverending loop" after error, some days ago fixed by Viktor (AFAIR) I can only help with FB Api Guide at http://www.firebirdsql.org/manual/ufb-cs-clientlib.html We can see some differences with guide and also between previous version from fbirddd.c regarding do sddfb.c and API guide for example: [guide] Setting up an error status vector Most API functions return status information that indicates success or failure. The information returned is derived from the second array element of the error status vector, where InterBase reports error conditions. The error status vector is declared in applications as an array of 20 long integers, using the following syntax: #include <ibase.h> . . . ISC_STATUS status_vector[20]; ISC_STATUS is a #define in ibase.h provided for programing convenience and platform ..... [fbirddd.c] static HB_ERRCODE fbConnect( SQLDDCONNECTION * pConnection, PHB_ITEM pItem ) { ISC_STATUS status[ 5 ];//<-- only 5 ?? [sddfb.c] static HB_ERRCODE fbConnect( SQLDDCONNECTION * pConnection, PHB_ITEM pItem ) { ISC_STATUS_ARRAY status; // but not ISC_STATUS .. but I`m not sure if this is a reason of troubles ... -- Best regards, Jacek mailto:[email protected] _______________________________________________ Harbour mailing list (attachment size limit: 40KB) [email protected] http://lists.harbour-project.org/mailman/listinfo/harbour
