cvs: pear /MDB2 package_mssql.php /MDB2/MDB2/Driver/Datatype mssql.php
| From: | Lorenzo Alberton | Date: | Sun, 04 Mar 2007 19:35:44 +0000 |
| Subject: | cvs: pear /MDB2 package_mssql.php /MDB2/MDB2/Driver/Datatype mssql.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44946@lists.php.net to get a copy of this message | ||
quipo Sun Mar 4 19:35:44 2007 UTC
Modified files:
/pear/MDB2/MDB2/Driver/Datatype mssql.php
/pear/MDB2 package_mssql.php
Log:
added missing integer data types and their length in _mapNativeDatatype()
http://cvs.php.net/viewvc.cgi/pear/MDB2/MDB2/Driver/Datatype/mssql.php?r1=1.53&r2=1.54&diff_format=u
Index: pear/MDB2/MDB2/Driver/Datatype/mssql.php
diff -u pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.53 pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.54
--- pear/MDB2/MDB2/Driver/Datatype/mssql.php:1.53 Fri Mar 2 19:45:23 2007
+++ pear/MDB2/MDB2/Driver/Datatype/mssql.php Sun Mar 4 19:35:43 2007
@@ -44,7 +44,7 @@
// | Daniel Convissor <danielc@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: mssql.php,v 1.53 2007/03/02 19:45:23 quipo Exp $
+// $Id: mssql.php,v 1.54 2007/03/04 19:35:43 quipo Exp $
//
require_once 'MDB2/Driver/Datatype/Common.php';
@@ -407,8 +407,21 @@
case 'bit':
$type[0] = 'boolean';
break;
+ case 'tinyint':
+ $type[0] = 'integer';
+ $length = 1;
+ break;
+ case 'smallint':
+ $type[0] = 'integer';
+ $length = 2;
+ break;
case 'int':
$type[0] = 'integer';
+ $length = 4;
+ break;
+ case 'bigint':
+ $type[0] = 'integer';
+ $length = 8;
break;
case 'datetime':
$type[0] = 'timestamp';
http://cvs.php.net/viewvc.cgi/pear/MDB2/package_mssql.php?r1=1.77&r2=1.78&diff_format=u
Index: pear/MDB2/package_mssql.php
diff -u pear/MDB2/package_mssql.php:1.77 pear/MDB2/package_mssql.php:1.78
--- pear/MDB2/package_mssql.php:1.77 Sun Mar 4 17:19:04 2007
+++ pear/MDB2/package_mssql.php Sun Mar 4 19:35:43 2007
@@ -19,7 +19,7 @@
- reworked tableInfo() to use a common implementation based on getTableFieldDefinition()
when a table name is passed (Bug #8124)
- fixed incorrect regex in mapNativeDatatype() (Bug #8256) (thx ioz at ionosfera dot com)
-- use old dsn when rolling back open transactions in disconnect()
+- use old DSN when rolling back open transactions in disconnect()
- MSSQL requires making columns exlicitly NULLable (Bug #8359)
- do not list empty contraints and indexes
- added support for autoincrement via IDENTITY in getDeclaration()
@@ -28,7 +28,7 @@
- added dropIndex() to the manager module
- increased MDB2 dependency to XXX
- renamed valid_types property to valid_default_values in the Datatype module
-- increased PHP dependency due to http://bugs.php.net/bug.php?id=31195
+- increased PHP dependency due to bug #31195
- using 'ADD COLUMN' syntax instead of just 'ADD' in alterTable()
- fixed bug #9024: typo in error checking
- fixed inheritance structure of convertResult()
@@ -48,6 +48,7 @@
in case of failure before returning an error
- added a 'nativetype_map_callback' option to map native data declarations back to
custom data types (thanks to Andrew Hill).
+- added missing integer data types and their length in _mapNativeDatatype()
- phpdoc fixes
open todo items: