From: <vo...@us...> - 2012-07-30 11:40:46
|
Revision: 2842 http://moneymanagerex.svn.sourceforge.net/moneymanagerex/?rev=2842&view=rev Author: vomikan Date: 2012-07-30 11:40:40 +0000 (Mon, 30 Jul 2012) Log Message: ----------- update Modified Paths: -------------- branches/0.9.9.0/mmex/src/dbwrapper.h branches/0.9.9.0/mmex/src/stockdialog.cpp Modified: branches/0.9.9.0/mmex/src/dbwrapper.h =================================================================== --- branches/0.9.9.0/mmex/src/dbwrapper.h 2012-07-30 11:22:47 UTC (rev 2841) +++ branches/0.9.9.0/mmex/src/dbwrapper.h 2012-07-30 11:40:40 UTC (rev 2842) @@ -249,6 +249,13 @@ static const char INSERT_INTO_INFOTABLE_V1[] = "INSERT INTO INFOTABLE_V1 (INFONAME, INFOVALUE) VALUES (?, ?)"; +static const char INSERT_ROW_INTO_STOCK_V1[] = + "INSERT INTO STOCK_V1 ( " + "HELDAT, PURCHASEDATE, STOCKNAME, SYMBOL, " + "NUMSHARES, PURCHASEPRICE, NOTES, CURRENTPRICE, " + "VALUE, COMMISSION " + " ) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; + static const char INSERT_ROW_INTO_SUBCATEGORY_V1[] = "INSERT INTO SUBCATEGORY_V1 " "( SUBCATEGNAME, CATEGID ) " Modified: branches/0.9.9.0/mmex/src/stockdialog.cpp =================================================================== --- branches/0.9.9.0/mmex/src/stockdialog.cpp 2012-07-30 11:22:47 UTC (rev 2841) +++ branches/0.9.9.0/mmex/src/stockdialog.cpp 2012-07-30 11:40:40 UTC (rev 2842) @@ -360,14 +360,7 @@ if (!edit_) { - static const char sql[] = - "insert into STOCK_V1 ( " - "HELDAT, PURCHASEDATE, STOCKNAME, SYMBOL, " - "NUMSHARES, PURCHASEPRICE, NOTES, CURRENTPRICE, " - "VALUE, COMMISSION " - " ) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"; - - wxSQLite3Statement st = db_->PrepareStatement(sql); + wxSQLite3Statement st = db_->PrepareStatement(INSERT_ROW_INTO_STOCK_V1); int i = 0; st.Bind(++i, accountID_); @@ -411,4 +404,3 @@ EndModal(wxID_OK); } - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |