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 > Sql0583

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-22-09, 08:48
bob13 bob13 is offline
Registered User
 
Join Date: Apr 2007
Posts: 3
Sql0583

Using iSeries v5r4, and soon to be v6r1, I receive SQL0583 "Use of function &1 in &2 not valid" when running an SQL statement that includes the use of a function, defined as NOT DETERMINISTIC, in a join. Because the code is a warning, 583 = SQLSTATE 01685, the SQL statement does run and I verify that the results are correct.

While I can and will rewrite this particular SQL, can anyone tell me what usage results in the SQL code being informational (583 = SQLSTATE 01685) vs. an exception (-583 = SQLSTATE 42845) or how I might find that out?

Also note that when this SQL is used in a view and then SELECT * from view, no warning is presented. Although I don't think I'd interpret that to mean the usage within a view is supported any more than outside of a view. Note that the SQL (run independently from the view) returns the correct results quickly while the view is terribly slow (hours compared to a few minutes).

Thanks.
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