Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Validation error in HANA project explorer editor!!!

$
0
0

When I tried to activate the following procedure snippet in project explorer view of HANA Studio,I got an error saying you cannot use same variable name multiple times although the variables with same name were in different blocks(scope).

 

CREATE PROCEDURE nested_block(OUT val INT)

LANGUAGE SQLSCRIPT READS SQL DATA AS

BEGIN

     DECLARE a INT := 1;

     BEGIN

          DECLARE a INT := 2;

          BEGIN

               a := 3;

          END;

           val := a;

     END;

END;

 

However i was able to create the same thing using SQL Console of SAP HANA Systems view(As a catalog object).

Note that both were in Development perspective.

 

Could someone please explain this behavior? Thanks in Advance


Viewing all articles
Browse latest Browse all 4343

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>