Bugs item #406160, was opened at 2001-03-05 16:11
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=103152&aid=406160&group_id=3152
Category: None
Group: modules
Status: Open
Resolution: None
Priority: 5
Submitted By: Jason Schroeder (shrode)
Assigned to: Kriston Rehberg (kriston)
Summary: nspostgres.c segfaults on postgres error
Initial Comment:
The format string on the following line incorrectly
specifies a string argument where an interger is
passed. Therefore database errors result in a
segmentation fault and not an error message.
(This is a cvs diff -c from my import of the 3.2
nspostgres module)
*** nspostgres.c 2001/02/02 00:13:11 1.2
--- nspostgres.c 2001/03/06 00:05:23
***************
*** 543,549 ****
return NS_DML;
break;
default:
! Ns_Log(Error, "nspostgres: result status '%s', message
'%s'",
PQresultStatus(nsConn->res),
PQerrorMessage(nsConn->conn));
return NS_ERROR;
}
--- 543,549 ----
return NS_DML;
break;
default:
! Ns_Log(Error, "nspostgres: result status '%d', message
'%s'",
PQresultStatus(nsConn->res),
PQerrorMessage(nsConn->conn));
return NS_ERROR;
}
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2002-09-18 10:04
Message:
Logged In: NO
This is STILL broken in the downloadable version of 3.0......
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2001-06-13 17:06
Message:
Logged In: NO
Wonderful! I thought I was insane! Thank you!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=103152&aid=406160&group_id=3152