title: Why am I getting ORA-06592: CASE not found while executing CASE statement in PL/SQL?
body: <p>I have the following CASE in PL/SQL</p>
  
  <pre><code>        CASE
              WHEN v_line_item.custom_segment = 'CND1' THEN
                  v_current_col := v_col_lcy_tps;
              WHEN v_line_item.custom_segment = 'CND2' THEN
                  v_current_col := v_col_lcy_ib;
              WHEN v_line_item.custom_segment = 'CND3' THEN
                  v_current_col := v_col_lcy_gm;
              WHEN v_line_item.custom_segment = 'CND4' THEN
                  v_current_col := v_col_lcy_pb;
              WHEN v_line_item.custom_segment = 'CND5' THEN
                  v_current_col := v_col_lcy_bb;
          END CASE;
  </code></pre>
  
  <p>The code compiles fine, but when I execute to stored proc I get the following error:</p>
  
  <blockquote>
    <p>ORA-06592: CASE not found while executing CASE statement</p>
  </blockquote>
  
  <p>So when I remove the CASE; the stored proc won't compile. The only Examples I can get my hands on, uses the CASE in a select statement, I don't want to use it in select statement, I want to set my variable without having a bunch of IF THEN ELSE statements.</p>