Re: DBD Driver problem with AutoCommit for Infomix
Posted in 1998
Warren Hughes wrote: > > I am currently using a Sparc Ultra running Solaris 2.6 and Informix Dynamic > Server 7.30.UC3 and am experiencing problems with the auto-commit feature of > DBD Revision: 1.9 Date: 1998/02/13 14:27:16 package over a shared memory > connection with DBI v 1.86 1998/02/13 14:27:16 timbo Exp Neither quoted version number is relevant to either me or Tim Bunce, especially since you don't quote the file from which you extracted the version number. We probably could deduce which file you are looking in (but I'm not going to do so), but the software does identify which version of DBI and DBD::Informix you are using by embedding it in the name of the directory where the software is extracted, as well as in numerous other places. So, please can you report version numbers sensibly in future. That said, you're probably using DBD::Informix 0.58; I'd guess the DBI is around version 0.90. If I'm right, you need to upgrade to DBD::Informix 0.60 and DBI 1.02. > The problem persists when using perl5.00551 and the older perl5.00404. The > error i receive is "DBD driver has not implemented the AutoCommit attribute > at /export/home4/projects/elections/swassembly/join_election.pl line 13." > This line is marked with a "->" > > my $dbh = DBI->connect("dbi:Informix:dbserver_name" > 'username', > 'password') || die "Could not connect to database: > $DBI::errstr"; > -> $dbh->{AutoCommit} = 0; I forget exactly which version of DBD::Informix first supported AutoCommit, but it has been there for the better part of two years. Certainly, it has been part of DBD::Informix since 0.55; I'm pretty sure it was present in 0.26 (which preceded 0.50). Also, take a look at the tests; I'm pretty sure that some of those set AutoCommit. I suppose it is conceivable that they don't; I don't have the source available as I type. But I'd be surprised. > $dbh->{ChopBlanks} = 1; > > I have looked at various news groups and mailing lists and found > nothing that suggest a way out of this problem, execpt a possible > bug with the gcc compiler v2.7.2.1. As we using gcc 2.8.1. this > shouldn't be a problem. Since I've not seen the problem, and not had it reported, it doesn't surprise me that you can't find a solution. I use Solaris 2.6, GCC 2.8.1 and ESQL/C 7.24 or 9.16 against 7.30.UC1 IDS without problems. I'm using DBD::Informix 0.60 and DBI 1.02, of course, and Perl 5.00502 or 5.00404. > The software woks closely with the CGI package and runs from > Apache Server version: Apache/1.3.2 (Unix) using mod-perl. Well, I've not tried setting AutoCommit from my mod_perl enabled version of Apache 1.3.3, but everything else seems to be working. > Any help would be most apreciated. > > Warren. Beyond telling you the latest versions and affirming that I would expect the code to work, I don't know that I've been very much help. A succinct, complete test case is always appreciated (as are accurate version numbers). -- Jonathan Leffler (jleffler@informix.com, jleffler@earthlink.net) Guardian of DBD::Informix v0.60 -- see http://www.perl.com/CPAN #include <disclaimer.h>