[Solved] DATEDIFF issue after HSQLDB 2.2 upgrade
Posted: Fri Feb 10, 2012 10:33 am
Hi all,
I had some queries that were using DATEDIFF to calculate the differences between two TIME fields, which were working before I upgraded my database engine to HSQLDB 2.2 from 1.8. Now, I get an "Incompatible Types" problem when I try to run the query. TIMESTAMPDIFF gave me the same error. When I run the following query:
I get my column types listed as TIME fields.
Any help would be great!
Chris
I had some queries that were using DATEDIFF to calculate the differences between two TIME fields, which were working before I upgraded my database engine to HSQLDB 2.2 from 1.8. Now, I get an "Incompatible Types" problem when I try to run the query. TIMESTAMPDIFF gave me the same error. When I run the following query:
Code: Select all
SELECT "A"."TABLE_TYPE", "A"."HSQLDB_TYPE", "A"."TABLE_NAME", "B"."COLUMN_NAME", "B"."TYPE_NAME", "B"."COLUMN_SIZE", "B"."COLUMN_DEF" AS "Default", "B"."NULLABLE"
FROM "INFORMATION_SCHEMA"."SYSTEM_TABLES" AS "A", "INFORMATION_SCHEMA"."SYSTEM_COLUMNS" AS "B"
WHERE "A"."TABLE_SCHEM" = 'PUBLIC' AND "A"."TABLE_NAME" = "B"."TABLE_NAME"
ORDER BY "A"."TABLE_TYPE", "A"."TABLE_NAME", "B"."ORDINAL_POSITION"
Any help would be great!
Chris