SQLite Forum

Test SQLITE_NOMEM result code on Linux (Memory : 8Gb)
Is there any way to test SQLITE_NOMEM result code on the following interfaces :
1. sqlite_open(:memory:)
2. sqlite_prepare_v2

I am using it in a library and have to simulate for test purpose.

Also please provide any pointers on how to use sqlite_test_control for limiting memory and fault injections.

Sqlite Version : 3.22