Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2011
    Posts
    7

    Unanswered: Check if current path has been set

    Hi,

    In my procedure I set the current function path for Spatial extender:
    SET CURRENT FUNCTION PATH = CURRENT FUNCTION PATH, db2gse;

    It works well the first time however, when I run the procedure the next time I get the error:

    The schema name "DB2GSE" appears more than once in the set "CURRENT PATH" statement. SQLSTATE=42732

    How can I check before assignment if the path has already been set?
    Thanks,

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    Something like this, may be?
    Code:
    if locate('DB2GSE', current path) = 0 then ...
    ---
    "It does not work" is not a valid problem statement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •