[Dbix-class] Pg bytea does not work

Rolf Schaufelberger rs at plusw.de
Mon Oct 15 22:05:31 GMT 2007


Hi, 

after some more debugging and  writing another test program doing a proper 
connect ( MY::DBClass->clone->connection (@..)  )
I found the following behaviour:

The create statement is the first access to the database. 
Now in C:::D::Storage::DBI   $self is stil 'C:::D::Storage::DBI'
it then calls  $self->source_bind_attributes which then obiously does the 
wrong thing. Then it calls _execute, and somewhat later it calls 
_populate_dbh . Now my storage class is ...::Pg, but it's too late for 
bind_attributes. 

If I modify my program and sone kind of select first, it works fine!
So , how can I force my app to _populate_dbh earlier without doing a placebo 
select ?

-- 
Regards
Rolf Schaufelberger




More information about the DBIx-Class mailing list