Index: MDB2/Driver/Datatype/Common.php =================================================================== RCS file: /repository/pear/MDB2/MDB2/Driver/Datatype/Common.php,v retrieving revision 1.53 diff -u -p -r1.53 Common.php --- MDB2/Driver/Datatype/Common.php 13 Feb 2006 07:32:21 -0000 1.53 +++ MDB2/Driver/Datatype/Common.php 13 Feb 2006 12:39:34 -0000 @@ -72,6 +72,7 @@ class MDB2_Driver_Datatype_Common extend 'timestamp' => '0000-00-00', 'clob' => '', 'blob' => '', + 'unknown' => '', ); /** @@ -135,6 +136,7 @@ class MDB2_Driver_Datatype_Common extend { switch ($type) { case 'text': + case 'unknown': return $value; case 'integer': return intval($value); Index: MDB2/Driver/Datatype/pgsql.php =================================================================== RCS file: /repository/pear/MDB2/MDB2/Driver/Datatype/pgsql.php,v retrieving revision 1.44 diff -u -p -r1.44 pgsql.php --- MDB2/Driver/Datatype/pgsql.php 16 Jan 2006 12:55:55 -0000 1.44 +++ MDB2/Driver/Datatype/pgsql.php 13 Feb 2006 12:39:34 -0000 @@ -587,6 +587,10 @@ for some reason this piece of code cause $type[] = 'date'; $length = null; break; + case 'unknown': + $type[] = 'unknown'; + $length = null; + break; default: $db =& $this->getDBInstance(); if (PEAR::isError($db)) {