cvs: pear /MDB manager_mysql.php

From: Date: Sun, 25 Aug 2002 09:08:39 +0000
Subject: cvs: pear /MDB manager_mysql.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-5953@lists.php.net to get a copy of this message
lsmith Sun Aug 25 05:08:39 2002 EDT Modified files: /pear/MDB manager_mysql.php Log: fixed a bug in the primary key to unique conversion added 'text' als a second choice for reverse engineering of blob fields Index: pear/MDB/manager_mysql.php diff -u pear/MDB/manager_mysql.php:1.25 pear/MDB/manager_mysql.php:1.26 --- pear/MDB/manager_mysql.php:1.25 Sat Aug 24 18:22:33 2002 +++ pear/MDB/manager_mysql.php Sun Aug 25 05:08:38 2002 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@dybnet.de> | // +----------------------------------------------------------------------+ // -// $Id: manager_mysql.php,v 1.25 2002/08/24 22:22:33 lsmith Exp $ +// $Id: manager_mysql.php,v 1.26 2002/08/25 09:08:38 lsmith Exp $ // if(!defined('MDB_MANAGER_MYSQL_INCLUDED')) @@ -623,6 +623,7 @@ case 'longblob': case 'blob': $type[0] = 'blob'; + $type[1] = 'text'; break; case 'year': $type[0] = 'integer'; @@ -681,7 +682,7 @@ } $is_primary = FALSE; foreach($indexes as $index) { - if ($index['Key_name'] == 'PRIMARY' && $index['Column_name'] == $field_name) { + if ($index['Key_name'] == 'PRIMARY' && $index['Column_name'] == $field) { $is_primary = TRUE; break; }

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