BIND 10 master, updated. d5e24e94bbd581098e460fc3a0b437478340c876 [master] Fix sqlite call
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri Aug 12 07:46:06 UTC 2011
The branch, master has been updated
via d5e24e94bbd581098e460fc3a0b437478340c876 (commit)
from 977f822d94c59bfd9d56373404291fc85218b1d6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d5e24e94bbd581098e460fc3a0b437478340c876
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date: Fri Aug 12 09:43:54 2011 +0200
[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)
-----------------------------------------------------------------------
Summary of changes:
src/lib/datasrc/sqlite3_accessor.cc | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/datasrc/sqlite3_accessor.cc b/src/lib/datasrc/sqlite3_accessor.cc
index 352768d..448b2a2 100644
--- a/src/lib/datasrc/sqlite3_accessor.cc
+++ b/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)");
More information about the bind10-changes
mailing list