Improve ExecSqlParam
This commit is contained in:
parent
0fbd435786
commit
8e4e4534b9
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue