Commit d5e24e94 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

[master] Fix sqlite call

There was SQLITE_STATIC for a string that will disappear. This actually
caused a test failure sometimes (for example with MALLOC_CHECK_=2).

(Review on jabber)
parent 977f822d
......@@ -290,7 +290,7 @@ SQLite3Database::getZone(const isc::dns::Name& name) const {
// and prepare it (bind the parameters to it)
sqlite3_reset(dbparameters_->q_zone_);
rc = sqlite3_bind_text(dbparameters_->q_zone_, 1, name.toText().c_str(),
-1, SQLITE_STATIC);
-1, SQLITE_TRANSIENT);
if (rc != SQLITE_OK) {
isc_throw(SQLite3Error, "Could not bind " << name <<
" to SQL statement (zone)");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment