cvs: pear /MDB2/MDB2/Driver/Datatype Common.php fbsql.php ibase.php mssql.php mysql.php oci8.php pgsql.php sqlite.php

From: Date: Thu, 09 Sep 2004 19:13:37 +0000
Subject: cvs: pear /MDB2/MDB2/Driver/Datatype Common.php fbsql.php ibase.php mssql.php mysql.php oci8.php pgsql.php sqlite.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23765@lists.php.net to get a copy of this message
lsmith Thu Sep 9 15:13:37 2004 EDT Modified files: /pear/MDB2/MDB2/Driver/Datatype Common.php fbsql.php ibase.php mssql.php mysql.php oci8.php pgsql.php sqlite.php Log: - brought get*Declaration() inline with quote() by moving the core method into the datatype common class and making the actual implementation private

http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/Common.php?r1=1.13&r2=1.14&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/Common.php diff -u pear/MDB2/MDB2/Driver/Datatype/Common.php:1.13 pear/MDB2/MDB2/Driver/Datatype/Common.php:1.14 --- pear/MDB2/MDB2/Driver/Datatype/Common.php:1.13 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/Common.php Thu Sep 9 15:13:37 2004 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: Common.php,v 1.13 2004/09/09 14:15:22 lsmith Exp $ +// $Id: Common.php,v 1.14 2004/09/09 19:13:37 lsmith Exp $ /** * @package MDB2 @@ -244,7 +244,30 @@ } // }}} - // {{{ getIntegerDeclaration() + // {{{ getDeclaration() + + /** + * Obtain DBMS specific SQL code portion needed to declare + * of the given type + * + * @param string $type type to which the value should be converted to + * @param string $name name the field to be declared. + * @param string $field definition of the field + * @return string DBMS specific SQL code portion that should be used to + * declare the specified field. + * @access public + */ + function getDeclaration($type, $name, $field) + { + $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; + if (method_exists($this, "_get{$type}Declaration")) { + return $this->{"_get{$type}Declaration"}($name, $field); + } + return $db->raiseError('type not defined: '.$type); + } + + // }}} + // {{{ _getIntegerDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an integer type @@ -267,9 +290,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getIntegerDeclaration($name, $field) + function _getIntegerDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['unsigned'])) { @@ -282,7 +305,7 @@ } // }}} - // {{{ getTextDeclaration() + // {{{ _getTextDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -306,9 +329,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTextDeclaration($name, $field) + function _getTextDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -319,7 +342,7 @@ } // }}} - // {{{ getSerializeDeclaration() + // {{{ _getSerializeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -343,15 +366,15 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ -# function getSerializeDeclaration($name, $field) +# function _getSerializeDeclaration($name, $field) # { -# return $this->getTextDeclaration($name, $field); +# return $this->_getTextDeclaration($name, $field); # } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -372,9 +395,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -383,7 +406,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -404,9 +427,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -415,7 +438,7 @@ } // }}} - // {{{ getBooleanDeclaration() + // {{{ _getBooleanDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a boolean type @@ -434,9 +457,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBooleanDeclaration($name, $field) + function _getBooleanDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -446,7 +469,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a date type @@ -465,9 +488,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -477,7 +500,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a timestamp @@ -496,9 +519,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -508,7 +531,7 @@ } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a time @@ -527,9 +550,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -539,7 +562,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a float type @@ -558,9 +581,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -570,7 +593,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a decimal type @@ -589,9 +612,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/fbsql.php?r1=1.9&r2=1.10&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/fbsql.php diff -u pear/MDB2/MDB2/Driver/Datatype/fbsql.php:1.9 pear/MDB2/MDB2/Driver/Datatype/fbsql.php:1.10 --- pear/MDB2/MDB2/Driver/Datatype/fbsql.php:1.9 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/fbsql.php Thu Sep 9 15:13:37 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: fbsql.php,v 1.9 2004/09/09 14:15:22 lsmith Exp $ +// $Id: fbsql.php,v 1.10 2004/09/09 19:13:37 lsmith Exp $ // require_once 'MDB2/Driver/Datatype/Common.php'; @@ -87,7 +87,7 @@ } // }}} - // {{{ getIntegerDeclaration() + // {{{ _getIntegerDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an integer type @@ -113,9 +113,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getIntegerDeclaration($name, $field) + function _getIntegerDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['unsigned'])) { @@ -129,7 +129,7 @@ } // }}} - // {{{ getTextDeclaration() + // {{{ _getTextDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -153,9 +153,9 @@ * to not be set to NULL. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTextDeclaration($name, $field) + function _getTextDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -166,7 +166,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -189,15 +189,15 @@ * 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 public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { return "$name CLOB".(isset($field['notnull']) ? ' NOT NULL' : ''); } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -220,15 +220,15 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { return "$name BLOB".(isset($field['notnull']) ? ' NOT NULL' : ''); } // }}} - // {{{ getBooleanDeclaration() + // {{{ _getBooleanDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a boolean type @@ -247,9 +247,9 @@ * to not be set to NULL. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBooleanDeclaration($name, $field) + function _getBooleanDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -259,7 +259,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an date type @@ -279,9 +279,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT DATE '. @@ -291,7 +291,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an timestamp @@ -312,9 +312,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT TIMESTAMP '. @@ -324,7 +324,7 @@ } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an time type @@ -344,9 +344,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT TIME '. @@ -356,7 +356,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an float type @@ -377,9 +377,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -389,7 +389,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an decimal type @@ -410,9 +410,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = 'DECIMAL(18,'.$db->options['decimal_places'].')'; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/ibase.php?r1=1.11&r2=1.12&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/ibase.php diff -u pear/MDB2/MDB2/Driver/Datatype/ibase.php:1.11 pear/MDB2/MDB2/Driver/Datatype/ibase.php:1.12 --- pear/MDB2/MDB2/Driver/Datatype/ibase.php:1.11 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/ibase.php Thu Sep 9 15:13:37 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.11 2004/09/09 14:15:22 lsmith Exp $ +// $Id: ibase.php,v 1.12 2004/09/09 19:13:37 lsmith Exp $ // require_once 'MDB2/Driver/Datatype/Common.php'; @@ -81,7 +81,7 @@ } // }}} - // {{{ getTypeDeclaration() + // {{{ _getTypeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -104,9 +104,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTypeDeclaration($field) + function _getTypeDeclaration($field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; switch ($field['type']) @@ -137,7 +137,7 @@ } // }}} - // {{{ getTextDeclaration() + // {{{ _getTextDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -161,9 +161,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTextDeclaration($name, $field) + function _getTextDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = $this->getTypeDeclaration($field); @@ -174,7 +174,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -195,9 +195,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -205,7 +205,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -226,9 +226,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -236,7 +236,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a date type @@ -255,9 +255,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -267,7 +267,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an timestamp @@ -288,9 +288,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -300,7 +300,7 @@ } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a time @@ -319,9 +319,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -331,7 +331,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a float type @@ -350,9 +350,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -362,7 +362,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a decimal type @@ -381,9 +381,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/mssql.php?r1=1.9&r2=1.10&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/mssql.php diff -u pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.9 pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.10 --- pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.9 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/mssql.php Thu Sep 9 15:13:37 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mssql.php,v 1.9 2004/09/09 14:15:22 lsmith Exp $ +// $Id: mssql.php,v 1.10 2004/09/09 19:13:37 lsmith Exp $ // require_once 'MDB2/Driver/Datatype/Common.php'; @@ -89,7 +89,7 @@ } // }}} - // {{{ getTextDeclaration() + // {{{ _getTextDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -113,9 +113,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTextDeclaration($name, $field) + function _getTextDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = isset($field['length']) ? 'VARCHAR ('.$field['length'].')' : 'TEXT'; @@ -126,7 +126,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -149,9 +149,9 @@ * 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 public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['length'])) { @@ -169,7 +169,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -192,9 +192,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['length'])) { @@ -212,7 +212,7 @@ } // }}} - // {{{ getBooleanDeclaration() + // {{{ _getBooleanDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a boolean type @@ -231,9 +231,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBooleanDeclaration($name, $field) + function _getBooleanDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -243,7 +243,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an float type @@ -264,9 +264,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -276,7 +276,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an decimal type @@ -297,9 +297,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = 'DECIMAL(18,'.$db->options['decimal_places'].')'; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/mysql.php?r1=1.8&r2=1.9&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/mysql.php diff -u pear/MDB2/MDB2/Driver/Datatype/mysql.php:1.8 pear/MDB2/MDB2/Driver/Datatype/mysql.php:1.9 --- pear/MDB2/MDB2/Driver/Datatype/mysql.php:1.8 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/mysql.php Thu Sep 9 15:13:37 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: mysql.php,v 1.8 2004/09/09 14:15:22 lsmith Exp $ +// $Id: mysql.php,v 1.9 2004/09/09 19:13:37 lsmith Exp $ // require_once 'MDB2/Driver/Datatype/Common.php'; @@ -74,7 +74,7 @@ } // }}} - // {{{ getIntegerDeclaration() + // {{{ _getIntegerDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an integer type @@ -100,9 +100,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getIntegerDeclaration($name, $field) + function _getIntegerDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $unsigned = isset($field['unsigned']) ? ' UNSIGNED' : ''; @@ -114,7 +114,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -137,9 +137,9 @@ * 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 public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['length'])) { @@ -165,7 +165,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -188,9 +188,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['length'])) { @@ -217,7 +217,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an date type @@ -237,9 +237,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -249,7 +249,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an timestamp @@ -270,9 +270,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -282,7 +282,7 @@ } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an time type @@ -302,9 +302,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -314,7 +314,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an float type @@ -335,9 +335,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = 'DOUBLE'; @@ -348,7 +348,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an decimal type @@ -369,9 +369,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = 'DECIMAL(18,'.$db->options['decimal_places'].')'; http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/oci8.php?r1=1.11&r2=1.12&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/oci8.php diff -u pear/MDB2/MDB2/Driver/Datatype/oci8.php:1.11 pear/MDB2/MDB2/Driver/Datatype/oci8.php:1.12 --- pear/MDB2/MDB2/Driver/Datatype/oci8.php:1.11 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/oci8.php Thu Sep 9 15:13:37 2004 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ -// $Id: oci8.php,v 1.11 2004/09/09 14:15:22 lsmith Exp $ +// $Id: oci8.php,v 1.12 2004/09/09 19:13:37 lsmith Exp $ require_once 'MDB2/Driver/Datatype/Common.php'; @@ -79,7 +79,7 @@ } // }}} - // {{{ getTypeDeclaration() + // {{{ _getTypeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -102,9 +102,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTypeDeclaration($field) + function _getTypeDeclaration($field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; switch ($field['type']) @@ -132,7 +132,7 @@ } // }}} - // {{{ getIntegerDeclaration() + // {{{ _getIntegerDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an integer type @@ -156,9 +156,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getIntegerDeclaration($name, $field) + function _getIntegerDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['unsigned'])) { @@ -171,7 +171,7 @@ } // }}} - // {{{ getTextDeclaration() + // {{{ _getTextDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -195,9 +195,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTextDeclaration($name, $field) + function _getTextDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = $this->getTypeDeclaration($field); @@ -208,7 +208,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -231,7 +231,7 @@ * declare the specified field. * @access public */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -239,7 +239,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -260,9 +260,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -270,7 +270,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a date type @@ -289,9 +289,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -301,7 +301,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a timestamp @@ -320,9 +320,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -331,7 +331,7 @@ return $name.' '.$this->getTypeDeclaration($field).$default.$notnull; } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a time @@ -350,9 +350,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -362,7 +362,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a float type @@ -381,9 +381,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -393,7 +393,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a decimal type @@ -412,9 +412,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/pgsql.php?r1=1.8&r2=1.9&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/pgsql.php diff -u pear/MDB2/MDB2/Driver/Datatype/pgsql.php:1.8 pear/MDB2/MDB2/Driver/Datatype/pgsql.php:1.9 --- pear/MDB2/MDB2/Driver/Datatype/pgsql.php:1.8 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/pgsql.php Thu Sep 9 15:13:37 2004 @@ -42,7 +42,7 @@ // | Author: Paul Cooper <pgc@ucecom.com> | // +----------------------------------------------------------------------+ // -// $Id: pgsql.php,v 1.8 2004/09/09 14:15:22 lsmith Exp $ +// $Id: pgsql.php,v 1.9 2004/09/09 19:13:37 lsmith Exp $ require_once 'MDB2/Driver/Datatype/Common.php'; @@ -86,7 +86,7 @@ } // }}} - // {{{ getTextDeclaration() + // {{{ _getTextDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an text type @@ -110,9 +110,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTextDeclaration($name, $field) + function _getTextDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = isset($field['length']) ? 'VARCHAR ('.$field['length'].')' : 'TEXT'; @@ -123,7 +123,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -144,9 +144,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -154,7 +154,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -175,9 +175,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $notnull = isset($field['notnull']) ? ' NOT NULL' : ''; @@ -185,7 +185,7 @@ } // }}} - // {{{ getBooleanDeclaration() + // {{{ _getBooleanDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a boolean type @@ -204,9 +204,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBooleanDeclaration($name, $field) + function _getBooleanDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -216,7 +216,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a date type @@ -235,9 +235,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -247,7 +247,7 @@ } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a time @@ -266,9 +266,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -278,7 +278,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a timestamp @@ -297,9 +297,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -309,7 +309,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a float type @@ -328,9 +328,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -340,7 +340,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare a decimal type @@ -359,9 +359,9 @@ * to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. http://cvs.php.net/diff.php/pear/MDB2/MDB2/Driver/Datatype/sqlite.php?r1=1.10&r2=1.11&ty=u Index: pear/MDB2/MDB2/Driver/Datatype/sqlite.php diff -u pear/MDB2/MDB2/Driver/Datatype/sqlite.php:1.10 pear/MDB2/MDB2/Driver/Datatype/sqlite.php:1.11 --- pear/MDB2/MDB2/Driver/Datatype/sqlite.php:1.10 Thu Sep 9 10:15:22 2004 +++ pear/MDB2/MDB2/Driver/Datatype/sqlite.php Thu Sep 9 15:13:37 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: sqlite.php,v 1.10 2004/09/09 14:15:22 lsmith Exp $ +// $Id: sqlite.php,v 1.11 2004/09/09 19:13:37 lsmith Exp $ // require_once 'MDB2/Driver/Datatype/Common.php'; @@ -79,7 +79,7 @@ } // }}} - // {{{ getIntegerDeclaration() + // {{{ _getIntegerDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an integer type @@ -105,9 +105,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getIntegerDeclaration($name, $field) + function _getIntegerDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $unsigned = isset($field['unsigned']) ? ' UNSIGNED' : ''; @@ -119,7 +119,7 @@ } // }}} - // {{{ getCLOBDeclaration() + // {{{ _getCLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an character @@ -142,9 +142,9 @@ * 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 public + * @access private */ - function getCLOBDeclaration($name, $field) + function _getCLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['length'])) { @@ -170,7 +170,7 @@ } // }}} - // {{{ getBLOBDeclaration() + // {{{ _getBLOBDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an binary large @@ -193,9 +193,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getBLOBDeclaration($name, $field) + function _getBLOBDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; if (isset($field['length'])) { @@ -222,7 +222,7 @@ } // }}} - // {{{ getDateDeclaration() + // {{{ _getDateDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an date type @@ -242,9 +242,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDateDeclaration($name, $field) + function _getDateDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -254,7 +254,7 @@ } // }}} - // {{{ getTimestampDeclaration() + // {{{ _getTimestampDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an timestamp @@ -275,9 +275,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimestampDeclaration($name, $field) + function _getTimestampDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -287,7 +287,7 @@ } // }}} - // {{{ getTimeDeclaration() + // {{{ _getTimeDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an time type @@ -307,9 +307,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getTimeDeclaration($name, $field) + function _getTimeDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $default = isset($field['default']) ? ' DEFAULT '. @@ -319,7 +319,7 @@ } // }}} - // {{{ getFloatDeclaration() + // {{{ _getFloatDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an float type @@ -340,9 +340,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getFloatDeclaration($name, $field) + function _getFloatDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = 'DOUBLE'.($db->options['fixed_float'] ? '('.($db->options['fixed_float']+2).','.$db->options['fixed_float'].')' : ''); @@ -353,7 +353,7 @@ } // }}} - // {{{ getDecimalDeclaration() + // {{{ _getDecimalDeclaration() /** * Obtain DBMS specific SQL code portion needed to declare an decimal type @@ -374,9 +374,9 @@ * constrained to not be set to null. * @return string DBMS specific SQL code portion that should be used to * declare the specified field. - * @access public + * @access private */ - function getDecimalDeclaration($name, $field) + function _getDecimalDeclaration($name, $field) { $db =& $GLOBALS['_MDB2_databases'][$this->db_index]; $type = 'BIGINT';
« previous php.pear.cvs (#23765) next »