Temporal literals do not accept nanoseconds

Description

The expected result is to return a value with 6 fractional digits without errors.
A "truncated" warning (or a note) is probably not necessary,
because decimal numbers do not produce warnings/notes when precision is too high.

The problem is repeatable even when 0 nanoseconds present:

This is a bug in MDEV-3838, should be fixed before the release.

Environment

None

Status

Assignee

Alexander Barkov

Reporter

Alexander Barkov

Labels

None

External issue ID

None

External issue ID

None

Fix versions

Priority

Blocker
Configure