Sorry for the delay in responding. I would be interested in helping out with the Informix aspects of DBIC but I have never participated in this type of project before so I am not quite sure what is involved. Is there a web page somewhere that explains all this. what version control system are you using. I am familiar with TLA and Sub-Version but not really with CVS. Perhaps we could take this offline. I am having problems with DBIC, Informix and lvarchars but I suspect this is a known problem with the Informix drivers and 32 bit Linux (Ubuntu in my case). I may need to override s method somewhere.
Also I made a stupid error of misspelling a column name which caused Catalyst do do strange things but there was no error message in the log from DBIC, perhaps it was being supressed somewhere. Any clues? cheers Robert -----Original Message----- From: Matt S Trout [mailto:[EMAIL PROTECTED] Sent: Thu 9/6/2007 4:37 AM To: DBIx::Class user and developer list Subject: Re: [Dbix-class] FW: DBIC and Informix On Wed, Sep 05, 2007 at 12:49:17PM +1200, Robert Carew wrote: > Hi > > Thanks Matt, almost right. The following works: > > __PACKAGE__->mk_group_accessors('simple' => '__last_insert_id'); > > sub _dbh_execute { > my ($self, $type, @args) = @_; > my ($rv, $sth, @rest) = $self->next::method($type, @args); > if ($args[0] eq 'insert') { > $self->__last_insert_id($sth->{ix_sqlerrd}[1]); > } > return (wantarray ? ($rv, $sth, @rest) : $rv); > } > > sub last_insert_id { > shift->__last_insert_id; > } > > using $args[0] rather than $type, $type is DBI::db hash. > > I now need to try and understand what exactly is happening here. Damnit, $type is shifted over one in the _dbh_execute as opposed to _execute, my mistake. Chuck me an htpasswd line and I'll get you a branch so you can commit this and update as required; we're here for any questions but as the guy with the Informix system I'd rather you take point on the commits if you're willing; once you're happy it's working for you we'll get it into a release. Sound good? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director Want a managed development or deployment platform? Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/ _______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]
<<winmail.dat>>
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[EMAIL PROTECTED]
