Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 30 Apr 2001 @ 05:00:58 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: SPL Cursor compilation fails in NT
 
From:   Mats Ginman

Here is an simple example. You have a table :

CREATE TABLE DUMMY
( a INTEGER);

and the SPL :

REPLACE PROCEDURE Test()
BEGIN
  DECLARE x1 INTEGER;
  DECLARE x2 INTEGER;
  DECLARE y INTEGER;

  SET x1 = 0;
  SET x2 = 1;
  FOR k AS c_k CURSOR FOR
      SELECT a FROM dummy WHERE
        ((a > :x1) AND (a < :x2))
  DO
    SET y = 0;
  END FOR;

END;

When you compile this you get error:
5547:  Internal Error during stored procedure creation.

Mats



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016