Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: michael.peppler AT bnpparibas.com
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Bug#401911: libct3: empty string converted in space
  • Date: Fri, 8 Dec 2006 11:47:07 +0100

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.





Archive powered by MHonArc 2.6.24.

Top of Page