cvs: pear /MDB2/MDB2/Driver/Datatype mssql.php

From: Date: Sun, 10 Feb 2008 16:06:57 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Datatype mssql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-50955@lists.php.net to get a copy of this message
afz Sun Feb 10 16:06:57 2008 UTC Modified files: /pear/MDB2/MDB2/Driver/Datatype mssql.php Log: remove extra method, because parent method compatible with mssql http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Datatype/mssql.php?r1=1.62&r2=1.63&diff_format=u Index: pear/MDB2/MDB2/Driver/Datatype/mssql.php diff -u pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.62 pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.63 --- pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.62 Sun Feb 3 02:19:26 2008 +++ pear/MDB2/MDB2/Driver/Datatype/mssql.php Sun Feb 10 16:06:57 2008 @@ -44,7 +44,7 @@ // | Daniel Convissor <danielc@php.net> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.62 2008/02/03 02:19:26 afz Exp $ +// $Id: mssql.php,v 1.63 2008/02/10 16:06:57 afz Exp $ // require_once 'MDB2/Driver/Datatype/Common.php'; @@ -185,63 +185,6 @@ } // }}} - // {{{ _getDeclaration() - - /** - * Obtain DBMS specific SQL code portion needed to declare a generic type - * field to be used in statements like CREATE TABLE. - * - * @param string $name name the field to be declared. - * @param array $field associative array with the name of the properties - * of the field being declared as array indexes. Currently, the types - * of supported field properties are as follows: - * - * length - * Integer value that determines the maximum length of the text - * field. If this argument is missing the field should be - * declared to have the longest length allowed by the DBMS. - * - * default - * Text value to be used as default for this field. - * - * notnull - * Boolean flag that indicates whether this field is constrained - * to not be set to null. - * @return string DBMS specific SQL code portion that should be used to - * declare the specified field. - * @access protected - */ - function _getDeclarationOptions($field) - { - $charset = empty($field['charset']) ? '' : - ' '.$this->_getCharsetFieldDeclaration($field['charset']); - - $notnull = empty($field['notnull']) ? ' NULL' : ' NOT NULL'; - $default = ''; - if (array_key_exists('default', $field)) { - if ($field['default'] === '') { - $db =& $this->getDBInstance(); - if (PEAR::isError($db)) { - return $db; - } - $field['default'] = $this->valid_default_values[$field['type']]; - if ($field['default'] === ''&& ($db->options['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL)) { - $field['default'] = ' '; - } - } - if (is_null($field['default'])) { - $default = ' DEFAULT (null)'; - } else { - $default = ' DEFAULT (' . $this->quote($field['default'], $field['type']) . ')'; - } - } - - $collation = empty($field['collation']) ? '' : - ' '.$this->_getCollationFieldDeclaration($field['collation']); - return $charset.$notnull.$default.$collation; - } - - // }}} // {{{ _getIntegerDeclaration() /**

« previous php.pear.cvs (#50955) next »