mariadb/sql-common
Monty 5c111e7e4b MDEV-20023 Implement Oracle TRUNC() function
It returns the DATETIME data type (which is the closest to Oracle's DATE).

The following Oracle formats are supported:
Truncate to day: DD, DDD,J
Truncate to month: MM,MON,MONTH,RM
Truncate to Year: SYEAR,SYYYY,Y,YEAR,YY,YYY,YYYY

TRUNC(date) is same as TRUNC(date, "DD")

This patch incorporates a fix for:

MDEV-37414 SIGSEGV in Binary_string::c_ptr | Item_func_trunc::get_date

Fixing the problem that the code did not take into
account that args[1] can return SQL NULL.
2025-10-03 18:34:23 +03:00
..
client.c MDEV-37600 Backpoint MDEV-9804 Implement a caching_sha2_password plugin 2025-09-21 13:13:30 +02:00
client_plugin.c MDEV-31855 validate ssl certificates using client password in the internal client 2024-02-04 22:19:19 +01:00
conf_to_src.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00
errmsg.c MDEV-17812 Use MariaDB in error messages instead of MySQL 2020-04-08 06:09:42 +00:00
my_time.c MDEV-20023 Implement Oracle TRUNC() function 2025-10-03 18:34:23 +03:00
my_user.c Merge 10.2 into 10.3 2019-05-14 17:18:46 +03:00
pack.c Merge 10.1 into 10.2 2019-05-13 17:54:04 +03:00