I am running the following code but when I check the database, database shows old values. LME_Price table has only one row which shows the latest data.
Sub JobDone (job As HttpJob)
Dim Query As String
Log("JobName = " & job.JobName & ", Success = " & job.Success)
If job.Success = True Then
Select job.JobName
Case "Job1"
LMEDate = sf.Mid(job.GetString,1,4)&sf.Mid(job.GetString,6,2)&sf.Mid(job.GetString,9,2)
LME_Rate = sf.Mid(job.GetString,12,6)
metxtLMEPrice.Text = LME_Rate
Query = "Update LME_Price set LastDate = ?, value = ?"
Sql1.ExecNonQuery2(Query, Array As String(LMEDate,LME_Rate))
Log("Result: " &Sql1.ExecQuery("Select value from LME_Price"))
Case "Job2"
INR_ExchRate = sf.Mid(job.GetString,12,6)
metxtLMEExch.Text = INR_ExchRate
End Select
Else
Log("Error: " & job.ErrorMessage)
ToastMessageShow("Error: " & job.ErrorMessage, True)
End If
job.Release
End Sub
The log is showing "Result: android.database.sqlite.SQLiteCursor@a51c6b4" which I am unable to understand.
Please suggest what I am doing wrong.