/[svn]/linuxsampler/trunk/src/db/InstrumentsDb.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/db/InstrumentsDb.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3049 by persson, Sat Mar 2 07:03:04 2013 UTC revision 3050 by schoenebeck, Thu Dec 8 12:36:56 2016 UTC
# Line 1651  namespace LinuxSampler { Line 1651  namespace LinuxSampler {
1651    
1652      void InstrumentsDb::BindTextParam(sqlite3_stmt* pStmt, int Index, String Text) {      void InstrumentsDb::BindTextParam(sqlite3_stmt* pStmt, int Index, String Text) {
1653          if (pStmt == NULL) return;          if (pStmt == NULL) return;
1654          int res = sqlite3_bind_text(pStmt, Index, Text.c_str(), -1, SQLITE_STATIC);          int res = sqlite3_bind_text(pStmt, Index, Text.c_str(), -1, SQLITE_TRANSIENT);
1655          if (res != SQLITE_OK) {          if (res != SQLITE_OK) {
1656              sqlite3_finalize(pStmt);              sqlite3_finalize(pStmt);
1657              throw Exception("DB error: " + ToString(sqlite3_errmsg(db)));              throw Exception("DB error: " + ToString(sqlite3_errmsg(db)));

Legend:
Removed from v.3049  
changed lines
  Added in v.3050

  ViewVC Help
Powered by ViewVC