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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user