Commit afa08ba62fc6e42aef3bfbb433ed370b0917fc5e

Authored by David RENÉ
1 parent c4e83b95

Change the db_get_XX to new format. db_get_integer became db_get_Int and db_get_…

…integer_list became db_get_List_Int
Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
controller/hk_sql_utils.anubis
@@ -74,7 +74,7 @@ public define Int @@ -74,7 +74,7 @@ public define Int
74 if sql_query_timeout(db, clause+";", [], "get_count_by_clause") is 74 if sql_query_timeout(db, clause+";", [], "get_count_by_clause") is
75 { 75 {
76 error(_) then 0, 76 error(_) then 0,
77 - ok(_, cursor, _) then db_get_integer(cursor) 77 + ok(_, cursor, _) then db_get_Int(cursor)
78 } 78 }
79 . 79 .
80 80
@@ -93,7 +93,7 @@ public define Int @@ -93,7 +93,7 @@ public define Int
93 if sql_query_timeout(db, "SELECT COUNT(\""+table_name+".id\") FROM "+table_name+" "+clause+";", [], "get_count_by_clause") is 93 if sql_query_timeout(db, "SELECT COUNT(\""+table_name+".id\") FROM "+table_name+" "+clause+";", [], "get_count_by_clause") is
94 { 94 {
95 error(_) then 0, 95 error(_) then 0,
96 - ok(_, cursor, _) then db_get_integer(cursor) 96 + ok(_, cursor, _) then db_get_Int(cursor)
97 } 97 }
98 . 98 .
99 99
@@ -123,7 +123,7 @@ public define List(Int) @@ -123,7 +123,7 @@ public define List(Int)
123 if sql_query_timeout(db, "SELECT \"id\" FROM "+table_name+" "+final_clause+";", [], "get_ids_by_clause") is 123 if sql_query_timeout(db, "SELECT \"id\" FROM "+table_name+" "+final_clause+";", [], "get_ids_by_clause") is
124 { 124 {
125 error(_) then [], 125 error(_) then [],
126 - ok(_, cursor, _) then db_get_integer_list(cursor) 126 + ok(_, cursor, _) then db_get_List_Int(cursor)
127 } 127 }
128 . 128 .
129 129
@@ -143,7 +143,7 @@ public define List(Int) @@ -143,7 +143,7 @@ public define List(Int)
143 if sql_query_timeout(db, "SELECT \""+id_col+"\" FROM "+table_name+" "+final_clause+";", [], "get_ids_by_clause") is 143 if sql_query_timeout(db, "SELECT \""+id_col+"\" FROM "+table_name+" "+final_clause+";", [], "get_ids_by_clause") is
144 { 144 {
145 error(_) then [], 145 error(_) then [],
146 - ok(_, cursor, _) then db_get_integer_list(cursor) 146 + ok(_, cursor, _) then db_get_List_Int(cursor)
147 } 147 }
148 . 148 .
149 149
@@ -163,7 +163,7 @@ public define Maybe(Int) @@ -163,7 +163,7 @@ public define Maybe(Int)
163 if sql_query_timeout(db, "SELECT \""+id_col+"\" FROM "+table_name+" "+final_clause+";", [], "get_mb_id_by_clause") is 163 if sql_query_timeout(db, "SELECT \""+id_col+"\" FROM "+table_name+" "+final_clause+";", [], "get_mb_id_by_clause") is
164 { 164 {
165 error(_) then failure, 165 error(_) then failure,
166 - ok(_, cursor, _) then db_get_mb_integer(cursor) 166 + ok(_, cursor, _) then db_get_mb_Int(cursor)
167 } 167 }
168 . 168 .
169 169