Returns true (and warns) if it's nul */
| 23 | |
| 24 | /* Returns true (and warns) if it's nul */ |
| 25 | static bool db_column_null_warn(struct db_stmt *stmt, const char *colname, |
| 26 | int col) |
| 27 | { |
| 28 | if (!db_column_is_null(stmt, col)) |
| 29 | return false; |
| 30 | |
| 31 | /* FIXME: log broken? */ |
| 32 | #if DEVELOPER |
| 33 | db_fatal("Accessing a null column %s/%i in query %s", |
| 34 | colname, col, stmt->query->query); |
| 35 | #endif /* DEVELOPER */ |
| 36 | return true; |
| 37 | } |
| 38 | |
| 39 | void db_bind_int(struct db_stmt *stmt, int pos, int val) |
| 40 | { |
no test coverage detected