Generated SELECT ... FROM DUAL statemement

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ssette
Posts: 9
Joined: Wed 10 Sep 2014 16:07

Generated SELECT ... FROM DUAL statemement

Post by ssette » Mon 02 Oct 2017 11:04

I have a problem with a TSmartQuery component. Calling the Append method the Dataset generates (or at least the monitor says) a SELECT ... FROM DUAL statement. This is not the statement generated to handle sequence but a statement like this SELECT IT FROM DUAL, where IT seems to be a value of a Macro defined in the dataset.
Do you hava any idea on why the dataset sends this statement ?

TIA

Sergio Sette

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

Re: Generated SELECT ... FROM DUAL statemement

Post by MaximG » Tue 03 Oct 2017 13:15

Please provide the sample of the used query, as well as the macro value, which is present in this query

ssette
Posts: 9
Joined: Wed 10 Sep 2014 16:07

Re: Generated SELECT ... FROM DUAL statemement

Post by ssette » Tue 03 Oct 2017 14:39

MaximG wrote:Please provide the sample of the used query, as well as the macro value, which is present in this query
Just found the problem !
A Field with a (wrong) DefaultExpression ... IT instead of 'IT'
Let me say, very very difficult to found !

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

Re: Generated SELECT ... FROM DUAL statemement

Post by MaximG » Tue 03 Oct 2017 15:32

We are glad you have localized the problem. Please contact us concerning ODAC usage.

Post Reply