diff options
| author | 2010-09-10 18:29:53 -0400 | |
|---|---|---|
| committer | 2010-09-10 18:29:53 -0400 | |
| commit | 7c14f03a8b86261d2e9a06c8a744bc4ceba9c85a (patch) | |
| tree | cbbc8ae2408d90dcc7298199466f4adecd7253a3 /src/modules/extra/m_pgsql.cpp | |
| parent | Build fixes for darwin (diff) | |
Fix namespace conflict in SQL modules causing crash in PURE_STATIC
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 7fd2050b1..0eb2cc8ae 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -17,6 +17,8 @@ #include <libpq-fe.h> #include "sql.h" +namespace m_pgsql { + /* $ModDesc: PostgreSQL Service Provider module for all other m_sql* modules, uses v2 of the SQL API */ /* $CompileFlags: -Iexec("pg_config --includedir") eval("my $s = `pg_config --version`;$s =~ /^.*?(\d+)\.(\d+)\.(\d+).*?$/;my $v = hex(sprintf("0x%02x%02x%02x", $1, $2, $3));print "-DPGSQL_HAS_ESCAPECONN" if(($v >= 0x080104) || ($v >= 0x07030F && $v < 0x070400) || ($v >= 0x07040D && $v < 0x080000) || ($v >= 0x080008 && $v < 0x080100));") */ /* $LinkerFlags: -Lexec("pg_config --libdir") -lpq */ @@ -606,4 +608,8 @@ void SQLConn::DelayReconnect() } } +} + +using m_pgsql::ModulePgSQL; + MODULE_INIT(ModulePgSQL) |
