Add INTO keyword to insert statement.
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 13 Dec 2007 19:46:23 +0000 (19:46 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Thu, 13 Dec 2007 19:46:23 +0000 (19:46 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2662 cb58f699-b61c-0410-a6fe-9272a202ed29

odbc-store/odbc-store.cpp

index 95d4945..5985b32 100644 (file)
@@ -65,7 +65,7 @@ using namespace std;
 #define STRING_TABLE "strings"
 #define TEXT_TABLE "texts"
 
-/* tables definitions
+/* table definitions
 CREATE TABLE version (
     major tinyint NOT NULL,
     minor tinyint NOT NULL
@@ -423,7 +423,7 @@ bool ODBCStorageService::createRow(const char *table, const char* context, const
     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);