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: Bernd dot Brinkmann at Bertelsmann dot DE
Subject: Re: DateTime Values
Date: Nov 27 1997 3:53PM

Michael Peppler wrote:

>A patch would be welcome :-)
>
>Michael

O.K. - here it is (just a description for a manual patch):

In the directory CTlib, you find the file CTlib.xs. Then you have to
locate the function initialize() - in my Version 2.08.51 of Sybperl this
is line 1585. In this function several routines are called and after the
following:

    if((retcode = ct_config(context, CS_SET, CS_NETIO, &netio_type,
                            CS_UNUSED, NULL)) != CS_SUCCEED)
        croak("Sybase::CTlib initialize: ct_config(netio) failed");

you just have to insert this:

    if((retcode = cs_dt_info(context, CS_SET, NULL, CS_DT_CONVFMT,
                            CS_UNUSED, "CS_DATES_LONG", 255, NULL)) !=
CS_SUCCEED)
        croak("Sybase::CTlib initialize: ct_dt_info() failed");

and after recompiling and installation, you'll get the whole datestring
(on those locations, which did'nt supply this by default). Maybe this
will go into Sybperl 2.09 ?!

Bernd