Fix for bug 196576. Add MySQL support.
r=me patch by Neil Deakin <enndeakin@sympatico.ca> git-svn-id: svn://10.0.0.236/trunk@165889 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -42,6 +42,9 @@
|
||||
#ifdef MOZ_ENABLE_SQLITE
|
||||
#include "mozSqlConnectionSqlite.h"
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_MYSQL
|
||||
#include "mozSqlConnectionMysql.h"
|
||||
#endif
|
||||
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR_INIT(mozSqlService, Init)
|
||||
#ifdef MOZ_ENABLE_PGSQL
|
||||
@@ -50,6 +53,9 @@ NS_GENERIC_FACTORY_CONSTRUCTOR(mozSqlConnectionPgsql)
|
||||
#ifdef MOZ_ENABLE_SQLITE
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(mozSqlConnectionSqlite)
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_MYSQL
|
||||
NS_GENERIC_FACTORY_CONSTRUCTOR(mozSqlConnectionMysql)
|
||||
#endif
|
||||
|
||||
static nsModuleComponentInfo components[] =
|
||||
{
|
||||
@@ -77,6 +83,13 @@ static nsModuleComponentInfo components[] =
|
||||
mozSqlConnectionSqliteConstructor
|
||||
}
|
||||
#endif
|
||||
#ifdef MOZ_ENABLE_MYSQL
|
||||
,{ MOZ_SQLCONNECTIONMYSQL_CLASSNAME,
|
||||
MOZ_SQLCONNECTIONMYSQL_CID,
|
||||
MOZ_SQLCONNECTIONMYSQL_CONTRACTID,
|
||||
mozSqlConnectionMysqlConstructor
|
||||
}
|
||||
#endif
|
||||
};
|
||||
|
||||
NS_IMPL_NSGETMODULE("mozSqlModule", components)
|
||||
|
||||
Reference in New Issue
Block a user