dbTalk Databases Forums  

Empty string behaviour...

comp.databases.oracle comp.databases.oracle


Discuss Empty string behaviour... in the comp.databases.oracle forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
krofak
 
Posts: n/a

Default Empty string behaviour... - 10-20-2005 , 02:17 PM






Today, I noticed different empty string behaviour then I am
used to.

Before, empty string was treated as null, so statement

vcResult := 'something' || ''

would result in vcResult = ''.

Today, result of this statement was vcResult = 'something'.

Does anybody know, when (which patchset) did this behaviour
with treating empty strings as null change?

--
I find myself fascinating.



Reply With Quote
  #2  
Old   
HansF
 
Posts: n/a

Default Re: Empty string behaviour... - 10-20-2005 , 03:16 PM






On Thu, 20 Oct 2005 21:17:59 +0200, krofak interested us by writing:


Quote:
Does anybody know, when (which patchset) did this behaviour
with treating empty strings as null change?
Seems to work (something+'' = something) in 9.0.1.3.1

It would be somewhat useful for you to tell us the version and patchset
you are on, as well as the OS info.

--
Hans Forbrich
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com
*** I no longer assist with top-posted newsgroup queries ***



Reply With Quote
  #3  
Old   
Frank van Bortel
 
Posts: n/a

Default Re: Empty string behaviour... - 10-21-2005 , 12:14 PM



krofak wrote:
Quote:
Today, I noticed different empty string behaviour then I am
used to.

Before, empty string was treated as null, so statement

vcResult := 'something' || ''

would result in vcResult = ''.

Today, result of this statement was vcResult = 'something'.

Does anybody know, when (which patchset) did this behaviour
with treating empty strings as null change?

--
I find myself fascinating.


Not in Oracle... An empty string in Oracle is NULL.
NULL concatenated to s string is that string (nothing more,
nothing less).

I find you less fascinating; you obviously post in the
wrong group.
--
Regards,
Frank van Bortel

Top-posting is one way to shut me up...


Reply With Quote
  #4  
Old   
krofak
 
Posts: n/a

Default Re: Empty string behaviour... - 10-21-2005 , 12:23 PM




"HansF" <News.Hans (AT) telus (DOT) net> wrote

Quote:
On Thu, 20 Oct 2005 21:17:59 +0200, krofak interested us by writing:


Does anybody know, when (which patchset) did this behaviour
with treating empty strings as null change?

Seems to work (something+'' = something) in 9.0.1.3.1

It would be somewhat useful for you to tell us the version and patchset
you are on, as well as the OS info.
Version: 9.2.0.7. I am not sure about OS, AIX something




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.