Open bsanders1979 opened 6 months ago
Hi! Thank you for contributing!
Is there a TIMESTAMP
type that also persists time zone? That would be preferrable I think.
Hello, Apparently, some variants of db2 do support "timestamp with time zone". But, it seems the one I use (11.5 Linux) does not.
Granted, this statement works...
values (CURRENT TIMESTAMP, CURRENT TIMEZONE, CURRENT TIMESTAMP - CURRENT TIMEZONE);
But this does not... space or not separating TIMEZONE...
CREATE TABLE tz(tstz TIMESTAMP WITH TIME ZONE);
You can go with timezone
, but you should use setting .alwaysPersistTimestampInUTC()
After you have successfully tested the ddl-script, would you open a PR and submit it?
Hello, No issue really...just wanted to provide the DDL for creating SCHEDULED_TASKS in db2. I basically took one of the already provided scripts, ran it thru ChatGPT and then made the necessary adjustments.