| 507 | } |
| 508 | |
| 509 | void bind_int64 ( |
| 510 | unsigned long parameter_id, |
| 511 | const int64& item |
| 512 | ) |
| 513 | { |
| 514 | // make sure requires clause is not broken |
| 515 | DLIB_ASSERT(1 <= parameter_id && parameter_id <= get_max_parameter_id(), |
| 516 | "\t void statement::bind_int64()" |
| 517 | << "\n\t Invalid parameter id." |
| 518 | << "\n\t parameter_id: " << parameter_id |
| 519 | << "\n\t get_max_parameter_id(): " << get_max_parameter_id() |
| 520 | << "\n\t this: " << this |
| 521 | ); |
| 522 | |
| 523 | reset(); |
| 524 | int status = sqlite3_bind_int64(stmt, parameter_id, item); |
| 525 | |
| 526 | if (status != SQLITE_OK) |
| 527 | { |
| 528 | throw sqlite_error(sqlite3_errmsg(db.get())); |
| 529 | } |
| 530 | } |
| 531 | |
| 532 | void bind_null ( |
| 533 | unsigned long parameter_id |
nothing calls this directly
no test coverage detected