From d3000696391cdb00f3c1c0696ef0c72de6fca2ce Mon Sep 17 00:00:00 2001 From: cantor Date: Thu, 13 Dec 2007 19:46:23 +0000 Subject: [PATCH] Add INTO keyword to insert statement. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@2662 cb58f699-b61c-0410-a6fe-9272a202ed29 --- odbc-store/odbc-store.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/odbc-store/odbc-store.cpp b/odbc-store/odbc-store.cpp index 95d4945..5985b32 100644 --- a/odbc-store/odbc-store.cpp +++ b/odbc-store/odbc-store.cpp @@ -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); -- 2.1.4