File tree 4 files changed +7
-13
lines changed
4 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ STUB: CSORMA version: 0.99.3-SQLCIPHER
102
102
STUB: CSORMA SQLite version: 3.46.1
103
103
STUB: CSORMA sqlcipher version: 4.6.1 community
104
104
STUB: setting sqlcipher key. result = 0
105
- STUB: activating WAL mode. result = 0
105
+ STUB: disabling WAL mode. result = 0
106
106
STUB: creating table: Message
107
107
STUB: res1: 0
108
108
STUB: creating table: Friendlist
@@ -264,12 +264,6 @@ OrmaDatabase *o = OrmaDatabase_init(
264
264
);
265
265
```
266
266
267
- now set the WAL mode:
268
- ``` C
269
- OrmaDatabase_set_wal_mode (o, true);
270
- );
271
- ```
272
-
273
267
run a freehand SQL:
274
268
``` C
275
269
char *sql1 = " CREATE TABLE IF NOT EXISTS Message ("
Original file line number Diff line number Diff line change @@ -30,5 +30,5 @@ int main()
30
30
printf ("STUB: setting sqlcipher key. result = %d\n" , key_result );
31
31
32
32
// HINT: set WAL mode for a performance increase
33
- CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode (o , true );
34
- printf ("STUB: activating WAL mode. result = %d\n" , (int )res1 );
33
+ CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode (o , false );
34
+ printf ("STUB: disabling WAL mode. result = %d\n" , (int )res1 );
Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ int main()
43
43
printf ("TEST: setting sqlcipher key. result = %d\n" , r );
44
44
45
45
{
46
- CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode (o , true );
47
- printf ("TEST: activating WAL mode. result = %d\n" , (int )res1 );
46
+ CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode (o , false );
47
+ printf ("TEST: disabling WAL mode. result = %d\n" , (int )res1 );
48
48
}
49
49
50
50
// ----------- freehand SQL to create TABLE -----------
Original file line number Diff line number Diff line change @@ -170,8 +170,8 @@ int main()
170
170
printf ("TEST: setting sqlcipher key. result = %d\n" , r );
171
171
172
172
{
173
- CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode (o , true );
174
- printf ("TEST: activating WAL mode. result = %d\n" , (int )res1 );
173
+ CSORMA_GENERIC_RESULT res1 = OrmaDatabase_set_wal_mode (o , false );
174
+ printf ("TEST: disabling WAL mode. result = %d\n" , (int )res1 );
175
175
}
176
176
177
177
// ----------- freehand SQL -----------
You can’t perform that action at this time.
0 commit comments