[Nagios-devel] [PATCH] ndoutils: Typo in ndo2db_db_sql_to_timet for
Posted: Tue Apr 21, 2009 2:46 pm
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);
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
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);
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]