| 82 | } |
| 83 | |
| 84 | int db_num_fields(DB_QUERY_RESULT* result) |
| 85 | { |
| 86 | auto* theResult{ reinterpret_cast<QueryResult*>(result) }; |
| 87 | if (!theResult || theResult->data.empty()) |
| 88 | { |
| 89 | return -1; |
| 90 | } |
| 91 | else |
| 92 | { |
| 93 | return static_cast<int>(theResult->data.front().size()); |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | DB_ROW db_fetch_row(DB_QUERY_RESULT* result) |
| 98 | { |
no test coverage detected