Error with Todbc in FW0902

Error with Todbc in FW0902

Postby PeterHarmes » Thu May 07, 2009 9:23 am

Hi,

I've upgraded my xHarbour & FW and i'm getting the following error message when i'm trying to make a connection to a Sage table using oOdbc := TOdbc():New(cDsn, cName, cPass)

AutoCommit could not be set from TOdbc:New()

This worked on the previous version i used (FW0712)

Any ideas?

Thanks In Advance

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Error with Todbc in FW0902

Postby Antonio Linares » Thu May 07, 2009 9:51 am

Pete,

We have not modified that method since version 7.04.

Is your previous 7.12 based EXE working fine with the same ODBC connection ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error with Todbc in FW0902

Postby PeterHarmes » Thu May 07, 2009 9:57 am

I've just noticed that theres no changes. yes, the previous 712 version worked fine - i've also upgraded my xHarbour enterprise version to April 09 so i don't know if theres a conflict there?
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Error with Todbc in FW0902

Postby PeterHarmes » Fri May 08, 2009 2:37 pm

Anyone else having problems? especially if you've rebuilt the FW lib using xHarbour enterprise?

I can confirm that Todbc works with FW9.01 & xHarbour enterprise Dec 08

Any ideas?

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Error with Todbc in FW0902

Postby Antonio Linares » Fri May 08, 2009 8:58 pm

Pete,

It seems as the lines that fail are:
Code: Select all  Expand view

   if ( nRet := SqlSetConnectOption( ::hDbc, SQL_AUTOCOMMIT, AUTOCOMMIT_ON ) ) != SQL_SUCCESS
      ::NewError("AutoCommit could not be set from TOdbc:New()",,, nRet)
   endif
 

What value do you get for nRet ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Error with Todbc in FW0902

Postby PeterHarmes » Mon May 11, 2009 9:22 am

I get 1274675200 !!!!!

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Error with Todbc in FW0902

Postby PeterHarmes » Wed Jun 10, 2009 9:14 am

Just an update on this..

I have just tested the code using 09.05 and it is working fine. I think the problem was due to having to rebuild the FiveWin libraries with the xHarbour builder.

Pete
PeterHarmes
 
Posts: 363
Joined: Wed Feb 15, 2006 2:06 pm
Location: Oxford, England

Re: Error with Todbc in FW0902

Postby Antonio Linares » Wed Jun 10, 2009 11:47 am

Pete,

Gald to know it is working fine again :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42081
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 30 guests

cron