Commit d529a5f37510e5971b16c822096d9724e679a859
1 parent
210eef86
add correct function for print sql error
Showing
1 changed file
with
7 additions
and
1 deletions
Show diff stats
anubis_dev/library/data_base/sqlite.anubis
| ... | ... | @@ -198,9 +198,15 @@ public define Int32 |
| 198 | 198 | This function print on current output, the database error number with your own message |
| 199 | 199 | in msg |
| 200 | 200 | |
| 201 | -public define One db_print_error( Int32 n, String msg) = | |
| 201 | +public define One print_db_error( Int32 n, String msg) = | |
| 202 | 202 | print("Database Error: "+ msg +"\n" + "code[" + integer_to_string(n) + "]\n"). |
| 203 | 203 | |
| 204 | +public define One print_db_error( SQLite3Error err, String msg) = | |
| 205 | + print("Database Error: "+ msg +"\n" + "code[" + err.code + "] "+err.text+"\n"). | |
| 206 | + | |
| 207 | +public define One print_db_error( SQLite3Error err) = | |
| 208 | + print("Database Error: code[" + err.code + "] "+err.text+"\n"). | |
| 209 | + | |
| 204 | 210 | define One insertData( String theQuery) = |
| 205 | 211 | if l is |
| 206 | 212 | { | ... | ... |