sql: timestamps are truncated to precision 0 after 19.2 upgrade #42283
Labels
A-sql-pgcompat
Semantic compatibility with PostgreSQL
A-sql-semantics
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
regression
Regression from a release.
Start a cluster running 19.1.5 and create a table with a timestamp column:
Insert a value (just for comparison's sake):
Then upgrade to 19.2.0-rc.2.
Now when timestamps are inserted, they get truncated:
This was introduced in #37920. The problem is that the
Precision
field for the timestamp types were unset, and the precision was always 6 (i.e. microseconds) by default. After the change, aPrecision
of 0 is now taken to mean precision 0 (i.e. seconds).The text was updated successfully, but these errors were encountered: