cvs: pear /MDB2/MDB2/Driver/Datatype Common.php mssql.php
| From: | Lorenzo Alberton | Date: | Tue, 29 Aug 2006 10:09:26 +0000 |
| Subject: | cvs: pear /MDB2/MDB2/Driver/Datatype Common.php mssql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-41906@lists.php.net to get a copy of this message | ||
quipo Tue Aug 29 10:09:26 2006 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Datatype Common.php mssql.php
Log:
renamed $valid_types => $valid_default_values
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Datatype/Common.php?r1=1.109&r2=1.110&diff_format=u
Index: pear/MDB2/MDB2/Driver/Datatype/Common.php
diff -u pear/MDB2/MDB2/Driver/Datatype/Common.php:1.109
pear/MDB2/MDB2/Driver/Datatype/Common.php:1.110
--- pear/MDB2/MDB2/Driver/Datatype/Common.php:1.109 Sun Aug 20 09:48:43 2006
+++ pear/MDB2/MDB2/Driver/Datatype/Common.php Tue Aug 29 10:09:26 2006
@@ -42,7 +42,7 @@
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
//
-// $Id: Common.php,v 1.109 2006/08/20 09:48:43 lsmith Exp $
+// $Id: Common.php,v 1.110 2006/08/29 10:09:26 quipo Exp $
require_once 'MDB2/LOB.php';
@@ -61,7 +61,7 @@
*/
class MDB2_Driver_Datatype_Common extends MDB2_Module_Common
{
- var $valid_types = array(
+ var $valid_default_values = array(
'text' => '',
'boolean' => true,
'integer' => 0,
@@ -96,7 +96,7 @@
*/
function getValidTypes()
{
- $types = $this->valid_types;
+ $types = $this->valid_default_values;
$db =& $this->getDBInstance();
if (PEAR::isError($db)) {
return $db;
@@ -141,7 +141,7 @@
{
$types = is_array($types) ? $types : array($types);
foreach ($types as $key => $type) {
- if (!isset($this->valid_types[$type])) {
+ if (!isset($this->valid_default_values[$type])) {
$db =& $this->getDBInstance();
if (PEAR::isError($db)) {
return $db;
@@ -420,7 +420,7 @@
if (array_key_exists('default', $field)) {
if ($field['default'] === '') {
$field['default'] = empty($field['notnull'])
- ? null : $this->valid_types[$field['type']];
+ ? null : $this->valid_default_values[$field['type']];
if ($field['default'] === ''
&& ($db->options['portability'] &
MDB2_PORTABILITY_EMPTY_TO_NULL)
) {
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Datatype/mssql.php?r1=1.44&r2=1.45&diff_format=u
Index: pear/MDB2/MDB2/Driver/Datatype/mssql.php
diff -u pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.44 pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.45
--- pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.44 Sun Aug 20 09:48:43 2006
+++ pear/MDB2/MDB2/Driver/Datatype/mssql.php Tue Aug 29 10:09:26 2006
@@ -44,7 +44,7 @@
// | Daniel Convissor <danielc@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.44 2006/08/20 09:48:43 lsmith Exp $
+// $Id: mssql.php,v 1.45 2006/08/29 10:09:26 quipo Exp $
//
require_once 'MDB2/Driver/Datatype/Common.php';
@@ -203,7 +203,7 @@
if (array_key_exists('default', $field)) {
if ($field['default'] === '') {
$field['default'] = empty($field['notnull'])
- ? null : $this->valid_types[$field['type']];
+ ? null : $this->valid_default_values[$field['type']];
if ($field['default'] === ''
&& ($db->options['portability'] &
MDB2_PORTABILITY_EMPTY_TO_NULL)
) {