Michael Peppler
Sybase Consulting
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
Sybase on Linux FAQ
Sybperl FAQ
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Stern, Meir" <Meir dot Stern at gs dot com>
Subject: RE: ANNOUNCE: sybperl 2.11
Date: Sep 21 1999 10:04PM

Hi to all,

I am very new to CTlib I am trying to insert a record to a table in a sybase
database what is the best way to do it. This is my code I have written

$isql= "insert into Ticket_Entry values
$dbh = new Sybase::CTlib $user,$passwd,$SERVER,"undef" ;
print "got to here and this is $dbh \n";
$status = $dbh->ct_execute($sql);
        return $status;

This is the error I keep on getting
Open Client Message: Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (1)
NUMBER = (136) Message String: ct_command(LANG): user api layer:
external error: A string of length 0 is not allowed for parameter buf. Open
Client Message: Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (1)
NUMBER = (155) Message String: ct_results(): user api layer: external error:
This routine cannot be called when the command structure is idle.
Content-type:text/html got to here and this is Sybase::CTlib=HASH(0x19711c)
got to the execute command this is 

PLEASE HELP!!!!! Thanks a lot in advance.

Meir Stern
Dept: User Support Engineering
Tel: 71727

-----Original Message-----
From: Michael Peppler []
Sent: Tuesday, September 21, 1999 5:36 PM
To: SybPerl Discussion List
Subject: ANNOUNCE: sybperl 2.11

The uploaded file


has entered CPAN as

  file: $CPAN/authors/id/MEWP/sybperl-2.11.tar.gz
  size: 164518 bytes
   md5: 2441a76c126d9f7265ad9996b94bbca1

This is mostly a bug fix release - making sure that most of the fixes
that I have applied or received since the 2.10_02 release get out.

>From the CHANGES file:

2.11	Various bug fixes.

	nsql() patch from W. Philipp Moore.
	Added EMBED_SYBASE configuration variable.
	dbreadtext() could cause a core dump if the internal call failed.
	Figured out what was needed to get Sybase::DBlib to talk to an 
	MS-SQL 7 dataserver. Sybase::CTlib still does not work with the
	normal, non-patched MS-SQL 7 server.
	Fixed bug 261: Money/Numeric potentially lose precision in

	Fix incorrect dropping of locale structure in CTlib::DESTROY.
	Link pod/sybperl.pod to CTlib/CTlib.pod and DBlib/DBlib.pod so 
	that perldoc Sybase::DBlib now works.


	Added dbbylist().
	Added DBIORDESC() and DBIOWDESC() (contributed by David Worenklein)
	Modifications to nsql() contributed by W. Phillip Moore.
	Added minimal support for languages and charsets to Sybase::CTlib.


Michael Peppler         -||-  Data Migrations Inc.    -||-
Int. Sybase User Group  -||-
Sybase on Linux mailing list: