mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
Sqlite3: Fixed problem with Link
This commit is contained in:
parent
f15c600d5b
commit
ec0c4abdc1
2 changed files with 6 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ private:
|
|||
sqlite3 *db;
|
||||
String current_filename;
|
||||
String current_dbname;
|
||||
Link<Sqlite3Connection> clink;
|
||||
Link<> clink;
|
||||
|
||||
int busy_timeout;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace Upp {
|
|||
|
||||
#define LLOG(x) // LOG(x)
|
||||
|
||||
class Sqlite3Connection : public SqlConnection, public Link<Sqlite3Connection> {
|
||||
class Sqlite3Connection : public SqlConnection, public Link<> {
|
||||
protected:
|
||||
virtual void SetParam(int i, const Value& r);
|
||||
virtual bool Execute();
|
||||
|
|
@ -472,14 +472,14 @@ int Sqlite3Session::SqlExecRetry(const char *sql)
|
|||
|
||||
void Sqlite3Session::Reset()
|
||||
{
|
||||
for(Sqlite3Connection *s = clink.GetNext(); s != &clink; s = s->GetNext())
|
||||
s->Reset();
|
||||
for(Link<> *s = clink.GetNext(); s != &clink; s = s->GetNext())
|
||||
((Sqlite3Connection *)s)->Reset();
|
||||
}
|
||||
|
||||
void Sqlite3Session::Cancel()
|
||||
{
|
||||
for(Sqlite3Connection *s = clink.GetNext(); s != &clink; s = s->GetNext())
|
||||
s->Cancel();
|
||||
for(Link<> *s = clink.GetNext(); s != &clink; s = s->GetNext())
|
||||
((Sqlite3Connection *)s)->Cancel();
|
||||
}
|
||||
|
||||
Sqlite3Session::Sqlite3Session()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue