Database set search_path to the schema with function

This commit is contained in:
Dany De Bontridder 2010-04-12 15:00:52 +00:00
parent ae93b5e010
commit aef684fa1a
7 changed files with 508 additions and 28 deletions

View file

@ -152,7 +152,7 @@ if ( isset( $_REQUEST['bt_html'] ) ) {
$go=3;
}
// Check if the post is numeric and exists
elseif ( $cn->count_sql('select * from tmp_pcmn where pcm_val='.FormatString($_GET['poste_id'])) != 0 )
elseif ( $cn->count_sql('select * from tmp_pcmn where pcm_val=$1',array($_GET['poste_id'])) != 0 )
{
$Poste=new Acc_Account_Ledger($cn,$_GET['poste_id']);$go=1;
}