Parsing SQL parameters without executing query?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pcz
Posts: 81
Joined: Tue 04 Aug 2015 12:53

Parsing SQL parameters without executing query?

Post by pcz » Thu 05 May 2016 11:06

Hello

Is it possible to generate "parsed" SQL without opening / preparing query at all? (by "parsed" I mean "like FinalSQL but with parameter values assignment block")

I just like to use TOraQuery parsing without getting any data

Example:
I'd like to have TOraQuery with code like:

Code: Select all

SELECT KEY_VALUE FROM TABLE WHERE NAME_VALUE = :PARAM
and just want to set "PARAM" value and read string with parameter values:

Code: Select all

SELECT KEY_VALUE FROM TABLE WHERE NAME_VALUE = :PARAM

:PARAM(Unknown)='xyz'
Regards
P.C.

MaximG
Devart Team
Posts: 1822
Joined: Mon 06 Jul 2015 11:34

Re: Parsing SQL parameters without executing query?

Post by MaximG » Fri 06 May 2016 08:17

Unfortunately, this option is not available in ODAC, and the developers need to implement it on their own.

pcz
Posts: 81
Joined: Tue 04 Aug 2015 12:53

Re: Parsing SQL parameters without executing query?

Post by pcz » Fri 06 May 2016 08:20

Ok - thank You for information!

Post Reply