Merged revisions 2977-2992 via svnmerge from
file:///home/developper/svn/phpcompta/branches/rel500 ........ r2980 | danydb | 2010-03-14 12:34:36 +0100 (Sun, 14 Mar 2010) | 2 lines Fix Bug : Update date_limit, incorrect date when date is null ........ r2981 | danydb | 2010-03-14 12:54:18 +0100 (Sun, 14 Mar 2010) | 1 line Class Database : add new value $this->sql and $this->array ........ r2982 | danydb | 2010-03-14 12:55:18 +0100 (Sun, 14 Mar 2010) | 1 line Fix Bug : when giving a bank name the saldo is not display ........ r2983 | danydb | 2010-03-14 12:55:53 +0100 (Sun, 14 Mar 2010) | 1 line Fix Bug : restore cannot apply a path on a template ........ r2984 | danydb | 2010-03-14 12:56:20 +0100 (Sun, 14 Mar 2010) | 1 line code cleaning remove useless comment ........ r2985 | danydb | 2010-03-16 20:50:46 +0100 (Tue, 16 Mar 2010) | 2 lines Bug in the import : the counter is incremented twice ........ r2986 | danydb | 2010-03-22 13:57:03 +0100 (Mon, 22 Mar 2010) | 1 line Update DUTCH message.po ........ r2987 | danydb | 2010-03-22 21:21:49 +0100 (Mon, 22 Mar 2010) | 2 lines Fix bug : the month in the calendar always has 31 days ........ r2988 | danydb | 2010-03-24 21:32:22 +0100 (Wed, 24 Mar 2010) | 2 lines Change : when entering a quick code in a financial ledger, the label is updated and not the description ........ r2989 | danydb | 2010-03-24 22:01:06 +0100 (Wed, 24 Mar 2010) | 3 lines Fix Bug : cannot get operation from COMMERCIAL->FOURNISSEUR ........ r2990 | danydb | 2010-04-05 13:56:33 +0200 (Mon, 05 Apr 2010) | 2 lines Improve Database : new function exist_schema ........ r2991 | danydb | 2010-04-07 13:32:56 +0200 (Wed, 07 Apr 2010) | 2 lines Fix : Bug forecats periode is always equal to 0, so we lose the modifications ........
This commit is contained in:
parent
e166585322
commit
f22f87f5b2
12 changed files with 78 additions and 57 deletions
|
|
@ -97,7 +97,8 @@ de données");
|
|||
*/
|
||||
function exec_sql( $p_string,$p_array=null) {
|
||||
try {
|
||||
|
||||
$this->sql=$p_string;
|
||||
$this->array=$p_array;
|
||||
if ( $p_array==null ) {
|
||||
$this->ret=pg_query($this->db,$p_string);
|
||||
} else {
|
||||
|
|
@ -440,7 +441,16 @@ de données");
|
|||
return false;
|
||||
return true;
|
||||
}
|
||||
/*!
|
||||
/*
|
||||
*!\brief test if a schema exists
|
||||
* \return true if the schemas exists otherwise false
|
||||
*/
|
||||
function exist_schema($p_name) {
|
||||
$r=$this->count_sql("select nspname from pg_namespace where nspname=lower($1)",array($p_name));
|
||||
if ( $r==0)
|
||||
return false;
|
||||
return true;
|
||||
} /*!
|
||||
*\brief create a string containing the value separated by comma
|
||||
* for use in a SQL in statement
|
||||
*\return the string or empty if nothing is found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue