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