You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the usage question you have. Please include as many useful details as possible.
Hello,
I'm trying to implement a prepared statement that has a timestamp parameter.
I have prepared statements working with strings, but with timestamps I'm getting a schema mismatch error.
I'm using v14.
The query for the prepared statement is SELECT * FROM x where name = $1 AND $2 <= timestamp.
I have no problems with the first parameter.
I'm building the second parameter using the type arrow.FixedWidthTypes.Timestamp_ns.
I've tried passing a time.Time as the value and it failed. Then I tried an arrow.Timestamp but that also failed with the same error.
Describe the usage question you have. Please include as many useful details as possible.
Hello,
I'm trying to implement a prepared statement that has a timestamp parameter.
I have prepared statements working with strings, but with timestamps I'm getting a schema mismatch error.
I'm using v14.
The query for the prepared statement is
SELECT * FROM x where name = $1 AND $2 <= timestamp
.I have no problems with the first parameter.
I'm building the second parameter using the type
arrow.FixedWidthTypes.Timestamp_ns
.I've tried passing a
time.Time
as the value and it failed. Then I tried anarrow.Timestamp
but that also failed with the same error.The error I'm getting is:
I would like to know what's the best way to overcome this timezone difference in the schemas.
Thank you
EDIT:
I have also tried casting the
timestamp
totimestamptz
in the query, but that leads to the mismatchComponent(s)
Go
The text was updated successfully, but these errors were encountered: