freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] RE: turn off padding of CHAR with spaces?
- From: "Lowden, James K" <LowdenJK AT bernstein.com>
- To: 'FreeTDS Development Group' <freetds AT lists.ibiblio.org>, Georg Hitsch <g.hitsch AT mitacs.com>
- Cc:
- Subject: RE: [freetds] RE: turn off padding of CHAR with spaces?
- Date: Mon, 11 Aug 2003 13:09:55 -0400
> From: ZIGLIO Frediano [mailto:Frediano.Ziglio AT vodafone.com]
> Sent: August 11, 2003 9:58 AM
> >
> > Have you found a solution for
> > "turn off padding of CHAR with spaces"
> > (https://lists.ibiblio.org/sympa/arc/freetds/2002q3/009012.html
>
> The solution depend from type and from library. dblib return CHAR
> padded. This is the correct behavior. To remove spaces use RTRIM in
> query or VARCHAR type.
See the documentation for dbbind(). The bindtype NTBSTRINGBIND produces an
unpadded, null-terminated string. I don't know what PHP uses internally,
though.
--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.
-
[freetds] RE: turn off padding of CHAR with spaces?,
ZIGLIO Frediano, 08/11/2003
- <Possible follow-up(s)>
- RE: [freetds] RE: turn off padding of CHAR with spaces?, Lowden, James K, 08/11/2003
Archive powered by MHonArc 2.6.24.