Open linlexing opened 3 years ago
What happens if you try it with pure SQL inside the database? Does it work? What happens if you use the column type TIMESTAMP WITH TIME ZONE
?
There is no problem with plain SQL insert into testa(id,d)values('123', TIMESTAMP '0001-01-01 00:00:00 +8:00')
, but if the data type is changed to TIMESTAMP WITH TIME ZONE
and the parameters are still passed, there is a problem.
Could be a bug. Need someone that would be willing to look into it more and see about fixing it.
@mattn
I am not actively programming in Go anymore and will probably not be in the near future, so going to unwatch this repository. Will be back in your hands.
Thank you for all the wonderful code that you have written! :)
@MichaelS11 Thanks for your great help.
output:
Correct if you do not have a time zone.