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