Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Dalton Cranston — — source: Informix-list mailing list archive (1991-1998)
On 26 Aug 1997 23:03:10 -0400, legmor@interserver.com.ar (Gabriel
Leglise) wrote:
>Richard wrote:
>
>A nice feature of the CCL/Informix connection classes is the ability to
>access the ixSQLCA class object to get update information such as the
>serial number of the record just inserted to the database by refering to
>SQLERRD[2].
>
[SNIP]
With CCL/ODBC you can use the getSQLCA() method which is part of
the ixSQLConnect class (If you are using version 2.? or higher).
For example to get the serial number of the inserted row do the
following:
VARIABLE serialNum INTEGER
....
LET serialNum = sqlStmt.getConnection().getSQLCA().SQLERRD[2]
The return value from getSQLCA() exactly mimics the old SQLCA record.
--
Dalton
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.