|
|
sybperl-l Archive
Up Prev Next
From: Michael Peppler <mpeppler at peppler dot org>
Subject: Re: CTlib question
Date: Sep 9 1999 6:35PM
Louis Proyect writes:
> I've got DBlib working pretty good in my environment, but wanted to test
> out CTlib. Have run into a problem using the Sybperl documentation example.
>
> My code:
> #!/usr/local/bin/perl
> use Sybase::CTlib;
>
> $X = Sybase::CTlib->ct_connect("uid", "password");
>
> $X->ct_execute("select count(*) from PAYROLL_CALENDAR");
>
> returns this:
>
> ----
> Open Client Message:
> Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (1) NUMBER = (16)
> Message String: ct_cmd_drop(): user api layer: external error: This routine
> cannot be called while results are pending for a command that has been sent
> to the server.
> ----
No problem.
It's a warning from the DESTROY function when your script exits and
you've not retrieved all the results from your query.
Michael
--
Michael Peppler -||- Data Migrations Inc.
mpeppler@peppler.org -||- http://www.mbay.net/~mpeppler
Int. Sybase User Group -||- http://www.isug.com
Sybase on Linux mailing list: ase-linux-list@isug.com
|