Subject | RE: [firebird-support] weird behaviour [typo corrected] |
---|---|
Author | George P Boutwell |
Post date | 2003-10-08T13:13:08Z |
-----Original Message-----
Would:
execute procedure foo(CAST('a' | 'b' AS VARCHAR(10))
or the like work?
George
To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003
> SPs expect constants as input. 'a'||'b' is an expression. If youneed to
> pass an expression, you'll have to resolve it to a constant in thehost
> language. What you need to do is prepare the statement with areplaceable
> parameter and then have your application pass the resolved expressionto
> the parameter before executing.Hellen,
> e.g. in Delphi I would do
> Sql.clear;
> Sql.add(execute procedure foo(:result));
> Prepare;
> Params[0].AsString := 'a' + 'b';
> Execute;
Would:
execute procedure foo(CAST('a' | 'b' AS VARCHAR(10))
or the like work?
George
To unsubscribe from this group, send an email to:
firebird-support-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.524 / Virus Database: 321 - Release Date: 10/6/2003