title: Oracle: Error when executing query
body: <p>I have a table <code>SyncTokenLock</code> that has column <code>lockName</code> that is of CLOB type. When I run following query from SQLDeveloper -</p>
  
  <pre><code>select * from SyncTokenLock where 
  lockName='com.vmware.horizon.datastore.impl.ProvisioningStateDataServiceImpl';
  </code></pre>
  
  <p>I get following exception -</p>
  
  <pre><code>ORA-00932: inconsistent datatypes: expected - got CLOB
  00932. 00000 -  "inconsistent datatypes: expected %s got %s"
  </code></pre>
  
  <p>I get similar error when this query is executed through Hibernate (3.6.10) against Oracle 11g. Hibernate throws following exception -</p>
  
  <pre><code>ORA-00932: inconsistent datatypes: expected - got CLOB 
  </code></pre>
  
  <p>Any idea what could the reason be. </p>