Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Inserting Floats or Doubles into a MySQL Table

I'm trying to take a numerical value from an xml file and put it into a MySQL table. When I try and set the schemas (both for retrieving the value from the xml file and for putting it into the table) to use Float or Double values i get the error message:
Exception in component tMysqlOutput_1
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Display width out of range for column 'Price' (max = 255)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
... etc.
and the price is definitely not that large a number.
Any ideas on what i'm doing wrong?
Labels (4)
4 Replies
Anonymous
Not applicable
Author

I'm having the same problem. I'm getting the same error when trying to read a price value from an XML file and insert it into MySQL as a float or double. Anyone know what's going on here?
Anonymous
Not applicable
Author

Just define the length of your float (or double) by editing your MySQL Output Schema.
Anonymous
Not applicable
Author

That worked - thanks for the tip.
_AnonymousUser
Specialist III
Specialist III

Damien, please, how to edit the length of the float ? didn't find where this parameter is...