Patch to allow dashes in table names

Patch to allow dashes in table names

am 29.08.2006 17:56:07 von Peter Rosenthal

------=_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
@@ -297,7 +297,7 @@
sub column_info {
my ($dbh, $catalog, $schema, $table, $column) = @_;
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--