diff --git a/database/db_binds.anubis b/database/db_binds.anubis index de8543b..16ed7dd 100644 --- a/database/db_binds.anubis +++ b/database/db_binds.anubis @@ -59,7 +59,7 @@ public define SQLite3Bind String name, String value )= - if value = "" then + if value = "" | value = "{NULL}" then bind_NULL(name) else bind_String(name, value). @@ -70,7 +70,10 @@ public define SQLite3Bind String name, DB_datetime dt )= - bind_String(name, datetime(dt)). + if dt.datetime = "" | dt.datetime = "{NULL}" then + bind_NULL(name) + else + bind_String(name, dt.datetime). public define SQLite3Bind bind_Date @@ -78,7 +81,10 @@ public define SQLite3Bind String name, DB_date d )= - bind_String(name, date(d)). + if d.date = "" | d.date = "{NULL}" then + bind_NULL(name) + else + bind_String(name, d.date). public define SQLite3Bind bind_Time @@ -86,7 +92,10 @@ public define SQLite3Bind String name, DB_time d )= - bind_String(name, time(d)). + if d.time = "" | d.time = "{NULL}" then + bind_NULL(name) + else + bind_String(name, d.time). public define SQLite3Bind bind_Bool -- libgit2 0.21.4