On Mon, 7 May 2012 17:00:34 +0300, "Philip Stoev" <pst...@nuodb.com> wrote:
> Hello, > > I am building a new XS-based DBD driver, using the best practices of > cargo-cult programming as recommended in the manual. > > However, on every connect() attempt, I get the following unsilencable > warnings: > > Can't set DBI::db=HASH(0x20e7098)->{State}: unrecognised attribute name or > invalid value at /usr/lib64/perl5/vendor_perl/DBI.pm line 720. > Can't set DBI::db=HASH(0x20e7098)->{Errstr}: unrecognised attribute name or > invalid value at /usr/lib64/perl5/vendor_perl/DBI.pm line 720. > Can't set DBI::db=HASH(0x20e7098)->{Driver}: unrecognised attribute name or > invalid value at /usr/lib64/perl5/vendor_perl/DBI.pm line 720. > Can't set DBI::db=HASH(0x20e7098)->{Err}: unrecognised attribute name or > invalid value at /usr/lib64/perl5/vendor_perl/DBI.pm line 720. > > How can I make them go away? Err and Errstr both work in my driver, so it > seems to me I am handling them correctly. > > Thank you! Did you look at other DBD XS drivers? When writing DBD::Unify, I found several XS drivers very informative and I stole^Wlooked at their code very carefully to see how I were to do it. DBD::Oracle might be the most complete, but DBD::Pg has grown a lot too since I started in DBD XS world. It might also help to actually share the code yoiu suspect: the code you have written to implement connect (). We could comment on that. -- H.Merijn Brand http://tux.nl Perl Monger http://amsterdam.pm.org/ using perl5.00307 .. 5.14 porting perl5 on HP-UX, AIX, and openSUSE http://mirrors.develooper.com/hpux/ http://www.test-smoke.org/ http://qa.perl.org http://www.goldmark.org/jeff/stupid-disclaimers/