Subject | Re: problem with very simple Stored Procedure |
---|---|
Author | brets1001 |
Post date | 2002-08-26T18:49:51Z |
It's ridiculous
Here is everything i typed. it looks EXACTLY like your code.
I don't understand. If you have any clue, please tell me. I am
beginning to think computers are against me! I even tested it in a
fresh new database file... same result. i am using firebird on win32,
dated march 12.
Thank you very much for your help.
S. Breton
----------------- starts here -----------------
create table online_ (timeout timestamp);
set term!!;
create procedure timeout
as
begin
update online_ set timeout = current_timestamp;
end!!
Here is everything i typed. it looks EXACTLY like your code.
I don't understand. If you have any clue, please tell me. I am
beginning to think computers are against me! I even tested it in a
fresh new database file... same result. i am using firebird on win32,
dated march 12.
Thank you very much for your help.
S. Breton
----------------- starts here -----------------
create table online_ (timeout timestamp);
set term!!;
create procedure timeout
as
begin
update online_ set timeout = current_timestamp;
end!!
>>> DDL executed.commit;
>>> Exec time: 0.00 s
>>> Exec time: 0.02 sinsert into online_ (timeout) values (current_timestamp);
>>> 1 row(s) inserted.update online_ set timeout = current_timestamp;
>>> Exec time: 0.00 s
>>> PLAN (TIMEOUT_ NATURAL)Commit;
>>>
>>> 1 row(s) updated.
>>> Exec time: 0.02 s
>>> Exec time: 0.00 sExecute procedure timeout;
>>> Statement #1:----------------- the end -----------------
>>> Unknown error.
--- In ib-support@y..., "Artur Anjos" <arsoft@n...> wrote:
>
> Hi Breton,
>
> It should work. That message should be from your client application.
>
> I have done this:
>
> create table online_ ( timeout timestamp );
> commit;
>
> SET TERM ##;
> CREATE PROCEDURE SET_TIMEOUT
> AS
> begin
> update online_ set timeout = current_timestamp;
> end ##
> SET TERM ; ##
> commit;
>
> /*Populate*/
> insert into online_ (timeout) values (current_timestamp);
> commit;
>
> execute procedure SET_TIMEOUT;
> commit;
>
> It worked ok, no errors at all.
>
> Artur
>