Returns true (and warns) if it's nul */
| 29 | |
| 30 | /* Returns true (and warns) if it's nul */ |
| 31 | static bool db_column_null_warn(struct db_stmt *stmt, const char *colname, |
| 32 | int col) |
| 33 | { |
| 34 | if (!db_column_is_null(stmt, col)) |
| 35 | return false; |
| 36 | |
| 37 | db_warn(stmt->db, "Accessing a null column %s/%i in query %s", |
| 38 | colname, col, stmt->query->query); |
| 39 | |
| 40 | return true; |
| 41 | } |
| 42 | |
| 43 | void db_bind_int(struct db_stmt *stmt, int val) |
| 44 | { |
no test coverage detected