Sign In/My Account | View Cart  

advertisement

AddThis Social Bookmark Button

Article:
  Native Compilation, CASE, and Dynamic Bulk Binding
Subject:   Problem with the examples?
Date:   2003-01-09 05:43:50
From:   chrisrimmer
Perhaps I have misunderstood, but the 2 examples of the grade_translator function on p3 of the article do not seem to have a selector. They appear to be examples of the "searched" case statement described lower down p3. I think they should read:


.....
CASE grade_in
WHEN 'A'
THEN retval := 'Excellent';
WHEN 'B'
THEN retval := 'Very Good';
.....


and


.....
CASE grade_in
WHEN 'A' THEN 'Excellent';
WHEN 'B' THEN 'Very Good';
.....