freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types
- From: Frediano Ziglio <freddyz77 AT tin.it>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types
- Date: Tue, 06 May 2003 12:09:49 -0000
Il mar, 2003-05-06 alle 13:20, Arnar Birgisson ha scritto:
> Hello there..
>
> > 1. Copy tds_set_column_type to a new function, say,
> > tds_set_param_type
> > 2. Remove tds_get_cardinal_type() from tds_set_param_type (just use
> > 'type')
> > 3. Modify param_info_alloc to call tds_set_param_type()
>
> I did exactly this. After making this small change to the client (in
> this case php):
> -#define SQLVARCHAR SYBVARCHAR
> +#define SQLVARCHAR XSYBVARCHAR
>
This patch lead to portability problem...
> this worked perfectly. I haven't tried it extensively, but I ran a
> procedure which silently accepted a varchar field with well over 400
> characters.
>
> The patch is attached.
>
James, do you agree with this patch?
IMHO is not so good. Or we remove the cardinal type from
tds_set_column_type (and perhaps column_type from TDSCOLINFO) and change
all other code to handle all types or we use tds_set_column_type for
params...
freddy77
-
RE: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbinding fixed types,
ZIGLIO Frediano, 05/05/2003
-
RE: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbindingfixed types,
Arnar Birgisson, 05/05/2003
-
Re: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbindingfixed types,
James K. Lowden, 05/05/2003
-
RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types,
Arnar Birgisson, 05/06/2003
-
RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types,
Frediano Ziglio, 05/06/2003
- RE: [freetds] [freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types, Arnar Birgisson, 05/06/2003
-
RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types,
Frediano Ziglio, 05/06/2003
-
RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types,
Arnar Birgisson, 05/06/2003
-
Re: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbindingfixed types,
James K. Lowden, 05/05/2003
-
RE: [freetds] [ freetds-Patches-731907 ]Choosingdatalengthwhenbindingfixed types,
Arnar Birgisson, 05/05/2003
Archive powered by MHonArc 2.6.24.