8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 17:23:03 +01:00
firebird-mirror/builds
TreeHunter a429459b76
Change some aspects of the string-to-date conversion with format to make it more similar to the SQL standard #2388 (#7881)
* Use current TimeStamp for data in stringToDate conversion if it's not specify

Also fix RM pattern and change (A/P)M to (A/P).M.

* Add more tests

* Add TimeStamp validation

Also move duplicated code to functions.

* Add more unit tests for "YY" and "YYY" patterns

* Use Callback for getting current date

It's better because we can mock Callback for unit tests.

* Fix exception and README description

* Add ability to print blr_cast_format

* Put a comment about new BLR in the right place

* Add information about behavior of string to datetime conversion

* Rework old patterns and add new ones

Add A.M, P.M., RR and RRRR patterns.
Rework YY, YYY, HH and HH12 patterns due to new patterns.
Add restriction from SQL standard to format.
Fix incorrect error message for mismatched pattern.
Fix bug with 0 hours in HH12.

* Add more unit tests

* Update doc for cast format

* Allow specification of log_level for BOOST_TESTS in make

* Change enum class to enum in namespace

* Switch from plain enum to constexpr values

---------

Co-authored-by: Artyom Ivanov <artyom.ivanov@red-soft.ru>
2024-03-04 14:43:14 +03:00
..
cmake Refactored the optimizer. Better debug logging. 2022-02-09 10:20:16 +03:00
docker Fix docker/windows CI. 2023-11-22 23:04:52 -03:00
install Remove FileSystemCacheSize setting (#7984) 2024-01-29 22:23:26 +02:00
make.new/config Update 2021-12-03 13:59:09 +03:00
misc Remove QLI. (#6840) 2021-06-08 10:31:18 -03:00
posix Change some aspects of the string-to-date conversion with format to make it more similar to the SQL standard #2388 (#7881) 2024-03-04 14:43:14 +03:00
win32 Refactored outer joins into a separate class 2024-02-09 18:07:30 +03:00