Skip to content

Issue with Posting Date range (Tsrange) with Json #1852

Answered by wolfgangwalther
Mjaffres asked this question in Q&A
Discussion options

You must be logged in to vote
// transformation["period"] = `'{[2014-01-01,2015-01-01]}'`;
// transformation["period"] = `'{\"[\"2014-01-01 00:00:00+01\",\"2015-01-01 00:00:00+01\"]\"}'`;
// transformation["period"] = \"{\"[\"2014-01-01 00:00:00+01\",\"2015-01-01 00:00:00+01\"]\"}\";
// transformation["period"] = `'{"[\"`+ date_start +`\",\"`+ date_end +`\"]"}'`;

: Object { details: "Missing left parenthesis or bracket.", code: "22P02", message: "malformed range literal: "'{"["2014-01-01 00:00:00+01","2015-01-01 00:00:00+01"]"}'"", … }

malformed range literal whenever I try something.

All those have the curly brackets in common - which is exactly what I think is wrong. As you can see from the error message, the c…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Mjaffres
Comment options

@wolfgangwalther
Comment options

@Mjaffres
Comment options

Answer selected by wolfgangwalther
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1851 on May 18, 2021 09:09.