Commit 5b43f13579fba5e96f781b1b82c8b4f2ff6427ad
1 parent
a2e3f8ec
[!] replace "NULL" string by an empty string in conversion of DB_datetime
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
database/db_types.anubis
| @@ -34,7 +34,7 @@ public define Int -> DB_id | @@ -34,7 +34,7 @@ public define Int -> DB_id | ||
| 34 | if row(i) is integer(n) then db_id(n) | 34 | if row(i) is integer(n) then db_id(n) |
| 35 | else if row(i) is null then none | 35 | else if row(i) is null then none |
| 36 | else if row(i) is text(txt) then | 36 | else if row(i) is text(txt) then |
| 37 | - println("db_id_or_null text "+txt); | 37 | + //println("db_id_or_null text "+txt); |
| 38 | if decimal_scan(txt) is success(val) then | 38 | if decimal_scan(txt) is success(val) then |
| 39 | db_id(val) | 39 | db_id(val) |
| 40 | else | 40 | else |
| @@ -307,7 +307,7 @@ public define String | @@ -307,7 +307,7 @@ public define String | ||
| 307 | ( | 307 | ( |
| 308 | DB_datetime dt | 308 | DB_datetime dt |
| 309 | )= | 309 | )= |
| 310 | - datetime(dt). | 310 | + datetime_not_null(dt, ""). |
| 311 | 311 | ||
| 312 | public define String | 312 | public define String |
| 313 | String s + DB_datetime dt = | 313 | String s + DB_datetime dt = |