If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > calling a Function

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-01-05, 15:57
allian allian is offline
Registered User
 
Join Date: Dec 2004
Posts: 54
calling a Function

For example I have two users A,B and a function a.func1().

Is any way there to call func1() from user B without mentioning the schema a.func1() ?
Reply With Quote
  #2 (permalink)  
Old 02-02-05, 00:16
jacampbell jacampbell is offline
Registered User
 
Join Date: Jan 2005
Posts: 191
Well no, at some point DB2 needs the "a" to find the real function. But I presume what you're trying to do is enable B to invoke the function without having to code a.func1. Some ways you could try:
- create function b.func1 source a.func1
- select current path concat ',A' into :somewhere from sysibm.sysdummy1
set current path = :somewhere

James Campbell
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On