Update of /cvsroot/phpbb-php5mod/phpbb-php5/db
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17924/db
Modified Files:
postgres7.php
Log Message:
Fixed assignment of moderators.
Fixed postgre support
Index: postgres7.php
===================================================================
RCS file: /cvsroot/phpbb-php5mod/phpbb-php5/db/postgres7.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** postgres7.php 29 Jul 2004 22:36:00 -0000 1.1
--- postgres7.php 30 Jul 2004 20:12:43 -0000 1.2
***************
*** 94,103 ****
if( $this->in_transaction )
{
! @pg_exec($this->db_connect_id, "COMMIT");
}
if( $this->query_result )
{
! @pg_freeresult($this->query_result);
}
--- 94,103 ----
if( $this->in_transaction )
{
! @pg_query($this->db_connect_id, "COMMIT");
}
if( $this->query_result )
{
! @pg_free_result($this->query_result);
}
***************
*** 129,133 ****
$this->in_transaction = TRUE;
! if( !@pg_exec($this->db_connect_id, "BEGIN") )
{
return false;
--- 129,133 ----
$this->in_transaction = TRUE;
! if( !@pg_query($this->db_connect_id, "BEGIN") )
{
return false;
***************
*** 135,139 ****
}
! $this->query_result = @pg_exec($this->db_connect_id, $query);
if( $this->query_result )
{
--- 135,139 ----
}
! $this->query_result = @pg_query($this->db_connect_id, $query);
if( $this->query_result )
{
***************
*** 142,148 ****
$this->in_transaction = FALSE;
! if( !@pg_exec($this->db_connect_id, "COMMIT") )
{
! @pg_exec($this->db_connect_id, "ROLLBACK");
return false;
}
--- 142,148 ----
$this->in_transaction = FALSE;
! if( !@pg_query($this->db_connect_id, "COMMIT") )
{
! @pg_query($this->db_connect_id, "ROLLBACK");
return false;
}
***************
*** 161,165 ****
if( $this->in_transaction )
{
! @pg_exec($this->db_connect_id, "ROLLBACK");
}
$this->in_transaction = FALSE;
--- 161,165 ----
if( $this->in_transaction )
{
! @pg_query($this->db_connect_id, "ROLLBACK");
}
$this->in_transaction = FALSE;
***************
*** 174,180 ****
$this->in_transaction = FALSE;
! if( !@pg_exec($this->db_connect_id, "COMMIT") )
{
! @pg_exec($this->db_connect_id, "ROLLBACK");
return false;
}
--- 174,180 ----
$this->in_transaction = FALSE;
! if( !@pg_query($this->db_connect_id, "COMMIT") )
{
! @pg_query($this->db_connect_id, "ROLLBACK");
return false;
}
***************
*** 205,209 ****
}
! return ( $query_id ) ? @pg_numfields($query_id) : false;
}
--- 205,209 ----
}
! return ( $query_id ) ? @pg_num_fields($query_id) : false;
}
***************
*** 215,219 ****
}
! return ( $query_id ) ? @pg_fieldname($query_id, $offset) : false;
}
--- 215,219 ----
}
! return ( $query_id ) ? @pg_field_name($query_id, $offset) : false;
}
***************
*** 225,229 ****
}
! return ( $query_id ) ? @pg_fieldtype($query_id, $offset) : false;
}
--- 225,229 ----
}
! return ( $query_id ) ? @pg_field_type($query_id, $offset) : false;
}
***************
*** 343,347 ****
{
$query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value";
! $temp_q_id = @pg_exec($this->db_connect_id, $query);
if( !$temp_q_id )
{
--- 343,347 ----
{
$query = "SELECT currval('" . $tablename[1] . "_id_seq') AS last_value";
! $temp_q_id = @pg_query($this->db_connect_id, $query);
if( !$temp_q_id )
{
***************
*** 365,369 ****
}
! return ( $query_id ) ? @pg_cmdtuples($query_id) : false;
}
--- 365,369 ----
}
! return ( $query_id ) ? @pg_affected_rows($query_id) : false;
}
***************
*** 375,379 ****
}
! return ( $query_id ) ? @pg_freeresult($query_id) : false;
}
--- 375,379 ----
}
! return ( $query_id ) ? @pg_free_result($query_id) : false;
}
***************
*** 385,389 ****
}
! $result['message'] = @pg_errormessage($this->db_connect_id);
$result['code'] = -1;
--- 385,389 ----
}
! $result['message'] = @pg_last_error($this->db_connect_id);
$result['code'] = -1;
|