diff --git a/database/db_types.anubis b/database/db_types.anubis index dccf877..7af3b98 100644 --- a/database/db_types.anubis +++ b/database/db_types.anubis @@ -87,10 +87,21 @@ public define String )= if idx is { - none then "none", + none then "NULL", db_id(_idx) then abs_to_decimal(_idx) }. +public define String + to_SQL + ( + DB_id idx + )= + if idx is + { + none then "NULL", + db_id(_idx) then abs_to_decimal(_idx) + }. + public define Maybe(Int) to_mb_Int ( -- libgit2 0.21.4