git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2662
cb58f699-b61c-0410-a6fe-
9272a202ed29
#define STRING_TABLE "strings"
#define TEXT_TABLE "texts"
#define STRING_TABLE "strings"
#define TEXT_TABLE "texts"
CREATE TABLE version (
major tinyint NOT NULL,
minor tinyint NOT NULL
CREATE TABLE version (
major tinyint NOT NULL,
minor tinyint NOT NULL
char *scontext = makeSafeSQL(context);
char *skey = makeSafeSQL(key);
char *svalue = makeSafeSQL(value);
char *scontext = makeSafeSQL(context);
char *skey = makeSafeSQL(key);
char *svalue = makeSafeSQL(value);
- string q = string("INSERT ") + table + " VALUES ('" + scontext + "','" + skey + "'," + timebuf + ",1,'" + svalue + "')";
+ string q = string("INSERT INTO ") + table + " VALUES ('" + scontext + "','" + skey + "'," + timebuf + ",1,'" + svalue + "')";
freeSafeSQL(scontext, context);
freeSafeSQL(skey, key);
freeSafeSQL(svalue, value);
freeSafeSQL(scontext, context);
freeSafeSQL(skey, key);
freeSafeSQL(svalue, value);