 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andre' Guest
|
Posted: Wed Apr 28, 2004 5:45 am Post subject: DB2 Dbexpress/open-dbexpress (QC #3658) |
|
|
Hello,
In my sample project I have the following scenario:
cliendataset.insert -> select-statement with a second sqlquery in
onnewrecord-event of cliendataset to get ID of the new record ->
clientdataset.applyupdates in afterpost of cliendataset -> Exception occurs:
[IBM][CLI Driver] CLI0126E Operation invalid at this time.SQLSTATE=HY011
(QC #3658)
I change my Connection to open-dbexpress-driver. And ...
I got te same error. The ODBC function
SQLSetConnectAttr(SQL_ATTR_TXN_ISOLATION) returns the error.
I have conntrol over this - I don't want to set the Isolation-level.
I clone the connection and bind the cloned to the second query all
works fine. But I don't want to ask myself the whole implementation
time, if some query might be in Insert mode and I am allowed to set up
some select.
In my opinion it must be possible to select some data with a
second query while another is in insert mode (and Post/ApllyUpdate
the inserted row).
What am I doing wrong???
Do I have to install another DB2CLI.dll?
Please help me. The problem is very urgent for me.
Sincerely,
Andre'
|
|
| Back to top |
|
 |
Ramesh Theivendran(Borlan Guest
|
Posted: Wed Apr 28, 2004 8:45 pm Post subject: Re: DB2 Dbexpress/open-dbexpress (QC #3658) |
|
|
Andre,
I was not able to reproduce the bug. But i see where the problem lies. We
start transaction in the metadata retrieval code ( a workaround done for DB2
V6) and since is a transaction active we cannot set the Transaction
Isolation level again on ApplyUpdates() and hence the failure.
T.Ramesh.
"Andre'" <abr (AT) wilken (DOT) de> wrote
| Quote: | Hello,
In my sample project I have the following scenario:
cliendataset.insert -> select-statement with a second sqlquery in
onnewrecord-event of cliendataset to get ID of the new record -
clientdataset.applyupdates in afterpost of cliendataset -> Exception
occurs:
[IBM][CLI Driver] CLI0126E Operation invalid at this time.SQLSTATE=HY011
(QC #3658)
I change my Connection to open-dbexpress-driver. And ...
I got te same error. The ODBC function
SQLSetConnectAttr(SQL_ATTR_TXN_ISOLATION) returns the error.
I have conntrol over this - I don't want to set the Isolation-level.
I clone the connection and bind the cloned to the second query all
works fine. But I don't want to ask myself the whole implementation
time, if some query might be in Insert mode and I am allowed to set up
some select.
In my opinion it must be possible to select some data with a
second query while another is in insert mode (and Post/ApllyUpdate
the inserted row).
What am I doing wrong???
Do I have to install another DB2CLI.dll?
Please help me. The problem is very urgent for me.
Sincerely,
Andre'
|
|
|
| Back to top |
|
 |
Andre' Guest
|
Posted: Thu Apr 29, 2004 5:28 am Post subject: Re: DB2 Dbexpress/open-dbexpress (QC #3658) |
|
|
Thanks Ramesh!
When will this issue will be fixed?
Sincerely,
Andre'
Ramesh Theivendran(Borland) schrieb:
| Quote: | Andre,
I was not able to reproduce the bug. But i see where the problem lies. We
start transaction in the metadata retrieval code ( a workaround done for DB2
V6) and since is a transaction active we cannot set the Transaction
Isolation level again on ApplyUpdates() and hence the failure.
T.Ramesh.
"Andre'" <abr (AT) wilken (DOT) de> wrote
Hello,
In my sample project I have the following scenario:
cliendataset.insert -> select-statement with a second sqlquery in
onnewrecord-event of cliendataset to get ID of the new record -
clientdataset.applyupdates in afterpost of cliendataset -> Exception
occurs:
[IBM][CLI Driver] CLI0126E Operation invalid at this time.SQLSTATE=HY011
(QC #3658)
I change my Connection to open-dbexpress-driver. And ...
I got te same error. The ODBC function
SQLSetConnectAttr(SQL_ATTR_TXN_ISOLATION) returns the error.
I have conntrol over this - I don't want to set the Isolation-level.
I clone the connection and bind the cloned to the second query all
works fine. But I don't want to ask myself the whole implementation
time, if some query might be in Insert mode and I am allowed to set up
some select.
In my opinion it must be possible to select some data with a
second query while another is in insert mode (and Post/ApllyUpdate
the inserted row).
What am I doing wrong???
Do I have to install another DB2CLI.dll?
Please help me. The problem is very urgent for me.
Sincerely,
Andre'
|
|
|
| Back to top |
|
 |
Ramesh Theivendran(Borlan Guest
|
Posted: Thu Apr 29, 2004 8:23 pm Post subject: Re: DB2 Dbexpress/open-dbexpress (QC #3658) |
|
|
I will try to release an update in Code Central sometime next weeks. Since,
iam not able to reproduce the issue you have to test it an let me know if
the updated driver solves your issue.
T.Ramesh.
"Andre'" <abr (AT) wilken (DOT) de> wrote
| Quote: | Thanks Ramesh!
When will this issue will be fixed?
Sincerely,
Andre'
Ramesh Theivendran(Borland) schrieb:
Andre,
I was not able to reproduce the bug. But i see where the problem lies.
We
start transaction in the metadata retrieval code ( a workaround done for
DB2
V6) and since is a transaction active we cannot set the Transaction
Isolation level again on ApplyUpdates() and hence the failure.
T.Ramesh.
"Andre'" <abr (AT) wilken (DOT) de> wrote
Hello,
In my sample project I have the following scenario:
cliendataset.insert -> select-statement with a second sqlquery in
onnewrecord-event of cliendataset to get ID of the new record -
clientdataset.applyupdates in afterpost of cliendataset -> Exception
occurs:
[IBM][CLI Driver] CLI0126E Operation invalid at this time.SQLSTATE=HY011
(QC #3658)
I change my Connection to open-dbexpress-driver. And ...
I got te same error. The ODBC function
SQLSetConnectAttr(SQL_ATTR_TXN_ISOLATION) returns the error.
I have conntrol over this - I don't want to set the Isolation-level.
I clone the connection and bind the cloned to the second query all
works fine. But I don't want to ask myself the whole implementation
time, if some query might be in Insert mode and I am allowed to set up
some select.
In my opinion it must be possible to select some data with a
second query while another is in insert mode (and Post/ApllyUpdate
the inserted row).
What am I doing wrong???
Do I have to install another DB2CLI.dll?
Please help me. The problem is very urgent for me.
Sincerely,
Andre'
|
|
|
| Back to top |
|
 |
Andre' Guest
|
Posted: Fri Apr 30, 2004 5:30 am Post subject: Re: DB2 Dbexpress/open-dbexpress (QC #3658) |
|
|
Perfect, I will test it!
Please let me know, when and how to download the update.
Best regards,
Andre'
Ramesh Theivendran(Borland) schrieb:
| Quote: | I will try to release an update in Code Central sometime next weeks. Since,
iam not able to reproduce the issue you have to test it an let me know if
the updated driver solves your issue.
T.Ramesh.
"Andre'" <abr (AT) wilken (DOT) de> wrote
Thanks Ramesh!
When will this issue will be fixed?
Sincerely,
Andre'
Ramesh Theivendran(Borland) schrieb:
Andre,
I was not able to reproduce the bug. But i see where the problem lies.
We
start transaction in the metadata retrieval code ( a workaround done for
DB2
V6) and since is a transaction active we cannot set the Transaction
Isolation level again on ApplyUpdates() and hence the failure.
T.Ramesh.
"Andre'" <abr (AT) wilken (DOT) de> wrote in message
news:408F44F9.9080709 (AT) wilken (DOT) de...
Hello,
In my sample project I have the following scenario:
cliendataset.insert -> select-statement with a second sqlquery in
onnewrecord-event of cliendataset to get ID of the new record -
clientdataset.applyupdates in afterpost of cliendataset -> Exception
occurs:
[IBM][CLI Driver] CLI0126E Operation invalid at this time.SQLSTATE=HY011
(QC #3658)
I change my Connection to open-dbexpress-driver. And ...
I got te same error. The ODBC function
SQLSetConnectAttr(SQL_ATTR_TXN_ISOLATION) returns the error.
I have conntrol over this - I don't want to set the Isolation-level.
I clone the connection and bind the cloned to the second query all
works fine. But I don't want to ask myself the whole implementation
time, if some query might be in Insert mode and I am allowed to set up
some select.
In my opinion it must be possible to select some data with a
second query while another is in insert mode (and Post/ApllyUpdate
the inserted row).
What am I doing wrong???
Do I have to install another DB2CLI.dll?
Please help me. The problem is very urgent for me.
Sincerely,
Andre'
|
|
|
| Back to top |
|
 |
Pavel Raev Guest
|
Posted: Tue May 18, 2004 6:40 pm Post subject: Re: DB2 Dbexpress/open-dbexpress (QC #3658) |
|
|
Hello,
I have the same bug appearing but not every time.
One day all works fine and another nothing works.
Is it possible to know when fix is available?
As I read here, error occures when I make
SELECT between INSERT during the same transaction,
doesn't it?
And is there any workaround to not wait for fix available?
Thanx a lot.
"Andre'" <abr (AT) wilken (DOT) de> ???????/???????? ? ???????? ?????????:
news:408F44F9.9080709 (AT) wilken (DOT) de...
| Quote: | Hello,
In my sample project I have the following scenario:
cliendataset.insert -> select-statement with a second sqlquery in
onnewrecord-event of cliendataset to get ID of the new record -
clientdataset.applyupdates in afterpost of cliendataset -> Exception
occurs:
[IBM][CLI Driver] CLI0126E Operation invalid at this time.SQLSTATE=HY011
(QC #3658)
I change my Connection to open-dbexpress-driver. And ...
I got te same error. The ODBC function
SQLSetConnectAttr(SQL_ATTR_TXN_ISOLATION) returns the error.
I have conntrol over this - I don't want to set the Isolation-level.
I clone the connection and bind the cloned to the second query all
works fine. But I don't want to ask myself the whole implementation
time, if some query might be in Insert mode and I am allowed to set up
some select.
In my opinion it must be possible to select some data with a
second query while another is in insert mode (and Post/ApllyUpdate
the inserted row).
What am I doing wrong???
Do I have to install another DB2CLI.dll?
Please help me. The problem is very urgent for me.
Sincerely,
Andre'
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|