Skip to Content.
Sympa Menu

freetds - Re: Troubles with getting datetime field

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Vladimir Maximenko <mvu AT wplus.net>
  • To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Troubles with getting datetime field
  • Date: Mon, 13 May 2002 19:03:28 +0400 (MSD)


Yes! I solve this trouble by adding next string into
TDS_INT tds_convert_datetime(int srctype,unsigned char *src,int
desttype,unsigned
char *dest,TDS_INT destlen)

instead
if (destlen<0) {
memset(dest,' ',30);
} else {
memset(dest,' ',destlen);
}
I wrote
if (destlen<0) {
memset(dest,' ',30);
destlen=30;
} else {
memset(dest,' ',destlen);
}
and it's working!
Am I right?

On Mon, 13 May 2002, Vladimir Maximenko wrote:

> When I try to exec with dblib query with datetime field then I have no
> result. For example, query 'select getdate()' returns ' :' result.
> Is it depends of locale?
> I using FreeBSD 4.5 , tdsver=5.0
> client charset = koi8
> language = russian
> charset = koi8
> With freetds-052 I had't this trouble.
> Please, help me!
>
> --========== The best regards ============--
>
> Vladimir U. Maximenko
>
> mailto: mvu AT wplus.net
> Phone: (8-812) 326-90-20 ext: 812
>
>
> ---
> You are currently subscribed to freetds as: [mvu AT wplus.net]
> To unsubscribe, forward this message to $subst('Email.Unsub')
>





Archive powered by MHonArc 2.6.24.

Top of Page