summaryrefslogtreecommitdiff
path: root/src/modules/extra/m_sqlv2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra/m_sqlv2.h')
-rw-r--r--src/modules/extra/m_sqlv2.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/modules/extra/m_sqlv2.h b/src/modules/extra/m_sqlv2.h
index c3bb73fc3..1354e5dfc 100644
--- a/src/modules/extra/m_sqlv2.h
+++ b/src/modules/extra/m_sqlv2.h
@@ -20,9 +20,15 @@ public:
{
}
- void Id(SQLerrorNum i)
+ SQLerrorNum Id()
+ {
+ return id;
+ }
+
+ SQLerrorNum Id(SQLerrorNum i)
{
id = i;
+ return id;
}
void Str(const std::string &s)
@@ -57,10 +63,11 @@ public:
std::string query;
std::string dbid;
bool pri;
+ unsigned long id;
SQLerror error;
SQLrequest(Module* s, Module* d, const std::string &q, const std::string &id, bool p = false)
- : Request(SQLREQID, s, d), query(q), dbid(id), pri(p)
+ : Request(SQLREQID, s, d), query(q), dbid(id), pri(p), id(0)
{
}
};
@@ -78,10 +85,7 @@ public:
}
- virtual int Rows()
- {
- return 0;
- }
+ virtual int Rows() = 0;
};
#endif