Skip to Content.
Sympa Menu

freetds - RE: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbin ding fixed types

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbin ding fixed types
  • Date: Mon, 5 May 2003 14:19:37 -0400

> -----Original Message-----
> From: ZIGLIO Frediano [mailto:Frediano.Ziglio AT vodafoneomnitel.it]
> Sent: May 5, 2003 8:48 AM
>
> 0010 73 00 61 00 76 00 65 00 5f 00 70 00 65 00 72 00
> |s.a.v.e. _.p.e.r.|
> 0020 73 00 69 00 73 00 74 00 65 00 6e 00 74 00 64 00
> |s.i.s.t. e.n.t.d.|
> 0030 61 00 74 00 61 00 00 00 05 40 00 64 00 61 00 74
> |a.t.a... @.d.a.t|
> 0040 00 61 00 00 27 04 04 59 54 6f 78 4f 6e 74 7a 4f
> |.a..'..Y ToxOntzO|
>
> 27 04 04... FreeTDS it's trying to use old varchar (limited
> to 255), this is the problem...

And the reason is dbrpcsend:

calls param_info_alloc
calls tds_set_column_type
calls tds_get_cardinal_type

which maps xvarchar -> varchar:

case XSYBNVARCHAR:
case XSYBVARCHAR:
return SYBVARCHAR;

and is really very broken, I think, wtr iconv.

I wonder about this "cardinal type" concept. Is is necessary?

--jkl


The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the
original message. Please note that we do not accept account orders and/or
instructions by e-mail, and therefore will not be responsible for carrying
out such orders and/or instructions.






Archive powered by MHonArc 2.6.24.

Top of Page