!!BDE-Bug using SQL (System hangs)!!
Hello,
i found a Bug when using a simple sql-statement with Delphi/Paradox5/7/8
or the Database-Explorer of Delphi. Because the Bug appears in all
Borland (or Inprise or Corel) products i suppose that it is a
BDE/Paradox-Bug! I have the following simple constellation:
1) an arbitrary paradox table called 'test' with two fields: the first
one is the primary index called 'id' and is of the type longint. the
second one is called 'mark' and is of the type smallint. it is importent
that the id is defined as primary index otherwise the bug doesn't
appear!
2) the table consitst for example of 5 rows (id 1 to 5); mark is empty:
id mark
1
2
3
4
5
Now the BUG:
3) try the following sql-statement:
update test set mark = 1 where id in (1,2,3)
when executing this sql-statement the system (Delphi, Paradox,
Databse-Explorer) hangs. you have the same result when using this
statement:
update test set mark = 1 where id = 1 or id = 2 or id = 3.
Note:
the bug appears only if id is a primary index and there is more then one
hit in the table. if you want to mark the rows with the ids 1,7,8 and 9;
and only one id is available in the table (one hit) then the bug doesn't
appear.
with interbase sql-server there is no problem! it seems to be a
bde/paradox problem!
Yildiray Ogurol.
Email: yildi...@zait.uni-bremen.de