Re: [PATCH] dbpool support for sdb

Guillaume Cottenceau <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Alexander  Malysh <a.malysh 'at' centrium.de> writes:

> Hi,
> 
> patch commited to cvs (in a slightly modified version. fixed double free in 
> 'sdb_close_conn'.)

thanks!

> P.S. please care to make a patch for userguide. Thanks.

sorry, here it is:


-- 
Guillaume Cottenceau
dlr-sdb-doc.diff (text/x-patch, 2 KB)
Index: doc/userguide/userguide.xml
===================================================================
RCS file: /home/cvs/gateway/doc/userguide/userguide.xml,v
retrieving revision 1.270
diff -u -r1.270 userguide.xml
--- doc/userguide/userguide.xml	27 Apr 2004 15:55:21 -0000	1.270
+++ doc/userguide/userguide.xml	18 May 2004 13:30:28 -0000
@@ -626,7 +626,7 @@
         <listitem><para><literal>--with-sdb</literal>
 
             Enable using LibSDB libraries for dlr support.
-            <emphasis>Attention: No DBPool support.</emphasis></para></listitem>
+            </para></listitem>
 
         <listitem><para><literal>--with-oracle</literal>
 
@@ -4588,15 +4588,16 @@
 	defines the LibSDB ressource itself.
 	</para>
 	<para>Here is the example configuration from
-	<literal>doc/examples/dlr-sdb.conf</literal> using a MySQL ressource:
+	<literal>doc/examples/dlr-sdb.conf</literal> using a PostgreSQL ressource:
 
 <programlisting>
 group = sdb-connection
-id = mydlr
-url = "mysql:host=localhost:db=dlr:uid=foo:pwd=bar"
+id = pgdlr
+url = "postgres:host=localhost:db=myapp:port=1234"
+max-connections = 1
 
 group = dlr-db
-id = mydlr
+id = pgdlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
Index: doc/examples/dlr-sdb.conf
===================================================================
RCS file: /home/cvs/gateway/doc/examples/dlr-sdb.conf,v
retrieving revision 1.5
diff -u -r1.5 dlr-sdb.conf
--- doc/examples/dlr-sdb.conf	27 Apr 2004 15:51:18 -0000	1.5
+++ doc/examples/dlr-sdb.conf	18 May 2004 13:30:28 -0000
@@ -24,8 +24,9 @@
 #
 
 group = sdb-connection
-id = mydlr
-url = "mysql:host=localhost:db=dlr:uid=foo:pwd=bar"
+id = pgdlr
+url = "postgres:host=localhost:db=myapp:port=1234"
+max-connections = 1
 
 # 
 # Create the required table for the DLR support in the database 
@@ -60,8 +61,8 @@
 # the appropriate table space and connection details for the real DB.
 #
 
-group = dlr-dlr
-id = mydlr
+group = dlr-db
+id = pgdlr
 table = dlr
 field-smsc = smsc
 field-timestamp = ts
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.