//#include <zthread/Thread.h>\r
#include "pthreadwrapper/thread.h"\r
\r
-#define FMS_VERSION "0.1.4"\r
+#define FMS_VERSION "0.1.5"\r
\r
// opens database and creates tables and initial inserts if necessary\r
void SetupDB();\r
}\r
}\r
*/\r
+\r
}\r
\r
const bool Statement::Bind(const int column)\r
\r
//ZThread::Guard<ZThread::Mutex> g(DB::instance()->m_mutex);\r
PThread::Guard g(DB::Instance()->m_mutex);\r
- m_boundtext.push_back(std::vector<char>(value.begin(),value.end()));\r
+ //m_boundtext.push_back(std::vector<char>(value.begin(),value.end()));\r
//if(sqlite3_bind_text(m_statement,column+1,text,value.size(),NULL)==SQLITE_OK)\r
- if(sqlite3_bind_text(m_statement,column+1,&m_boundtext[m_boundtext.size()-1][0],m_boundtext[m_boundtext.size()-1].size(),NULL)==SQLITE_OK) \r
+ //if(sqlite3_bind_text(m_statement,column+1,&(m_boundtext[m_boundtext.size()-1][0]),(m_boundtext[m_boundtext.size()-1]).size(),NULL)==SQLITE_OK) \r
+ if(sqlite3_bind_text(m_statement,column+1,value.c_str(),value.size(),SQLITE_TRANSIENT)==SQLITE_OK)\r
{\r
return true;\r
}\r
{\r
//ZThread::Guard<ZThread::Mutex> g(DB::instance()->m_mutex);\r
PThread::Guard g(DB::Instance()->m_mutex);\r
- if(sqlite3_bind_blob(m_statement,column+1,data,length,NULL)==SQLITE_OK)\r
+ if(sqlite3_bind_blob(m_statement,column+1,data,length,SQLITE_TRANSIENT)==SQLITE_OK)\r
{\r
return true;\r
}\r
st.Reset();\r
\r
st.Bind(0,"MessageDownloadMaxDaysBackward");\r
- st.Bind(1,"3");\r
+ st.Bind(1,"5");\r
st.Bind(2,"The maximum number of days backward that messages will be downloaded from each identity");\r
st.Step();\r
st.Reset();\r
\r
st.Bind(0,"MessageListDaysBackward");\r
- st.Bind(1,"3");\r
+ st.Bind(1,"5");\r
st.Bind(2,"The number of days backward that messages you have inserted will appear in your MessageLists");\r
st.Step();\r
st.Reset();\r