Fixed bug: Pointers to vector internas were given away and became invalid because of resizing the vector

This commit is contained in:
Adrian Imboden
2013-02-12 23:43:02 +01:00
parent 72b5b7acae
commit 6149beb920
2 changed files with 14 additions and 7 deletions

View File

@@ -251,6 +251,8 @@ public:
/// Update linked times
private:
Binder(const Binder&);
/// Don't copy the binder
virtual void bind(std::size_t, const char* const&, Direction)
/// Binds a const char ptr.
@@ -265,7 +267,7 @@ private:
private:
std::vector<MYSQL_BIND> _bindArray;
std::vector<MYSQL_TIME> _dates;
std::vector<MYSQL_TIME*> _dates;
};