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

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?

----- James Sutherland
 EclipseLink ,
Wiki: EclipseLink , TopLink 
Forums: TopLink , EclipseLink 
Book: Java Persistence 
View this message in context:
Sent from the EclipseLink - Users mailing list archive at

Back to the top