Re: DBD::Sybase returns blank character instead of empty string



Hello again,

I apologize for my previous email, which was both partially wrong
and also premature -- rtfm would have helped.

I had written:

> Notice: The Database really has an empty string, not a NULL value or any
> other weird thing.

And in fact, Sybase had really stored a string consisting of one blank
(space) character. Reading Sybase's ASE Reference (for ASE 12.5)
revealed that this is intentional:

They simply refuse to store empty strings and just prefer to convert
them to strings of one blank character. I must say that I seriously
consider discontinuing the use of their products -- or is someone going to
tell me that this weird behaviour conforms to the SQL standard?

What's more confusing:

select ... where Value = ""

and

select ... where Value = " "

both return the same set of identical rows (where ... is identical,
of course).

Sorry again,
Rainer
----------------------------------------------------------------------
Rainer J. H. Brandt email: rjhb@xxxxxxx
Brandt & Brandt Computer GmbH web: www.bb-c.de
Kamberg 111 phone: +49 2448 919126
D 53940 Hellenthal mobile: +49 172 9593205


.



Relevant Pages

  • Re: Finding the common textual denominator
    ... strip the last character off s1 and try ... At some point, you'll end up either with the empty string, ... > Regards, Bruno. ...
    (Debian-User)
  • Re: a string problem
    ... I had a look in the sre module, ... before and after a word (word being an alphanumeric character that can ... Matches the empty string, but only at the beginning or end of a word. ... word is defined as a sequence of alphanumeric or underscore characters, ...
    (comp.lang.python)
  • Re: Bug in docs or in Tk text widget?
    ... I just stumbled over a problem with Tks text widget. ... empty and the man-page says it should return the empty string: ... index2 will not be returned). ... the single character at index1 is returned. ...
    (comp.lang.tcl)
  • Re: select LEFT
    ... Thanks for correcting my stupidity!!! ... > single expression as an input. ... > If you want to get an empty string: ... character. ...
    (microsoft.public.sqlserver.programming)
  • Re: gethostname() crashes your program
    ... function getenvreturns an empty string. ... your shell is completely broken. ... "hostname" is absent, gethostnamecrashes the program. ... In C an empty string has one character, ...
    (comp.os.os2.programmer.misc)