I am using this code, in my App, to open sqlite database that was working perfectly until iOS 9.x.x. Recordset was returning many results...
After users was update to iOS 10.0. I discovery that resultset returns 0 results if sql is already initialized by page loaded before.
I solve this issue removing this line code " 'If SQL1.IsInitialized=false " to force sql initialize all times when load Page. This way resultset now return correct results.
Why this is happening ? Am I anything wrong ? Is a ResultSet bug with iOS 10 ?
B4X:
If SQL1.IsInitialized = False Then
Try
SQL1.Initialize(File.DirTemp,"controle.sqlite",False)
Catch
Msgbox("Erro ao acessar o arquivo de dados.","Aviso")
Return
End Try
End If
Dim rs As ResultSet
rs = SQL1.ExecQuery(SQLString)
After users was update to iOS 10.0. I discovery that resultset returns 0 results if sql is already initialized by page loaded before.
I solve this issue removing this line code " 'If SQL1.IsInitialized=false " to force sql initialize all times when load Page. This way resultset now return correct results.
Why this is happening ? Am I anything wrong ? Is a ResultSet bug with iOS 10 ?
Last edited: