When using RDC I am able to get the Date to update properly to our enterprise database but the Time will not update from the parameter passed.
Locally I am saving the date and time in separate string fields, because of the format difference between Android and DB2. The format on the enterprise database for date is yyyy-mm-dd and for time is 00.00.00. I have them saving locally okay but when I try and pass this into RDC as parameters it won't update the time and gives me a SQLException: Data type mismatch.: 09.00.00. Again I can do it successfully if I have a fixed variable in the built SQL statement but when it uses a parameter it will fail.
Here are my code statements:
RDC - sql.UpdateDeliveryTime=UPDATE SNEFIL.SHPHSTT SET DLVTIME = ? WHERE TKT# = ? AND STATUS = 'S'
Client -
cmd.Name = "UpdateDeliveryTime"
cmd.Parameters = Array As Object("09.00.00", 6008931724)
reqManager.ExecuteCommand(cmd, Null)
Do you have any suggestions on how to correct this? My only other alternative is to use the current time but that would be after the fact.
Locally I am saving the date and time in separate string fields, because of the format difference between Android and DB2. The format on the enterprise database for date is yyyy-mm-dd and for time is 00.00.00. I have them saving locally okay but when I try and pass this into RDC as parameters it won't update the time and gives me a SQLException: Data type mismatch.: 09.00.00. Again I can do it successfully if I have a fixed variable in the built SQL statement but when it uses a parameter it will fail.
Here are my code statements:
RDC - sql.UpdateDeliveryTime=UPDATE SNEFIL.SHPHSTT SET DLVTIME = ? WHERE TKT# = ? AND STATUS = 'S'
Client -
cmd.Name = "UpdateDeliveryTime"
cmd.Parameters = Array As Object("09.00.00", 6008931724)
reqManager.ExecuteCommand(cmd, Null)
Do you have any suggestions on how to correct this? My only other alternative is to use the current time but that would be after the fact.