From c4f1d2027dcd9b64fd6ce7521a333a0608a7088c Mon Sep 17 00:00:00 2001 From: mullenm Date: Tue, 20 Nov 2007 15:04:27 +0000 Subject: [PATCH] Updated get_user_id to use an upper of the username passed in as APEX passes the uppercase version and this was returning nothing. git-svn-id: http://locode01.ad.dom/svn/WEBMIP/trunk@2870 248e525c-4dfb-0310-94bc-949c084e9493 --- Modules/mip_parties.pck | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/mip_parties.pck b/Modules/mip_parties.pck index 55621e9..01b47df 100644 --- a/Modules/mip_parties.pck +++ b/Modules/mip_parties.pck @@ -44,9 +44,12 @@ CREATE OR REPLACE PACKAGE BODY mip_parties AS - gets the primary key for a supplied username. This function searches the parties - table for a matching username, if the name is found the users id is returned. %param p_username - the name of the user you want to get the id for. + + UPDATES + 20-Nov-2007 - MM- Upper ing the username check as APEX passes an uppered :APP_USER */ FUNCTION get_user_id(p_username IN VARCHAR2) return NUMBER as userid NUMBER; - cursor c_userid is select id from parties where USERNAME = p_username; + cursor c_userid is select id from parties where upper(USERNAME) = upper(p_username); begin open c_userid; fetch c_userid into userid;