We compile and link on Linux now, except for runTests

Add sqlite3 library
Compile/link database code
Don't use itoa
Don't use stricmp
This commit is contained in:
JoelKatz
2011-11-07 14:25:00 -08:00
parent 4bf1e52c7b
commit b0002dc62a
2 changed files with 5 additions and 2 deletions

View File

@@ -1,5 +1,6 @@
#include "database.h"
#include <stdlib.h>
#include <strings.h>
Database::Database(const char* host,const char* user,const char* pass) : mNumCol(0)
@@ -81,7 +82,7 @@ bool Database::getColNumber(const char* colName,int* retIndex)
{
for(unsigned int n=0; n<mColNameTable.size(); n++)
{
if(stricmp(colName,mColNameTable[n].c_str())==0)
if(strcasecmp(colName,mColNameTable[n].c_str())==0)
{
*retIndex=n;
return(true);