We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478fc1b commit 3bf1c1aCopy full SHA for 3bf1c1a
DBI.pm
@@ -1391,7 +1391,7 @@ sub _new_sth { # called by DBD::<drivername>::db::prepare)
1391
unless $class =~ /^DBD::(\w+)::(dr|db|st)$/;
1392
my ($driver, $subtype) = ($1, $2);
1393
Carp::croak("invalid method name '$method'")
1394
- unless $method =~ m/^([a-z]+_)\w+$/;
+ unless $method =~ m/^([a-z][a-z0-9]*_)\w+$/;
1395
my $prefix = $1;
1396
my $reg_info = $dbd_prefix_registry->{$prefix};
1397
Carp::carp("method name prefix '$prefix' is not associated with a registered driver") unless $reg_info;
0 commit comments