8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 17:23:03 +01:00
firebird-mirror/src
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
..
alice Fixed #7885: Unstable error messages in services due to races related with service status vector 2023-11-29 18:21:00 +03:00
auth Fix crash on assert or memory corruption when too long username is used for authentication 2023-06-30 17:42:57 +03:00
burp Fixed bug #8003 : gbak v4 can't backup database in ODS <13 2024-02-12 16:24:49 +02:00
common 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
dbs Remove QLI. (#6840) 2021-06-08 10:31:18 -03:00
dsql 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
extlib Fix MacOS UDR and Legacy_UserManager plugins not working due to not exported entry point. (#7088) 2021-12-26 11:35:16 -03:00
gpre Replace throw() by noexcept. 2023-09-18 20:27:13 -03:00
include 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
intl Cleanup: moved INTL objects, defined in common, from namespace Jrd to namespace Firebird 2024-01-11 20:00:14 +03:00
iscguard Revert "Move gds_proto.h to common." 2022-07-21 08:16:50 -03:00
isql Fix for #7823 (#7936) 2024-01-23 17:29:35 +03:00
jrd 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
lock Generated files 2023-08-10 13:39:59 +03:00
misc increment build number 2024-02-29 20:14:31 +00:00
msgs Rework messages processing, simplifying the build and avoiding store generated files in git. (#6958) 2021-09-15 08:37:17 -03:00
plugins Fix problem with statements and plan segments larger than 64K in the profiler plugin. 2023-09-21 08:38:47 -03:00
remote Fixed #8027: Broken gbak statistics; also small cleanup in svcstart(). 2024-02-29 18:19:47 +03:00
utilities Encapsulate GUID operations (#7990) 2024-02-11 10:24:23 +03:00
yvalve 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
CMakeLists.txt New release version in scripts 2023-09-17 18:29:37 +03:00