[PATCH] ndoutils: Typo in ndo2db_db_sql_to_timet for PGSQL

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Tue Apr 21 17:46:02 CEST 2009


Hi,

I suspect there is a typo (missing bracket) in src/db.c. Pseudo patch:

--- ndoutils.oorig/src/db.c     2007-10-31 19:17:05.000000000 +0100
+++ ndoutils-1.4b8-oracle/src/db.c      2009-04-21 16:56:55.000000000 +0200
@@ -525,7 +607,12 @@ char *ndo2db_db_sql_to_timet(ndo2db_idi 
                break;
        case NDO2DB_DBSERVER_PGSQL:
 #ifdef USE_PGSQL
-               asprintf(&buf,"UNIX_TIMESTAMP(%s",(field==NULL)?"":field);
+               asprintf(&buf,"UNIX_TIMESTAMP(%s)",(field==NULL)?"":field);


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p




More information about the Developers mailing list