Pavel,
Could you provide some example? I don't really understand which placeholder
I can use.
On Sun, Oct 18, 2009 at 1:20 AM, Pavel Stehule wrote:
> 2009/10/17 Ilya Urikh :
> > Hi,
> >
> > I have a problem with snprintf function which insert the variables to
> st
123 AND periodStartDate <= (null)
AND periodEndDate >= '2009-01-01';
If I change the order of parameters to "periodStartDate <= %s AND
periodEndDate >= %s AND accountId = %ld", all works fine. Unfortunately this
method can not be applied to other functions of my module.
--
Best regards,
Ilya Urikh.
while
> > boarding. Thank you for flying nlogn airlines.
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iD8DBQFKdvezIB7bNG8LQkwRAiwGAJ0dyrP+JROL9F/OhKvzLlR5O2h4tACdEIAE
> QvCDFfLfnzCpkti8PXcVp38=
> =ZXiG
> -END PGP SIGNATURE-
>
>
--
Best regards,
Ilya Urikh.
age), " calculateService: rate
= %s, vat",
DatumGetCString(DirectFunctionCall1(numeric_out,
NumericGetDatum(rate;
elog(INFO, message);
#endif
amount = DatumGetNumeric(DirectFunctionCall2(numeric_mul,
NumericGetDatum(rate),
NumericGetDatum(vat)));
// ERROR
...
}
Best regards,
Ilya Urikh.
age), " calculateService: rate =
%s, vat",
DatumGetCString(DirectFunctionCall1(numeric_out,
NumericGetDatum(rate;
elog(INFO, message);
#endif
amount = DatumGetNumeric(DirectFunctionCall2(numeric_mul,
NumericGetDatum(rate),
NumericGetDatum(vat)));
// ERROR
...
}
--
Best regards,
Ilya Urikh.