Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Whats wrong with the Query
Fri, Jul 20 2012 5:46 AMPermanent Link

Hershcu Sorin

Hello

I've a query on my application that using the debbuger and the
evalute/modify windows looks:

'WHERE COALESCE(EMail,'')<>'' '#$D#$A#$D#$A'ORDER BY Moed'#$D#$A

On the the edbmanager, after I remove the machine symbols, runs fine
but during the runtime it's raise the error:
#700 ...(Expected ) but instead found ORDER)'.

What I'm missing or how can I find the error?

Thanks in advance
Sorin

Fri, Jul 20 2012 5:51 AMPermanent Link

Hershcu Sorin

More information. The code in the application is:

Query.Sql.Add('WHERE COALESCE(' +FieldName+ ','')<>'' ');



> I've a query on my application that using the debbuger and the
> evalute/modify windows looks:
>
> 'WHERE COALESCE(EMail,'')<>'' '#$D#$A#$D#$A'ORDER BY Moed'#$D#$A
>
> On the the edbmanager, after I remove the machine symbols, runs fine
> but during the runtime it's raise the error:
> #700 ...(Expected ) but instead found ORDER)'.
>
> What I'm missing or how can I find the error?
>
> Thanks in advance
> Sorin
>

Fri, Jul 20 2012 8:47 AMPermanent Link

Uli Becker

Am 20.07.2012 11:51, schrieb Sorin H:
> Query.Sql.Add('WHERE COALESCE(' +FieldName+ ','')<>'' ');

The problem are missing quotes. Try this:

Query.Sql.Add('WHERE COALESCE(' + FieldName + ','''') <> ''''');

Uli
Image