Skip Menu |

This queue is for tickets about the DBIx-SQLEngine CPAN distribution.

Report information
The Basics
Id: 7464
Status: resolved
Priority: 0/
Queue: DBIx-SQLEngine

People
Owner: Nobody in particular
Requestors: ron [...] savage.net.au
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.028
Fixed in: (no value)



Subject: Can't use define_named_connections() && new()
When trying to use define_named_connections(), like so: DBIx::SQLEngine -> define_named_connections(test => [@_]); DBIx::SQLEngine -> new('test'); the call to new() ends up at line 46 of DBIx::AnyDBD with this error: Can't coerce array into hash at c:/Perl/site/lib/DBIx/AnyDBD.pm line 46. Line 46 is: my $driver = ucfirst($self->{dbh}->{Driver}->{Name}); If I dump $self->{dbh} just before that line, it shows $self->{dbh} is the array ref passed into define_named_connections(). This is the (symptom of) the problem. Note: I put some prints elsewhere in AnyDBD.pm, and this shows rebless() is not being called from either new() nor connect().
[guest - Tue Aug 24 21:05:08 2004]: Show quoted text
> When trying to use define_named_connections(), like so: > DBIx::SQLEngine -> define_named_connections(test => [@_]); > DBIx::SQLEngine -> new('test'); > the call to new() ends up at line 46 of DBIx::AnyDBD with this error: > Can't coerce array into hash at c:/Perl/site/lib/DBIx/AnyDBD.pm line 46.
Fixed in version 0.029, to be uploaded soon. Thanks for the bug report. -Simon