PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Wechsler, Steven" <Steven dot Wechsler at mtvstaff dot com>
Subject: Can't turn off autocommit
Date: May 10 2005 6:49PM

OK, this is more a DBI than a Sybperl question, but anyway, here's my code:

$dbh = DBI->connect("dbi:Sybase:server=$server", $login, $password,
                    {PrintError => 1, AutoCommit => 1});
if (! $dbh) {
    die "Can't connect to $server: $DBI::errstr\n";
}

# do some stuff
.
.
.
$dbh->(AutoCommit) = 0;

When the script hits that autocommit line, I get the message 
"Not a subroutine reference at myscript.pl line 175."

Any ideas?

Thanks,

Steve