0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【SAP HANA SQLScript】SAP DBTech JDBC: [7]: feature not supported: parameter is not allowed without alias

Posted at

エラー

Could not execute 'CREATE OR REPLACE PROCEDURE foo'
SAP DBTech JDBC: [7]: feature not supported: parameter is not allowed without alias: ****: line 144 col 7 (at pos 3410)

解決策

ストアドプロシージャの引数をテーブルに突っ込むときに、AS で別名をつける。


CREATE PROCEDURE foo(
    IN aaa INT
) AS BEGIN

# NG
data =
    SELECT :aaa -- エイリアスがついてないのでエラー(らしい)
    FROM dummy;

# OK
data = 
    SELECT :aaa AS "ALIAS" 
    FROM dummy;

HANAScript特有なのか、ストアドプロシージャ共通の仕様なのかはわかりません。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?