iOS Question My App has a bug with iOS 10 SQLite

tucano2000

Active Member
Licensed User
Longtime User
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...

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:

tucano2000

Active Member
Licensed User
Longtime User
Okay. My App uses others SQLs (SQL1, SQL2, SQL3, etc). I must move all to the main module in Aplication_Start using only
SQL1.Initialize(xxxx,xxxx,False) and I don't need to check if the database is initialized when I navigate between pages. Right ?
 
Upvote 0
Top