phpOpenTracker/phpOpenTracker/Database/Driver MSSQL.php,1.9,1.10 MySQL.php,1.9,1.10 Oracle.php,1.9,1.10 PostgreSQL.php,1.9,1.10
Sebastian Bergmann <[email protected]> Fri, 27 Feb 2004 08:04:11 +0000
| Newsgroups | gmane.comp.web.phpopentracker.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22336/Driver
Modified Files:
MSSQL.php MySQL.php Oracle.php PostgreSQL.php
Log Message:
Flush.
Index: MySQL.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/MySQL.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** MySQL.php 27 Feb 2004 07:05:56 -0000 1.9
--- MySQL.php 27 Feb 2004 08:04:09 -0000 1.10
***************
*** 35,43 ****
protected function connect() {
$this->connection = new MySQLi(
! $this->config['db_host'],
! $this->config['db_user'],
! $this->config['db_password'],
! $this->config['db_database'],
! ($this->config['db_port'] == 'default') ? '3306' : $this->config['db_port']
);
}
--- 35,43 ----
protected function connect() {
$this->connection = new MySQLi(
! $this->configuration['db_host'],
! $this->configuration['db_user'],
! $this->configuration['db_password'],
! $this->configuration['db_database'],
! ($this->configuration['db_port'] == 'default') ? '3306' : $this->configuration['db_port']
);
}
Index: PostgreSQL.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/PostgreSQL.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** PostgreSQL.php 27 Feb 2004 06:50:49 -0000 1.9
--- PostgreSQL.php 27 Feb 2004 08:04:09 -0000 1.10
***************
*** 48,56 ****
$connectionString = sprintf(
"%s %s dbname=%s user=%s password=%s",
! ($this->config['db_host'] == 'socket') ? '' : 'host=' . $this->config['db_host'],
! ($this->config['db_port'] == 'default') ? '' : 'port=' . $this->config['db_port'],
! $this->config['db_database'],
! $this->config['db_user'],
! $this->config['db_password']
);
--- 48,56 ----
$connectionString = sprintf(
"%s %s dbname=%s user=%s password=%s",
! ($this->configuration['db_host'] == 'socket') ? '' : 'host=' . $this->configuration['db_host'],
! ($this->configuration['db_port'] == 'default') ? '' : 'port=' . $this->configuration['db_port'],
! $this->configuration['db_database'],
! $this->configuration['db_user'],
! $this->configuration['db_password']
);
Index: MSSQL.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/MSSQL.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** MSSQL.php 27 Feb 2004 06:50:49 -0000 1.9
--- MSSQL.php 27 Feb 2004 08:04:08 -0000 1.10
***************
*** 25,31 ****
protected function connect() {
$this->connection = @mssql_connect(
! $this->config['db_host'],
! $this->config['db_user'],
! $this->config['db_password']
);
--- 25,31 ----
protected function connect() {
$this->connection = @mssql_connect(
! $this->configuration['db_host'],
! $this->configuration['db_user'],
! $this->configuration['db_password']
);
***************
*** 36,40 ****
}
! if (!@mssql_select_db($this->config['db_database'], $this->connection)) {
throw new phpOpenTracker_Database_Exception(
'Could not select database.'
--- 36,40 ----
}
! if (!@mssql_select_db($this->configuration['db_database'], $this->connection)) {
throw new phpOpenTracker_Database_Exception(
'Could not select database.'
Index: Oracle.php
===================================================================
RCS file: /cvsroot/phpopencounter/phpOpenTracker/phpOpenTracker/Database/Driver/Oracle.php,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** Oracle.php 27 Feb 2004 06:50:49 -0000 1.9
--- Oracle.php 27 Feb 2004 08:04:09 -0000 1.10
***************
*** 24,32 ****
class phpOpenTracker_Database_Driver_Oracle extends phpOpenTracker_Database_Driver {
protected function connect() {
! $database = ($this->config['db_database'] == 'default') ? '' : $this->config['db_database'];
$this->connection = @OCILogon(
! $this->config['db_user'],
! $this->config['db_password'],
$database
);
--- 24,32 ----
class phpOpenTracker_Database_Driver_Oracle extends phpOpenTracker_Database_Driver {
protected function connect() {
! $database = ($this->configuration['db_database'] == 'default') ? '' : $this->configuration['db_database'];
$this->connection = @OCILogon(
! $this->configuration['db_user'],
! $this->configuration['db_password'],
$database
);
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click