Disable external merge source when SQLITE_TEMP_STORE==3. Add documentation

to the OP_OpenSorter opcode.

FossilOrigin-Name: 5a690486811379cea40c6ed48b2902f421234832
This commit is contained in:
drh
2011-08-25 18:01:28 +00:00
parent ee140c4d71
commit d7f6e906db
4 changed files with 23 additions and 9 deletions
+8
View File
@@ -366,6 +366,14 @@
# define SQLITE_TEMP_STORE 1
#endif
/*
** If all temporary storage is in-memory, then omit the external merge-sort
** logic since it is superfluous.
*/
#if SQLITE_TEMP_STORE==3 && !defined(SQLITE_OMIT_MERGE_SORT)
# define SQLITE_OMIT_MERGE_SORT
#endif
/*
** GCC does not define the offsetof() macro so we'll have to do it
** ourselves.