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: Michael Peppler <mpeppler at MBAY dot NET>
Subject: Re: Turning on DateTime use in sybperl 2.09
Date: Feb 12 1998 3:25PM

Guillaume Mallet wrote:

> 
> In Michael Peppler's documentation for sybperl-2.09, it says that special
> handling of DateTime values "is turned off by default for performance
> reasons. You can turn it on per datatype and dbh, or via the module
> attribute hash (%Sybase::DBlib::Att and %Sybase::CTlib::Att)".

IN your script you can say:

$Sybase::DBlib::Att{UseDateTime} = TRUE; # or 1

You can also turn it on for a particular database handle:

$dbh = new Sybase::DBlib user, pwd, server;
$dbh->{UseDateTime} = TRUE;

Michael
-- 
Michael Peppler       -||-  Data Migrations Inc.
mpeppler@datamig.com  -||-  http://www.mbay.net/~mpeppler