cvs: pear /MDB2/MDB2/Driver mssql.php /MDB2/MDB2/Driver/Manager ibase.php mssql.php /MDB2/MDB2/Driver/Reverse ibase.php /MDB2/tests
MDB2_Connect_Test.php MDB2_manager_testcase.php

From: Date: Sun, 16 Oct 2005 16:31:54 +0000
Subject: cvs: pear /MDB2/MDB2/Driver mssql.php /MDB2/MDB2/Driver/Manager ibase.php mssql.php /MDB2/MDB2/Driver/Reverse ibase.php /MDB2/tests
MDB2_Connect_Test.php MDB2_manager_testcase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-35600@lists.php.net to get a copy of this message
lsmith Sun Oct 16 12:31:54 2005 EDT Modified files: /pear/MDB2/MDB2/Driver/Manager ibase.php mssql.php /pear/MDB2/MDB2/Driver/Reverse ibase.php /pear/MDB2/tests MDB2_Connect_Test.php MDB2_manager_testcase.php /pear/MDB2/MDB2/Driver mssql.php Log: - WS fixes

http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/ibase.php?r1=1.53&r2=1.54&ty=u Index: pear/MDB2/MDB2/Driver/Manager/ibase.php diff -u pear/MDB2/MDB2/Driver/Manager/ibase.php:1.53 pear/MDB2/MDB2/Driver/Manager/ibase.php:1.54 --- pear/MDB2/MDB2/Driver/Manager/ibase.php:1.53 Sat Oct 15 08:03:14 2005 +++ pear/MDB2/MDB2/Driver/Manager/ibase.php Sun Oct 16 12:31:52 2005 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.53 2005/10/15 12:03:14 lsmith Exp $ +// $Id: ibase.php,v 1.54 2005/10/16 16:31:52 lsmith Exp $ require_once 'MDB2/Driver/Manager/Common.php'; @@ -274,7 +274,7 @@ if (PEAR::isError($result)) { return $result; } - + return parent::dropTable($name); } http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Manager/mssql.php?r1=1.45&r2=1.46&ty=u Index: pear/MDB2/MDB2/Driver/Manager/mssql.php diff -u pear/MDB2/MDB2/Driver/Manager/mssql.php:1.45 pear/MDB2/MDB2/Driver/Manager/mssql.php:1.46 --- pear/MDB2/MDB2/Driver/Manager/mssql.php:1.45 Fri Oct 14 18:33:05 2005 +++ pear/MDB2/MDB2/Driver/Manager/mssql.php Sun Oct 16 12:31:52 2005 @@ -42,7 +42,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.45 2005/10/14 22:33:05 lsmith Exp $ +// $Id: mssql.php,v 1.46 2005/10/16 16:31:52 lsmith Exp $ // require_once 'MDB2/Driver/Manager/Common.php'; @@ -246,7 +246,7 @@ $query.= $db->getDeclaration($field['type'], $field_name, $field); } } - + if (!$query) { return MDB2_OK; @@ -400,7 +400,7 @@ if(PEAR::isError($res)) { return $res; } - + if ($start == 1) { return MDB2_OK; } http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Reverse/ibase.php?r1=1.21&r2=1.22&ty=u Index: pear/MDB2/MDB2/Driver/Reverse/ibase.php diff -u pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.21 pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.22 --- pear/MDB2/MDB2/Driver/Reverse/ibase.php:1.21 Sun Oct 16 05:39:50 2005 +++ pear/MDB2/MDB2/Driver/Reverse/ibase.php Sun Oct 16 12:31:54 2005 @@ -42,7 +42,7 @@ // | Author: Lorenzo Alberton <l.alberton@quipo.it> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.21 2005/10/16 09:39:50 lsmith Exp $ +// $Id: ibase.php,v 1.22 2005/10/16 16:31:54 lsmith Exp $ // require_once 'MDB2/Driver/Reverse/Common.php'; @@ -118,7 +118,7 @@ 2 => 'decimal', ), ); - + // {{{ getTableFieldDefinition() /** @@ -170,7 +170,7 @@ } else { $column = array_change_key_case($column, $db->options['field_case']); } - + $column['field_type'] = array_key_exists($column['field_type_code'], $this->types) ? $this->types[(int)$column['field_type_code']] : 'undefined'; if ($column['field_sub_type_code'] @@ -237,7 +237,7 @@ if (PEAR::isError($result)) { return $result; } - + $index = $row = $result->fetchRow(MDB2_FETCHMODE_ASSOC); if (empty($index)) { return $db->raiseError(MDB2_ERROR, null, null, @@ -248,11 +248,11 @@ $fields[] = $row['field_name']; } while (is_array($row = $result->fetchRow(MDB2_FETCHMODE_ASSOC))); $result->free(); - + if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) { $fields = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $fields); } - + $definition = array(); if ($index['unique_flag']) { $definition['unique'] = true; @@ -308,7 +308,7 @@ if (PEAR::isError($result)) { return $result; } - + $index = $row = $result->fetchRow(MDB2_FETCHMODE_ASSOC); if (empty($index)) { return $db->raiseError(MDB2_ERROR, null, null, @@ -319,11 +319,11 @@ $fields[] = $row['field_name']; } while (is_array($row = $result->fetchRow(MDB2_FETCHMODE_ASSOC))); $result->free(); - + if ($db->options['portability'] & MDB2_PORTABILITY_FIX_CASE) { $fields = array_map(($db->options['field_case'] == CASE_LOWER ? 'strtolower' : 'strtoupper'), $fields); } - + $definition = array(); if ($index['constraint_type'] == 'PRIMARY KEY') { $definition['primary'] = true; http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_Connect_Test.php?r1=1.1&r2=1.2&ty=u Index: pear/MDB2/tests/MDB2_Connect_Test.php diff -u pear/MDB2/tests/MDB2_Connect_Test.php:1.1 pear/MDB2/tests/MDB2_Connect_Test.php:1.2 --- pear/MDB2/tests/MDB2_Connect_Test.php:1.1 Sat Oct 8 16:00:15 2005 +++ pear/MDB2/tests/MDB2_Connect_Test.php Sun Oct 16 12:31:54 2005 @@ -3,11 +3,11 @@ /** * This is just a dummy class to perform the tests. */ -class MDB2_Connect_Test +class MDB2_Connect_Test { var $_dsn; var $dbc; - + // {{{ constructor php5 valid /** * Straightforward? The constructor @@ -16,7 +16,7 @@ { require_once 'MDB2.php'; require_once 'config.php'; - + $this->_dsn = array( 'phptype' => DSN_PHPTYPE, 'username' => DSN_USERNAME, @@ -24,7 +24,7 @@ 'hostspec' => DSN_HOSTNAME, 'database' => DSN_DATABASE, ); - + } // }}} // {{{ PHP4 constructor.. @@ -46,7 +46,7 @@ return $this->dbc; } } - // }}} + // }}} } // }}} -?> \ No newline at end of file +?> \ No newline at end of file http://cvs.php.net/diff.php/pear/MDB2/tests/MDB2_manager_testcase.php?r1=1.28&r2=1.29&ty=u Index: pear/MDB2/tests/MDB2_manager_testcase.php diff -u pear/MDB2/tests/MDB2_manager_testcase.php:1.28 pear/MDB2/tests/MDB2_manager_testcase.php:1.29 --- pear/MDB2/tests/MDB2_manager_testcase.php:1.28 Sat Oct 15 08:23:34 2005 +++ pear/MDB2/tests/MDB2_manager_testcase.php Sun Oct 16 12:31:54 2005 @@ -42,7 +42,7 @@ // | Lorenzo Alberton <l dot alberton at quipo dot it> | // +----------------------------------------------------------------------+ // -// $Id: MDB2_manager_testcase.php,v 1.28 2005/10/15 12:23:34 lsmith Exp $ +// $Id: MDB2_manager_testcase.php,v 1.29 2005/10/16 16:31:54 lsmith Exp $ require_once 'MDB2/Schema.php'; @@ -430,7 +430,7 @@ $result = $this->db->manager->dropTable($this->table); $this->assertFalse($this->tableExists(), 'Error listing tables'); } - + /** * */ http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/mssql.php?r1=1.86&r2=1.87&ty=u Index: pear/MDB2/MDB2/Driver/mssql.php diff -u pear/MDB2/MDB2/Driver/mssql.php:1.86 pear/MDB2/MDB2/Driver/mssql.php:1.87 --- pear/MDB2/MDB2/Driver/mssql.php:1.86 Sun Oct 16 10:34:01 2005 +++ pear/MDB2/MDB2/Driver/mssql.php Sun Oct 16 12:31:54 2005 @@ -43,7 +43,7 @@ // | Author: Frank M. Kromann <frank@kromann.info> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.86 2005/10/16 14:34:01 lsmith Exp $ +// $Id: mssql.php,v 1.87 2005/10/16 16:31:54 lsmith Exp $ // // {{{ Class MDB2_Driver_mssql /** @@ -398,7 +398,7 @@ * Checks if there's a sequence that exists. * * @param string $seq_name The sequence name to verify. - * @return bool $tableExists The value if the table exists or not + * @return bool $tableExists The value if the table exists or not * @access private */ function _checkSequence($seq_name) @@ -456,14 +456,14 @@ } return $result; } - + // TODO: Make sure that this works. $value = $this->queryRow("SELECT @@IDENTITY", 'integer'); if (is_numeric($value)) { $query = "DELETE FROM $sequence_name WHERE ". $this->options['seqcol_name']." < $value"; $result = $this->_doQuery($query, true); - + if (PEAR::isError($result)) { $this->warnings[] = 'nextID: could not delete previous sequence table values'; }
« previous php.pear.cvs (#35600) next »