Database set search_path to the schema with function
This commit is contained in:
parent
ae93b5e010
commit
aef684fa1a
7 changed files with 508 additions and 28 deletions
|
|
@ -817,7 +817,7 @@ Array
|
|||
$class=$this->strAttribut(ATTR_DEF_ACCOUNT);
|
||||
$is_used_jrnx=0;
|
||||
if ( trim(strlen($class)) != 0 && isNumber($class) == 1 )
|
||||
$is_used_jrnx= $this->cn->count_sql("select * from jrnx where j_poste=$class");
|
||||
$is_used_jrnx= $this->cn->count_sql("select * from jrnx where j_poste=$1",array($class));
|
||||
// if class is not NULL and if we use it before, we can't remove it
|
||||
if (FormatString($class) != null && $is_used_jrnx != 0 )
|
||||
{
|
||||
|
|
@ -828,7 +828,7 @@ Array
|
|||
// Remove in PCMN
|
||||
if ( trim(strlen($class)) != 0 && isNumber($class) == 1 && $is_used_jrnx == 0)
|
||||
{
|
||||
$this->cn->exec_sql("delete from tmp_pcmn where pcm_val=$class");
|
||||
$this->cn->exec_sql("delete from tmp_pcmn where pcm_val=$1",array($class));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue