Improve ExecSqlParam

This commit is contained in:
sparkyx 2007-12-12 20:33:25 +00:00
parent 0fbd435786
commit 8e4e4534b9

View file

@ -159,14 +159,14 @@ function ExecSqlParam($p_connection, $p_string,$p_array) {
//----
pg_set_client_encoding($p_connection,'latin1');
ob_start();
if (!DEBUG ) ob_start();
$ret=pg_query_params($p_connection,$p_string,$p_array);
if ( ! $ret ) {
ob_clean();
$r=$string."array ".var_export($p_array,TRUE);
if (!DEBUG )ob_clean();
$r=$p_string."array ".var_export($p_array,TRUE);
throw new Exception (" SQL ERROR $r",1);
}
ob_flush();
if (!DEBUG ) ob_flush();
return $ret;
}