Refactor `quoted_date`

Move microseconds formatting to `AbstractAdapter`.
Revert "Merge pull request #17943 from jeremywadsack/doc_cache_importability"

This reverts commit b0e7278ddbe483475d7b2e161e65ae18df91b9f8, reversing
changes made to 785d04e3109f69d0b9b9f4732179592f0ef04e52.

This is not true. It is a bug and we will fix in the latest 4.0.x
release.
Fix undesirable RangeError by Type::Integer. Add Type::UnsignedInteger.
Merge pull request #17998 from kamipo/refactor_quoted_date

Refactor `quoted_date`
Merge pull request #17793 from kamipo/fix_undesirable_range_error

Fix undesirable RangeError by Type::Integer. Add Type::UnsignedInteger.
Allow to escape question mark in statement to avoid clashes with hstore