Patch to allow dashes in table names

"Peter Rosenthal" <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
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 "%";
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.