[Dbix-class] Setting additional attributes in bind_param
John Napiorkowski
jjn1056 at yahoo.com
Thu Nov 16 18:05:36 GMT 2006
--- Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> On 15 Nov 2006, at 23:21, John Napiorkowski wrote:
>
> >
> > Well, I'm pretty well along with this patch. One
> > thing I'm stuck on is trying to figure out how to
> get
> > at the column_info from inside the
> > DBIx::Class::Storage::DBI package. Anyone have a
> > suggestion? If I can get this to work it would be
> > great for those of us that need to specify bind
> > attributes for inserting/selected/updating
> database
> > with those "special' column types, like Oracle
> BLOB,
> > or Postgres's BYTEA.
> >
> > Thanks for any thoughts on this. I hope I can
> make
> > this work, DBIx::Class has really given me a lot
> and I
> > hope I can finally returnt the favor :)
>
> Doesn't the $source object already get passed in?
It could be that I just don't understand how this
works, but when I Dump @_ for _execute, insert and
update in DBIx::Class::Storage::DBI I just get a
cursor object and some hashrefs for the columns and
conditions. So it seems like if I want to pass
column_info stuff I need to add that to all the places
in DBIx::Class::Row and DBIx::Class::ResultSet that
calls storage->insert|update. Luckily that seems like
just a few places.
If I can just get that column info into _execute I can
actually get this to work :) Your thoughts
appreciated
--john
____________________________________________________________________________________
Sponsored Link
Rates near historic lows -
$200,000 mortgage for $660/ month -
http://yahoo.ratemarketplace.com
More information about the Dbix-class
mailing list