Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

MySQL allowNanAndInf Flag ConnectorJ (no replies)

$
0
0
I have a MySQL InnoDB table which contains a column of type 'double'. I am trying to use ConnectorJ to insert a row with the java value of 'NaN' into the column of type 'double'. I have added the allowNanAndInf=true flag to my JDBC connection string, but MySQL continues to throw an exception that 'NaN' is invalid.

Does anyone have any suggestions about what else might be causing the table to reject the 'NaN' value? Is there a better data type for my column? (it needs to support decimals - such as 3.2323)

Thanks.

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>