Subject | Re: [firebird-support] Other way of specifying INSERT INTO... RETURNING... |
---|---|
Author | Reinier Olislagers |
Post date | 2012-09-24T15:05:47Z |
On 24-9-2012 8:23, Svein Erling Tysvær wrote:
That works fine in FlameRobin (with set terms added), unfortunately the
fidgety compiler completely loses it with this statement:
EIBDatabaseError : : PrepareStatement :
-Dynamic SQL Error
-SQL error code = -901
-undefined message number
... seems I'll have to bite the bullet and get the generator value... or
accept the minimum compiler version should be higher.
Next on my list will probably be testing whether EXECUTE BLOCK works on
FPC... :(
Thanks a lot,
Reinier
> EXECUTE BLOCK RETURNS(TheID integer)Thanks!
> AS
> BEGIN
> INSERT INTO i (PATH) VALUES ('\somewhere\over\the\rainbow') RETURNING ID
> INTO TheID;
> SUSPEND;
> END
That works fine in FlameRobin (with set terms added), unfortunately the
fidgety compiler completely loses it with this statement:
EIBDatabaseError : : PrepareStatement :
-Dynamic SQL Error
-SQL error code = -901
-undefined message number
... seems I'll have to bite the bullet and get the generator value... or
accept the minimum compiler version should be higher.
Next on my list will probably be testing whether EXECUTE BLOCK works on
FPC... :(
Thanks a lot,
Reinier