MySQL Forums
Forum List  »  Connector/Arduino

Issue with NULL data in column
Posted by: Tony Olivieri
Date: October 24, 2016 06:59AM

Good Day, using Arduino MySQL Connector ver 1.0.4 on Adafruit ESP8266 HUZAH. Data table set up with 12 columns, several which allow NULL's. Code is based upon the 'Basic Select Example'. When data returned contains NULL data in a column I get unexpected result shown below:

Running SELECT and printing results

SELECT TimeBased, collFrequency, collDuration, A_Time_HR, A_Time_MIN, B_Time_HR, B_Time_MIN, C_Time_HR, C_Time_MIN, CycleSync FROM mqttData.deviceParms WHERE devID = '1234'
1,3600,25,16,0,00û1m!3600,Time_HR, B_Time_MIN, C_Time_HR, C_Time_MIN, CycleSync FROM mqttData.deviceParms WHERE devID = ',234',ÿ?Äÿ?¼ ,?ä ÿ?$ ÿ?d ÿ?¤ ÿ?ä ÿ?$
ÿ?

If I populate null fields, I get data as expected shown below:

Running SELECT and printing results

SELECT TimeBased, collFrequency, collDuration, A_Time_HR, A_Time_MIN, B_Time_HR, B_Time_MIN, C_Time_HR, C_Time_MIN, CycleSync FROM mqttData.deviceParms WHERE devID = '1234'
1,3600,25,16,0,0,0,0,0,1

Is this behavior expected?

Thank you.

Options: ReplyQuote


Subject
Views
Written By
Posted
Issue with NULL data in column
2064
October 24, 2016 06:59AM
1080
October 25, 2016 11:01AM
1041
October 25, 2016 12:19PM
1196
October 25, 2016 12:00PM
1059
October 25, 2016 12:18PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.