Hi All,
On II 10.1.0 (a64.lnx/126)NPTL + p14302
The date(‘now’) in a procedure fixes on the date the procedure was created and not the actual date(‘now’) when it is executed.
Try this:
create procedure test_date as declare msg varchar(256) not null not default; begin msg = 'date is ' + varchar(date('now')); message :msg;end;
execute procedure test_date\t\p\g
Thu Aug 2 15:42:37 2012
execute procedure test_date
Executing . . .
MESSAGE 0: date is 02/08/2012 15:39:25
And again…
Thu Aug 2 15:43:20 2012
Executing . . .
MESSAGE 0: date is 02/08/2012 15:39:25
Maximum suckage!
Martin Bowes