Subject Re: [firebird-support] Unsupported parameter into SQL expression
Author masotti
masotti ha scritto:
> SELECT ART_CODICE, QUANTITA, PREZZO, PREZZO / 100. 00 * CAST ( :sconto )
> AS INTEGER
>
Well, not too much coffee this morning in finger: sigh.

CAST ( :sconto AS INTEGER )

Obviously. And to clarify order of operator's precedence
( CAST ( :SCONTO as integer ) * PREZZO ) / 100.00

Ciao.
Mimmo.