![]() | |
#11
| |||
| |||
|
|
All that I was saying was that you need to be careful... Not all database engines treat empty string the same as null. |
|
In MySQL, it would be interesting to dump the data block to see what is actually stored on disk to differentiate ES vs NULL. |
#12
| |||
| |||
|
|
onedbguru<onedbguru (AT) yahoo (DOT) com> wrote: All that I was saying was that you need to be careful... Not all database engines treat empty string the same as null. I don't know any such engine. But of course this would be a major flaw. |
#13
| |||
| |||
|
|
onedbguru <onedbguru (AT) yahoo (DOT) com> wrote: All that I was saying was that you need to be careful... Not all database engines treat empty string the same as null. I don't know any such engine. But of course this would be a major flaw. |
#14
| |||
| |||
|
|
On 2011-03-03 10:34, Axel Schwenke wrote: onedbguru <onedbguru (AT) yahoo (DOT) com> wrote: All that I was saying was that you need to be careful... Not all database engines treat empty string the same as null. I don't know any such engine. But of course this would be a major flaw. You don't have to look that far :-) Not sure if the situation still exists, but it has been this way for long time. Found this link: http://www.techonthenet.com/oracle/q...empty_null.php /Lennart [...] |
#15
| |||
| |||
|
|
On 2011-03-03 10:34, Axel Schwenke wrote: onedbguru<onedbguru (AT) yahoo (DOT) com> wrote: All that I was saying was that you need to be careful... Not all database engines treat empty string the same as null. I don't know any such engine. But of course this would be a major flaw. You don't have to look that far :-) Not sure if the situation still exists, but it has been this way for long time. Found this link: http://www.techonthenet.com/oracle/q...empty_null.php /Lennart [...] |
#16
| |||
| |||
|
|
Hmmm, seems Oracle is seriously broken, according to the SQL91 standard. I wonder if its still true in current versions of Oracle. I know both DB2 and SQL Server have had it correct for a long time (DB2 way back in the 80's). |
#17
| |||
| |||
|
|
Yech. This really needs a definition the the SQL language itself to make it one way or another, or code portability is badly affected.. |
#18
| |||
| |||
|
|
On 3/3/2011 6:56 AM, Lennart Jonsson wrote: On 2011-03-03 10:34, Axel Schwenke wrote: onedbguru<onedbguru (AT) yahoo (DOT) com> wrote: All that I was saying was that you need to be careful... Not all database engines treat empty string the same as null. I don't know any such engine. But of course this would be a major flaw. You don't have to look that far :-) Not sure if the situation still exists, but it has been this way for long time. Found this link: http://www.techonthenet.com/oracle/q...empty_null.php /Lennart [...] Hmmm, seems Oracle is seriously broken, according to the SQL91 standard. I wonder if its still true in current versions of Oracle. |
![]() |
| Thread Tools | |
| Display Modes | |
| |