Sync Linux tweaks.

This commit is contained in:
JoelKatz
2011-11-07 13:45:32 -08:00
parent beef9b47d5
commit 1d140e8829
19 changed files with 2674 additions and 48 deletions

View File

@@ -146,7 +146,7 @@ uint64 SqliteDatabase::getBigInt(int colIndex)
BLOB literals are string literals containing hexadecimal data and preceded by a single "x" or "X" character. For example:
X'53514C697465'
*/
void SqliteDatabase::escape(unsigned char* start,int size,std::string& retStr)
void SqliteDatabase::escape(const unsigned char* start,int size,std::string& retStr)
{
retStr.clear();

View File

@@ -37,6 +37,6 @@ public:
int getBinary(int colIndex,unsigned char* buf,int maxSize);
uint64 getBigInt(int colIndex);
void escape(unsigned char* start,int size,std::string& retStr);
void escape(const unsigned char* start,int size,std::string& retStr);
};

View File

@@ -29,7 +29,7 @@ public:
std::string& getPass(){ return(mDBPass); }
virtual void escape(unsigned char* start,int size,std::string& retStr)=0;
virtual void escape(const unsigned char* start,int size,std::string& retStr)=0;
// returns true if the query went ok
virtual bool executeSQL(const char* sql)=0;

View File

@@ -3,7 +3,7 @@
#include "../database.h"
#include "string/i4string.h"
#include "mysql.h"
#include "mysql/mysql.h"
/*
this maintains the connection to the database