INSERT with interval not support
See original GitHub issueAn insert query
create table test (col timestamp); insert test (col) values (NOW() + interval ‘2 years’)
data: { error: 'cannot cast type interval to timestamp', code: undefined }, location: { start: 0, end: 0 }
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
INTERVAL add i day is not working in postgresql
I have a table like this: CREATE TABLE DateInsert( DateInsert timestamp ...
Read more >ODBC does not support interval data type - Ask TOM - Oracle
Hi, In Oracle through the ODBC API query a type of data for the Interval day to second, call SQLBindCol interface returned that...
Read more >Set interval of insert query of 10 second. - Microsoft Q&A
i want to set interval in insert query . ... Declare @Etime time(7); Declare @Chck_Status varchar(50); SET NOCOUNT ON;; if Not EXISTS ...
Read more >To Insert Blocks at a Specified Interval Along an Object
Enter the name of the block. Enter y (Yes) to align the blocks with the selected object. Enter n (No) to use a...
Read more >DB Insert to PostgreSQL column of type interval - KNIME Forum
My workaround is to build PostgreSQL value lists from the input data table and concatenate them to a combined values list. The trick...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Hi,
Too many people had troubles with the lack of support of +/- on interval & date types.
pg-mem is not ready yet to fully support custom operators, but I added to a hack to support this specific use case.
This shipped with with
pg-mem@2.1.8. Sorry for the wait, I should have done that much sooner.Awesome! Thanks for the support on this one.