| 45 | } |
| 46 | |
| 47 | int db_col_int(struct db_stmt *stmt, const char *colname) |
| 48 | { |
| 49 | size_t col = db_query_colnum(stmt, colname); |
| 50 | |
| 51 | if (db_column_null_warn(stmt, colname, col)) |
| 52 | return 0; |
| 53 | |
| 54 | return stmt->db->config->column_int_fn(stmt, col); |
| 55 | } |
| 56 | |
| 57 | int db_col_is_null(struct db_stmt *stmt, const char *colname) |
| 58 | { |