sqlite 3.8.7 (reverted from commit 26771fea7b37edb288751b32b89306f30e07a926)