I am afraid that someone who reads this thread will get the impression that the SQL BDE mechanism cannot process the request:
select * from Journal where Journal."Where" = "RainPump"
and will waste his time unnecessarily walking around him.
In fact, this design works great. The quotes around the "Where" do not allow BDE to interpret it as a keyword, as one would expect.
I do not know what is wrong in the specific situation in Baldrik, or what he tried in what order. It describes the problem as querying a * .db table, but its SQL error is more like what you would get in pass-through mode. Or perhaps he simplified his code for presentation, thereby eliminating the true cause of the error.
My tests were performed with: BDE v.5.2 (5.2.0.2) The paradox for Windows v. 7 (32b) Delphi 5.0 (5.62)
Different versions of a successful statement:
select * from Journal D0 where D0."Where" = "RainPump" select * from Journal where Journal."Where" = "RainPump" select * from ":common:Journal" D0 where D0."Where" = "RainPump" select * from ":common:Journal" where ":common:Journal"."Where" = "RainPump" select * from :common:Journal where Journal."Where" = "RainPump" select * from ":common:Journal" D0 where D0."GUMPIK" = 3 select * from ":common:Journal" where ":common:Journal"."GUMPIK" = 3 select * from :common:Journal where Journal."GUMPIK" = 3
Versions of an expression that look correct but do not work with "Invalid Keyword Use":
select * from ":common:Journal" where :common:Journal."Where" = "RainPump" select * from :common:Journal where :common:Journal."Where" = "RainPump" select * from ":common:Journal" where :common:Journal."GUMPIK" = 3 select * from :common:Journal where :common:Journal."GUMPIK" = 3
Al.
source share