Re: cvs: pear /MDB2_Schema/MDB2 Schema.php

From: Date: Mon, 02 Oct 2006 07:52:38 +0000
Subject: Re: cvs: pear /MDB2_Schema/MDB2 Schema.php
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-44227@lists.php.net to get a copy of this message
Igor Feghali wrote:
ifeghali Mon Oct 2 02:44:37 2006 UTC
  Modified files:                  /pear/MDB2_Schema/MDB2	Schema.php   Log:
- createDatabase() was trying to use the database before creating it
Thinking about it a bit more. The thing is you should not specify a database name in the DSN if you do not want to connect to that database. As such for the most part you do not want to specify a database name when working with MDB2_Schema.
- dumpDatabase() was passing a non-empty types array to queryAll(), which caused unexpected results
How were the results unexpected? The $fields array is build before using the data types specified in the schema. Your change breaks proper formatting of data (especially for LOBs, booleans etc). regards, Lukas

« previous php.pear.dev (#44227) next »