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

HANA is ignoring WHERE clause in procedure

$
0
0

Hi guys,

 

as the title says HANA is ignoring my WHERE clause in procedure.

 

This is the respective line, where user is a declared VARCHAR(50).

The field "ID" is an integer as well as id which is a parameter of the procedure.

 

SELECT "UserID" INTO user FROM "table" WHERE "ID" = id;

 

The "ID" is unique, so this line should return only one row. But it is returning all rows.

A TOP 1 doesn't help, because than it returns a row with wrong "ID".

 

What am I doing wrong?

 

Note: In Open SQL console it only returns one row! (without INTO user)

 

Thanks and best regards,

Fabian


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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