Hi there,
I am currently facing an issue with escaping keywords when connecting against a SAP DB. I try to retrieve data from a table that has a column named 'TYPE' (which is of type varchar).
While reading works fine, any update (regardless whether the value of the 'TYPE' attrib has changed) results in an error.
.. Caused by: com.sap.dbtech.jdbc.exceptions.jdbc40.SQLSyntaxErrorException: [-5001] (at 101): Missing privilege:TYPE ..
Adding "" to the column name did not fix the problem. Looking at the SQL statements (the one hibernate creates for the SELECT and the one created for the UPDATE, on both cases 'TYPE' is enclosed in "". I also tried other means of escaping (backticks, square brackets) - but with not success.
Could you give me a hint as to what I might be doing wrong (and how I can fix it)? Changing the attribute's name is unfortunately not an option :-/
Thanks in advance, Christian
|