in reply to Re: Re: OT: Is MD5 ALWAYS 32 character long?
in thread OT: Is MD5 ALWAYS 32 character long?
Judging from what my copy of Oracle does, the output of select 'yes' from dual where 'hello ' = 'hello'; may surprise you.
The SQL-92 standard says that trailing spaces should not affect whether two things are =, and Oracle seems to be in compliance. I think that any other behaviour would be a bug.
Trailing spaces will affect like, decode, and so on though. And, of course, if you are actually fetching back the value and comparing in Perl, then you will definitely see the difference.
So depending on how you intend to do the lookup, trailing spaces might not matter to you.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: OT: Is MD5 ALWAYS 32 character long?
by hardburn (Abbot) on Dec 18, 2003 at 16:13 UTC | |
|
Re: Re: Re: Re: OT: Is MD5 ALWAYS 32 character long?
by sth (Priest) on Dec 20, 2003 at 16:17 UTC | |
by tilly (Archbishop) on Dec 30, 2003 at 19:44 UTC |