diff --git a/sql/ddl_api.sql b/sql/ddl_api.sql index a08124d7b..ed9a302cc 100644 --- a/sql/ddl_api.sql +++ b/sql/ddl_api.sql @@ -261,7 +261,7 @@ BEGIN ELSIF time_type = 'TIMESTAMPTZ'::regtype THEN PERFORM drop_chunks(now() - older_than, table_name, schema_name, cascade); ELSE - RAISE 'Can only use drop_chunks with an INTERVAL for TIMESTAMP and TIMESTAMPTZ types'; + RAISE 'Can only use drop_chunks with an INTERVAL for TIMESTAMP, TIMESTAMPTZ, and DATE types'; END IF; END $BODY$; diff --git a/test/expected/drop_chunks.out b/test/expected/drop_chunks.out index c00109069..0f16fbfd6 100644 --- a/test/expected/drop_chunks.out +++ b/test/expected/drop_chunks.out @@ -381,7 +381,7 @@ ROLLBACK; SELECT drop_chunks(interval '1 minute'); ERROR: Cannot use drop_chunks on multiple tables with different time types SELECT drop_chunks(interval '1 minute', 'drop_chunk_test3'); -ERROR: Can only use drop_chunks with an INTERVAL for TIMESTAMP and TIMESTAMPTZ types +ERROR: Can only use drop_chunks with an INTERVAL for TIMESTAMP, TIMESTAMPTZ, and DATE types SELECT drop_chunks(now()-interval '1 minute', 'drop_chunk_test_ts'); ERROR: Cannot call drop_chunks with a timestamp with time zone on hypertables with a time type of: timestamp without time zone SELECT drop_chunks(now()::timestamp-interval '1 minute', 'drop_chunk_test_tstz');