From 7c0cacc630bb7c8a757a245471c7de2b61372d2f Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 May 2005 01:38:48 +0000 Subject: [PATCH] Test fix for 3.23 and below git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1315 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_sql.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.39.5