Patch to allow dashes in table names

------=_Part_14868_8103576.1156866967079
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The current mysql.pm does not allow you to use dashes in table names:

--- mysql.pm.old 2006-08-29 11:46:27.000000000 -0400
+++ mysql.pm 2006-08-29 11:47:34.000000000 -0400
[at] [at] -297,7 +297,7 [at] [at]
sub column_info {
my ($dbh, $catalog, $schema, $table, $column) = [at] _;
return $dbh->set_err(1, "column_info doesn't support table wildcard")
- if $table !~ /^\w+$/;
+ if $table !~ /^[-\w]+$/;
return $dbh->set_err(1, "column_info doesn't support column selection")
if $column ne "%";

------=_Part_14868_8103576.1156866967079--
Peter Rosenthal [ Di, 29 August 2006 17:56 ] [ ID #1448265 ]
Datenbanken » gmane.comp.db.mysql.perl » Patch to allow dashes in table names

Vorheriges Thema: DBD/DBI datetime insert
Nächstes Thema: Suddenly $dbh->{AutoCommit}=0 => 'Transactions not supported bydatabase'