| 268 | } |
| 269 | |
| 270 | float extractFloat(sqlite3_stmt* stmt, int pos) |
| 271 | { |
| 272 | double res; // there is no sqlite3_column_float.. so we extract double and convert |
| 273 | if (!extractValue<double>(&res, stmt, pos)) |
| 274 | { |
| 275 | throw Exception::SqlOperationFailed(__FILE__, __LINE__, OPENMS_PRETTY_FUNCTION, "Conversion of column " + String(pos) + " to double/float failed"); |
| 276 | } |
| 277 | return (float)res; |
| 278 | } |
| 279 | |
| 280 | int extractInt(sqlite3_stmt* stmt, int pos) |
| 281 | { |
no test coverage detected