From 744eff850a4c93602c76e55d22c77532234f619d Mon Sep 17 00:00:00 2001 From: totoro Date: Sat, 27 Nov 2021 07:52:49 +0100 Subject: [PATCH] [+] datetime_not_null check and return not null value. --- database/db_types.anubis | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/database/db_types.anubis b/database/db_types.anubis index 24d5c50..cd53505 100644 --- a/database/db_types.anubis +++ b/database/db_types.anubis @@ -249,6 +249,18 @@ public define String . public define String + datetime_not_null + ( + DB_datetime d, + String default + )= + if d.datetime = "{NULL}" then + default + else + d.datetime +. + +public define String to_String ( DB_datetime dt -- libgit2 0.21.4