-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: esacaping keywords with SAP DB
PostPosted: Thu Jun 20, 2013 2:38 am 
Newbie

Joined: Thu Jun 20, 2013 2:20 am
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.