Re: Re: cvs: pear /MDB2 package.php package_ibase.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php
package_sqlite.php /MDB2/MDB2/Driver/Reverse Common.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php
| From: | Lorenzo Alberton | Date: | Sun, 25 Feb 2007 11:38:20 +0000 |
| Subject: | Re: Re: cvs: pear /MDB2 package.php package_ibase.php package_mssql.php package_mysql.php package_mysqli.php package_oci8.php package_pgsql.php package_sqlite.php /MDB2/MDB2/Driver/Reverse Common.php ibase.php mssql.php mysql.php mysqli.php oci8.php pgsql.php sqlite.php |
||
| References: | 1 2 3 4 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-45749@lists.php.net to get a copy of this message | ||
Lukas Kahwe Smith wrote:
done. Please test.Anyway, I've already told you that I think that a fallback mechanism should be implemented because not everyone created the tables and indices within MDB2. I just realized that I can check if the index exists with an extra query, and eventually falling back to the original name without suffix, thus avoiding the extra parameter... I hadn't thought about that. If you don't have a better solution, I'll revert my latest changes and implement the "extra query" workaround.
Yeah, it might not have been thought out perfectly. But like I said, users that do not care for this behavior should just disable the option by setting the paramter to %s.that still doesn't cover the (frequent?) case of having indices created sometimes with MDB2 and sometimes manually. The new code should take care of this transparently. Best regards, -- Lorenzo Alberton http://pear.php.net/user/quipo ___________________________________________________________________ Quipo Free Internet - 2 email, 150 Mb di spazio web e molto di più. ADSL, Hardware & Software Online Store