[freetds] Bug#401911: libct3: empty string converted in space

michael.peppler at bnpparibas.com michael.peppler at bnpparibas.com
Fri Dec 8 05:47:07 EST 2006


You are absolutely correct.

A zero length string is assimilated to a NULL value. A non-null varchar() 
will always be at least 1 char in length.

Michael




Internet
vorlon at dodds.net@lists.ibiblio.org - 08.12.2006 11:40
 
Please respond to freetds at lists.ibiblio.org
Sent by:        freetds-bounces at lists.ibiblio.org
To:     freetds
cc:     401911
Subject:        Re: [freetds] Bug#401911: libct3: empty string converted 
in space


Sigh, re-forwarding to get through the list filters...

On Fri, Dec 08, 2006 at 02:35:15AM -0800, Steve Langasek wrote:
> Marco,
>
> On Wed, Dec 06, 2006 at 08:38:39PM +0100, Marco Lanzotti wrote:
> > Package: libct3
> > Version: 0.63-3
> > Severity: normal
>
> > Using sqsh or php5 to insert or update 0 length string or multi spaces
> > strings (example '      '), FreeTDS always insert a one space string.
>
> I'm pretty sure that this is a consequence of how the server handles
> trailing spaces in varchar fields, not a bug in freetds.
>
> Cc:ing upstream for a sanity check on this before closing the bug.

--
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon at debian.org                                   http://www.debian.org/
_______________________________________________
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds


This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.



More information about the FreeTDS mailing list