Hi,

DBUSEAREA(..., nConnection1)

In dbUseArea nConnection can be on 8 item/position. That is nowhere in the documentation

Yes, nConnection is the 8th parameter. The most precise documentation is source :)


RDDI_ERROR, RDDI_ERRORNO after query execution.

Its return 1, but records inserted :)
Where can I to read the meaning of return ? Where can I find an example how full use of them ?

Well, I guess you use sddodbc. I found:
   /* TODO: error processing */
in execute method :( I must find a time to finish this.

I store error codes and error description returned from lower level API. So, error codes has value described in MySQL, ODBC, or reference manual of the database you use.


For example, how do I can end a call the nConnection ?

Maybe rddInfo( RDDI_DISCONNECT, nConnection), but after this new
connection is == n_old_Connectiom + 1, and I'm not sure that the old has
been closed.
How to check if the connection  nConnection is [still] active?

One more good question. In the current version of RDDSQL, RDDI_DISCONNECT disconnects from database, but connection number/handler is not freed, because it can be used from methods of open workarea. I must review available databases and think about the future, before making the final decision on connection close. Maybe a connection counter should be implemented and connection can be closed only if all work areas using the specified connection are closed...


Regards,
Mindaugas

_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to