| 530 | } |
| 531 | |
| 532 | void bind_null ( |
| 533 | unsigned long parameter_id |
| 534 | ) |
| 535 | { |
| 536 | // make sure requires clause is not broken |
| 537 | DLIB_ASSERT(1 <= parameter_id && parameter_id <= get_max_parameter_id(), |
| 538 | "\t void statement::bind_null()" |
| 539 | << "\n\t Invalid parameter id." |
| 540 | << "\n\t parameter_id: " << parameter_id |
| 541 | << "\n\t get_max_parameter_id(): " << get_max_parameter_id() |
| 542 | << "\n\t this: " << this |
| 543 | ); |
| 544 | |
| 545 | reset(); |
| 546 | int status = sqlite3_bind_null(stmt, parameter_id); |
| 547 | |
| 548 | if (status != SQLITE_OK) |
| 549 | { |
| 550 | throw sqlite_error(sqlite3_errmsg(db.get())); |
| 551 | } |
| 552 | } |
| 553 | |
| 554 | void bind_text ( |
| 555 | unsigned long parameter_id, |
nothing calls this directly
no test coverage detected