Browse Source

[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)
Michal 'vorner' Vaner 13 years ago
parent
commit
d5e24e94bb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/datasrc/sqlite3_accessor.cc

+ 1 - 1
src/lib/datasrc/sqlite3_accessor.cc

@@ -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)");