MCPcopy Create free account
hub / github.com/davisking/dlib / bind_null

Method bind_null

dlib/sqlite/sqlite.h:532–552  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 2

sqlite_errorClass · 0.70
getMethod · 0.45

Tested by

no test coverage detected