/ All files named "src/global.c"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History for src/global.c

2020-08-08
17:02
[943256ac] part of check-in [5ecd03a2] Change the name of sqlite3SelectTrace to sqlite3_unsupported_selecttrace. (check-in: [5ecd03a2] user: dan branch: trunk, size: 14118)
2020-06-05
14:10
[0409ae63] part of check-in [fe702aa0] Move the parse tree rewrite for window functions earlier in the process, before sqlite3ExprAnalyzeAggregates() has run. Add new assert()s to verify that aggregate analysis always remains valid until the end of SELECT processing. (check-in: [fe702aa0] user: drh branch: early-winfunc-rewrite, size: 14110)
2020-02-07
01:12
[79a988b5] part of check-in [5a877221] Simplify the code by removing the unsupported and undocumented SQLITE_HAS_CODEC compile-time option (check-in: [5a877221] user: drh branch: trunk, size: 14002)
2020-01-06
20:48
[59601d88] part of check-in [e1154c39] In the typeof() optimization in OP_Column, expand the size of the bogus buffer provided for data so that it is big enough to cover the increased number of bytes displayed during register tracing from check-in [54553bf16fabd72d]. This is the correct fix for ticket [bbd55a97e66ff50d], though the earlier one does not hurt and is useful to retain. (check-in: [e1154c39] user: drh branch: trunk, size: 14148)
2020-01-02
21:41
[b1ae842e] part of check-in [bd57e6d9] Merge the latest enhancements from trunk. (check-in: [bd57e6d9] user: drh branch: two-size-lookaside, size: 14175)
2020-01-01
15:43
[bdd582ba] part of check-in [473892a8] New test-only SQL functions: implies_nonnull_row(), expr_compare(), and expr_implies_expr(). The SQLITE_TESTCTRL_INTERNAL_FUNCTIONS test-control is modified to toggle internal function access on and off for a single database connection. (check-in: [473892a8] user: drh branch: trunk, size: 13740)
2019-12-31
15:12
[89e36838] part of check-in [88d24498] Refactor names. Use "small" instead of "mini" to describe the smaller of the two lookaside memory allocation sizes. (check-in: [88d24498] user: drh branch: two-size-lookaside, size: 14230)
2019-12-13
16:04
[76da82a6] part of check-in [47b71a84] Change the default lookaside configuration to 40 slots of 1200-bytes each. This actually works out to 30 big slots and 93 small slots using the mini-lookaside allocator. We get the same (or better) lookaside coverage but with 72KB less memory per connection. (check-in: [47b71a84] user: drh branch: two-size-lookaside, size: 14229)
2019-09-23
12:38
[a1a8d698] part of check-in [f907395e] Omit the sqlite3IntTokens array constant for a code simplification. (check-in: [f907395e] user: drh branch: trunk, size: 13795)
2019-08-12
14:17
[d7a7a45a] part of check-in [48d9b48a] Add a TESTCTRL that disables the verification of type, name, and tbl_name in the sqlite_master table. (check-in: [48d9b48a] user: drh branch: trunk, size: 13908)
2019-08-02
20:45
[0c9c4584] part of check-in [3ac57231] Add the SQLITE_TESTCTRL_PRNG_SEED test control. (check-in: [3ac57231] user: drh branch: prng-seed-test-control, size: 13853)
2019-06-14
17:37
[1e942b1e] part of check-in [23e49f99] Deprecate the SQLITE_ALLOW_COVERING_INDEX_SCAN compile-time option when it is turned off. This probably will impact no-one. If it does, they will get an error message instructing them to contact developers, so that we can get feedback that somebody is actually using this feature. Start-time disabling of covering index scan is not affected. (check-in: [23e49f99] user: drh branch: trunk, size: 13807)
2019-01-31
15:38
[0dea3065] part of check-in [cb72ee04] Add the SQLITE_CONFIG_MEMDB_MAXSIZE configuration option for configuring the default maximum size of an in-memory database created using sqlite3_deserialize(). This is necessary to make the interface reasonably testable. (check-in: [cb72ee04] user: drh branch: trunk, size: 13500)
2018-11-26
18:09
[8291eee0] part of check-in [6e133054] Do not allow direct access to internal-use SQL functions such as sqlite_rename_column() and sqlite3_rename_table() except when the new SQLITE_TESTCTRL_INTERNAL_FUNCTIONS flag is set. (check-in: [6e133054] user: drh branch: trunk, size: 13217)
2018-06-19
19:01
[58ab3df8] part of check-in [4f1fb5c9] OFD locks are now mostly working, but need additional tests. (check-in: [4f1fb5c9] user: drh branch: ofd-locks, size: 13208)
2018-04-16
21:12
[9bf034fd] part of check-in [b25a7bb7] Add SQLITE_CONFIG_SORTERREF_SIZE configuration option. (check-in: [b25a7bb7] user: dan branch: sorter-reference, size: 13162)
2018-02-12
20:27
[01506976] part of check-in [d44d5936] When compiling with VDBE_PROFILE, add the sqlite3NProfileCnt global variable which can be used to measure per-opcode values other than elapse time, if non-zero. (check-in: [d44d5936] user: drh branch: trunk, size: 13109)
2017-08-28
15:51
[ac3094f1] part of check-in [54b00024] Remove the rarely-used scratch memory allocator. This makes the code smaller, faster, and easier to maintain. In place of the scratch allocator, add the SQLITE_CONFIG_SMALL_MALLOC configuration option that provides a hint to SQLite that large memory allocations should be avoided. (check-in: [54b00024] user: drh branch: trunk, size: 12905)
2017-05-03
15:54
[8a6ab6b4] part of check-in [31a51b4d] Always enable URI filenames when compiling with SQLITE_HAS_CODEC. Also allow plaintext keys using the key= query parameter. (check-in: [31a51b4d] user: drh branch: trunk, size: 12992)
2017-01-02
19:02
[4a34512d] part of check-in [584da48f] Provide the SQLITE_DEFAULT_LOOKASIDE compile-time option and make it's default value be 1200,100 (raised from 512,125 in the latest release). (check-in: [584da48f] user: drh branch: trunk, size: 12847)
2016-12-21
21:26
[dcdb89f3] part of check-in [52a12e47] Change the default lookaside configuration from 500 slots of 128 bytes each to 125 slots of 512 bytes each. This uses the same amount of memory (64,000 bytes) but seems to perform much better in test applications. (check-in: [52a12e47] user: drh branch: trunk, size: 12396)
2016-12-07
15:49
[235021a2] part of check-in [f3608187] Rename the SQLITE_OMIT_BUILTIN_TEST compile-time option to SQLITE_UNTESTABLE. (check-in: [f3608187] user: drh branch: trunk, size: 12396)
2016-09-29
15:53
[9da4ca5d] part of check-in [e2cd79aa] Clarification and typo-fixes in comments. No changes to code. (check-in: [e2cd79aa] user: drh branch: trunk, size: 12403)
2016-09-18
16:08
[2917bbc4] part of check-in [6bf5ba10] Revise the implementation of OP_Once so that it is smaller, faster, and uses less memory. This also fixes an obscure bug introduced 3 days ago by check-in [5990a1bdb4a073]. (check-in: [6bf5ba10] user: drh branch: trunk, size: 12541)
2016-04-11
19:01
[c45ea22a] part of check-in [9efe2265] Performance optimization to sqlite3Dequote() and its callers. (check-in: [9efe2265] user: drh branch: trunk, size: 12485)
2016-03-07
17:37
[884d4c7e] part of check-in [b6c42024] Add the SQLITE_CONFIG_STMTJRNL_SPILL option for sqlite3_config(). (check-in: [b6c42024] user: drh branch: trunk, size: 12442)
2016-02-15
00:34
[ded7b97e] part of check-in [3201fbcc] Improvements to the application-defined function mechanism so that it is more compact and runs faster, especially when the application defines thousands of new SQL functions. (check-in: [3201fbcc] user: drh branch: many-app-functions, size: 11861)
2015-12-30
16:51
[bd5a0af3] part of check-in [2081d757] Changes to the way that the default BINARY collating sequence is recorded result in a slightly smaller and slightly faster executable. More work could be done to make this cleaner. (check-in: [2081d757] user: drh branch: trunk, size: 11871)
2015-09-11
05:06
[d8241636] part of check-in [f6a8f577] Enhance mutex initialization to prevent possible race conditions between sqlite3_initialize() and sqlite3_config(). Also, re-check sqlite3GlobalConfig.isInit after the mutex subsystem has been initialized. (check-in: [f6a8f577] user: mistachkin branch: mutexInitCmpSwap, size: 11823)
2015-07-07
21:14
[508e4087] part of check-in [ad5fdfba] Add a compile-time constant for configuring the default pagecache setup. (check-in: [ad5fdfba] user: drh branch: pcache-bulk-local, size: 11780)
2015-07-06
18:54
[32c0ebfd] part of check-in [aa7341c8] Enhance separate pcache1 to allocate a block of pages from heap on startup, if possible, for a 5.2% performance improvement. (check-in: [aa7341c8] user: drh branch: pcache-bulk-local, size: 11777)
2015-06-01
17:32
[5aee11be] part of check-in [e3fa8b93] Break out the query flattener into a separate source-code file. (check-in: [e3fa8b93] user: drh branch: flattener-in-new-file, size: 11905)
2015-02-19
17:16
[4f77cadb] part of check-in [905009f6] Fix errors in the EBCDIC upper-case to lower-case translation table. (check-in: [905009f6] user: drh branch: trunk, size: 11777)
2015-01-02
15:55
[12561d70] part of check-in [acb0d1e8] Add the SQLITE_CONFIG_PMASZ start-time option. (check-in: [acb0d1e8] user: drh branch: trunk, size: 11777)
2014-11-07
13:24
[6ded36dd] part of check-in [94c564da] Fix harmless typos in comments. (check-in: [94c564da] user: drh branch: trunk, size: 11568)
2014-11-04
17:23
[a50ad0b9] part of check-in [d423349d] Add various requirements evidence marks for sqlite3_config() options. (check-in: [d423349d] user: drh branch: trunk, size: 11566)
2014-10-04
11:59
[01c1f36e] part of check-in [0f8102d7] Updates to documentation and requirements marks. No code changes. (check-in: [0f8102d7] user: drh branch: trunk, size: 11209)
2014-09-06
16:39
[5110fa12] part of check-in [e62aab5e] Fix typos in comments. No code changes. (check-in: [e62aab5e] user: peter.d.reid branch: trunk, size: 10897)
2014-05-16
14:27
[77ec119d] part of check-in [43fcbd91] Merge all recent changes from trunk, and especially the new sqlite3FaultSim() interface. (check-in: [43fcbd91] user: drh branch: threads, size: 10945)
14:17
[1e4bd956] part of check-in [0d43a7ad] Repurpose the SQLITE_TESTCTRL_FAULT_INSTALL test-control to register a callback to be invoked by sqlite3FaultSim(). That test-control has been unused since 2008-06-20 and was never used in any official release. (check-in: [0d43a7ad] user: drh branch: trunk, size: 10896)
2014-05-03
11:22
[b7943ff4] part of check-in [e0dea89b] Add the SQLITE_DEFAULT_WORKER_THREADS compile-time option. Fix a NULL-pointer dereference that can occur following OOM. (check-in: [e0dea89b] user: drh branch: threads, size: 10722)
2014-04-01
15:38
[deadd872] part of check-in [643c86a0] Even if compile time option SQLITE_MAX_WORKER_THREADS is set to one or greater, set the default number of worker threads to zero. Distribute data more evenly between threads in sqlite3VdbeSorterWrite() to improve performance when sorting large amounts of data. Add new test file sort2.test. (check-in: [643c86a0] user: dan branch: threads, size: 10717)
2014-03-31
19:57
[57d9dd92] part of check-in [2774710d] Add the SQLITE_MAX_WORKER_THREADS compile time option. And the SQLITE_CONFIG_WORKER_THREADS sqlite3_config() switch. (check-in: [2774710d] user: dan branch: threads, size: 10717)
2013-11-29
15:06
[1d7bb7ea] part of check-in [15e4f63d] Add a new sqlite3_test_control() that indicates that database files are always well-formed. Use this during testing to enable assert() statements that prove conditions that are always true for well-formed databases. (check-in: [15e4f63d] user: drh branch: trunk, size: 10673)
2013-04-15
17:03
[5caf4dea] part of check-in [ea1404a1] Refactoring the mmap interface. The controlling pragma is now "mmap_size" instead of "mmap_limit". Also change SQLITE_CONFIG_MMAP_LIMIT and SQLITE_FCNTL_MMAP_LIMIT to SQLITE_CONFIG_MMAP_SIZE and SQLITE_FCNTL_MMAP_SIZE, respecctively. The default mmap_size is now always 0, meaning that memory mapped I/O is off by default. There is a new compile-time option SQLITE_MAX_MMAP_SIZE that determines a hard upper bound on the mmap_size. Setting SQLITE_MAX_MMAP_SIZE to zero disables the memory-mapped I/O logic and causes it to be omitted from the build. An extra argument is added to SQLITE_CONFIG_MMAP_SIZE that can optionally lower the SQLITE_MAX_MMAP_SIZE at start-time. The SQLITE_MAX_MMAP_SIZE is zero for platforms where we know that it does not work, meaning that it cannot be turned on by mistake on those platforms. (check-in: [ea1404a1] user: drh branch: trunk, size: 10625)
2013-04-01
22:38
[d2494a1c] part of check-in [78141d0a] Add the SQLITE_CONFIG_MMAP_LIMIT configuration option for overriding the SQLITE_DEFAULT_MMAP_LIMIT compile-time setting. Enhance "PRAGMA mmap_limit" so that without a specific database name, it sets the limit on all database files and changes the default for any future databases that might be added using ATTACH. (check-in: [78141d0a] user: drh branch: experimental-mmap, size: 10605)
2012-12-08
06:46
[36c6d660] part of check-in [e65db42c] Merge updates from trunk. (check-in: [e65db42c] user: mistachkin branch: configReadOnly, size: 10585)
2012-11-26
19:50
[e59ecd2c] part of check-in [cd501bbc] Add an option to register global hooks used for logging all SQL executed by an application. (check-in: [cd501bbc] user: dan branch: sqllog, size: 10539)
2012-09-25
12:45
[617cf51a] part of check-in [4a470741] Merge updates from trunk. (check-in: [4a470741] user: mistachkin branch: configReadOnly, size: 10459)
2012-09-17
20:44
[fb44b11e] part of check-in [ccb8ecc3] Add the ability to disable the covering-index-scan optimization at compile-time, start-time, or at run-time. Add test cases to check this configurability. (check-in: [ccb8ecc3] user: drh branch: fullscan-covering-index, size: 10413)
2012-09-10
10:29
[2f3b6eb7] part of check-in [7c340165] Initial prototype of SQLITE_CONFIG_READONLY. (check-in: [7c340165] user: mistachkin branch: configReadOnly, size: 10313)
2011-12-11
02:29
[4cfdca5c] part of check-in [1e6a698a] Fix harmless compiler warnings. (check-in: [1e6a698a] user: drh branch: trunk, size: 10267)
2011-11-08
20:08
[107ccaac] part of check-in [c275c9d3] Experimental change to the pcache interface to allow page buffers to be allocated separately from their associated container structures. (check-in: [c275c9d3] user: dan branch: experimental-pcache, size: 10266)
2011-09-19
13:01
[e230227d] part of check-in [db019465] Increase the default lookaside cache line size from 100 to 128 bytes. (check-in: [db019465] user: drh branch: trunk, size: 10265)
2011-06-21
15:27
[c70a46f2] part of check-in [7fe8ba2e] Add a missing initializer for sqlite3GlobalConfig.bLocaltimeFault. (check-in: [7fe8ba2e] user: dan branch: trunk, size: 10265)
2011-04-22
19:37
[29bfb856] part of check-in [b8a8132e] Add the start of the "uri-filenames" feature. (check-in: [b8a8132e] user: dan branch: uri, size: 10213)
2010-07-14
18:24
[02335177] part of check-in [c288ac64] Make the result of an IN or NOT IN expression with an empty set on the right-hand side always either false or true, respectively, even if the left-hand side is NULL. Ticket [80e031a00f45dc] (check-in: [c288ac64] user: drh branch: trunk, size: 10112)
2010-06-03
12:09
[3fedfe02] part of check-in [dd10a547] Remove global variables when compiled with SQLITE_OMIT_WSD (check-in: [dd10a547] user: drh branch: trunk, size: 9998)
2010-02-18
18:45
[5a9c1e3c] part of check-in [103321e3] Add a new, experimental logging interface designed to aid in debugging of deeply embedded projects that use SQLite. (check-in: [103321e3] user: drh branch: trunk, size: 9967)
2009-11-16
15:11
[75946a4a] part of check-in [1c9243b0] Use the sqlite3CtypeMap to improve the speed and reduce the size of the logic in the tokenizer that recognizes identifiers. (check-in: [1c9243b0] user: drh branch: trunk, size: 9882)
2009-11-14
23:22
[9481e307] part of check-in [d622ac6a] Optimizations to the main loop inside sqlite3VdbeExec() to help VDBE byte code run a few percent faster. (check-in: [d622ac6a] user: drh branch: trunk, size: 9577)
2009-08-17
15:16
[271952d1] part of check-in [904a371c] Add tests to check that sqlite recovers from an error in sqlite3_initialize() correctly. (check-in: [904a371c] user: dan branch: trunk, size: 9274)
13:42
[263dea92] part of check-in [98c49e61] Enhanced documentation and minor code tweaks in preparation for hardening the sqlite3_initialize/shutdown interfaces against initialization failures. (check-in: [98c49e61] user: drh branch: trunk, size: 9234)
2009-02-05
16:31
[448419c4] part of check-in [e8f192e2] Make the pending byte adjustable via sqlite3_test_control() on all builds, not just on test builds. (CVS 6263) (check-in: [e8f192e2] user: drh branch: trunk, size: 9220)
2009-01-24
11:30
[ab003581] part of check-in [bfc71edc] Fix some minor compiler warnings. Added sqlite3Isalpha() for use in the soundex() function. (CVS 6203) (check-in: [bfc71edc] user: drh branch: trunk, size: 8305)
2009-01-20
16:53
[9dd8b611] part of check-in [1041abd6] When not compiling for an EBCDIC system, use built-in alternatives to the tolowe r(), toupper() and other ctype.h library functions. Ticket #3597. (CVS 6196) (check-in: [1041abd6] user: danielk1977 branch: trunk, size: 8280)
2008-12-08
18:19
[91723e45] part of check-in [73c7302c] The amalgamation now compiles cleanly on GCC with options -pedantic-errors -Wno-long-long. (CVS 5991) (check-in: [73c7302c] user: drh branch: trunk, size: 4802)
2008-09-04
17:17
[20a3fe46] part of check-in [85c2a589] Add support for the SQLITE_THREADSAFE=2 and SQLITE_DEFAULT_MEMSTATUS compilation options. (CVS 5676) (check-in: [85c2a589] user: danielk1977 branch: trunk, size: 3945)
2008-09-01
18:34
[9ced7c26] part of check-in [573d92ab] Begin adding support for the SQLITE_OMIT_WSD macro. Some (many) WSD variables still need wrappers added to them. (CVS 5652) (check-in: [573d92ab] user: danielk1977 branch: trunk, size: 3891)
2008-08-21
20:21
[239d03b6] part of check-in [80d6a31c] Move date+time functions to start-time initialization. Additional start-time function cleanup. (CVS 5585) (check-in: [80d6a31c] user: drh branch: trunk, size: 3861)
18:49
[39350827] part of check-in [ef6936e5] Initialize the global built-in function table at start-time instead of at compile-time. This is less prone to malfunction when compile-time parameters very. (CVS 5583) (check-in: [ef6936e5] user: drh branch: trunk, size: 3858)
2008-07-28
19:34
[b9c96ee2] part of check-in [e48f9697] Implement the "lookaside" memory allocation cache. Use of this cache makes the speed1.test script run about 15% faster. Added new interfaces to control the cache. (CVS 5488) (check-in: [e48f9697] user: drh branch: trunk, size: 3680)
2008-07-08
14:52
[f12dc84d] part of check-in [ee931508] Improved enforcement of the SQLITE_LIMIT_LENGTH limit. (CVS 5368) (check-in: [ee931508] user: drh branch: trunk, size: 3433)
2008-06-14
16:56
[2304cfa3] part of check-in [f00305f4] Continuing progress on the new memory allocation subsystem. Added the sqlite3_mem_methods structure for defining new memory allocators at run-time. (CVS 5219) (check-in: [f00305f4] user: drh branch: trunk, size: 3422)
2008-06-13
18:24
Added: [8a5c66b6] part of check-in [a03c5af1] Progress toward implementation of sqlite3_config() and a rework of the mutex and memory allocation subsystems. This is an incremental check-in. (CVS 5218) (check-in: [a03c5af1] user: drh branch: trunk, size: 3407)