Sqlite3: Fixed problem with Link

This commit is contained in:
Mirek Fidler 2024-07-18 00:46:35 +02:00
parent f15c600d5b
commit ec0c4abdc1
2 changed files with 6 additions and 6 deletions

View file

@ -44,7 +44,7 @@ private:
sqlite3 *db;
String current_filename;
String current_dbname;
Link<Sqlite3Connection> clink;
Link<> clink;
int busy_timeout;

View file

@ -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()