Hello all,
Probably, I've misunderstood something but I can't explain this behavior. While the following SQL statement works (and returns 4 rows):
Code:
SELECT * FROM pr_sqlstats WHERE when = '10:24'::datetime HOUR TO MINUTE;
the following returns an empty result (while I would expect at least 4 but normally more):
Code:
SELECT * FROM pr_sqlstats WHERE when = '10'::datetime HOUR TO HOUR;
This code is being executed on a table which has been created as follows:
Code:
CREATE TABLE pr_sqlstats (
when DATETIME YEAR TO MINUTE DEFAULT CURRENT YEAR TO MINUTE,
who CHAR(8) DEFAULT USER,
grp SMALLINT,
id SMALLINT
);
Thanks for anybody who can point me to the right direction.