Archives of the TeradataForum
Message Posted: Mon, 30 Apr 2001 @ 05:00:58 GMT
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
|