Con:=TZConnection.Create(nil); Con.Protocol:='sqlite-3'; Con.Database:=extractfilepath(paramstr(0))+'control.s3db'; Con.Connect; zqry:=TZQuery.Create(nil); zqry.Connection:=Con; zqry.IsUniDirectional := true;( ... rest of code )
conAjustAux:=TSQLite3Connection.Create(nil); conAjustAux.DatabaseName:=TempFile1; tranAjustAux:=TSQLTransaction.Create(nil); tranAjustAux.DataBase:=conAjustAux; qryAjustAux:=TSQLQuery.Create(nil); conAjustAux.Open; qryAjustAux.Transaction:=tranAjustAux; qryAjustAux.DataBase:=conAjustAux; qryAjustAux.IsUniDirectional:=true;(... rest of code )
Don´t you think it is so much curious that both (Zeos and SQLDB) causes the same error message?
So maybe the problem is with FPC and not only with SQLDB. In my opinion if the problem is only with SQLDB, Zeos should work, but this is not true.Maybe the method SetUniDirectional was intentionally deactivated due to problems in FPC.
Who can help me?