Subject | quoting of ixed case field names and link of connection and transaction |
---|---|
Author | Björn Reimer |
Post date | 2011-07-17T13:08:20Z |
Hello,
I've updated to IBO 4.9 Release 14 [Build 11] from IBO Release 4.9 Build 11. Ok, not a small step....
Two things broke my code.
First I've to 'backlink' transactions to their connection.
Without using the optical stuff it was enough to
- Create TIB_Connection
- create TIB_Transaction
- set DefaultTransaction of connection to that transaction
- create cursor or query or ...link it to connection and use it
Now I'm getting exception E_Trans_Not_Valid_For_Conn
To avoid it I've to set IB_Connection-property of transaction to connection.
Is this intended?
My second problem is, that mixed case field names have to be double quoted to use FieldByName-function of TIBOQuery
Also TIBOQuery.Fields[x].FieldName of now returns a quoted string.
I can't find in release notes that it has changed.
Is this also intended?
Björn
--
I've updated to IBO 4.9 Release 14 [Build 11] from IBO Release 4.9 Build 11. Ok, not a small step....
Two things broke my code.
First I've to 'backlink' transactions to their connection.
Without using the optical stuff it was enough to
- Create TIB_Connection
- create TIB_Transaction
- set DefaultTransaction of connection to that transaction
- create cursor or query or ...link it to connection and use it
Now I'm getting exception E_Trans_Not_Valid_For_Conn
To avoid it I've to set IB_Connection-property of transaction to connection.
Is this intended?
My second problem is, that mixed case field names have to be double quoted to use FieldByName-function of TIBOQuery
Also TIBOQuery.Fields[x].FieldName of now returns a quoted string.
I can't find in release notes that it has changed.
Is this also intended?
Björn
--