Merge pull request #13 from mjhasbach/Improve_string_util_pkg.str_to_bool_str

Improved string_util_pkg.str_to_bool_str
This commit is contained in:
mortenbra 2015-05-14 00:24:07 +02:00
commit cb58d29a9a

View File

@ -716,10 +716,11 @@ begin
Who Date Description Who Date Description
------ ---------- ------------------------------------- ------ ---------- -------------------------------------
MBR 06.01.2009 Created MBR 06.01.2009 Created
MJH 12.05.2015 Leverage string_util_pkg.str_to_bool in order to reduce code redundancy
*/ */
if lower(p_str) in ('y', 'yes', 'true', '1') then if str_to_bool(p_str) then
l_returnvalue := g_yes; l_returnvalue := g_yes;
end if; end if;