Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Not quoting NaN float value

I am working on inherited code so I am not super familiar with the setup, but
I have not been able to find anything that would be disabiling binding. That
said it doesn't look like it is. I tried manually setting the
JDBC_BIND_PARAMETERS property to 'true' but it didn't seem to make any
difference. When I actually make the update I use an EntityManager and the
following methods:

manager.getTransaction().begin();
manager.merge(<entity object>);
manager.getTransaction().commit();

There is something about a session override class that is set in the
EntityManager properties that was implemented to prevent double commits from
being sent when the commit() method was called.

This wouldn't likely have anything to do with the caching properties, would
it? We tried to turn most of the caching on the EntityManager off because we
implement our own caching mechanisms.


James Sutherland wrote:
> 
> What database are you using?
> 
> Are you using binding?  Binding is used by default, and should not print
> any parameter values in the SQL.  Have you disabled binding?
> 
> 
> 
> stryon wrote:
>> 
>> I have an eclipselink entity that has a float value that is being mapped
>> to a binary_float in the database. If another source writes a NaN to that
>> field the entity is properly updated and I can read it out. If I then
>> turn around and update a different value it almost works, but not quite.
>> The generated SQL looks something like "height = NAN" when it needs to
>> look like "height = 'NAN'". I am guessing that this is because it is a
>> numeric value that doesn't usually need quotes. Is there a way to get it
>> to quote the NAN so it will work?
>> 
> 
> 

-- 
View this message in context: http://old.nabble.com/Not-quoting-NaN-float-value-tp28560611p28602915.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top