DSLContext create = using(SQLDialect.TERADATA);
Select select = create.select(DSL.timestampAdd(SHIP_DATE, 480, DatePart.MINUTE)).from(SALES_VIEW);
select ("sales_view"."Ship_Date" + cast('0 00:' || lpad(cast(480 as varchar(2)), 2, '0') || ':00' as interval day to second)) from "sales_view"select ("sales_view"."Ship_Date" + INTERVAL '10' MINUTE) from "sales_view"
--
You received this message because you are subscribed to the Google Groups "jOOQ User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/8427d895-c725-4e95-9d49-46330ecb7e3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Following up, a better way to deal with this is to use cast(? as interval minute(4)). Can you confirm this syntax would work on your version of Teradata?It seems that with both syntaxes, 4 is the highest possible minute precision.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jooq-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jooq-user/bc4634e1-ebb8-4b67-9eff-e36e3c25dc8f%40googlegroups.com.