In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

SQLite Bug and GPF only when database is encrypted

Xailer professional forum in English
Responder
Avatar de Usuario
emeasoft
Mensajes: 1088
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

SQLite Bug and GPF only when database is encrypted

Mensaje por emeasoft »

Hello Xailers,

We are having a bug and sometimes a GPF, but only when the database is encrypted.

Executing a query with ORDER BY LPAD(FIELD,XX) returns an empty array or an GPF error... but this error only happens when the database is protected with a password.
error.png
error.png (12.91 KiB) Visto 4671 veces
What could be causing this problem?

TIA,
Juliano
Adjuntos
TestSQLite.zip
(50.58 KiB) Descargado 180 veces
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9250
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Re: SQLite Bug and GPF only when database is encrypted

Mensaje por ignacio »

Hello,

We are aware of this problem. Please check if with the LIMIT 999999999 clause the problem disappears. TIA.

Regards
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
emeasoft
Mensajes: 1088
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

Re: SQLite Bug and GPF only when database is encrypted

Mensaje por emeasoft »

Hello Ignacio,

This error happened again, but now when using the BETWEEN clause "SELECT * FROM TAB1 WHERE C03 BETWEEN ? AND ?" within the QueryArray method.

It returns a empty array, if I use the execute() or add LIMIT 99999... it runs fine.

Regards,
Juliano
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: SQLite Bug and GPF only when database is encrypted

Mensaje por jfgimenez »

Juliano,

could you send to me the sqlite db which has that problem? I need the DB along the encrypt key and the sentences that cause the error.

Thanks in advance.
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
emeasoft
Mensajes: 1088
Registrado: Mié Abr 01, 2009 4:12 pm
Ubicación: emeasoft
Contactar:

Re: SQLite Bug and GPF only when database is encrypted

Mensaje por emeasoft »

Hello José,

The error happens on the example from the first post "TestSQLite.zip".

Just compile, execute and you will see the GPF error.

Regards,
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Re: SQLite Bug and GPF only when database is encrypted

Mensaje por jfgimenez »

Juliano,

we have had to return to sqlite 3.8.7.1 due theese errors. Using this version seems to work all fine. However, we'll keep searching for which changes in sqlite has caused the problems.
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Responder