Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

DROP TYPE is not allowed in SQLScript

$
0
0

Hi, I've been trying for quite some time to create a Hana Stored Procedure that can make use of HANA AFL Libraries.

 

To achieve this I must create and drop types inside the stored procedure. Unfortunately I'm unable to do so.

 

I've reduced the code to the simplest, in a way that it can still show the error:

 

CREATE PROCEDURE CLUSTER_STORE () LANGUAGE SQLSCRIPT AS

BEGIN

     DROP TYPE PAL_T_KM_DATA;

END;

 

Only running those few lines gives the error: sql syntax error: DROP TYPE is not allowed in SQLScript

 

I find this odd, because DROP TYPE and CREATE TYPE are part of the "SAP HANA SQLScript Reference" for SPS 08, which is the revision I'm on.

 

How can I create and drop types in a Hana Procedure if I can't use those statements?

 

If anyone could show a workaround for this, I would be very grateful. Thanks in advance.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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