1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2007-2009 Grigor Iliev * |
* Copyright (C) 2007-2009 Grigor Iliev, Benno Senoner * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
89 |
|
|
90 |
InstrumentsDb::InstrumentsDb() { |
InstrumentsDb::InstrumentsDb() { |
91 |
db = NULL; |
db = NULL; |
|
DbInstrumentsMutex = Mutex(); |
|
92 |
InTransaction = false; |
InTransaction = false; |
93 |
} |
} |
94 |
|
|
1201 |
throw Exception("DB error: " + ToString(sqlite3_errmsg(db))); |
throw Exception("DB error: " + ToString(sqlite3_errmsg(db))); |
1202 |
} |
} |
1203 |
|
|
1204 |
String s = toEscapedFsPath(FilePath); |
String s = FilePath; |
1205 |
|
|
1206 |
|
#if WIN32 |
1207 |
|
for (int i = 0; i < s.length(); i++) { |
1208 |
|
if (s[i] == '\\') s[i] = '/'; |
1209 |
|
} |
1210 |
|
#endif |
1211 |
|
|
1212 |
|
s = toEscapedFsPath(s); |
1213 |
BindTextParam(pStmt, 2, s); |
BindTextParam(pStmt, 2, s); |
1214 |
String ver = ""; |
String ver = ""; |
1215 |
if (gig->pVersion != NULL) ver = ToString(gig->pVersion->major); |
if (gig->pVersion != NULL) ver = ToString(gig->pVersion->major); |