fix small bug with vectors and sets.

On a first glance - this kind of seems to work. On mac-os you need
a newer than the system-installed sqlite - the hanging problem only
occurs with that one...
This commit is contained in:
Bernhard Amann 2013-03-11 13:10:56 -07:00
parent 5d12765886
commit a251a1c39a
3 changed files with 13 additions and 7 deletions

View file

@ -25,8 +25,8 @@ public:
{ return new SQLite(frontend); }
protected:
virtual bool DoInit(const WriterInfo& info, int num_fields,
const threading::Field* const* fields);
virtual bool DoInit(const WriterInfo& info, int arg_num_fields,
const threading::Field* const* arg_fields);
virtual bool DoWrite(int num_fields, const threading::Field* const* fields,
threading::Value** vals);
virtual bool DoSetBuf(bool enabled) { return true; }
@ -43,6 +43,9 @@ private:
string GetTableType(int, int);
char* FS(const char* format, ...);
const threading::Field* const * fields; // raw mapping
unsigned int num_fields;
sqlite3 *db;
sqlite3_stmt *st;