|
|
|
Delphi+MySQL 4.01+dbExpress проблема
|
|||
|---|---|---|---|
|
#18+
Всем привет. Странная проблема возникла при попытке работы с параметризированными запросами. Вот пример (на C++Builder): DB->Open(); Query->SQL->Clear(); Query->SQL->Add("delete from toures where toures_pk=:TOURES_PK;"); Query->Prepared=true; for(int i=0; i<1000; i++) { Query->ParamByName("TOURES_PK")->AsInteger=i; Query->ExecSQL(true); // ОШИБКА!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! } DB->Close(); При выполнении строки Query->ExecSQL(true) выдаётся такая ошибка: 'Cannot perform this operation on an open connection'. Ребят, кто-нибудь с этим сталкивался? Как обходили? ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 29.06.2004, 12:39 |
|
||
|
|

start [/forum/topic.php?fid=47&gotonew=1&tid=1855019]: |
0ms |
get settings: |
9ms |
get forum list: |
14ms |
check forum access: |
2ms |
check topic access: |
2ms |
track hit: |
147ms |
get topic data: |
11ms |
get first new msg: |
6ms |
get forum data: |
2ms |
get page messages: |
52ms |
get tp. blocked users: |
1ms |
| others: | 209ms |
| total: | 455ms |

| 0 / 0 |
