summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-06 01:38:48 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-06 01:38:48 +0000
commit7c0cacc630bb7c8a757a245471c7de2b61372d2f (patch)
tree05ad3e43f4da3d544d8977e71ca2d68fb7a8a1a5 /src/modules
parentdc4c73088b2586be0436cedd32b32a245a024463 (diff)
Test fix for 3.23 and below
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1315 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/extra/m_sql.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/extra/m_sql.cpp b/src/modules/extra/m_sql.cpp
index dd0cbdc1d..0ba80278d 100644
--- a/src/modules/extra/m_sql.cpp
+++ b/src/modules/extra/m_sql.cpp
@@ -29,6 +29,11 @@
/** SQLConnection represents one mysql session.
* Each session has its own persistent connection to the database.
*/
+
+#if !defined(MYSQL_VERSION_ID) || MYSQL_VERSION_ID<32224
+#define mysql_field_count mysql_num_fields
+#endif
+
class SQLConnection
{
protected: