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: kimball at stsci dot edu (Timothy Kimball)
Subject: Re: ANNOUNCE: DBD::Sybase 0.03
Date: Sep 30 1997 7:23PM

Solaris 2.5, Perl 5.004_01, DBD::Sybase 0.03, DBI 0.90.

Queries run OK (so far :), but I do get this error:

  disconnect(DBI::db=HASH(0x17fd04)) invalidates -1 active cursor(s) at simple_test line 16.

when I run this script:

  #!/faxafloi/data1/bin/perl
 
  use DBI;
 
  @ARGV == 3 or die "Usage: $0 server username password\n";
  $ENV{DBI_DRIVER} = 'Sybase';
  $query = "SELECT * FROM dads_archived_data";
 
  $dbi = DBI->connect(@ARGV) or die $DBI::errsrt;
 
  $q = $dbi->prepare($query);
  $q->execute;
  while ($f = $q->fetchrow_hashref) { }
  $q->finish;
 
  $dbi->disconnect;

--
Tim Kimball  Data Systems Division  kimball@stsci.edu  410-338-4417
Space Telescope Science Institute    http://www.stsci.edu/~kimball/
3700 San Martin Drive                http://archive.stsci.edu/
Baltimore MD 21218 USA               http://faxafloi.stsci.edu:4547/