Click here to Skip to main content
15,908,842 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Thought of the day Pin
Chris Maunder21-Dec-15 8:40
cofounderChris Maunder21-Dec-15 8:40 
GeneralRe: Thought of the day Pin
OriginalGriff21-Dec-15 9:15
mveOriginalGriff21-Dec-15 9:15 
GeneralRe: Thought of the day Pin
MarcusCole683324-Dec-15 4:36
professionalMarcusCole683324-Dec-15 4:36 
GeneralDark side Pin
Corporal Agarn21-Dec-15 4:29
professionalCorporal Agarn21-Dec-15 4:29 
GeneralRe: Dark side Pin
Cornelius Henning21-Dec-15 10:10
professionalCornelius Henning21-Dec-15 10:10 
GeneralRe: Dark side Pin
Dave Calkins26-Dec-15 9:03
Dave Calkins26-Dec-15 9:03 
RantOracle, Oracle... Pin
Sander Rossel21-Dec-15 3:34
professionalSander Rossel21-Dec-15 3:34 
GeneralRe: Oracle, Oracle... Pin
Marc Clifton21-Dec-15 3:48
mvaMarc Clifton21-Dec-15 3:48 
According to SO:


Back in the olden days before there was a SQL standard, Oracle made the design decision that empty strings in VARCHAR/VARCHAR2 columns were NULL and that there was only one sense of NULL (there are relational theorists that would differentiate between data that has never been prompted for, data where the answer exists but is not known by the user, data where there is no answer, etc. all of which constitute some sense of NULL).

By the time that the SQL standard came around and agreed that NULL and the empty string were distinct entities, there were already Oracle users that had code that assumed the two were equivalent. So Oracle was basically left with the options of breaking existing code, violating the SQL standard, or introducing some sort of initialization parameter that would change the functionality of potentially large number of queries. Violating the SQL standard (IMHO) was the least disruptive of these three options.


But even worse:


Oracle has left open the possibility that the VARCHAR data type would change in a future release to adhere to the SQL standard (which is why everyone uses VARCHAR2 in Oracle since that data type's behavior is guaranteed to remain the same going forward).


So you're dealing with a legacy to support ancient implementations, a possible future where this will be changed, and no way to set a global configuration to change the behavior now for compliant implementations.

Yeah, that is a real suck.

Marc

GeneralRe: Oracle, Oracle... Pin
Sander Rossel21-Dec-15 3:58
professionalSander Rossel21-Dec-15 3:58 
GeneralRe: Oracle, Oracle... Pin
TheGreatAndPowerfulOz21-Dec-15 6:23
TheGreatAndPowerfulOz21-Dec-15 6:23 
GeneralRe: Oracle, Oracle... Pin
Slacker00721-Dec-15 4:02
professionalSlacker00721-Dec-15 4:02 
GeneralRe: Oracle, Oracle... PinPopular
W Balboos, GHB21-Dec-15 4:07
W Balboos, GHB21-Dec-15 4:07 
GeneralRe: Oracle, Oracle... Pin
Sander Rossel21-Dec-15 5:26
professionalSander Rossel21-Dec-15 5:26 
GeneralRe: Oracle, Oracle... Pin
W Balboos, GHB21-Dec-15 5:35
W Balboos, GHB21-Dec-15 5:35 
JokeRe: Oracle, Oracle... Pin
Jan Steyn23-Dec-15 21:10
Jan Steyn23-Dec-15 21:10 
GeneralRe: Oracle, Oracle... Pin
W Balboos, GHB24-Dec-15 0:26
W Balboos, GHB24-Dec-15 0:26 
AnswerRe: Oracle, Oracle... Pin
megaadam21-Dec-15 4:29
professionalmegaadam21-Dec-15 4:29 
GeneralRe: Oracle, Oracle... Pin
kmoorevs21-Dec-15 4:35
kmoorevs21-Dec-15 4:35 
GeneralRe: Oracle, Oracle... Pin
Sander Rossel21-Dec-15 5:27
professionalSander Rossel21-Dec-15 5:27 
GeneralRe: Oracle, Oracle... Pin
Jörgen Andersson21-Dec-15 5:35
professionalJörgen Andersson21-Dec-15 5:35 
JokeRe: Oracle, Oracle... Pin
Sander Rossel21-Dec-15 8:51
professionalSander Rossel21-Dec-15 8:51 
GeneralRecently discovered marzipan stollen... Pin
den2k8820-Dec-15 23:42
professionalden2k8820-Dec-15 23:42 
GeneralRe: Recently discovered marzipan stollen... Pin
CDP180220-Dec-15 23:49
CDP180220-Dec-15 23:49 
GeneralRe: Recently discovered marzipan stollen... Pin
Keith Barrow21-Dec-15 1:46
professionalKeith Barrow21-Dec-15 1:46 
GeneralRe: Recently discovered marzipan stollen... Pin
CDP180221-Dec-15 1:56
CDP180221-Dec-15 1:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.