Re: DBD::Sybase returns blank character instead of empty string
- From: rjhb@xxxxxxx (Rainer J. H. Brandt)
- Date: Wed, 27 Apr 2005 17:22:32 +0200 (CEST)
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
.
- References:
- DBD::Sybase returns blank character instead of empty string
- From: Rainer J. H. Brandt
- DBD::Sybase returns blank character instead of empty string
- Prev by Date: Re: cPanel / DBI / mySQL / Exim issue
- Next by Date: RE: Efficient select/insert
- Previous by thread: DBD::Sybase returns blank character instead of empty string
- Next by thread: Re: DBD::Sybase returns blank character instead of empty string
- Index(es):
Relevant Pages
|