Commit 744eff850a4c93602c76e55d22c77532234f619d

Authored by David RENÉ
1 parent 8cffeabc

[+] datetime_not_null check and return not null value.

Showing 1 changed file with 12 additions and 0 deletions   Show diff stats
database/db_types.anubis
... ... @@ -249,6 +249,18 @@ public define String
249 249 .
250 250  
251 251 public define String
  252 + datetime_not_null
  253 + (
  254 + DB_datetime d,
  255 + String default
  256 + )=
  257 + if d.datetime = "{NULL}" then
  258 + default
  259 + else
  260 + d.datetime
  261 +.
  262 +
  263 +public define String
252 264 to_String
253 265 (
254 266 DB_datetime dt
... ...