Commit d48606951914494e81c947eafb8731a5a03bf822

Authored by totoro
1 parent 8d1c12d2

add db_get_Float

Showing 1 changed file with 14 additions and 1 deletions   Show diff stats
database/db_utils.anubis
... ... @@ -302,7 +302,20 @@ public define List(Int)
302 302 One -> SQLite3Row table_cursor
303 303 ) =
304 304 db_get_integer_list(table_cursor, []).
305   -
  305 +
  306 +// sqlite3 API
  307 +public define Float
  308 + db_get_Float
  309 + (
  310 + One -> SQLite3Row table_cursor
  311 + ) =
  312 + if table_cursor(unique) is
  313 + {
  314 + error(sql_error) then logError("DB", db_error(sql_error, "db_get_Float")); 0.0,
  315 + no_more_row then 0.0,
  316 + row(explorer) then db_float(explorer)(0)
  317 + }.
  318 +
306 319 public define List(Int)
307 320 db_get_integer_list
308 321 (
... ...