freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types
- From: "Arnar Birgisson" <arnarb AT oddi.is>
- To: "'FreeTDS Development Group'" <freetds AT lists.ibiblio.org>
- Subject: RE: [freetds] [ freetds-Patches-731907]Choosingdatalengthwhenbindingfixed types
- Date: Tue, 6 May 2003 11:20:41 -0000
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 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.
Arnar
ps. I'm having some problems with cvs.freetds.sourceforge.net, every
other attempt to connect fails with "cvs: recv() from server
cvs.freetds.sourceforge.net: EOF", am I the only one experiencing this
(this is through pserver)?
Attachment:
param_type.patch
Description: Binary data
-
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.