Skip to Content.
Sympa Menu

freetds - Re: datetime format

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Michael Peppler <mpeppler AT peppler.org>
  • To: "TDS Development Group" <freetds AT franklin.oit.unc.edu>
  • Subject: Re: datetime format
  • Date: Thu, 20 Dec 2001 07:52:13 -0800


Bradley Bell writes:
> On Tue, Dec 18, 2001 at 02:09:44AM -0500, James K. Lowden wrote:
> > Hi Bradley,
> >
> > Bradley Bell wrote:
> > > isql uses db-lib, so maybe this is a limitation of db-lib?
> >
> > What you're seeing in isql is db-lib's default conversion, the result (I
> > assume) of calling dbbind to make a string of a datetime field. A
> > db-lib application can call dbdatecrack() and construct any string it
> > likes (or rely on server-side conversions, of course).
>
> Ah, I think I see now. I think that php's mssql module does this.
> Maybe I should try and make the sybase modules follow the same convention
> (I'm using the sybase_ct, so I think I would need to use cs_dt_info().

Actually that'd be cs_dt_crack() (although I don't know if FreeTDS
implements that yet).

Michael
--
Michael Peppler - Data Migrations Inc. - http://www.mbay.net/~mpeppler
mpeppler AT peppler.org - mpeppler AT mbay.net
International Sybase User Group - http://www.isug.com




Archive powered by MHonArc 2.6.24.

Top of Page