* 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>
* Allow to create database with different owner via API
* Support for OWNER clause in executeCreateDatabase()
* squash! Support for OWNER clause in executeCreateDatabase()
Fix rebase error
* Add FORMAT clause to convert datetime types to string and vice versa
* Add tests for FORMAT clause
* Fixes after review
* Change TZD to TZR
* Change inline variables back to static
* Add README documentation
* Add ability to use " in raw string and ...
Use session timezone if timezone is not specified.
Add ability to use + sign in timezone offset.
Add truncating string exception.
* Move util methods from BOOST_AUTO_TEST_SUITE
* Switch back to inline variables
* Consider charset in the format string
* Add ability to write patterns without separators
* Use printf to add extra zeros
Also add extra zeros to the year patterns.
* Replace template exception with a plain function
* Clean code after review
* Fix bug with TZH:TZM when TZH is 0
* Add TZR to STRING to DATE
---------
Co-authored-by: Artyom Ivanov <artyom.ivanov@red-soft.ru>
* Added the ability to change deterministic option
Added the ability to change deterministic opt without specifiying the entire body of the function.
Extended "ALTER FUNCTION" syntax:
ALTER FUNCTION <name> DETERMINISTIC;
ALTER FUNCTION <name> NOT DETERMINISTIC;
* added const qualifier to flag, removed nested if/else
* added doc
---------
Co-authored-by: Alexander Zhdanov <alexander.zhdanov@red-soft.ru>
* RDB$BLOB_UTIL system package.
* Do not checkout from engine when calling system packages.
* Remove usage of Attachment::SyncGuard in RDB$BLOB_UTIL.
* Fix Windows build.
* Fix RDB$BLOB_UTIL.SEEK.
* Fix crash.
* Rework changing routines and names for better fit after creation of BLOB_APPEND.
* Add RDB$BLOB_UTIL.IS_WRITABLE function.
* Misc.
* Fix documentation.
* Re-add and use RDB$BLOB_UTIL_HANDLE domain.
* Rename domain RDB$LONG_NUMBER to RDB$INTEGER.