On 08/05/12 09:33, Martin J. Evans wrote:
On 07/05/12 13:59, Philip Stoev 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!
Philip Stoev
Some code is trying to SET State/Errstr/Driver/Err on a connection handle. This
is DBI.xs, dbih_set_attr_k.
perl -le 'use DBI;my $h = DBI-connect(dbi:ODBC:xxx,xxx,xxx); $h-{State}
= 1;'
Can't set DBI::db=HASH(0x9f77ea0)-{State}: unrecognised attribute name or
invalid value at -e line 1.
Martin
Sorry, I did not see you'd already resolved this. For some reason I got your
post twice.
Martin
--
Martin J. Evans
Easysoft Limited
http://www.easysoft.com