Debian Codegraph @

www/changes.html

raw
1 <!DOCTYPE html>
2 <html><head>
3 <meta name="viewport" content="width=device-width, initial-scale=1.0">
4 <meta http-equiv="content-type" content="text/html; charset=UTF-8">
5 <link href="sqlite.css" rel="stylesheet">
6 <title>Release History Of SQLite</title>
7 <!-- path= -->
8 </head>
9 <body>
10 <div class=nosearch>
11 <a href="index.html">
12 <img class="logo" src="images/sqlite370_banner.gif" alt="SQLite" border="0">
13 </a>
14 <div><!-- IE hack to prevent disappearing logo --></div>
15 <div class="tagline desktoponly">
16 Small. Fast. Reliable.<br>Choose any three.
17 </div>
18 <div class="menu mainmenu">
19 <ul>
20 <li><a href="index.html">Home</a>
21 <li class='mobileonly'><a href="javascript:void(0)" onclick='toggle_div("submenu")'>Menu</a>
22 <li class='wideonly'><a href='about.html'>About</a>
23 <li class='desktoponly'><a href="docs.html">Documentation</a>
24 <li class='desktoponly'><a href="download.html">Download</a>
25 <li class='wideonly'><a href='copyright.html'>License</a>
26 <li class='desktoponly'><a href="support.html">Support</a>
27 <li class='desktoponly'><a href="prosupport.html">Purchase</a>
28 <li class='search' id='search_menubutton'>
29 <a href="javascript:void(0)" onclick='toggle_search()'>Search</a>
30 </ul>
31 </div>
32 <div class="menu submenu" id="submenu">
33 <ul>
34 <li><a href='about.html'>About</a>
35 <li><a href='docs.html'>Documentation</a>
36 <li><a href='download.html'>Download</a>
37 <li><a href='support.html'>Support</a>
38 <li><a href='prosupport.html'>Purchase</a>
39 </ul>
40 </div>
41 <div class="searchmenu" id="searchmenu">
42 <form method="GET" action="search">
43 <select name="s" id="searchtype">
44 <option value="d">Search Documentation</option>
45 <option value="c">Search Changelog</option>
46 </select>
47 <input type="text" name="q" id="searchbox" value="">
48 <input type="submit" value="Go">
49 </form>
50 </div>
51 </div>
52 <script>
53 function toggle_div(nm) {
54 var w = document.getElementById(nm);
55 if( w.style.display=="block" ){
56 w.style.display = "none";
57 }else{
58 w.style.display = "block";
59 }
60 }
61 function toggle_search() {
62 var w = document.getElementById("searchmenu");
63 if( w.style.display=="block" ){
64 w.style.display = "none";
65 } else {
66 w.style.display = "block";
67 setTimeout(function(){
68 document.getElementById("searchbox").focus()
69 }, 30);
70 }
71 }
72 function div_off(nm){document.getElementById(nm).style.display="none";}
73 window.onbeforeunload = function(e){div_off("submenu");}
74 /* Disable the Search feature if we are not operating from CGI, since */
75 /* Search is accomplished using CGI and will not work without it. */
76 if( !location.origin || !location.origin.match || !location.origin.match(/http/) ){
77 document.getElementById("search_menubutton").style.display = "none";
78 }
79 /* Used by the Hide/Show button beside syntax diagrams, to toggle the */
80 function hideorshow(btn,obj){
81 var x = document.getElementById(obj);
82 var b = document.getElementById(btn);
83 if( x.style.display!='none' ){
84 x.style.display = 'none';
85 b.innerHTML='show';
86 }else{
87 x.style.display = '';
88 b.innerHTML='hide';
89 }
90 return false;
91 }
92 var antiRobot = 0;
93 function antiRobotGo(){
94 if( antiRobot!=3 ) return;
95 antiRobot = 7;
96 var j = document.getElementById("mtimelink");
97 if(j && j.hasAttribute("data-href")) j.href=j.getAttribute("data-href");
98 }
99 function antiRobotDefense(){
100 document.body.onmousedown=function(){
101 antiRobot |= 2;
102 antiRobotGo();
103 document.body.onmousedown=null;
104 }
105 document.body.onmousemove=function(){
106 antiRobot |= 2;
107 antiRobotGo();
108 document.body.onmousemove=null;
109 }
110 setTimeout(function(){
111 antiRobot |= 1;
112 antiRobotGo();
113 }, 100)
114 antiRobotGo();
115 }
116 antiRobotDefense();
117 </script>
118
119
120 <h1 align=center>Release History</h1>
121
122 <p>
123 This page provides a high-level summary of changes to SQLite.
124 For more detail, see the Fossil checkin logs at
125 <a href="https://www.sqlite.org/src/timeline">
126 https://www.sqlite.org/src/timeline</a> and
127 <a href="https://www.sqlite.org/src/timeline?t=release">
128 https://www.sqlite.org/src/timeline?t=release</a>.
129 See the <a href="chronology.html">chronology</a> a succinct listing of releases.
130 </p>
131
132 <a name="version_3_46_1"></a>
133 <h3>2024-08-13 (3.46.1)</h3><p><ol class='lessindent'>
134 <li> Improved robustness while parsing the <a href="fts5.html#tokenizers">tokenize= arguments</a> in <a href="fts5.html">FTS5</a>.
135 <a href="https://sqlite.org/forum/forumpost/171bcc2bcd">Forum post 171bcc2bcd</a>.
136 <li> Enhancements to <a href="queryplanner.html#covidx">covering index</a> prediction in the query planner.
137 Add early detection of over-prediction of covering indexes so that
138 <a href="c3ref/prepare.html">sqlite3_prepare()</a> will return an error rather than just generate bad bytecode.
139 <a href="https://sqlite.org/forum/forumpost/e60e4c295d22f8ce">Forum post e60e4c295d22f8ce</a>.
140 <li> Do not let the number of terms on a <a href="lang_select.html#values">VALUES clause</a> be limited by
141 <a href="c3ref/c_limit_attached.html#sqlitelimitcompoundselect">SQLITE_LIMIT_COMPOUND_SELECT</a>, even if the VALUES clause contains
142 elements that appear to be variables due to
143 <a href="quirks.html#dblquote">double-quoted string literals</a>.
144 <li> Fix the <a href="windowfunctions.html">window function</a> version of <a href="lang_aggfunc.html#group_concat">group_concat()</a> so that it returns
145 an empty string if it has one or more empty string inputs.
146 <li> In <a href="fts5.html#the_secure_delete_configuration_option">FTS5 secure-delete mode</a>, fix false-positive
147 integrity-check reports about corrupt indexes.
148 <li> Syntax errors in <a href="lang_altertable.html">ALTER TABLE</a> should always return <a href="rescode.html#error">SQLITE_ERROR</a>. In
149 some cases, they were formerly returning <a href="rescode.html#internal">SQLITE_INTERNAL</a>.
150 <li> JavaScript/WASM:
151 <ol type="a">
152 <li> Fix a corruption-causing bug in the JavaScript "opfs" VFS.
153 <li> Work around a couple of browser-specific OPFS quirks.
154 </ol>
155 <li> Other minor fixes.
156 <p><b>Hashes:</b>
157 <li>SQLITE_SOURCE_ID: 2024-08-13 09:16:08 c9c2ab54ba1f5f46360f1b4f35d849cd3f080e6fc2b6c60e91b16c63f69a1e33
158 <li>SHA3-256 for sqlite3.c: 186a1baa476b6d546de155160ca6d30ff7b7e6ee375f0bb6445e1a3d180a7dad
159
160 </ol></p>
161 <a name="version_3_46_0"></a>
162 <h3>2024-05-23 (3.46.0)</h3><p><ol class='lessindent'>
163 <li> Enhance <a href="pragma.html#pragma_optimize">PRAGMA optimize</a> in multiple ways, to make it
164 <a href="lang_analyze.html#pragopt">simpler to use</a>:
165 <ol type="a">
166 <li> PRAGMA optimize automatically implements a temporary
167 <a href="pragma.html#pragma_analysis_limit">analysis limit</a> to prevent excess runtime
168 on large databases.
169 <li> Added the new 0x10000 bitmask option to check for updates on all tables.
170 <li> Automatically re-analyze tables that do not have sqlite_stat1 entries.
171 </ol>
172 <li> Enhancements to the <a href="lang_datefunc.html">date and time functions</a>:
173 <ol type="a">
174 <li> The <a href="lang_datefunc.html#strftm">strftime() SQL function</a> now supports %G, %g, %U, and %V.
175 <li> New modifiers 'ceiling' and 'floor' control the algorithm used to
176 resolve <a href="lang_datefunc.html#dtambg">ambiguous dates</a> when shifting a date by an integer number
177 of months and/or years.
178 <li> The <a href="lang_datefunc.html#localtime">'utc' and 'localtime' modifiers</a> are now no-ops if SQLite knows
179 that the time is already in UTC or in the localtime, respectively.
180 </ol>
181 <li> Add support for underscore ("_") characters between digits in
182 <a href="lang_expr.html#litvalue">numeric literals</a>.
183 <li> Add the <a href="json1.html#jpretty">json_pretty()</a> SQL function.
184 <li> Query planner improvements:
185 <ol type="a">
186 <li> The "VALUES-as-coroutine" optimization enables INSERT statements with
187 thousands of rows in the VALUES clause to parse and run in about half
188 the time and using about half as much memory.
189 <li> Allow the use of an index for queries like "SELECT count(DISTINCT col) FROM ...",
190 even if the index records are not smaller than the table records.
191 <li> Improved recognition of cases where the value of an SQL function is
192 constant because all its arguments are constant.
193 <li> Enhance the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a> so that it is able to
194 push down WHERE clause terms containing uncorrelated subqueries.
195 </ol>
196 <li> Allocate additional memory from the heap for the SQL parser stack if
197 that stack overflows, rather than reporting a "parser stack overflow" error.
198 <li> JSON changes:
199 <ol type="a">
200 <li> Allow ASCII control characters within JSON5 string literals.
201 <li> Fix <a href="json1.html#jptr">the -> and ->> operators</a> so that when the right-hand side operand is a string
202 that looks like an integer it is still treated as a string, because that is what
203 PostgreSQL does.
204 </ol>
205 <li> Allow large hexadecimal literals to be used as the DEFAULT value to a table column.
206 <p><b>Hashes:</b>
207 <li>SQLITE_SOURCE_ID: 2024-05-23 13:25:27 96c92aba00c8375bc32fafcdf12429c58bd8aabfcadab6683e35bbb9cdebf19e
208 <li>SHA3-256 for sqlite3.c: 094429ea827fcd32275e767134bc6c7b9ea394a2c5a9e653dd0a0690b2c11358
209
210 </ol></p>
211 <a name="version_3_45_3"></a>
212 <h3>2024-04-15 (3.45.3)</h3><p><ol class='lessindent'>
213 <li> Fix a long-standing bug (going back to <a href="#version_3_24_0">version 3.24.0</a>)
214 that might (rarely) cause the "old.*" values of an <a href="lang_createtrigger.html">UPDATE trigger</a>
215 to be incorrect if that trigger fires in response to an <a href="lang_upsert.html">UPSERT</a>.
216 <a href="https://sqlite.org/forum/forumpost/284955a3cd454a15">Forum post 284955a3cd454a15</a>.
217 <li> Fix a bug in <a href="lang_aggfunc.html#sumunc">sum()</a> that could cause it to return NULL when it should return
218 Infinity. <a href="https://sqlite.org/forum/forumpost/23b8688ef4">Forum post 23b8688ef4</a>.
219 <li> Other trifling corrections and compiler warning fixes that have come up
220 since the previous patch release. See the
221 <a href="https://sqlite.org/src/timeline?from=version-3.45.2&to=version-3.45.3&to2=branch-3.45">timeline</a>
222 for details.
223 <p><b>Hashes:</b>
224 <li>SQLITE_SOURCE_ID: 2024-04-15 13:34:05 8653b758870e6ef0c98d46b3ace27849054af85da891eb121e9aaa537f1e8355
225 <li>SHA3-256 for sqlite3.c: 21dbe688a71b449d28e2a8ec6a43e7520e54df456e02b6d4f6a1d1c7a998c826
226
227 </ol></p>
228 <a name="version_3_45_2"></a>
229 <h3>2024-03-12 (3.45.2)</h3><p><ol class='lessindent'>
230 <li> Fix an error in <a href="lang_upsert.html">UPSERT</a>, introduced by enhancement 3a in <a href="#version_3_35_0">version 3.35.0</a>
231 (2021-03-12), that could cause an index to get out-of-sync with its table.
232 <a href="https://sqlite.org/forum/forumpost/919c6579c8">Forum thread 919c6579c8</a>.
233 <li> Reduce the scope of the NOT NULL strength reduction optimization that was
234 added as item 8e in <a href="#version_3_35_0">version 3.35.0</a> (2021-03-12). The optimization
235 was being attempted in some contexts where it did not work, resulting in
236 incorrect query results.
237 <a href="https://sqlite.org/forum/forumpost/440f2a2f17">Forum thread 440f2a2f17</a>.
238 <li> Other trifling corrections and compiler warning fixes that have come up
239 since the previous patch release. See the
240 <a href="https://sqlite.org/src/timeline?from=version-3.45.1&to=version-3.45.2&to2=branch-3.45">timeline</a>
241 for details.
242 <p><b>Hashes:</b>
243 <li>SQLITE_SOURCE_ID: "2024-03-12 11:06:23 d8cd6d49b46a395b13955387d05e9e1a2a47e54fb99f3c9b59835bbefad6af77"
244 <li>SHA3-256 for sqlite3.c: bd76ad2dc9cde151e469e86627a7e8753aa8ef1a6f657c5a80ba48324b53226b
245
246 </ol></p>
247 <a name="version_3_45_1"></a>
248 <h3>2024-01-30 (3.45.1)</h3><p><ol class='lessindent'>
249 <li> Restore the <a href="json1.html#jblobbug">JSON BLOB input bug</a>, and promise to support the anomaly in
250 subsequent releases, for backward compatibility.
251 <li> Fix the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command so that it works on read-only
252 databases that contain FTS3 and FTS5 tables. This resolves an issue
253 introduced in <a href="#version_3_44_0">version 3.44.0</a> but was undiscovered until after the 3.45.0 release.
254 <li> Fix issues associated with processing corrupt <a href="json1.html#jsonbx">JSONB</a> inputs:
255 <ol type="a">
256 <li> Prevent exponential runtime when converting a corrupt JSONB into text.
257 <li> Fix a possible read of one byte past the end of the JSONB blob when converting
258 a corrupt JSONB into text.
259 <li> Enhanced testing using <a href="testing.html#dbsqlfuzz">jfuzz</a> to prevent any future JSONB problems such
260 as the above.
261 </ol>
262 <li> Fix a long-standing bug in which a read of a few bytes past the end of a
263 memory-mapped segment might occur when accessing a craftily corrupted database
264 using <a href="pragma.html#pragma_mmap_size">memory-mapped database</a>.
265 <li> Fix a long-standing bug in which a NULL pointer dereference might occur in
266 the <a href="opcode.html">bytecode engine</a> due to incorrect bytecode being generated for a class
267 of SQL statements that are deliberately designed to stress the query planner
268 but which are otherwise pointless.
269
270 <p><b>Hashes:</b>
271 <li>SQLITE_SOURCE_ID: 2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257cc467a
272 <li>SHA3-256 for sqlite3.c: 0474604df9e1b69a5544295dd046aad954749279780d557da80f44b958100295
273
274 </ol></p>
275 <a name="version_3_45_0"></a>
276 <h3>2024-01-15 (3.45.0)</h3><p><ol class='lessindent'>
277 <li> Added the <a href="c3ref/c_deterministic.html#sqliteresultsubtype">SQLITE_RESULT_SUBTYPE</a> property for
278 <a href="appfunc.html">application-defined SQL functions</a>.
279 All application defined SQL functions that invokes
280 <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a> must be registered with this new property.
281 Failure to do so might cause the call to sqlite3_result_subtype() to
282 behave as a no-op. Compile with <a href="compile.html#strict_subtype">-DSQLITE_STRICT_SUBTYPE=1</a> to cause an
283 SQL error to be raised if a function that is not <a href="c3ref/c_deterministic.html#sqliteresultsubtype">SQLITE_RESULT_SUBTYPE</a>
284 tries invokes <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a>. The use of <a href="compile.html#strict_subtype">-DSQLITE_STRICT_SUBTYPE=1</a>
285 is a recommended compile-time option for every application that makes
286 use of subtypes.
287 <li> Enhancements to the <a href="json1.html">JSON SQL functions</a>:
288 <ol type="a">
289 <li> All JSON functions are rewritten to use a new internal parse tree
290 format called <a href="json1.html#jsonbx">JSONB</a>. The new parse-tree format is serializable
291 and hence can be stored in the database to avoid unnecessary re-parsing
292 whenever the JSON value is used.
293 <li> New versions of JSON-generating functions generate binary JSONB instead
294 of JSON text.
295 <li> The <a href="json1.html#jvalid">json_valid()</a> function adds an optional second argument that
296 specifies what it means for the first argument to be "well-formed".
297 </ol>
298 <li> Add the <a href="fts5.html#the_tokendata_option">FTS5 tokendata option</a> to the <a href="fts5.html">FTS5</a> virtual table.
299 <li> The <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> optimization is now enabled by default.
300 Disable it at compile-time using -DSQLITE_DIRECT_OVERFLOW_READ=0.
301 <li> Query planner improvements:
302 <ol type="a">
303 <li> Do not allow the transitive constraint optimization to trick the
304 query planner into using a range constraint when a better equality
305 constraint is available.
306 (<a href="https://sqlite.org/forum/forumpost/2568d1f6e6">Forum post 2568d1f6e6</a>.)
307 <li> The query planner now does a better job of disregarding
308 indexes that <a href="lang_analyze.html">ANALYZE</a> identifies as low-quality.
309 (<a href="https://sqlite.org/forum/forumpost/6f0958b03b">Forum post 6f0958b03b</a>.)
310 </ol>
311 <li> Increase the default value for <a href="limits.html#max_page_count">SQLITE_MAX_PAGE_COUNT</a> from 1073741824 to
312 4294967294.
313 <li> Enhancements to the <a href="cli.html">CLI</a>:
314 <ol type="a">
315 <li> Improvements to the display of UTF-8 content on Windows
316 <li> Automatically detect playback of ".dump" scripts and make appropriate
317 changes to settings such as ".dbconfig defensive off" and
318 ".dbconfig dqs_dll on".
319 </ol>
320 <p><b>Hashes:</b>
321 <li>SQLITE_SOURCE_ID: 2024-01-15 17:01:13 1066602b2b1976fe58b5150777cced894af17c803e068f5918390d6915b46e1d
322 <li>SHA3-256 for sqlite3.c: f56d8e5e8c61d87b957f1cc60b3042c134d7bc0ca3aba002e6999e8f0af310a3
323
324 </ol></p>
325 <a name="version_3_44_2"></a>
326 <h3>2023-11-24 (3.44.2)</h3><p><ol class='lessindent'>
327 <li> Fix a mistake in the <a href="cli.html">CLI</a> that was introduced by the fix (item 15 above) in 3.44.1.
328 <li> Fix a problem in FTS5 that was discovered during internal fuzz testing only
329 minutes after the 3.44.1 release was tagged.
330 <li> Fix incomplete assert() statements that the fuzzer discovered the day after
331 the previous release.
332 <li> Fix a couple of harmless compiler warnings that appeared in debug builds with GCC 16.
333 <p><b>Hashes:</b>
334 <li>SQLITE_SOURCE_ID: 2023-11-24 11:41:44 ebead0e7230cd33bcec9f95d2183069565b9e709bf745c9b5db65cc0cbf92c0f
335 <li>SHA3-256 for sqlite3.c: bd70b012e2d1b3efa132d905224cd0ab476a69b892f8c6b21135756ec7ffbb13
336
337 </ol></p>
338 <a name="version_3_44_1"></a>
339 <h3>2023-11-22 (3.44.1)</h3><p><ol class='lessindent'>
340 <li> Change the <a href="cli.html">CLI</a> so that it uses UTF-16 for console I/O on Windows. This
341 enables proper display of unicode text on old Windows7 machines.
342 <li> Other obscure bug fixes.
343 <p><b>Hashes:</b>
344 <li>SQLITE_SOURCE_ID: 2023-11-22 14:18:12 d295f48e8f367b066b881780c98bdf980a1d550397d5ba0b0e49842c95b3e8b4
345 <li>SHA3-256 for sqlite3.c: e359dc502a73f3a8ad8e976a51231134d25cb93ad557a724dd92fe0c5897113a
346
347 </ol></p>
348 <a name="version_3_44_0"></a>
349 <h3>2023-11-01 (3.44.0)</h3><p><ol class='lessindent'>
350 <li> <a href="lang_aggfunc.html">Aggregate functions</a> can now include an ORDER BY clause after their last
351 parameter. The arguments to the function are processed in the order
352 specified. This can be important for functions like
353 <a href="lang_aggfunc.html#group_concat">string_agg()</a> and <a href="json1.html#jgrouparray">json_group_array()</a>.
354 <li> Add support for the <a href="lang_corefunc.html#concat">concat()</a> and <a href="lang_corefunc.html#concat_ws">concat_ws()</a> scalar SQL functions,
355 compatible with PostgreSQL, SQLServer, and MySQL.
356 <li> Add support for the <a href="lang_aggfunc.html#group_concat">string_agg()</a> aggregate SQL function, compatible
357 with PostgreSQL and SQLServer.
358 <li> New conversion letters on the <a href="lang_datefunc.html#strftm">strftime() SQL function</a>: %e %F %I %k %l %p %P %R %T %u
359 <li> Add new C-language APIs: <a href="c3ref/get_clientdata.html">sqlite3_get_clientdata()</a> and <a href="c3ref/get_clientdata.html">sqlite3_set_clientdata()</a>.
360 <li> Many errors associated with CREATE TABLE are now raised when the CREATE TABLE statement
361 itself is run, rather than being deferred until the first time the table is actually
362 used.
363 <li> The <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command now verifies the consistency of the
364 content in various built-in <a href="vtab.html">virtual tables</a> using the new <a href="vtab.html#xintegrity">xIntegrity method</a>.
365 This works for the <a href="fts3.html">FTS3</a>, <a href="fts3.html#fts4">FTS4</a>, <a href="fts5.html">FTS5</a>, <a href="rtree.html">RTREE</a>, and <a href="geopoly.html">GEOPOLY</a> extensions.
366 <li> The <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a> setting now prevents <a href="pragma.html#pragma_writable_schema">PRAGMA writable_schema</a>
367 from being turned on. Previously writable_schema could be turned on, but would
368 not actually allow the schema to be writable. Now it simply cannot be turned on.
369 <li> Tag the built-in <a href="fts3.html">FTS3</a>, <a href="fts3.html#fts4">FTS4</a>, <a href="fts5.html">FTS5</a>, <a href="rtree.html">RTREE</a>, and <a href="geopoly.html">GEOPOLY</a> virtual tables as
370 <a href="c3ref/c_vtab_constraint_support.html#sqlitevtabinnocuous">SQLITE_VTAB_INNOCUOUS</a> so that they can be used inside of triggers in
371 high-security deployments.
372 <li> The <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> statement is deprecated, as its use when the
373 schema contains LIKE operators can lead to reports of database corruption
374 by <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>.
375 <li> <a href="compile.html#use_seh">SQLITE_USE_SEH</a> (Structured Exception Handling) is now enabled by default whenever
376 SQLite is built using the Microsoft C compiler. It can be disabled using
377 -D<a href="compile.html#omit_seh">SQLITE_OMIT_SEH</a>.
378 <li> Query planner optimizations:
379 <ol type="a">
380 <li> In partial index scans, if the WHERE clause implies a constant value for a table
381 column, replace occurrences of that table column with the constant. This
382 increases the likelihood of the partial index being a covering index.
383 <li> Disable the view-scan optimization (added in <a href="#version_3_42_0">version 3.42.0</a> - item 1c)
384 as it was causing multiple performance regressions. In its place, reduce
385 the estimated row count for DISTINCT subqueries by a factor of 8.
386 </ol>
387 <li> SQLite now performs run-time detection of whether or not the underlying hardware
388 supports "long double" with precision greater than "double" and uses appropriate
389 floating-point routines depending on what it discovered.
390 <li> The <a href="cli.html">CLI</a> for Windows now defaults to using UTF-8 for both input
391 and output on platforms that support it. The --no-utf8 option is available
392 to disable UTF8 support.
393 <p><b>Hashes:</b>
394 <li>SQLITE_SOURCE_ID: 2023-11-01 11:23:50 17129ba1ff7f0daf37100ee82d507aef7827cf38de1866e2633096ae6ad8130
395 <li>SHA3-256 for sqlite3.c: d9e6530096136067644b1cb2057b3b0fa51070df99ec61971f73c9ba6aa9a36e
396
397 </ol></p>
398 <a name="version_3_43_2"></a>
399 <h3>2023-10-10 (3.43.2)</h3><p><ol class='lessindent'>
400 <li> Fix a couple of obscure UAF errors and an obscure memory leak.
401 <li> Omit the use of the sprintf() function from the standard library
402 in the <a href="cli.html">CLI</a>, as this now generates warnings on some platforms.
403 <li> Avoid conversion of a double into unsigned long long integer, as
404 some platforms do not do such conversions correctly.
405 <p><b>Hashes:</b>
406 <li>SQLITE_SOURCE_ID: 2023-10-10 12:14:04 4310099cce5a487035fa535dd3002c59ac7f1d1bec68d7cf317fd3e769484790
407 <li>SHA3-256 for sqlite3.c: e17a3dc69330bd109256fb5a6e2b3ce8fbec48892a800389eb7c0f8856703161
408
409 </ol></p>
410 <a name="version_3_43_1"></a>
411 <h3>2023-09-11 (3.43.1)</h3><p><ol class='lessindent'>
412 <li> Fix a regression in the way that the <a href="lang_aggfunc.html#sumunc">sum()</a>, <a href="lang_aggfunc.html#avg">avg()</a>, and <a href="lang_aggfunc.html#sumunc">total()</a>
413 aggregate functions handle infinities.
414 <li> Fix a bug in the <a href="json1.html#jarraylen">json_array_length()</a> function that occurs when the
415 argument comes directly from <a href="json1.html#jrm">json_remove()</a>.
416 <li> Fix the omit-unused-subquery-columns optimization (introduced in
417 in version 3.42.0) so that it works correctly if the subquery is a
418 compound where one arm is DISTINCT and the other is not.
419 <li> Other minor fixes.
420 <p><b>Hashes:</b>
421 <li>SQLITE_SOURCE_ID: 2023-09-11 12:01:27 2d3a40c05c49e1a49264912b1a05bc2143ac0e7c3df588276ce80a4cbc9bd1b0
422 <li>SHA3-256 for sqlite3.c: 391af0a4755e31ae8b29776a4a060b678823ffe4c4db558567567c688a578589
423
424 </ol></p>
425 <a name="version_3_43_0"></a>
426 <h3>2023-08-24 (3.43.0)</h3><p><ol class='lessindent'>
427 <li> Add support for <a href="fts5.html#clssdeltab">Contentless-Delete FTS5 Indexes</a>. This is a variety
428 of <a href="fts5.html">FTS5</a> full-text search index that omits storing the content that is being indexed
429 while also allowing records to be deleted.
430 <li> Enhancements to the <a href="lang_datefunc.html">date and time functions</a>:
431 <ol type="a">
432 <li> Added new <a href="lang_datefunc.html#tmshf">time shift modifiers</a> of the form <tt>&plusmn;YYYY-MM-DD HH:MM:SS.SSS</tt>.
433 <li> Added the <a href="lang_datefunc.html#tmdif">timediff() SQL function</a>.
434 </ol>
435 <li> Added the <a href="lang_corefunc.html#octet_length">octet_length(X)</a> SQL function.
436 <li> Added the <a href="c3ref/stmt_explain.html">sqlite3_stmt_explain()</a> API.
437 <li> Query planner enhancements:
438 <ol type="a">
439 <li> Generalize the LEFT JOIN strength reduction optimization so that it works
440 for RIGHT and FULL JOINs as well. Rename it to
441 <a href="optoverview.html#leftjoinreduction">OUTER JOIN strength reduction</a>.
442 <li> Enhance the theorem prover in the <a href="optoverview.html#leftjoinreduction">OUTER JOIN strength reduction</a> optimization
443 so that it returns fewer false-negatives.
444 </ol>
445 <li> Enhancements to the <a href="floatingpoint.html#decext">decimal extension</a>:
446 <ol type="a">
447 <li> New function decimal_pow2(N) returns the N-th power of 2 for integer N
448 between -20000 and +20000.
449 <li> New function decimal_exp(X) works like decimal(X) except that it returns
450 the result in exponential notation - with a "e+NN" at the end.
451 <li> If X is a floating-point value, then the decimal(X) function now does a full
452 expansion of that value into its exact decimal equivalent.
453 </ol>
454 <li> Performance enhancements to <a href="json1.html">JSON processing</a> results in a 2x performance
455 improvement for some kinds of processing on large JSON strings.
456 <li> New makefile target "verify-source" checks to ensure that there are no
457 unintentional changes in the source tree. (Works for
458 <a href="getthecode.html">canonical source code</a> only -
459 not for <a href="amalgamation.html#amalgtarball">precompiled amalgamation tarballs</a>.)
460 <li> Added the <a href="compile.html#use_seh">SQLITE_USE_SEH</a> compile-time option that enables Structured
461 Exception Handling on Windows while working with the memory-mapped
462 <a href="walformat.html#shm">shm file</a> that is part of <a href="wal.html">WAL mode</a> processing. This option is enabled
463 by default when building on Windows using Makefile.msc.
464 <li> The <a href="vfs.html">VFS</a> for unix now assumes that the nanosleep() system call is
465 available unless compiled with -DHAVE_NANOSLEEP=0.
466 <p><b>Hashes:</b>
467 <li>SQLITE_SOURCE_ID: 2023-08-24 12:36:59 0f80b798b3f4b81a7bb4233c58294edd0f1156f36b6ecf5ab8e83631d468778c
468 <li>SHA3-256 for sqlite3.c: a6fc5379891d77b69a7d324cd24a437307af66cfdc3fef5dfceec3c82c8d4078
469
470 </ol></p>
471 <a name="version_3_42_0"></a>
472 <h3>2023-05-16 (3.42.0)</h3><p><ol class='lessindent'>
473 <li> Add the <a href="fts5.html#the_secure_delete_configuration_option">FTS5 secure-delete command</a>. This option causes all forensic traces
474 to be removed from the FTS5 inverted index when content is deleted.
475 <li> Enhance the <a href="json1.html">JSON SQL functions</a> to support <a href="json1.html#json5">JSON5 extensions</a>.
476 <li> The <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiglog">SQLITE_CONFIG_LOG</a> and <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpcachehdrsz">SQLITE_CONFIG_PCACHE_HDRSZ</a> calls to <a href="c3ref/config.html">sqlite3_config()</a>
477 are now allowed to occur <i>after</i> <a href="c3ref/initialize.html">sqlite3_initialize()</a>.
478 <li> New <a href="c3ref/db_config.html">sqlite3_db_config()</a> options: <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigstmtscanstatus">SQLITE_DBCONFIG_STMT_SCANSTATUS</a> and
479 <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigreversescanorder">SQLITE_DBCONFIG_REVERSE_SCANORDER</a>.
480 <li> Query planner improvements:
481 <ol type="a">
482 <li> Enable the "count-of-view" optimization by default.
483 <li> Avoid computing unused columns in subqueries.
484 <li> Improvements to the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a>.
485 </ol>
486 <li> Enhancements to the <a href="cli.html">CLI</a>:
487 <ol type="a">
488 <li> Add the --unsafe-testing command-line option. Without this option, some
489 dot-commands (ex: ".testctrl") are now disabled because those commands
490 that are intended for testing only and can cause malfunctions if misused.
491 <li> Allow commands ".log on" and ".log off", even in --safe mode.
492 <li> "--" as a command-line argument means all subsequent arguments that
493 start with "-" are interpreted as normal non-option argument.
494 <li> Magic parameters ":inf" and ":nan" bind to floating point literals
495 Infinity and NaN, respectively.
496 <li> The --utf8 command-line option omits all translation to or from
497 MBCS on the Windows console for interactive sessions, and sets
498 the console code page for UTF-8 I/O during such sessions.
499 The --utf8 option is a no-op on all other platforms.
500 </ol>
501 <li> Add the ability for <a href="appfunc.html">application-defined SQL functions</a> to have the same name
502 as join keywords: CROSS, FULL, INNER, LEFT, NATURAL, OUTER, or RIGHT.
503 <li> Enhancements to <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>:
504 <ol type="a">
505 <li> Detect and raise an error when a NaN value is stored in a NOT NULL column.
506 <li> Improved error message output identifies the root page of a b-tree when
507 an error is found within a b-tree.
508 </ol>
509 <li> Allow the <a href="sessionintro.html">session extension</a> to be configured to capture changes from
510 tables that lack an explicit ROWID.
511 <li> Added the <a href="lang_datefunc.html#subsec">subsecond modifier</a> to the <a href="lang_datefunc.html">date and time functions</a>.
512 <li> Negative values passed into <a href="c3ref/sleep.html">sqlite3_sleep()</a> are henceforth interpreted as 0.
513 <li> The maximum recursion depth for JSON arrays and objects is lowered from 2000
514 to 1000.
515 <li> Extended the <a href="printf.html">built-in printf()</a> function so the <a href="printf.html#comma">comma option</a> now works with
516 floating-point conversions in addition to integer conversions.
517 <li> Miscellaneous bug fixes and performance optimizations
518 <p><b>Hashes:</b>
519 <li>SQLITE_SOURCE_ID: 2023-05-16 12:36:15 831d0fb2836b71c9bc51067c49fee4b8f18047814f2ff22d817d25195cf350b0
520 <li>SHA3-256 for sqlite3.c: 6aa3fadf000000625353bbaa1e83af114c40c240a0aa5a2c1c2aabcfc28d4f92
521
522 </ol></p>
523 <a name="version_3_41_2"></a>
524 <h3>2023-03-22 (3.41.2)</h3><p><ol class='lessindent'>
525 <li> Multiple fixes for reads past the end of memory buffers
526 (NB: <i>reads</i> not <i>writes</i>) in the following circumstances:
527 <ol type="a">
528 <li> When processing a corrupt database file using the non-standard
529 <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a> compile-time option.
530 <li> In the <a href="cli.html">CLI</a> when the <a href="c3ref/errcode.html">sqlite3_error_offset()</a> routine returns an out-of-range value
531 (see also the fix to sqlite3_error_offset() below).
532 <li> In the <a href="recovery.html">recovery extension</a>.
533 <li> In <a href="fts3.html">FTS3</a> when processing a corrupt database file.
534 </ol>
535 <li> Fix the <a href="c3ref/errcode.html">sqlite3_error_offset()</a> so that it does not return out-of-range values when
536 reporting errors associated with <a href="gencol.html">generated columns</a>.
537 <li> Multiple fixes in the query optimizer for problems that cause incorrect
538 results for bizarre, fuzzer-generated queries.
539 <li> Increase the size of the reference counter in the page cache object to 64 bits to
540 ensure that the counter never overflows.
541 <li> Fix a performance regression caused by a bug fix in patch release 3.41.1.
542 <li> Fix a few incorrect assert() statements.
543 <p><b>Hashes:</b>
544 <li>SQLITE_SOURCE_ID: 2023-03-22 11:56:21 0d1fc92f94cb6b76bffe3ec34d69cffde2924203304e8ffc4155597af0c191da
545 <li>SHA3-256 for sqlite3.c: c83f68b7aac1e7d3ed0fcdb9857742f024449e1300bfb3375131a6180b36cf7c
546
547 </ol></p>
548 <a name="version_3_41_1"></a>
549 <h3>2023-03-10 (3.41.1)</h3><p><ol class='lessindent'>
550 <li> Provide compile-time options -DHAVE_LOG2=0 and -DHAVE_LOG10=0 to enable SQLite to be
551 compiled on systems that omit the standard library functions log2() and log10(), repectively.
552 <li> Ensure that the datatype for column t1.x in
553 "<tt>CREATE TABLE t1 AS SELECT CAST(7 AS INT) AS x;</tt>" continues to be INT and is not NUM,
554 for historical compatibility.
555 <li> Enhance <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> to detect when extra bytes appear at the end of an
556 index record.
557 <li> Fix various obscure bugs reported by the user community. See the
558 <a href="https://sqlite.org/src/timeline?from=version-3.41.0&to=version-3.41.1">timeline of changes</a>
559 for details.
560
561 <p><b>Hashes:</b>
562 <li>SQLITE_SOURCE_ID: 2023-03-10 12:13:52 20399f3eda5ec249d147ba9e48da6e87f969d7966a9a896764ca437ff7e737ff
563 <li>SHA3-256 for sqlite3.c: d0d9db8425570f4a57def04fb8f4ac84f5c3e4e71d3d4d10472e3639c5fdf09f
564
565 </ol></p>
566 <a name="version_3_41_0"></a>
567 <h3>2023-02-21 (3.41.0)</h3><p><ol class='lessindent'>
568 <li>Query planner improvements:
569 <ol type="a">
570 <li> Make use of <a href="expridx.html">indexed expressions</a> within an aggregate query that
571 includes a GROUP BY clause.
572 <li> The query planner has improved awareness of when an index is
573 a <a href="queryplanner.html#covidx">covering index</a> and adjusts predicted runtimes accordingly.
574 <li> The query planner is more aggressive about using <a href="optoverview.html#coroutines">co-routines</a> rather
575 than materializing subqueries and views.
576 <li> Queries against the built-in table-valued functions <a href="json1.html#jtree">json_tree()</a> and
577 <a href="json1.html#jeach">json_each()</a> will now usually treat "ORDER BY rowid" as a no-op.
578 <li> Enhance the ability of the query planner to use <a href="expridx.html">indexed expressions</a>
579 even if the expression has been modified by the
580 <a href="optoverview.html#constprop">constant-propagation optimization</a>.
581 (See <a href="https://sqlite.org/forum/forumpost/0a539c76db3b9e29">forum thread 0a539c7</a>.)
582 </ol>
583 <li>Add the built-in <a href="lang_corefunc.html#unhex">unhex()</a> SQL function.
584 <li>Add the base64 and base85 application-defined functions as an extension and
585 include that extension in the <a href="cli.html">CLI</a>.
586 <li>Add the <a href="c3ref/stmt_scanstatus.html">sqlite3_stmt_scanstatus_v2()</a> interface. (This interface is only
587 available if SQLite is compiled using <a href="compile.html#enable_stmt_scanstatus">SQLITE_ENABLE_STMT_SCANSTATUS</a>.)
588 <li>In-memory databases created using <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> now report their
589 filename as an empty string, not as 'x'.
590 <li>Changes to the <a href="cli.html">CLI</a>:
591 <ol type="a">
592 <li> Add the new base64() and base85() SQL functions
593 <li> Enhanced <a href="eqp.html">EXPLAIN QUERY PLAN</a> output using the new <a href="c3ref/stmt_scanstatus.html">sqlite3_stmt_scanstatus_v2()</a>
594 interface when compiled using <a href="compile.html#enable_stmt_scanstatus">SQLITE_ENABLE_STMT_SCANSTATUS</a>.
595 <li> The "<tt>.scanstats est</tt>" command provides query planner estimates in profiles.
596 <li> The continuation prompt indicates if the input is currently inside of a
597 string literal, identifier literal, comment, trigger definition, etc.
598 <li> Enhance the --safe command-line option to disallow dangerous SQL functions.
599 <li> The <a href="quirks.html#dblquote">double-quoted string misfeature</a> is now disabled by default for CLI
600 builds. Legacy use cases can reenable the misfeature at run-time using
601 the "<tt>.dbconfig dqs_dml on</tt>" and "<tt>.dbconfig dqs_ddl on</tt>"
602 commands.
603 </ol>
604 <li>Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command so that it detects when text strings in
605 a table are equivalent to but not byte-for-byte identical to the same strings in the index.
606 <li>Enhance the <a href="carray.html">carray table-valued function</a> so that it is able to bind an array of
607 BLOB objects.
608 <li>Added the <a href="c3ref/interrupt.html">sqlite3_is_interrupted()</a> interface.
609 <li>Long-running calls to <a href="c3ref/prepare.html">sqlite3_prepare()</a> and similar now invoke the
610 <a href="c3ref/progress_handler.html">progress handler callback</a> and react to <a href="c3ref/interrupt.html">sqlite3_interrupt()</a>.
611 <li>The <a href="c3ref/vtab_in_first.html">sqlite3_vtab_in_first()</a> and <a href="c3ref/vtab_in_first.html">sqlite3_vtab_in_next()</a> functions are enhanced so that
612 they reliably detect if they are invoked on a parameter that was not selected for
613 multi-value IN processing using <a href="c3ref/vtab_in.html">sqlite3_vtab_in()</a>.
614 They return SQLITE_ERROR instead of SQLITE_MISUSE in this case.
615 <li>The parser now ignores excess parentheses around a subquery on the right-hand side
616 of an IN operator, so that SQLite now works the same as PostgreSQL in this regard.
617 Formerly, SQLite treated the subquery as an expression with an implied "LIMIT 1".
618 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlresetcache">SQLITE_FCNTL_RESET_CACHE</a> option to the <a href="c3ref/file_control.html">sqlite3_file_control()</a> API.
619 <li>Makefile improvements:
620 <ol type="a">
621 <li>The new makefile target "sqlite3r.c" builds an <a href="amalgamation.html">amalgamation</a> that includes
622 the <a href="recovery.html">recovery extension</a>.
623 <li>New makefile targets "devtest" and "releasetest" for running a
624 quick developmental test prior to doing a check-in and for doing a full
625 release test, respectively.
626 </ol>
627 <li>Miscellaneous performance enhancements.
628 <p><b>Hashes:</b>
629 <li>SQLITE_SOURCE_ID: 2023-02-21 18:09:37 05941c2a04037fc3ed2ffae11f5d2260706f89431f463518740f72ada350866d
630 <li>SHA3-256 for sqlite3.c: 02bd9e678460946810801565667fdb8f0c29c78e51240512d2e5bb3dbdee7464
631
632 </ol></p>
633 <a name="version_3_40_1"></a>
634 <h3>2022-12-28 (3.40.1)</h3><p><ol class='lessindent'>
635 <li> Fix the <a href="cli.html#safemode">--safe command-line option</a> to the <a href="cli.html">CLI</a>
636 such that it correctly disallows the
637 use of SQL functions like writefile() that can cause harmful side-effects.
638 <li> Fix a potential infinite loop in the <a href="malloc.html#memsys5">memsys5</a> alternative memory allocator. This
639 bug was introduced by a performance optimization in version 3.39.0.
640 <li> Various other obscure fixes.
641 <p><b>Hashes:</b>
642 <li>SQLITE_SOURCE_ID: 2022-12-28 14:03:47 df5c253c0b3dd24916e4ec7cf77d3db5294cc9fd45ae7b9c5e82ad8197f38a24
643 <li>SHA3-256 for sqlite3.c: 4d6800e9032ff349376fe612e422b49ba5eb4e378fac0b3e405235d09dd366ab
644
645 </ol></p>
646 <a name="version_3_40_0"></a>
647 <h3>2022-11-16 (3.40.0)</h3><p><ol class='lessindent'>
648 <li> Add support for compiling <a href="https://sqlite.org/wasm">SQLite to WASM</a>
649 and running it in web browsers. NB: The WASM build and its interfaces
650 are considered "beta" and are subject to minor changes if the need
651 arises. We anticipate finalizing the interface for the next release.
652 <li> Add the <a href="recovery.html">recovery extension</a> that might be able to recover some content
653 from a corrupt database file.
654 <li> Query planner enhancements:
655 <ol type="a">
656 <li> Recognize <a href="queryplanner.html#covidx">covering indexes</a> on tables with more than 63 columns where
657 columns beyond the 63rd column are used in the query and/or are
658 referenced by the index.
659 <li> Extract the values of expressions contained within <a href="expridx.html">expression indexes</a>
660 where practical, rather than recomputing the expression.
661 <li> The NOT NULL and IS NULL operators (and their equivalents) avoid
662 loading the content of large strings and BLOB values from disk.
663 <li> Avoid materializing a view on which a full scan is performed
664 exactly once. Use and discard the rows of the view as they are computed.
665 <li> Allow flattening of a subquery that is the right-hand operand of
666 a LEFT JOIN in an aggregate query.
667 </ol>
668 <li> A new typedef named <a href="c3ref/filename.html">sqlite3_filename</a> is added and used to represent
669 the name of a database file. Various interfaces are
670 modified to use the new typedef instead of "char*". This interface
671 change should be fully backwards compatible, though it might cause
672 (harmless) compiler warnings when rebuilding some legacy applications.
673 <li> Add the <a href="c3ref/value_encoding.html">sqlite3_value_encoding()</a> interface.
674 <li> Security enhancement: <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a> is augmented to prohibit
675 changing the <a href="pragma.html#pragma_schema_version">schema_version</a>. The schema_version
676 becomes read-only in defensive mode.
677 <li> Enhancements to the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> statement:
678 <ol type="a">
679 <li> Columns in non-STRICT tables with TEXT affinity should not contain numeric values.
680 <li> Columns in non-STRICT tables with NUMERIC affinity should not
681 contain TEXT values that could be converted into numbers.
682 <li> Verify that the rows of a <a href="withoutrowid.html">WITHOUT ROWID</a> table are in the correct order.
683 </ol>
684 <li> Enhance the <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> statement so that it honors the
685 <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> setting.
686 <li> Enhance the <a href="c3ref/strglob.html">sqlite3_strglob()</a> and <a href="c3ref/strlike.html">sqlite3_strlike()</a> APIs so that they are able
687 to accept NULL pointers for their string parameters and still generate a sensible
688 result.
689 <li> Provide the new <a href="compile.html#max_allocation_size">SQLITE_MAX_ALLOCATION_SIZE</a> compile-time option for limiting
690 the size of memory allocations.
691 <li> Change the algorithm used by SQLite's built-in pseudo-random number generator (PRNG)
692 from RC4 to Chacha20.
693 <li> Allow two or more indexes to have the same name as long as they are all in
694 separate schemas.
695 <li> Miscellaneous performance optimizations result in about 1% fewer CPU cycles
696 used on typical workloads.
697 <p><b>Hashes:</b>
698 <li>SQLITE_SOURCE_ID: 2022-11-16 12:10:08 89c459e766ea7e9165d0beeb124708b955a4950d0f4792f457465d71b158d318
699 <li>SHA3-256 for sqlite3.c: ab8da6bc754642989e67d581f26683dc705b068cea671970f0a7d32cfacbad19
700
701 </ol></p>
702 <a name="version_3_39_4"></a>
703 <h3>2022-09-29 (3.39.4)</h3><p><ol class='lessindent'>
704 <li> Fix the build on Windows so that it works with -DSQLITE_OMIT_AUTOINIT
705 <li> Fix a long-standing problem in the btree balancer that might, in rare cases,
706 cause database corruption if the application uses an
707 <a href="c3ref/pcache_methods2.html">application-defined page cache</a>.
708 <li> Enhance <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a> so that it disallows <a href="lang_createtrigger.html">CREATE TRIGGER</a>
709 statements if one or more of the statements in the body of the trigger write
710 into <a href="vtab.html#xshadowname">shadow tables</a>.
711 <li> Fix a possible integer overflow in the size computation for a memory allocation
712 in FTS3.
713 <li> Fix a misuse of the <a href="c3ref/get_auxdata.html">sqlite3_set_auxdata()</a> interface in the
714 <a href="https://sqlite.org/src/dir/ext/icu">ICU Extension</a>.
715 <p><b>Hashes:</b>
716 <li>SQLITE_SOURCE_ID: 2022-09-29 15:55:41 a29f9949895322123f7c38fbe94c649a9d6e6c9cd0c3b41c96d694552f26b309
717 <li>SHA3-256 for sqlite3.c: f65082298127e2ddae6539beb94f5204b591df64ba2c7da83c7d0faffd6959d8
718
719 </ol></p>
720 <a name="version_3_39_3"></a>
721 <h3>2022-09-05 (3.39.3)</h3><p><ol class='lessindent'>
722 <li> Use a statement journal on DML statement affecting two or more database
723 rows if the statement makes use of a SQL functions that might abort. See
724 <a href="https://sqlite.org/forum/forumpost/9b9e4716c0d7bbd1">forum thread 9b9e4716c0d7bbd1</a>.
725 <li> Use a mutex to protect the <a href="pragma.html#pragma_temp_store_directory">PRAGMA temp_store_directory</a> and
726 <a href="pragma.html#pragma_data_store_directory">PRAGMA data_store_directory</a> statements, even though they are deprecated and
727 documented as not being threadsafe. See
728 <a href="https://sqlite.org/forum/forumpost/719a11e1314d1c70">forum post 719a11e1314d1c70</a>.
729 <li> Other bug and warning fixes. See the
730 <a href="https://sqlite.org/src/timeline?p=version-3.39.3&bt=version-3.39.2">timeline</a>
731 for details.
732 <p><b>Hashes:</b>
733 <li>SQLITE_SOURCE_ID: 2022-09-05 11:02:23 4635f4a69c8c2a8df242b384a992aea71224e39a2ccab42d8c0b0602f1e826e8
734 <li>SHA3-256 for sqlite3.c: 2fc273cf8032b601c9e06207efa0ae80eb73d5a1d283eb91096c815fa9640257
735
736 </ol></p>
737 <a name="version_3_39_2"></a>
738 <h3>2022-07-21 (3.39.2)</h3><p><ol class='lessindent'>
739 <li> Fix a performance regression in the query planner associated with rearranging
740 the order of FROM clause terms in the presences of a LEFT JOIN.
741 <li> Apply fixes for CVE-2022-35737, Chromium bugs 1343348 and 1345947,
742 <a href="https://sqlite.org/forum/forumpost/3607259d3c">forum post 3607259d3c</a>, and
743 other minor problems discovered by internal testing.
744 <p><b>Hashes:</b>
745 <li>SQLITE_SOURCE_ID: 2022-07-21 15:24:47 698edb77537b67c41adc68f9b892db56bcf9a55e00371a61420f3ddd668e6603
746 <li>SHA3-256 for sqlite3.c: bffbaafa94706f0ed234f183af3eb46e6485e7e2c75983173ded76e0da805f11
747
748 </ol></p>
749 <a name="version_3_39_1"></a>
750 <h3>2022-07-13 (3.39.1)</h3><p><ol class='lessindent'>
751 <li> Fix an incorrect result from a query that uses a view that contains a compound
752 SELECT in which only one arm contains a RIGHT JOIN and where the view is not
753 the first FROM clause term of the query that contains the view.
754 <a href="https://sqlite.org/forum/forumpost/174afeae5734d42d">forum post 174afeae5734d42d</a>.
755 <li> Fix some harmless compiler warnings.
756 <li> Fix a long-standing problem with <a href="lang_altertable.html#altertabrename">ALTER TABLE RENAME</a> that can only arise
757 if the <a href="c3ref/limit.html">sqlite3_limit</a>(<a href="c3ref/c_limit_attached.html#sqlitelimitsqllength">SQLITE_LIMIT_SQL_LENGTH</a>) is set to a very small value.
758 <li> Fix a long-standing problem in <a href="fts3.html">FTS3</a> that can only arise when compiled with
759 the <a href="compile.html#enable_fts3_parenthesis">SQLITE_ENABLE_FTS3_PARENTHESIS</a> compile-time option.
760 <li> Fix the build so that is works when the <a href="compile.html#debug">SQLITE_DEBUG</a> and
761 <a href="compile.html#omit_windowfunc">SQLITE_OMIT_WINDOWFUNC</a> compile-time options are both provided at the
762 same time.
763 <li> Fix the initial-prefix optimization for the <a href="lang_expr.html#regexp">REGEXP</a> extension so that it works
764 correctly even if the prefix contains characters that require a 3-byte UTF8
765 encoding.
766 <li> Enhance the <a href="stmt.html">sqlite_stmt</a> virtual table so that it buffers all of its output.
767 <p><b>Hashes:</b>
768 <li>SQLITE_SOURCE_ID: 2022-07-13 19:41:41 7c16541a0efb3985578181171c9f2bb3fdc4bad6a2ec85c6e31ab96f3eff201f
769 <li>SHA3-256 for sqlite3.c: 6d13fcf1c31133da541d1eb8a83552d746f39b81a0657bd4077fed0221749511
770
771 </ol></p>
772 <a name="version_3_39_0"></a>
773 <h3>2022-06-25 (3.39.0)</h3><p><ol class='lessindent'>
774 <li> Add (long overdue) support for <a href="lang_select.html#rjoin">RIGHT and FULL OUTER JOIN</a>.
775 <li> Add new binary comparison operators <a href="lang_expr.html#isdf">IS NOT DISTINCT FROM</a> and <a href="lang_expr.html#isdf">IS DISTINCT FROM</a>
776 that are equivalent to IS and IS NOT, respective, for compatibility with
777 PostgreSQL and SQL standards.
778 <li> Add a new return code (value "3") from the <a href="c3ref/vtab_distinct.html">sqlite3_vtab_distinct()</a>
779 interface that indicates a query that has both DISTINCT and ORDER BY
780 clauses.
781 <li> Added the <a href="c3ref/db_name.html">sqlite3_db_name()</a> interface.
782 <li> The unix os interface resolves all symbolic links in database
783 filenames to create a canonical name for the database before the
784 file is opened.
785 If the <a href="c3ref/c_open_autoproxy.html">SQLITE_OPEN_NOFOLLOW</a> flag is used with <a href="c3ref/open.html">sqlite3_open_v2()</a>
786 or similar, the open will fail if any element of the path is a
787 symbolic link.
788 <li> Defer materializing views until the materialization
789 is actually needed, thus avoiding unnecessary work if the materialization turns
790 out to never be used.
791 <li> The <a href="lang_select.html#resultset">HAVING clause</a> of a <a href="lang_select.html">SELECT statement</a> is now allowed on any aggregate query,
792 even queries that do not have a <a href="lang_select.html#resultset">GROUP BY clause</a>.
793 <li> Many <a href="cpu.html#microopt">microoptimizations</a> collectively reduce CPU cycles by about 2.3%.
794 <p><b>Hashes:</b>
795 <li>SQLITE_SOURCE_ID: 2022-06-25 14:57:57 14e166f40dbfa6e055543f8301525f2ca2e96a02a57269818b9e69e162e98918
796 <li>SHA3-256 for sqlite3.c: d9c439cacad5e4992d0d25989cfd27a4c4f59a3183c97873bc03f0ad1aa78b7a
797
798 </ol></p>
799 <a name="version_3_38_5"></a>
800 <h3>2022-05-06 (3.38.5)</h3><p><ol class='lessindent'>
801 <li> Fix <a href="news.html#2022_05_06">a blunder</a> in the <a href="cli.html">CLI</a> of the 3.38.4 release.
802
803 <p><b>Hashes:</b>
804 <li>SQLITE_SOURCE_ID: 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe
805 <li>SHA3-256 for sqlite3.c: b05ef42ed234009b4b3dfb36c5f5ccf6d728da80f25ee560291269cf6cfe635f
806
807 </ol></p>
808 <a name="version_3_38_4"></a>
809 <h3>2022-05-04 (3.38.4)</h3><p><ol class='lessindent'>
810 <li> Fix a byte-code problem in the Bloom filter pull-down optimization added by release
811 3.38.0 in which an error in the byte code causes the byte code engine to enter an
812 infinite loop when the pull-down optimization encounters a NULL key.
813 <a href='https://sqlite.org/forum/forumpost/2482b32700384a0f'>Forum thread 2482b32700384a0f</a>.
814 <li> Other minor patches. See the
815 <a href='https://sqlite.org/src/timeline?p=branch-3.38&bt=version-3.38.3'>timeline</a> for
816 details.
817
818 <p><b>Hashes:</b>
819 <li>SQLITE_SOURCE_ID: 2022-05-04 15:45:55 d402f49871152670a62f4f28cacb15d814f2c1644e9347ad7d258e562978e45e
820 <li>SHA3-256 for sqlite3.c: e6a50effb021858c200e885664611ed3c5e949413ff2dca452ac7ee336b9de1d
821
822 </ol></p>
823 <a name="version_3_38_3"></a>
824 <h3>2022-04-27 (3.38.3)</h3><p><ol class='lessindent'>
825 <li> Fix a case of the query planner be overly aggressive with optimizing automatic-index
826 and Bloom-filter construction, using inappropriate ON clause terms to restrict the
827 size of the automatic-index or Bloom filter, and resulting in missing rows in the
828 output.
829 <a href='https://sqlite.org/forum/forumpost/0d3200f4f3bcd3a3'>Forum thread 0d3200f4f3bcd3a3</a>.
830 <li> Other minor patches. See the
831 <a href='https://sqlite.org/src/timeline?p=version-3.38.3&bt=version-3.38.2'>timeline</a> for
832 details.
833
834 <p><b>Hashes:</b>
835 <li>SQLITE_SOURCE_ID: 2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4
836 <li>SHA3-256 for sqlite3.c: d4d66feffad66ea82073fbb97ae9c84e3615887ebc5168226ccee28d82424517
837
838 </ol></p>
839 <a name="version_3_38_2"></a>
840 <h3>2022-03-26 (3.38.2)</h3><p><ol class='lessindent'>
841 <li> Fix a user-discovered problem with the new Bloom filter optimization
842 that might cause an incorrect answer when doing a LEFT JOIN with a WHERE
843 clause constraint that says that one of the columns on the right table of
844 the LEFT JOIN is NULL. See
845 <a href='https://sqlite.org/forum/forumpost/031e262a89b6a9d2'>forum thread 031e262a89b6a9d2</a>.
846 <li> Other minor patches. See the
847 <a href='https://sqlite.org/src/timeline?p=version-3.38.2&bt=version-3.38.1'>timeline</a> for
848 details.
849
850 <p><b>Hashes:</b>
851 <li>SQLITE_SOURCE_ID: 2022-03-26 13:51:10 d33c709cc0af66bc5b6dc6216eba9f1f0b40960b9ae83694c986fbf4c1d6f08f
852 <li>SHA3-256 for sqlite3.c: 0fbac6b6999f894184899431fb77b9792324c61246b2a010d736694ccaa6d613
853
854 </ol></p>
855 <a name="version_3_38_1"></a>
856 <h3>2022-03-12 (3.38.1)</h3><p><ol class='lessindent'>
857 <li> Fix problems with the new Bloom filter optimization that might cause
858 some obscure queries to get an incorrect answer.
859 <li> Fix the <a href="lang_datefunc.html#localtime">localtime modifier</a> of the <a href="lang_datefunc.html">date and time functions</a> so that
860 it preserves fractional seconds.
861 <li> Fix the <a href="lang_corefunc.html#sqlite_offset">sqlite_offset SQL function</a> so that it works correctly even
862 in corner cases such as when the argument is a virtual column or the
863 column of a view.
864 <li> Fix <a href="rowvalue.html#rvinop">row value IN operator</a> constraints on <a href="vtab.html">virtual tables</a> so that they
865 work correctly even if the virtual table implementation relies on bytecode
866 to filter rows that do not satisfy the constraint.
867 <li> Other minor fixes to assert() statements, test cases, and documentation.
868 See the <a href="https://sqlite.org/src/timeline?p=version-3.38.1&bt=version-3.38.0">source code timeline</a>
869 for details.
870
871 <p><b>Hashes:</b>
872 <li>SQLITE_SOURCE_ID: 2022-03-12 13:37:29 38c210fdd258658321c85ec9c01a072fda3ada94540e3239d29b34dc547a8cbc
873 <li>SHA3-256 for sqlite3.c: 262ba071e960a8a0a6ce39307ae30244a2b0dc9fe1c4c09d0e1070d4353cd92c
874
875 </ol></p>
876 <a name="version_3_38_0"></a>
877 <h3>2022-02-22 (3.38.0)</h3><p><ol class='lessindent'>
878 <li> Added <a href="json1.html#jptr">the -> and ->> operators</a> for easier processing of JSON.
879 The new operators are compatible with MySQL and PostgreSQL.
880 <li> The JSON functions are now built-ins. It is no longer necessary
881 to use the <a href="compile.html#enable_json1">-DSQLITE_ENABLE_JSON1</a> compile-time option to enable JSON
882 support. JSON is on by default. Disable the JSON interface using
883 the new <a href="compile.html#omit_json">-DSQLITE_OMIT_JSON</a> compile-time option.
884 <li> Enhancements to <a href="lang_datefunc.html">date and time functions</a>:
885 <ol type="a">
886 <li> Added the <a href="lang_datefunc.html#uepch">unixepoch() function</a>.
887 <li> Added the <a href="lang_datefunc.html#automod">auto modifier</a> and the <a href="lang_datefunc.html#jdmod">julianday modifier</a>.
888 </ol>
889 <li> Rename the <a href="lang_corefunc.html#printf">printf() SQL function</a> to <a href="lang_corefunc.html#format">format()</a> for better
890 compatibility. The original printf() name is retained as an alias
891 for backwards compatibility.
892 <li> Added the <a href="c3ref/errcode.html">sqlite3_error_offset()</a> interface, which can sometimes
893 help to localize an SQL error to a specific character in the input
894 SQL text, so that applications can provide better error messages.
895 <li> Enhanced the interface to <a href="vtab.html">virtual tables</a> as follows:
896 <ol type="a">
897 <li> Added the <a href="c3ref/vtab_distinct.html">sqlite3_vtab_distinct()</a> interface.
898 <li> Added the <a href="c3ref/vtab_rhs_value.html">sqlite3_vtab_rhs_value()</a> interface.
899 <li> Added new operator types <a href="c3ref/c_index_constraint_eq.html">SQLITE_INDEX_CONSTRAINT_LIMIT</a>
900 and <a href="c3ref/c_index_constraint_eq.html">SQLITE_INDEX_CONSTRAINT_OFFSET</a>.
901 <li> Added the <a href="c3ref/vtab_in.html">sqlite3_vtab_in()</a> interface (and related) to enable
902 a virtual table to process <a href="lang_expr.html#in_op">IN operator</a> constraints all at once,
903 rather than processing each value of the right-hand side of the
904 IN operator separately.
905 </ol>
906 <li> <a href="cli.html">CLI</a> enhancements:
907 <ol type="a">
908 <li> <a href="cli.html#clmnr">Columnar output modes</a> are enhanced to correctly handle tabs
909 and newlines embedded in text.
910 <li> Added options like "--wrap N", "--wordwrap on", and "--quote"
911 to the <a href="cli.html#clmnr">columnar output modes</a>.
912 <li> Added the <a href="cli.html#qbox">.mode qbox</a> alias.
913 <li> The <a href="cli.html#csv">.import command</a> automatically disambiguates column names.
914 <li> Use the new <a href="c3ref/errcode.html">sqlite3_error_offset()</a> interface to provide better
915 error messages.
916 </ol>
917 <li> Query planner enhancements:
918 <ol type="a">
919 <li> Use a Bloom filter to speed up large analytic queries.
920 <li> Use a balanced merge tree to evaluate UNION or UNION ALL
921 compound SELECT statements that have an ORDER BY clause.
922 </ol>
923 <li> The <a href="lang_altertable.html">ALTER TABLE</a> statement is changed to silently ignores entries in the
924 <a href="schematab.html">sqlite_schema table</a> that do not parse when <a href="pragma.html#pragma_writable_schema">PRAGMA writable_schema=ON</a>.
925 <p><b>Hashes:</b>
926 <li>SQLITE_SOURCE_ID: 2022-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab
927
928 <li>SHA3-256 for sqlite3.c: a69af0a88d59271a2dd3c846a3e93cbd29e7c499864f6c0462a3b4160bee1762
929
930 </ol></p>
931 <a name="version_3_37_2"></a>
932 <h3>2022-01-06 (3.37.2)</h3><p><ol class='lessindent'>
933 <li> Fix <a href="https://sqlite.org/forum/forumpost/b03d86f9516cb3a2">a bug</a> introduced
934 in <a href="#version_3_35_0">version 3.35.0</a> (2021-03-12) that
935 <a href="howtocorrupt.html#svptbug">can cause database corruption</a>
936 if a <a href="lang_savepoint.html">SAVEPOINT</a> is rolled back while in <a href="pragma.html#pragma_temp_store">PRAGMA temp_store=MEMORY</a> mode,
937 and other changes are made, and then the outer transaction commits.
938 <a href="https://sqlite.org/src/info/73c2b50211d3ae26">Check-in 73c2b50211d3ae26</a>
939 <li> Fix a long-standing problem with ON DELETE CASCADE and ON UPDATE CASCADE
940 in which a cache of the <a href="opcode.html">bytecode</a> used to implement the cascading change
941 was not being reset following a local DDL change.
942 <a href="https://sqlite.org/src/info/5232c9777fe4fb13">Check-in 5232c9777fe4fb13</a>.
943 <li> Other minor fixes that should not impact production builds.
944
945 <p><b>Hashes:</b>
946 <li>SQLITE_SOURCE_ID: 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0
947 <li>SHA3-256 for sqlite3.c: 1bb01c382295cba85ec4685cedc52a7477cdae71cc37f1ad0f48719a17af1e1e
948
949 </ol></p>
950 <a name="version_3_37_1"></a>
951 <h3>2021-12-30 (3.37.1)</h3><p><ol class='lessindent'>
952 <li> Fix a bug introduced by the <a href="lang_upsert.html">UPSERT</a> enhancements of <a href="#version_3_35_0">version 3.35.0</a> that
953 can cause incorrect byte-code to be generated for some obscure but valid
954 SQL, possibly resulting in a NULL-pointer dereference.
955 <li> Fix an OOB read that can occur in <a href="fts5.html">FTS5</a> when reading corrupt database files.
956 <li> Improved robustness of the --safe option in the <a href="cli.html">CLI</a>.
957 <li> Other minor fixes to assert() statements and test cases.
958
959 <p><b>Hashes:</b>
960 <li>SQLITE_SOURCE_ID: 2021-12-30 15:30:28 378629bf2ea546f73eee84063c5358439a12f7300e433f18c9e1bddd948dea62
961 <li>SHA3-256 for sqlite3.c: 915afb3f29c2d217ea0c283326a9df7d505e6c73b40236f0b33ded91f812d174
962
963 </ol></p>
964 <a name="version_3_37_0"></a>
965 <h3>2021-11-27 (3.37.0)</h3><p><ol class='lessindent'>
966 <li> <a href="stricttables.html">STRICT tables</a> provide a prescriptive style of data type management,
967 for developers who prefer that kind of thing.
968 <li> When adding columns that contain a
969 <a href="lang_createtable.html#ckconst">CHECK constraint</a> or a <a href="gencol.html">generated column</a> containing a <a href="lang_createtable.html#notnullconst">NOT NULL constraint</a>,
970 the <a href="lang_altertable.html#altertabaddcol">ALTER TABLE ADD COLUMN</a> now checks new constraints against
971 preexisting rows in the database and will only proceed if no constraints
972 are violated.
973 <li> Added the <a href="pragma.html#pragma_table_list">PRAGMA table_list</a> statement.
974 <li> <a href="cli.html">CLI</a> enhancements:
975 <ol type="a">
976 <li> Add the <a href="cli.html#dotconn">.connection</a> command, allowing the CLI to keep multiple database
977 connections open at the same time.
978 <li> Add the <a href="cli.html#safemode">--safe command-line option</a> that disables
979 <a href="cli.html#dotcmd">dot-commands</a> and SQL statements that might cause side-effects that extend
980 beyond the single database file named on the command-line.
981 <li> Performance improvements when reading SQL statements
982 that span many lines.
983 </ol>
984 <li> Added the <a href="c3ref/autovacuum_pages.html">sqlite3_autovacuum_pages()</a> interface.
985 <li> The <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> does not and has never worked for the TEMP
986 database. That limitation is now noted in the documentation.
987 <li> The query planner now omits ORDER BY clauses on subqueries and views
988 if removing those clauses does not change the semantics of the query.
989 <li> The <a href="series.html">generate_series</a> table-valued function extension is modified so that
990 the first parameter ("START") is now required. This is done as a way to
991 demonstrate how to write table-valued functions with required parameters.
992 The legacy behavior is available using the -DZERO_ARGUMENT_GENERATE_SERIES
993 compile-time option.
994 <li> Added new <a href="c3ref/changes.html">sqlite3_changes64()</a> and <a href="c3ref/total_changes.html">sqlite3_total_changes64()</a> interfaces.
995 <li> Added the <a href="c3ref/c_open_autoproxy.html">SQLITE_OPEN_EXRESCODE</a> flag option to <a href="c3ref/open.html">sqlite3_open_v2()</a>.
996 <li> Use less memory to hold the database schema.
997
998 <p><b>Hashes:</b>
999 <li>SQLITE_SOURCE_ID: 2021-11-27 14:13:22 bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a
1000 <li>SHA3-256 for sqlite3.c: a202a950ab401cda052e81259e96d6e64ad91faaaaf5690d769f64c2ab962f27
1001
1002 </ol></p>
1003 <a name="version_3_36_0"></a>
1004 <h3>2021-06-18 (3.36.0)</h3><p><ol class='lessindent'>
1005 <li> Improvement to the <a href="eqp.html">EXPLAIN QUERY PLAN</a> output to make it easier to
1006 understand.
1007 <li> Byte-order marks at the start of a token are skipped as if they
1008 were whitespace.
1009 <li> An error is raised on any attempt to access the <a href="lang_createtable.html#rowid">rowid</a> of a VIEW or subquery.
1010 Formerly, the rowid of a VIEW would be indeterminate and often would be NULL.
1011 The -DSQLITE_ALLOW_ROWID_IN_VIEW compile-time option is available to restore
1012 the legacy behavior for applications that need it.
1013 <li> The <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> and <a href="c3ref/serialize.html">sqlite3_serialize()</a> interfaces are now
1014 enabled by default. The -DSQLITE_ENABLE_DESERIALIZE compile-time option is
1015 no longer required. Instead, there is a new <a href="compile.html#omit_deserialize">-DSQLITE_OMIT_DESERIALIZE</a>
1016 compile-time option to omit those interfaces.
1017 <li> The "memdb" VFS now allows the same in-memory database to be shared among
1018 multiple database connections in the same process as long as the
1019 database name begins with "/".
1020 <li> Back out the EXISTS-to-IN optimization (item 8b in the
1021 <a href="#version_3_35_0">SQLite 3.35.0 change log</a>)
1022 as it was found to slow down queries more often than speed them up.
1023 <li> Improve the <a href="optoverview.html#constprop">constant-propagation optimization</a> so that it works on
1024 non-join queries.
1025 <li> The <a href="https://sqlite.org/src/file/ext/misc/regexp.c">REGEXP extension</a> is
1026 now included in <a href="cli.html">CLI</a> builds.
1027
1028 <p><b>Hashes:</b>
1029 <li>SQLITE_SOURCE_ID: 2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5
1030 <li>SHA3-256 for sqlite3.c: 2a8e87aaa414ac2d45ace8eb74e710935423607a8de0fafcb36bbde5b952d157
1031
1032 </ol></p>
1033 <a name="version_3_35_5"></a>
1034 <h3>2021-04-19 (3.35.5)</h3><p><ol class='lessindent'>
1035 <li> Fix defects in the new ALTER TABLE DROP COLUMN feature that could
1036 corrupt the database file.
1037 <li> Fix an obscure query optimizer problem that might cause an incorrect
1038 query result.
1039 <p><b>Hashes:</b>
1040 <li>SQLITE_SOURCE_ID: 2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886
1041 <li>SHA3-256 for sqlite3.c: e42291343e8f03940e57fffcf1631e7921013b94419c2f943e816d3edf4e1bbe
1042
1043 </ol></p>
1044 <a name="version_3_35_4"></a>
1045 <h3>2021-04-02 (3.35.4)</h3><p><ol class='lessindent'>
1046 <li> Fix a defect in the query planner optimization identified by
1047 item 8b above. Ticket
1048 <a href="https://sqlite.org/src/info/de7db14784a08053">de7db14784a08053</a>.
1049 <li> Fix a defect in the new <a href="lang_returning.html">RETURNING</a> syntax. Ticket
1050 <a href="https://sqlite.org/src/info/132994c8b1063bfb">132994c8b1063bfb</a>.
1051 <li> Fix the new <a href="lang_returning.html">RETURNING</a> feature so that it raises an error if one of
1052 the terms in the RETURNING clause references a unknown table, instead
1053 of silently ignoring that error.
1054 <li> Fix an assertion associated with aggregate function processing that
1055 was incorrectly triggered by the <a href="optoverview.html#pushdown">push-down optimization</a>.
1056 <p><b>Hashes:</b>
1057 <li>SQLITE_SOURCE_ID: 2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e
1058 <li>SHA3-256 for sqlite3.c: 528b8a26bf5ffd4c7b4647b5b799f86e8fb1a075f715b87a414e94fba3d09dbe
1059
1060 </ol></p>
1061 <a name="version_3_35_3"></a>
1062 <h3>2021-03-26 (3.35.3)</h3><p><ol class='lessindent'>
1063 <li> Enhance the OP_OpenDup opcode of the <a href="opcode.html">bytecode engine</a> so that it works even if the
1064 cursor being duplicated itself came from OP_OpenDup. Fix for
1065 <a href="https://www.sqlite.org/src/info/bb8a9fd4a9b7fce5">ticket bb8a9fd4a9b7fce5</a>.
1066 This problem only came to light due to the recent MATERIALIZED hint enhancement.
1067 <li> When materializing correlated <a href="lang_with.html">common table expressions</a>, do so separately for each
1068 use case, as that is required for correctness. This fixes a problem that was
1069 introduced by the MATERIALIZED hint enhancement.
1070 <li> Fix a problem in the filename normalizer of the unix <a href="vfs.html">VFS</a>.
1071 <li> Fix the <a href="cli.html#dotmode">"box" output mode</a> in the <a href="cli.html">CLI</a> so that it works with statements that
1072 returns one or more rows of zero columns (such as <a href="pragma.html#pragma_incremental_vacuum">PRAGMA incremental_vacuum</a>).
1073 <a href="https://sqlite.org/forum/forumpost/afbbcb5b72">Forum post afbbcb5b72</a>.
1074 <li> Improvements to error messages generated by faulty common table expressions.
1075 <a href="https://sqlite.org/forum/forumpost/aa5a0431c99e631">Forum post aa5a0431c99e</a>.
1076 <li> Fix some incorrect assert() statements.
1077 <li> Fix to the <a href="syntax/select-stmt.html">SELECT statement syntax diagram</a> so that the FROM clause
1078 syntax is shown correctly.
1079 <a href="https://sqlite.org/forum/forumpost/9ed02582fe">Forum post 9ed02582fe</a>.
1080 <li> Fix the EBCDIC character classifier so that it understands newlines as whitespace.
1081 <a href="https://sqlite.org/forum/forumpost/58540ce22dcd5fdcd">Forum post 58540ce22dcd</a>.
1082 <li> Improvements the <a href="vtab.html#xbestindex">xBestIndex</a> method in the implementation of the
1083 (unsupported) <a href="https://sqlite.org/src/file/ext/misc/wholenumber.c">wholenumber virtual table</a>
1084 extension so that it does a better job of convincing the query planner to
1085 avoid trying to materialize a table with an infinite number of rows.
1086 <a href="https://sqlite.org/forum/forumpost/b52a020ce4">Forum post b52a020ce4</a>.
1087 <p><b>Hashes:</b>
1088 <li>SQLITE_SOURCE_ID: 2021-03-26 12:12:52 4c5e6c200adc8afe0814936c67a971efc516d1bd739cb620235592f18f40be2a
1089 <li>SHA3-256 for sqlite3.c: 91ca6c0a30ebfdba4420bb35f4fd9149d13e45fc853d86ad7527db363e282683
1090
1091 </ol></p>
1092 <a name="version_3_35_2"></a>
1093 <h3>2021-03-17 (3.35.2)</h3><p><ol class='lessindent'>
1094 <li> Fix a problem in the
1095 <a href="https://www.sqlite.org/src/file/ext/misc/appendvfs.c">appendvfs.c</a>
1096 extension that was introduced into version 3.35.0.
1097 <li> Ensure that date/time functions with no arguments (which generate
1098 responses that depend on the current time) are treated as
1099 <a href="deterministic.html">non-deterministic functions</a>. Ticket
1100 <a href="https://sqlite.org/src/info/2c6c8689fb5f3d2f">2c6c8689fb5f3d2f</a>
1101 <li> Fix a problem in the <a href="sqldiff.html">sqldiff</a> utility program having to do with
1102 unusual whitespace characters in a <a href="vtab.html">virtual table</a> definition.
1103 <li> Limit the new UNION ALL optimization described by item 8c in the
1104 3.35.0 release so that it does not try to make too many new subqueries.
1105 See <a href="https://sqlite.org/forum/forumpost/140a67d3d2">forum thread 140a67d3d2</a>
1106 for details.
1107 <p><b>Hashes:</b>
1108 <li>SQLITE_SOURCE_ID: 2021-03-17 19:07:21 ea80f3002f4120f5dcee76e8779dfdc88e1e096c5cdd06904c20fd26d50c3827
1109 <li>SHA3-256 for sqlite3.c: e8edc7b1512a2e050d548d0840bec6eef83cc297af1426c34c0ee8720f378a11
1110
1111 </ol></p>
1112 <a name="version_3_35_1"></a>
1113 <h3>2021-03-15 (3.35.1)</h3><p><ol class='lessindent'>
1114 <li> Fix <a href="https://www.sqlite.org/src/info/1c24a659e6d7f3a1">a bug</a> in the new DROP COLUMN
1115 feature when used on columns that are indexed and that are quoted in the index
1116 definition.
1117 <li> Improve the built-in documentation for the <a href="cli.html#dump">.dump</a> command in the <a href="cli.html">CLI</a>.
1118 <p><b>Hashes:</b>
1119 <li>SQLITE_SOURCE_ID: 2021-03-15 16:53:57 aea12399bf1fdc76af43499d4624c3afa17c3e6c2459b71c195804bb98def66a
1120 <li>SHA3-256 for sqlite3.c: fc79e27fd030226c07691b7d7c23aa81c8d46bc3bef5af39060e1507c82b0523
1121
1122 </ol></p>
1123 <a name="version_3_35_0"></a>
1124 <h3>2021-03-12 (3.35.0)</h3><p><ol class='lessindent'>
1125 <li> Added <a href="lang_mathfunc.html">built-in SQL math functions()</a>. (Requires the
1126 <a href="compile.html#enable_math_functions">-DSQLITE_ENABLE_MATH_FUNCTIONS</a> compile-time option.)
1127 <li> Added support for <a href="lang_altertable.html#altertabdropcol">ALTER TABLE DROP COLUMN</a>.
1128 <li> Generalize <a href="lang_upsert.html">UPSERT</a>:
1129 <ol type="a">
1130 <li> Allow multiple ON CONFLICT clauses that are evaluated in order,
1131 <li> The final ON CONFLICT clause may omit the conflict target and
1132 yet still use DO UPDATE.
1133 </ol>
1134 <li> Add support for the <a href="lang_returning.html">RETURNING</a> clause on <a href="lang_delete.html">DELETE</a>, <a href="lang_insert.html">INSERT</a>, and
1135 <a href="lang_update.html">UPDATE</a> statements.
1136 <li> Use less memory when running <a href="lang_vacuum.html">VACUUM</a> on databases containing very large
1137 TEXT or BLOB values. It is no longer necessary to hold the entire TEXT
1138 or BLOB in memory all at once.
1139 <li> Add support for the <a href="lang_with.html#mathint">MATERIALIZED</a> and <a href="lang_with.html#mathint">NOT MATERIALIZED</a> hints when
1140 specifying <a href="lang_with.html">common table expressions</a>. The default behavior was
1141 formerly NOT MATERIALIZED, but is now changed to MATERIALIZED for
1142 CTEs that are used more than once.
1143 <li> The <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenabletrigger">SQLITE_DBCONFIG_ENABLE_TRIGGER</a> and <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableview">SQLITE_DBCONFIG_ENABLE_VIEW</a>
1144 settings are modified so that they only control triggers and views
1145 in the main database schema or in attached database schemas and not in
1146 the TEMP schema. TEMP triggers and views are always allowed.
1147 <li> Query planner/optimizer improvements:
1148 <ol type="a">
1149 <li> Enhancements to the <a href="optoverview.html#minmax">min/max optimization</a> so that it works better
1150 with the IN operator and the OP_SeekScan optimization of the
1151 previous release.
1152 <li> Attempt to process EXISTS operators in the WHERE clause as if
1153 they were IN operators, in cases where this is a valid transformation
1154 and seems likely to improve performance.
1155 <li> Allow UNION ALL sub-queries to be <a href="optoverview.html#flattening">flattened</a> even if the parent query is a join.
1156 <li> Use an index, if appropriate, on IS NOT NULL expressions in the WHERE clause,
1157 even if STAT4 is disabled.
1158 <li> Expressions of the form "x IS NULL" or "x IS NOT NULL" might be converted to simply
1159 FALSE or TRUE, if "x" is a column that has a "NOT NULL" constraint and is not
1160 involved in an outer join.
1161 <li> Avoid checking foreign key constraints on an UPDATE statement if the UPDATE does
1162 not modify any columns associated with the foreign key.
1163 <li> Allow WHERE terms to be <a href="optoverview.html#pushdown">pushed down</a> into sub-queries
1164 that contain window functions,
1165 as long as the WHERE term is made up of entirely of constants and copies of expressions
1166 found in the PARTITION BY clauses of all window functions in the sub-query.
1167 </ol>
1168 <li> <a href="cli.html">CLI</a> enhancements:
1169 <ol type="a">
1170 <li> Enhance the ".stats" command to accept new arguments "stmt" and
1171 "vmstep", causing prepare statement statistics and only the
1172 virtual-machine step count to be shown, respectively.
1173 <li> Add the ".filectrl data_version" command.
1174 <li> Enhance the ".once" and ".output" commands so that if the destination argument
1175 begins with "|" (indicating that output is redirected into a pipe) then the
1176 argument does not need to be quoted.
1177 </ol>
1178 <li> Bug fixes:
1179 <ol type="a">
1180 <li> Fix a potential NULL pointer dereference when processing a
1181 syntactically incorrect SELECT statement with a correlated WHERE
1182 clause and a "HAVING 0" clause. (Also fixed in the 3.34.1 patch release.)
1183 <li> Fix a <a href="https://www.sqlite.org/src/info/ee51301f316c09e9">bug in the IN-operator optimization</a>
1184 of version 3.33.0 that can cause an incorrect answer.
1185 <li> Fix incorrect answers from the <a href="lang_expr.html#like">LIKE operator</a> if the pattern ends with "%" and there
1186 is an "ESCAPE '_'" clause.
1187 </ol>
1188 <p><b>Hashes:</b>
1189 <li>SQLITE_SOURCE_ID: 2021-03-12 15:10:09 acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b
1190 <li>SHA3-256 for sqlite3.c: 73a740d881735bef9de7f7bce8c9e6b9e57fe3e77fa7d76a6e8fc5c262fbaedf
1191
1192 </ol></p>
1193 <a name="version_3_34_1"></a>
1194 <h3>2021-01-20 (3.34.1)</h3><p><ol class='lessindent'>
1195 <li> Fix a potential use-after-free bug when processing a a subquery with both
1196 a correlated WHERE clause and a "HAVING 0" clause and where the parent
1197 query is an aggregate.
1198 <li> Fix documentation typos
1199 <li> Fix minor problems in extensions.
1200 <p><b>Hashes:</b>
1201 <li>SQLITE_SOURCE_ID: 2021-01-20 14:10:07 10e20c0b43500cfb9bbc0eaa061c57514f715d87238f4d835880cd846b9ebd1f
1202 <li>SHA3-256 for sqlite3.c: 799a7be90651fc7296113b641a70b028c142d767b25af1d0a78f93dcf1a2bf20
1203
1204 </ol></p>
1205 <a name="version_3_34_0"></a>
1206 <h3>2020-12-01 (3.34.0)</h3><p><ol class='lessindent'>
1207 <li> Added the <a href="c3ref/txn_state.html">sqlite3_txn_state()</a> interface for reporting on the current
1208 transaction state of the database connection.
1209 <li> Enhance <a href="lang_with.html#recursivecte">recursive common table expressions</a> to support two or more
1210 recursive terms as is done by SQL Server, since this helps make
1211 <a href="lang_with.html#rcex3">queries against graphs</a> easier to write and faster to execute.
1212 <li> Improved error messages on <a href="lang_createtable.html#ckconst">CHECK constraint</a> failures.
1213 <li> <a href="cli.html">CLI</a> enhancements:
1214 <ol type="a">
1215 <li> The <a href="cli.html#dotread">.read</a> dot-command now accepts a pipeline in addition to
1216 a filename.
1217 <li> Added options --data-only and --nosys to the <a href="cli.html#dump">.dump</a> dot-command.
1218 <li> Added the --nosys option to the <a href="cli.html#dschema">.schema</a> dot-command.
1219 <li> Table name quoting works correctly for the <a href="cli.html#csv">.import</a> dot-command.
1220 <li> The <a href="series.html">generate_series(START,END,STEP)</a> table-valued function
1221 extension is now built into the CLI.
1222 <li> The <a href="cli.html#dotdatabases">.databases</a> dot-command now shows the status of each database
1223 file as determined by <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> and
1224 <a href="c3ref/txn_state.html">sqlite3_txn_state()</a>.
1225 <li> Added the --tabs command-line option that sets
1226 <a href="cli.html#dotmode">.mode tabs</a>.
1227 <li> The --init option reports an error if the file named as its argument
1228 cannot be opened. The --init option also now honors the --bail option.
1229 </ol>
1230 <li> Query planner improvements:
1231 <ol type="a">
1232 <li> Improved estimates for the cost of running a DISTINCT operator.
1233 <li> When doing an UPDATE or DELETE using a multi-column index where
1234 only a few of the earlier columns of the index are useful for the
1235 index lookup, postpone doing the main table seek until after all
1236 WHERE clause constraints have been evaluated, in case those
1237 constraints can be covered by unused later terms of the index,
1238 thus avoiding unnecessary main table seeks.
1239 <li> The new OP_SeekScan opcode is used to improve performance of
1240 multi-column index look-ups when later columns are constrained
1241 by an IN operator.
1242 </ol>
1243 <li> The <a href="lang_transaction.html#immediate">BEGIN IMMEDIATE</a> and <a href="lang_transaction.html#immediate">BEGIN EXCLUSIVE</a> commands now work even
1244 if one or more attached database files are read-only.
1245 <li> Enhanced <a href="fts5.html">FTS5</a> to support <a href="fts5.html#trigramidx">trigram indexes</a>.
1246 <li> Improved performance of <a href="wal.html">WAL mode</a> locking primitives in cases where
1247 there are hundreds of connections all accessing the same database file
1248 at once.
1249 <li> Enhanced the <a href="carray.html">carray() table-valued function</a> to include a single-argument
1250 form that is bound using the auxiliary <a href="carray.html#onearg">sqlite3_carray_bind()</a> interface.
1251 <li> The <a href="lang_corefunc.html#substr">substr() SQL function</a> can now also be called "substring()" for
1252 compatibility with SQL Server.
1253 <li> The <a href="syntaxdiagrams.html">syntax diagrams</a> are now implemented as
1254 <a href='https://pikchr.org/'>Pikchr</a> scripts and rendered
1255 as SVG for improved legibility and ease of maintenance.
1256 <p><b>Hashes:</b>
1257 <li>SQLITE_SOURCE_ID: 2020-12-01 16:14:00 a26b6597e3ae272231b96f9982c3bcc17ddec2f2b6eb4df06a224b91089fed5b
1258 <li>SHA3-256 for sqlite3.c: fbd895b0655a337b2cd657675f314188a4e9fe614444cc63dfeb3f066f674514
1259
1260
1261 </ol></p>
1262 <a name="version_3_33_0"></a>
1263 <h3>2020-08-14 (3.33.0)</h3><p><ol class='lessindent'>
1264 <li> Support for <a href="lang_update.html#upfrom">UPDATE FROM</a> following the PostgreSQL syntax.
1265 <li> Increase the maximum size of database files to 281 TB.
1266 <li> Extended the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> statement so that it can optionally be
1267 limited to verifying just a single table and its indexes, rather than the
1268 entire database file.
1269 <li> Added the <a href="floatingpoint.html#decext">decimal extension</a> for doing arbitrary-precision decimal arithmetic.
1270 <li> Enhancements to the <a href="floatingpoint.html#ieee754ext">ieee754 extension</a> for working with IEEE 754 binary64 numbers.
1271 <li> <a href="cli.html">CLI</a> enhancements:
1272 <ol type="a">
1273 <li> Added four new <a href="cli.html#dotmode">output modes</a>: "box", "json", "markdown",
1274 and "table".
1275 <li> The "column" output mode automatically expands columns to
1276 contain the longest output row and automatically turns
1277 ".header" on if it has not been previously set.
1278 <li> The "quote" output mode honors ".separator"
1279 <li> The <a href="floatingpoint.html#decext">decimal extension</a> and the <a href="floatingpoint.html#ieee754ext">ieee754 extension</a> are built-in to the CLI
1280 </ol>
1281 <li> Query planner improvements:
1282 <ol type="a">
1283 <li> Add the ability to find a
1284 full-index-scan query plan for queries using <a href="lang_indexedby.html">INDEXED BY</a>
1285 which previously would fail with "no query solution".
1286 <li> Do a better job of
1287 detecting missing, incomplete, and/or dodgy <a href="fileformat2.html#stat1tab">sqlite_stat1</a>
1288 data and generates good query plans in spite of the
1289 misinformation.
1290 <li> Improved performance of queries like "SELECT min(x) FROM t WHERE y IN (?,?,?)"
1291 assuming an index on t(x,y).
1292 </ol>
1293 <li> In <a href="wal.html">WAL mode</a>, if a writer crashes and leaves the <a href="walformat.html#shm">shm file</a> in an inconsistent
1294 state, subsequent transactions are now able to recover the shm file even if
1295 there are active read transactions. Before this enhancement, shm file recovery
1296 that scenario would result in an <a href="rescode.html#protocol">SQLITE_PROTOCOL</a> error.
1297 <p><b>Hashes:</b>
1298 <li>SQLITE_SOURCE_ID: 2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f
1299 <li>SHA3-256 for sqlite3.c: d00b7fffa6d33af2303430eaf394321da2960604d25a4471c7af566344f2abf9
1300
1301 </ol></p>
1302 <a name="version_3_32_3"></a>
1303 <h3>2020-06-18 (3.32.3)</h3><p><ol class='lessindent'>
1304 <li> Various minor bug fixes including fixes for tickets
1305 <a href="https://www.sqlite.org/src/info/8f157e8010b22af0">8f157e8010b22af0</a>,
1306 <a href="https://www.sqlite.org/src/info/9fb26d37cefaba40">9fb26d37cefaba40</a>,
1307 <a href="https://www.sqlite.org/src/info/e367f31901ea8700">e367f31901ea8700</a>,
1308 <a href="https://www.sqlite.org/src/info/b706351ce2ecf59a">b706351ce2ecf59a</a>,
1309 <a href="https://www.sqlite.org/src/info/7c6d876f84e6e7e2">7c6d876f84e6e7e2</a>, and
1310 <a href="https://www.sqlite.org/src/info/c8d3b9f0a750a529">c8d3b9f0a750a529</a>.
1311 <p><b>Hashes:</b>
1312 <li>SQLITE_SOURCE_ID: 2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd
1313 <li>SHA3-256 for sqlite3.c: b62b77ee1c561a69a71bb557694aaa5141f1714c1ff6cc1ba8aa8733c92d4f52
1314
1315 </ol></p>
1316 <a name="version_3_32_2"></a>
1317 <h3>2020-06-04 (3.32.2)</h3><p><ol class='lessindent'>
1318 <li> Fix a long-standing bug in the byte-code engine that can cause a
1319 <a href="lang_transaction.html">COMMIT</a> command report as success when in fact it failed
1320 to commit. Ticket
1321 <a href="https://www.sqlite.org/src/info/810dc8038872e212">810dc8038872e212</a>
1322 <p><b>Hashes:</b>
1323 <li>SQLITE_SOURCE_ID: 2020-06-04 12:58:43 ec02243ea6ce33b090870ae55ab8aa2534b54d216d45c4aa2fdbb00e86861e8c
1324 <li>SHA3-256 for sqlite3.c: f17a2a57f7eebc72d405f3b640b4a49bcd02364a9c36e04feeb145eccafa3f8d
1325
1326 </ol></p>
1327 <a name="version_3_32_1"></a>
1328 <h3>2020-05-25 (3.32.1)</h3><p><ol class='lessindent'>
1329 <li> Fix two long-standing bugs that allow malicious SQL statements
1330 to crash the process that is running SQLite. These bugs were announced
1331 by a third-party approximately 24 hours after the 3.32.0 release but are
1332 not specific to the 3.32.0 release.
1333 <li> Other minor compiler-warning fixes and whatnot.
1334 <p><b>Hashes:</b>
1335 <li>SQLITE_SOURCE_ID: 2020-05-25 16:19:56 0c1fcf4711a2e66c813aed38cf41cd3e2123ee8eb6db98118086764c4ba83350
1336 <li>SHA3-256 for sqlite3.c: f695ae21abf045e4ee77980a67ab2c6e03275009e593ee860a2eabf840482372
1337
1338 </ol></p>
1339 <a name="version_3_32_0"></a>
1340 <h3>2020-05-22 (3.32.0)</h3><p><ol class='lessindent'>
1341 <li> Added support for <a href="lang_analyze.html#approx">approximate ANALYZE</a> using the
1342 <a href="pragma.html#pragma_analysis_limit">PRAGMA analysis_limit</a> command.
1343 <li> Added the <a href="bytecodevtab.html">bytecode virtual table</a>.
1344 <li> Add the <a href="cksumvfs.html">checksum VFS shim</a> to the set of run-time loadable
1345 extensions included in the source tree.
1346 <li> Added the <a href="lang_corefunc.html#iif">iif() SQL function</a>.
1347 <li> INSERT and UPDATE statements now always apply <a href="datatype3.html#affinity">column affinity</a>
1348 before computing <a href="lang_createtable.html#ckconst">CHECK constraints</a>. This bug fix could, in
1349 theory, cause problems for legacy databases with unorthodox
1350 CHECK constraints the require the input type for an INSERT
1351 is different from the declared column type. See ticket
1352 <a href="https://sqlite.org/src/info/86ba67afafded936">86ba67afafded936</a>
1353 for more information.
1354 <li> Added the <a href="c3ref/create_filename.html">sqlite3_create_filename()</a>, <a href="c3ref/create_filename.html">sqlite3_free_filename()</a>,
1355 and <a href="c3ref/database_file_object.html">sqlite3_database_file_object()</a>
1356 interfaces to better support of <a href="vfs.html#shim">VFS shim</a> implementations.
1357 <li> Increase the <a href="limits.html#max_variable_number">default upper bound</a>
1358 on the number of <a href="lang_expr.html#varparam">parameters</a> from 999 to 32766.
1359 <li> Added code for the <a href="uintcseq.html">UINT collating sequence</a> as an optional
1360 <a href="loadext.html">loadable extension</a>.
1361 <li> Enhancements to the <a href="cli.html">CLI</a>:
1362 <ol type="a">
1363 <li> Add options to the <a href="cli.html#csv">.import</a> command: --csv, --ascii, --skip
1364 <li> The <a href="cli.html#dump">.dump</a> command now accepts multiple LIKE-pattern arguments
1365 and outputs the union of all matching tables.
1366 <li> Add the .oom command in debugging builds
1367 <li> Add the --bom option to the <a href="cli.html#dotexcel">.excel</a>, <a href="cli.html#dotoutput">.output</a>, and <a href="cli.html#dotoutput">.once</a>
1368 commands.
1369 <li> Enhance the .filectrl command to support the --schema option.
1370 <li> The <a href="uintcseq.html">UINT collating sequence</a> extension is automatically loaded
1371 </ol>
1372 <li> The <a href="lang_expr.html#like">ESCAPE</a> clause of a <a href="lang_expr.html#like">LIKE</a> operator now overrides wildcard
1373 characters, so that the behavior matches what PostgreSQL does.
1374 <li>SQLITE_SOURCE_ID: 2020-05-22 17:46:16 5998789c9c744bce92e4cff7636bba800a75574243d6977e1fc8281e360f8d5a
1375 <li>SHA3-256 for sqlite3.c: 33ed868b21b62ce1d0352ed88bdbd9880a42f29046497a222df6459fc32a356f
1376
1377 </ol></p>
1378 <a name="version_3_31_1"></a>
1379 <h3>2020-01-27 (3.31.1)</h3><p><ol class='lessindent'>
1380 <li> Revert the data layout for an internal-use-only SQLite data structure.
1381 Applications that use SQLite should never reference internal SQLite
1382 data structures, but some do anyhow, and a change to one such
1383 data structure in 3.30.0 broke a popular and widely-deployed
1384 application. Reverting that change in SQLite, at least temporarily,
1385 gives developers of misbehaving applications time to fix their code.
1386 <li> Fix a typos in the sqlite3ext.h header file that prevented the
1387 <a href="c3ref/stmt_isexplain.html">sqlite3_stmt_isexplain()</a> and <a href="c3ref/value_blob.html">sqlite3_value_frombind()</a> interfaces
1388 from being called from <a href="loadext.html">run-time loadable extensions</a>.
1389 <p><b>Hashes:</b>
1390 <li>SQLITE_SOURCE_ID: 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
1391 <li>SHA3-256 for sqlite3.c: de465c64f09529429a38cbdf637acce4dfda6897f93e3db3594009e0fed56d27
1392
1393 </ol></p>
1394 <a name="version_3_31_0"></a>
1395 <h3>2020-01-22 (3.31.0)</h3><p><ol class='lessindent'>
1396 <li>Add support for <a href="gencol.html">generated columns</a>.
1397 <li>Add the <a href="c3ref/hard_heap_limit64.html">sqlite3_hard_heap_limit64()</a> interface and the corresponding
1398 <a href="pragma.html#pragma_hard_heap_limit">PRAGMA hard_heap_limit</a> command.
1399 <li>Enhance the <a href="pragma.html#pragma_function_list">function_list pragma</a> to show the number of arguments on each
1400 function, the type of function (scalar, aggregate, window), and the function
1401 property flags <a href="c3ref/c_deterministic.html#sqlitedeterministic">SQLITE_DETERMINISTIC</a>, <a href="c3ref/c_deterministic.html#sqlitedirectonly">SQLITE_DIRECTONLY</a>,
1402 <a href="c3ref/c_deterministic.html#sqliteinnocuous">SQLITE_INNOCUOUS</a>, and/or <a href="c3ref/c_deterministic.html#sqlitesubtype">SQLITE_SUBTYPE</a>.
1403 <li>Add the <a href="dbstat.html#dbstatagg">aggregated mode</a> feature to the
1404 <a href="dbstat.html">DBSTAT virtual table</a>.
1405 <li>Add the <a href="c3ref/open.html#opennofollow">SQLITE_OPEN_NOFOLLOW</a> option to <a href="c3ref/open.html">sqlite3_open_v2()</a> that
1406 prevents SQLite from opening symbolic links.
1407 <li>Added the "#-N" array notation for <a href="json1.html#jsonpath">JSON function path arguments</a>.
1408 <li>Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigtrustedschema">SQLITE_DBCONFIG_TRUSTED_SCHEMA</a> connection setting which is
1409 also controllable via the new <a href="pragma.html#pragma_trusted_schema">trusted_schema pragma</a> and at compile-time
1410 using the <a href="compile.html#trusted_schema">-DSQLITE_TRUSTED_SCHEMA</a> compile-time option.
1411 <li>Added APIs <a href="c3ref/filename_database.html">sqlite3_filename_database()</a>, <a href="c3ref/filename_database.html">sqlite3_filename_journal()</a>, and
1412 <a href="c3ref/filename_database.html">sqlite3_filename_wal()</a> which are useful for specialized extensions.
1413 <li>Add the <a href="c3ref/uri_boolean.html">sqlite3_uri_key()</a> interface.
1414 <li>Upgraded the <a href="c3ref/uri_boolean.html">sqlite3_uri_parameter()</a> function so that it works with the
1415 rollback journal or WAL filename in addition to the database filename.
1416 <li>Provide the ability to tag <a href="appfunc.html">application-defined SQL functions</a> with
1417 new properties <a href="c3ref/c_deterministic.html#sqliteinnocuous">SQLITE_INNOCUOUS</a> or <a href="c3ref/c_deterministic.html#sqlitedirectonly">SQLITE_DIRECTONLY</a>.
1418 <li>Add new verbs to <a href="c3ref/vtab_config.html">sqlite3_vtab_config()</a> so that the <a href="vtab.html#xconnect">xConnect</a> method
1419 of virtual tables can declare the virtual table as
1420 <a href="c3ref/c_vtab_constraint_support.html#sqlitevtabinnocuous">SQLITE_VTAB_INNOCUOUS</a> or <a href="c3ref/c_vtab_constraint_support.html#sqlitevtabdirectonly">SQLITE_VTAB_DIRECTONLY</a>.
1421 <li>Faster response to <a href="c3ref/interrupt.html">sqlite3_interrupt()</a>.
1422 <li>Added the <a href="https://sqlite.org/src/file/ext/misc/uuid.c">uuid.c</a> extension module
1423 implementing functions for processing RFC-4122 UUIDs.
1424 <li>The <a href="malloc.html#lookaside">lookaside memory allocator</a> is enhanced to support two separate memory
1425 pools with different sized allocations in each pool. This allows more memory
1426 allocations to be covered by lookaside while at the same time reducing the
1427 heap memory usage to 48KB per connection, down from 120KB.
1428 <li>The <a href="pragma.html#pragma_legacy_file_format">legacy_file_format pragma</a> is deactivated. It is now a no-op. In its place,
1429 the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfiglegacyfileformat">SQLITE_DBCONFIG_LEGACY_FILE_FORMAT</a> option to <a href="c3ref/db_config.html">sqlite3_db_config()</a> is
1430 provided. The legacy_file_format pragma is deactivated because (1) it is
1431 rarely useful and (2) it is incompatible with <a href="lang_vacuum.html">VACUUM</a> in schemas that have
1432 tables with both generated columns and descending indexes.
1433 Ticket <a href="https://www.sqlite.org/src/info/6484e6ce678fffab">6484e6ce678fffab</a>
1434 <p><b>Hashes:</b>
1435 <li>SQLITE_SOURCE_ID: 2020-01-22 18:38:59 f6affdd41608946fcfcea914ece149038a8b25a62bbe719ed2561c649b86d824
1436 <li>SHA3-256 for sqlite3.c: a5fca0b9f8cbf80ac89b97193378c719d4af4b7d647729d8df9c0c0fca7b1388
1437
1438 </ol></p>
1439 <a name="version_3_30_1"></a>
1440 <h3>2019-10-10 (3.30.1)</h3><p><ol class='lessindent'>
1441 <li> Fix a bug in the <a href="optoverview.html#flattening">query flattener</a> that might cause a segfault
1442 for nested queries that use the new
1443 <a href="lang_aggfunc.html#aggfilter">FILTER clause on aggregate functions</a>.
1444 Ticket <a href="https://www.sqlite.org/src/info/1079ad19993d13fa">1079ad19993d13fa</a>
1445 <li> Cherrypick fixes for other obscure problems found since the 3.30.0
1446 release
1447 <p><b>Hashes:</b>
1448 <li>SQLITE_SOURCE_ID: 2019-10-10 20:19:45 18db032d058f1436ce3dea84081f4ee5a0f2259ad97301d43c426bc7f3df1b0b
1449 <li>SHA3-256 for sqlite3.c: f96fafe4c110ed7d77fc70a7d690e5edd1e64fefb84b3b5969a722d885de1f2d
1450
1451 </ol></p>
1452 <a name="version_3_30_0"></a>
1453 <h3>2019-10-04 (3.30.0)</h3><p><ol class='lessindent'>
1454 <li> Add support for the <a href="lang_aggfunc.html#aggfilter">FILTER clause on aggregate functions</a>.
1455 <li> Add support for the <a href="lang_select.html#nullslast">NULLS FIRST</a> and <a href="lang_select.html#nullslast">NULLS LAST</a> syntax in <a href="lang_select.html#orderby">ORDER BY</a> clauses.
1456 <li> The <a href="pragma.html#pragma_index_info">index_info</a> and <a href="pragma.html#pragma_index_xinfo">index_xinfo</a> pragmas are enhanced to provide
1457 information about the on-disk representation of <a href="withoutrowid.html">WITHOUT ROWID</a>
1458 tables.
1459 <li> Add the <a href="c3ref/drop_modules.html">sqlite3_drop_modules()</a> interface, allowing applications
1460 to disable automatically loaded virtual tables that they do not
1461 need.
1462 <li> Improvements to the <a href="cli.html#recover">.recover dot-command</a> in the <a href="cli.html">CLI</a> so that
1463 it recovers more content from corrupt database files.
1464 <li> Enhance the <a href="rbu.html">RBU</a> extension to support <a href="expridx.html">indexes on expressions</a>.
1465 <li> Change the schema parser so that it will error out if any of
1466 the type, name, and tbl_name columns of the <a href="schematab.html">sqlite_master table</a>
1467 have been corrupted and the database connection is not in
1468 <a href="pragma.html#pragma_writable_schema">writable_schema</a> mode.
1469 <li> The <a href="pragma.html#pragma_function_list">PRAGMA function_list</a>, <a href="pragma.html#pragma_module_list">PRAGMA module_list</a>, and
1470 <a href="pragma.html#pragma_pragma_list">PRAGMA pragma_list</a> commands are now
1471 enabled in all builds by default. Disable them using
1472 <a href="compile.html#omit_introspection_pragmas">-DSQLITE_OMIT_INTROSPECTION_PRAGMAS</a>.
1473 <li> Add the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableview">SQLITE_DBCONFIG_ENABLE_VIEW</a> option for <a href="c3ref/db_config.html">sqlite3_db_config()</a>.
1474 <li> Added the <a href="tclsqlite.html">TCL Interface</a> <a href="tclsqlite.html#config">config method</a> in order to be able to
1475 disable <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableview">SQLITE_DBCONFIG_ENABLE_VIEW</a> as well as control other
1476 <a href="c3ref/db_config.html">sqlite3_db_config()</a> options from TCL.
1477 <li> Added the <a href="c3ref/c_deterministic.html#sqlitedirectonly">SQLITE_DIRECTONLY</a> flag for
1478 <a href="appfunc.html">application-defined SQL functions</a> to prevent those functions from
1479 being used inside triggers and views.
1480 <li> The legacy <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a> compile-time option is now a no-op.
1481 <p><b>Hashes:</b>
1482 <li>SQLITE_SOURCE_ID: 2019-10-04 15:03:17 c20a35336432025445f9f7e289d0cc3e4003fb17f45a4ce74c6269c407c6e09f
1483 <li>SHA3-256 for sqlite3.c: f04393dd47205a4ee2b98ff737dc51a3fdbcc14c055b88d58f5b27d0672158f5
1484
1485 </ol></p>
1486 <a name="version_3_29_0"></a>
1487 <h3>2019-07-10 (3.29.0)</h3><p><ol class='lessindent'>
1488 <li> Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdqsdml">SQLITE_DBCONFIG_DQS_DML</a> and <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdqsddl">SQLITE_DBCONFIG_DQS_DDL</a>
1489 actions to <a href="c3ref/db_config.html">sqlite3_db_config()</a> for activating and deactivating
1490 the <a href="quirks.html#dblquote">double-quoted string literal</a> misfeature. Both default to "on"
1491 for legacy compatibility, but developers are encouraged to turn them
1492 "off", perhaps using the <a href="compile.html#dqs">-DSQLITE_DQS=0</a> compile-time option.
1493 <li> <a href="compile.html#dqs">-DSQLITE_DQS=0</a> is now a <a href="compile.html#rcmd">recommended compile-time option</a>.
1494 <li> Improvements to the <a href="optoverview.html">query planner</a>:
1495 <ol type="a">
1496 <li> Improved optimization of AND and OR operators when one or the other
1497 operand is a constant.
1498 <li> Enhancements to the <a href="optoverview.html#like_opt">LIKE optimization</a> for cases when the left-hand
1499 side column has numeric affinity.
1500 </ol>
1501 <li> Added the "<a href="https://sqlite.org/src/file/ext/misc/dbdata.c">sqlite_dbdata</a>"
1502 virtual table for extracting raw low-level content from an SQLite database,
1503 even a database that is corrupt.
1504 <li> Improvements to rounding behavior, so that the results of rounding
1505 binary numbers using the <a href="lang_corefunc.html#round">round()</a> function are closer to what people
1506 who are used to thinking in decimal actually expect.
1507 <li> Enhancements to the <a href="cli.html">CLI</a>:
1508 <ol type="a">
1509 <li> Add the ".recover" command which tries to recover as much content
1510 as possible from a corrupt database file.
1511 <li> Add the ".filectrl" command useful for testing.
1512 <li> Add the long-standing ".testctrl" command to the ".help" menu.
1513 <li> Added the ".dbconfig" command
1514 </ol>
1515 <p><b>Hashes:</b>
1516 <li>SQLITE_SOURCE_ID: 2019-07-10 17:32:03 fc82b73eaac8b36950e527f12c4b5dc1e147e6f4ad2217ae43ad82882a88bfa6
1517 <li>SHA3-256 for sqlite3.c: d9a5daf7697a827f4b2638276ce639fa04e8e8bb5fd3a6b683cfad10f1c81b12
1518
1519 </ol></p>
1520 <a name="version_3_28_0"></a>
1521 <h3>2019-04-16 (3.28.0)</h3><p><ol class='lessindent'>
1522 <li> Enhanced <a href="windowfunctions.html">window functions</a>:
1523 <ol type="a">
1524 <li> Add support the <a href="windowfunctions.html#wexcls">EXCLUDE clause</a>.
1525 <li> Add support for <a href="windowfunctions.html#wchaining">window chaining</a>.
1526 <li> Add support for <a href="windowfunctions.html#grouptype">GROUPS frames</a>.
1527 <li> Add support for "<a href="windowfunctions.html#exprrange">&lt;expr&gt; PRECEDING</a>" and
1528 "<a href="windowfunctions.html#exprrange">&lt;expr&gt; FOLLOWING</a>" boundaries
1529 in RANGE <a href="windowfunctions.html#framespec">frames</a>.
1530 </ol>
1531 <li> Added the new <a href="c3ref/stmt_isexplain.html">sqlite3_stmt_isexplain(S)</a> interface for determining
1532 whether or not a <a href="c3ref/stmt.html">prepared statement</a> is an <a href="lang_explain.html">EXPLAIN</a>.
1533 <li> Enhanced <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> so that it works for read-only databases.
1534 <li> New query optimizations:
1535 <ol type="a">
1536 <li> Enable the <a href="optoverview.html#like_opt">LIKE optimization</a> for cases when the ESCAPE keyword
1537 is present and <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> is on.
1538 <li> In queries that are driven by a <a href="partialindex.html">partial index</a>, avoid unnecessary
1539 tests of the constraint named in the WHERE clause of the partial
1540 index, since we know that constraint must always be true.
1541 </ol>
1542 <li> Enhancements to the <a href="tclsqlite.html">TCL Interface</a>:
1543 <ol type="a">
1544 <li> Added the -returntype option to the <a href="tclsqlite.html#function">function method</a>.
1545 <li> Added the new <a href="tclsqlite.html#bind_fallback">bind_fallback method</a>.
1546 </ol>
1547 <li> Enhancements to the <a href="cli.html">CLI</a>:
1548 <ol type="a">
1549 <li> Added support for <a href="lang_expr.html#varparam">bound parameters</a> and the <a href="cli.html#param">.parameter command</a>.
1550 <li> Fix the <a href="cli.html#fileio">readfile()</a> function so that it returns
1551 an empty BLOB rather than throwing an out-of-memory error when
1552 reading an empty file.
1553 <li> Fix the <a href="cli.html#fileio">writefile()</a> function so that when it
1554 creates new directories along the path of a new file, it gives them
1555 umask permissions rather than the same permissions as the file.
1556 <li> Change <a href="cli.html#arinsup">--update option</a> in the <a href="cli.html#sqlar">.archive command</a> so that it skips
1557 files that are already in the archive and are unchanged. Add the
1558 new --insert option that works like --update used to work.
1559 </ol>
1560 <li> Added the <a href="https://sqlite.org/src/file/ext/misc/fossildelta.c">fossildelta.c</a>
1561 extension that can create, apply, and deconstruct the
1562 <a href="https://fossil-scm.org/fossil/doc/trunk/www/delta_format.wiki">Fossil DVCS file delta format</a>
1563 that is used by the <a href="rbu.html">RBU extension</a>.
1564 <li> Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigwritableschema">SQLITE_DBCONFIG_WRITABLE_SCHEMA</a> verb for the <a href="c3ref/db_config.html">sqlite3_db_config()</a>
1565 interface, that does the same work as <a href="pragma.html#pragma_writable_schema">PRAGMA writable_schema</a> without using the
1566 SQL parser.
1567 <li> Added the <a href="c3ref/value_blob.html">sqlite3_value_frombind()</a> API for determining if the argument
1568 to an SQL function is from a <a href="lang_expr.html#varparam">bound parameter</a>.
1569 <li> Security and compatibilities enhancements to <a href="fts3.html#f3tknzr">fts3_tokenizer()</a>:
1570 <ol type="a">
1571 <li> The <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> function always returns NULL
1572 unless either the legacy application-defined FTS3 tokenizers interface
1573 are enabled using
1574 the <a href="c3ref/db_config.html">sqlite3_db_config</a>(<a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenablefts3tokenizer">SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</a>)
1575 setting, or unless the first argument to fts3_tokenizer() is a <a href="lang_expr.html#varparam">bound parameter</a>.
1576 <li> The two-argument version of <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> accepts a pointer to the
1577 tokenizer method object even without
1578 the <a href="c3ref/db_config.html">sqlite3_db_config</a>(<a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenablefts3tokenizer">SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</a>) setting
1579 if the second argument is a <a href="lang_expr.html#varparam">bound parameter</a>
1580 </ol>
1581 <li> Improved robustness against corrupt database files.
1582 <li> Miscellaneous performance enhancements
1583 <li> Established a Git mirror of the offical SQLite source tree.
1584 The canonical sources for SQLite are maintained using the
1585 <a href="https://fossil-scm.org/">Fossil DVCS</a> at <a href="https://sqlite.org/src">https://sqlite.org/src</a>.
1586 The Git mirror can be seen at <a href="https://github.com/sqlite/sqlite">https://github.com/sqlite/sqlite</a>.
1587 <p><b>Hashes:</b>
1588 <li>SQLITE_SOURCE_ID: 2019-04-16 19:49:53 884b4b7e502b4e991677b53971277adfaf0a04a284f8e483e2553d0f83156b50
1589 <li>SHA3-256 for sqlite3.c: 411efca996b65448d9798eb203d6ebe9627b7161a646f5d00911e2902a57b2e9
1590
1591 </ol></p>
1592 <a name="version_3_27_2"></a>
1593 <h3>2019-02-25 (3.27.2)</h3><p><ol class='lessindent'>
1594 <li> Fix a bug in the IN operator that was introduced by an
1595 attempted optimization in version 3.27.0. Ticket
1596 <a href="https://www.sqlite.org/src/info/df46dfb631f75694">df46dfb631f75694</a>
1597 <li> Fix a bug causing a crash when a <a href="windowfunctions.html">window function</a> is misused. Ticket
1598 <a href="https://www.sqlite.org/src/info/4feb3159c6bc3f7e33959">4feb3159c6bc3f7e33959</a>.
1599 <li> Fix various documentation typos
1600 <p><b>Hashes:</b>
1601 <li>SQLITE_SOURCE_ID: bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7
1602 <li>SHA3-256 for sqlite3.c: 1dbae33bff261f979d0042338f72c9e734b11a80720fb32498bae9150cc576e7
1603
1604 </ol></p>
1605 <a name="version_3_27_1"></a>
1606 <h3>2019-02-08 (3.27.1)</h3><p><ol class='lessindent'>
1607 <li> Fix a bug in the query optimizer: an adverse interaction between
1608 the <a href="optoverview.html#or_opt">OR optimization</a> and the optimization that tries to use values
1609 read directly from an <a href="expridx.html">expression index</a> instead of recomputing the
1610 expression.
1611 Ticket <a href="https://www.sqlite.org/src/info/4e8e4857d32d401f">4e8e4857d32d401f</a>
1612 <p><b>Hashes:</b>
1613 <li>SQLITE_SOURCE_ID: 2019-02-08 13:17:39 0eca3dd3d38b31c92b49ca2d311128b74584714d9e7de895b1a6286ef959a1dd
1614 <li>SHA3-256 for sqlite3.c: 11c14992660d5ac713ea8bea48dc5e6123f26bc8d3075fe5585d1a217d090233
1615
1616 </ol></p>
1617 <a name="version_3_27_0"></a>
1618 <h3>2019-02-07 (3.27.0)</h3><p><ol class='lessindent'>
1619 <li>Added the <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> command
1620 <li>Issue an SQLITE_WARNING message on the <a href="errlog.html">error log</a> if a
1621 <a href="quirks.html#dblquote">double-quoted string literal</a> is used.
1622 <li>The <a href="c3ref/expanded_sql.html">sqlite3_normalized_sql()</a> interface works on any prepared statement
1623 created using <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> or <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a>. It is no
1624 longer necessary to use <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> with <a href="c3ref/c_prepare_normalize.html#sqlitepreparenormalize">SQLITE_PREPARE_NORMALIZE</a>
1625 in order to use <a href="c3ref/expanded_sql.html">sqlite3_normalized_sql()</a>.
1626 <li>Added the remove_diacritics=2 option to <a href="fts3.html">FTS3</a> and <a href="fts5.html">FTS5</a>.
1627 <li>Added the <a href="c3ref/c_prepare_normalize.html#sqlitepreparenovtab">SQLITE_PREPARE_NO_VTAB</a> option to <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a>.
1628 Use that option to prevent circular references to <a href="vtab.html#xshadowname">shadow tables</a> from
1629 causing resource leaks.
1630 <li>Enhancements to the <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> interface:
1631 <ol type="a">
1632 <li> Add the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlsizelimit">SQLITE_FCNTL_SIZE_LIMIT</a> <a href="c3ref/file_control.html">file-control</a> for
1633 setting an upper bound on the size of the in-memory database created
1634 by sqlite3_deserialize. The default upper bound is 1GiB, or whatever
1635 alternative value is specified by
1636 <a href="c3ref/config.html">sqlite3_config</a>(<a href="c3ref/c_config_covering_index_scan.html#sqliteconfigmemdbmaxsize">SQLITE_CONFIG_MEMDB_MAXSIZE</a>)
1637 and/or <a href="compile.html#memdb_default_maxsize">SQLITE_MEMDB_DEFAULT_MAXSIZE</a>.
1638 <li> Honor the <a href="c3ref/c_deserialize_freeonclose.html">SQLITE_DESERIALIZE_READONLY</a> flag, which was previously described
1639 in the documentation, but was previously a no-op.
1640 <li> Enhance the "deserialize" command of the <a href="tclsqlite.html">TCL Interface</a> to give it
1641 new "--maxsize N" and "--readonly BOOLEAN" options.
1642 </ol>
1643 <li>Enhancements to the <a href="cli.html">CLI</a>, mostly to support testing and debugging
1644 of the SQLite library itself:
1645 <ol type="a">
1646 <li> Add support for ".open --hexdb". The
1647 "<a href="https://sqlite.org/src/doc/trunk/tool/dbtotxt.md">dbtotxt</a>" utility
1648 program used to generate the text for the "hexdb" is added to the
1649 source tree.
1650 <li> Add support for the "--maxsize N" option on ".open --deserialize".
1651 <li> Add the "--memtrace" command-line option, to show all memory allocations
1652 and deallocations.
1653 <li> Add the ".eqp trace" option on builds with SQLITE_DEBUG, to enable
1654 bytecode program listing with indentation and
1655 <a href="pragma.html#pragma_vdbe_trace">PRAGMA vdbe_trace</a> all in one step.
1656 <li> Add the ".progress" command for accessing
1657 the <a href="c3ref/progress_handler.html">sqlite3_progress_handler()</a> interface.
1658 <li> Add the "--async" option to the ".backup" command.
1659 <li> Add options "--expanded", "--normalized", "--plain", "--profile", "--row",
1660 "--stmt", and "--close" to the ".trace" command.
1661 </ol>
1662 <li> Increased robustness against malicious SQL that is run against a
1663 maliciously corrupted database.
1664 <p><b>Bug fixes:</b>
1665 <li>Do not use a partial index to do a table scan on an IN operator.
1666 Ticket <a href="https://www.sqlite.org/src/info/1d958d90596593a774">1d958d90596593a774</a>.
1667 <li>Fix the <a href="optoverview.html#flattening">query flattener</a> so that it works on queries that contain
1668 subqueries that use <a href="windowfunctions.html">window functions</a>.
1669 Ticket <a href="https://www.sqlite.org/src/info/f09fcd17810f65f717">709fcd17810f65f717</a>
1670 <li>Ensure that ALTER TABLE modifies table and column names embedded in WITH
1671 clauses that are part of views and triggers.
1672 <li>Fix a parser bug that prevented the use of parentheses around table-valued
1673 functions.
1674 <li>Fix a problem with the <a href="optoverview.html#or_opt">OR optimization</a> on <a href="expridx.html">indexes on expressions</a>.
1675 Ticket <a href="https://www.sqlite.org/src/info/d96eba87698a428c1d">d96eba87698a428c1d</a>.
1676 <li>Fix a problem with the
1677 <a href="optoverview.html#leftjoinreduction">LEFT JOIN strength reduction optimization</a> in which the optimization
1678 was being applied inappropriately due to an IS NOT NULL operator.
1679 Ticket <a href="https://www.sqlite.org/src/info/5948e09b8c415bc45d">5948e09b8c415bc45d</a>.
1680 <li>Fix the <a href="lang_replace.html">REPLACE</a> command so that it is no longer able to sneak a
1681 NULL value into a NOT NULL column even if the NOT NULL column has a default
1682 value of NULL.
1683 Ticket <a href="https://www.sqlite.org/src/info/e6f1f2e34dceeb1ed6">e6f1f2e34dceeb1ed6</a>
1684 <li>Fix a problem with the use of <a href="windowfunctions.html">window functions</a> used within
1685 <a href="lang_expr.html#cosub">correlated subqueries</a>.
1686 Ticket <a href="https://www.sqlite.org/src/info/d0866b26f83e9c55e3">d0866b26f83e9c55e3</a>
1687 <li>Fix the <a href="lang_altertable.html#altertabmvcol">ALTER TABLE RENAME COLUMN</a> command so that it works for tables
1688 that have redundant UNIQUE constraints.
1689 Ticket <a href="https://www.sqlite.org/src/info/bc8d94f0fbd633fd9a">bc8d94f0fbd633fd9a</a>
1690 <li>Fix a bug that caused <a href="lang_corefunc.html#zeroblob">zeroblob</a> values to be truncated when inserted into
1691 a table that uses an <a href="expridx.html">expression index</a>.
1692 Ticket <a href="https://www.sqlite.org/src/info/bb4bdb9f7f654b0bb9">bb4bdb9f7f654b0bb9</a>
1693 <p><b>Hashes:</b>
1694 <li>SQLITE_SOURCE_ID: "2019-02-07 17:02:52 97744701c3bd414e6c9d7182639d8c2ce7cf124c4fce625071ae65658ac61713
1695 "
1696 <li>SHA3-256 for sqlite3.c: ca011a10ee8515b33e5643444b98ee3d74dc45d3ac766c3700320def52bc6aba
1697
1698 </ol></p>
1699 <a name="version_3_26_0"></a>
1700 <h3>2018-12-01 (3.26.0)</h3><p><ol class='lessindent'>
1701 <li>Optimization: When doing an <a href="lang_update.html">UPDATE</a> on a table with <a href="expridx.html">indexes on expressions</a>,
1702 do not update the expression indexes if they do not refer to any of the columns
1703 of the table being updated.
1704 <li>Allow the <a href="vtab.html#xbestindex">xBestIndex()</a> method of <a href="vtab.html">virtual table</a> implementations to return
1705 <a href="rescode.html#constraint">SQLITE_CONSTRAINT</a> to indicate that the proposed query plan is unusable and
1706 should not be given further consideration.
1707 <li>Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a> option which disables the ability to
1708 create corrupt database files using ordinary SQL.
1709 <li>Added support for read-only <a href="vtab.html#xshadowname">shadow tables</a> when the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a>
1710 option is enabled.
1711 <li>Added the <a href="pragma.html#pragma_legacy_alter_table">PRAGMA legacy_alter_table</a> command, which if enabled causes the
1712 <a href="lang_altertable.html">ALTER TABLE</a> command to behave like older version of SQLite (prior to
1713 version 3.25.0) for compatibility.
1714 <li>Added <a href="pragma.html#pragma_table_xinfo">PRAGMA table_xinfo</a> that works just like <a href="pragma.html#pragma_table_info">PRAGMA table_info</a>
1715 except that it also shows <a href="vtab.html#hiddencol">hidden columns</a> in virtual tables.
1716 <li>Added the <a href="https://sqlite.org/src/file/ext/misc/explain.c">explain virtual table</a>
1717 as a run-time loadable extension.
1718 <li>Add a limit counter to the query planner to prevent excessive
1719 <a href="c3ref/prepare.html">sqlite3_prepare()</a> times for certain pathological SQL inputs.
1720 <li>Added support for the <a href="c3ref/expanded_sql.html">sqlite3_normalized_sql()</a> interface, when compiling
1721 with SQLITE_ENABLE_NORMALIZE.
1722 <li>Enhanced triggers so that they can use <a href="vtab.html#tabfunc2">table-valued functions</a> that
1723 exist in schemas other than the schema where the trigger is defined.
1724 <li>Enhancements to the <a href="cli.html">CLI</a>:
1725 <ol type="a">
1726 <li>Improvements to the ".help" command.
1727 <li>The SQLITE_HISTORY environment variable, if it exists,
1728 specifies the name of the command-line editing history file
1729 <li>The --deserialize option associated with opening a new database cause the
1730 database file to be read into memory and accessed using the
1731 <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> API. This simplifies running tests on a database
1732 without modifying the file on disk.
1733 </ol>
1734 <li>Enhancements to the <a href="geopoly.html">geopoly</a> extension:
1735 <ol type="a">
1736 <li>Always stores polygons
1737 using the binary format, which is faster and uses less space.
1738 <li>Added the <a href="geopoly.html#regpoly">geopoly_regular()</a> function.
1739 <li>Added the <a href="geopoly.html#ccw">geopoly_ccw()</a> function.
1740 </ol>
1741 <li>Enhancements to the <a href="sessionintro.html">session</a> extension:
1742 <ol type="a">
1743 <li>Added the <a href="session/c_changesetapply_fknoaction.html">SQLITE_CHANGESETAPPLY_INVERT</a> flag
1744 <li>Added the <a href="session/sqlite3changeset_start.html">sqlite3changeset_start_v2()</a> interface and the
1745 <a href="session/c_changesetstart_invert.html">SQLITE_CHANGESETSTART_INVERT</a> flag.
1746 <li>Added the
1747 <a href="https://sqlite.org/src/file/ext/session/changesetfuzz.c">changesetfuzz.c</a>
1748 test-case generator utility.
1749 </ol>
1750 <p><b>Hashes:</b>
1751 <li>SQLITE_SOURCE_ID: "2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238b4f9"
1752 <li>SHA3-256 for sqlite3.c: 72c08830da9b5d1cb397c612c0e870d7f5eb41a323b41aa3d8aa5ae9ccedb2c4
1753
1754 </ol></p>
1755 <a name="version_3_25_3"></a>
1756 <h3>2018-11-05 (3.25.3)</h3><p><ol class='lessindent'>
1757 <li> Disallow the use of <a href="windowfunctions.html">window functions</a> in the recursive part of
1758 a CTE. Ticket <a href="https://sqlite.org/src/info/e8275b415a2f03bee">e8275b415a2f03bee</a>
1759 <li> Fix the behavior of typeof() and length() on virtual tables. Ticket
1760 <a href="https://sqlite.org/src/info/69d642332d25aa3b7315a6d385">69d642332d25aa3b7315a6d385</a>
1761 <li> Strengthen defenses against deliberately corrupted database files.
1762 <li> Fix a problem in the query planner that results when a row-value expression
1763 is used with a PRIMARY KEY with redundant columns. Ticket
1764 <a href="https://sqlite.org/src/info/1a84668dcfdebaf12415d">1a84668dcfdebaf12415d</a>
1765 <li> Fix the query planner so that it works correctly for IS NOT NULL operators
1766 in the ON clause of a LEFT JOIN with the SQLITE_ENABLE_STAT4 compile-time option.
1767 <a href="https://sqlite.org/src/info/65eb38f6e46de8c75e188a17ec">65eb38f6e46de8c75e188a17ec</a>
1768 <p><b>Hashes:</b>
1769 <li>SQLITE_SOURCE_ID: "2018-11-05 20:37:38 89e099fbe5e13c33e683bef07361231ca525b88f7907be7092058007b75036f2"
1770 <li>SHA3-256 for sqlite3.c: 45586e4df74de3a43f3a1f8c7a78c3c3f02edce01af7d10cafe68bb94476a5c5
1771
1772 </ol></p>
1773 <a name="version_3_25_2"></a>
1774 <h3>2018-09-25 (3.25.2)</h3><p><ol class='lessindent'>
1775 <li> Add the <a href="pragma.html#pragma_legacy_alter_table">PRAGMA legacy_alter_table=ON</a> command that causes the
1776 "ALTER TABLE RENAME" command to behave as it did in SQLite versions 3.24.0
1777 and earlier: references to the renamed table inside the bodies of triggers
1778 and views are not updated. This new pragma provides a compatibility
1779 work around for older programs that expected the older, wonky behavior
1780 of ALTER TABLE RENAME.
1781 <li> Fix a problem with the new <a href="windowfunctions.html">window functions</a> implementation that caused
1782 a malfunction when complicated expressions involving window functions were used
1783 inside of a view.
1784 <li> Fixes for various other compiler warnings and minor problems associated
1785 with obscure configurations.
1786 <p><b>Hashes:</b>
1787 <li>SQLITE_SOURCE_ID: "2018-09-25 19:08:10 fb90e7189ae6d62e77ba3a308ca5d683f90bbe633cf681865365b8e92792d1c7"
1788 <li>SHA3-256 for sqlite3.c: 34c23ff91631ae10354f8c9d62fd7d65732b3d7f3acfd0bbae31ff4a62fe28af
1789
1790 </ol></p>
1791 <a name="version_3_25_1"></a>
1792 <h3>2018-09-18 (3.25.1)</h3><p><ol class='lessindent'>
1793 <li> Extra sanity checking added to ALTER TABLE in the 3.25.0 release
1794 sometimes raises a false-positive
1795 when the table being modified has a trigger that
1796 updates a virtual table. The false-positive caused the ALTER
1797 TABLE to rollback, thus leaving the schema unchanged.
1798 Ticket <a href="https://sqlite.org/src/info/b41031ea2b537237">b41031ea2b537237</a>.
1799 <li> The fix in the 3.25.0 release for the endless-loop in the byte-code
1800 associated with the ORDER BY LIMIT optimization did not work for
1801 some queries involving window functions. An additional correction
1802 is required. Ticket
1803 <a href="https://sqlite.org/src/info/510cde277783b5fb">510cde277783b5fb</a>
1804 <p><b>Hashes:</b>
1805 <li>SQLITE_SOURCE_ID: "2018-09-18 20:20:44 2ac9003de44da7dafa3fbb1915ac5725a9275c86bf2f3b7aa19321bf1460b386"
1806 <li>SHA3-256 for sqlite3.c: 1b2302e7a54cc99c84ff699a299f61f069a28e1ed090b89e4430ca80ae2aab06
1807
1808 </ol></p>
1809 <a name="version_3_25_0"></a>
1810 <h3>2018-09-15 (3.25.0)</h3><p><ol class='lessindent'>
1811 <li> Add support for <a href="windowfunctions.html">window functions</a>
1812 <li> Enhancements the <a href="lang_altertable.html">ALTER TABLE</a> command:
1813 <ol type="a">
1814 <li> Add support for renaming columns within a table using
1815 ALTER TABLE <i>table</i> RENAME COLUMN <i>oldname</i> TO <i>newname</i>.
1816 <li> Fix table rename feature so that it also updates references
1817 to the renamed table in <a href="lang_createtrigger.html">triggers</a> and <a href="lang_createview.html">views</a>.
1818 </ol>
1819 <li> Query optimizer improvements:
1820 <ol type="a">
1821 <li> Avoid unnecessary loads of columns in an aggregate query that
1822 are not within an aggregate function and that are not part
1823 of the GROUP BY clause.
1824 <li> The IN-early-out optimization: When doing a look-up on a
1825 multi-column index and an IN operator is used on a column
1826 other than the left-most column, then if no rows match against
1827 the first IN value, check to make sure there exist rows that
1828 match the columns to the right before continuing with the
1829 next IN value.
1830 <li> Use the transitive property to try to propagate constant
1831 values within the WHERE clause. For example, convert
1832 "a=99 AND b=a" into "a=99 AND b=99".
1833 </ol>
1834 <li> Use a separate mutex on every inode in the unix <a href="vfs.html">VFS</a>, rather than
1835 a single mutex shared among them all, for slightly better concurrency
1836 in multi-threaded environments.
1837 <li> Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command for improved detection
1838 of problems on the page freelist.
1839 <li> Output infinity as 1e999 in the ".dump" command of the
1840 <a href="cli.html">command-line shell</a>.
1841 <li> Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntldataversion">SQLITE_FCNTL_DATA_VERSION</a> file-control.
1842 <li> Added the <a href="geopoly.html">Geopoly module</a>
1843 <p><b>Bug fixes:</b>
1844 <li> The ORDER BY LIMIT optimization might have caused an infinite loop
1845 in the byte code of the prepared statement under very obscure
1846 circumstances,
1847 due to a confluence of minor defects in the query optimizer.
1848 Fix for ticket
1849 <a href="https://www.sqlite.org/src/info/9936b2fa443fec03ff25">9936b2fa443fec03ff25</a>
1850 <li> On an UPSERT when the order of constraint checks is rearranged,
1851 ensure that the affinity transformations on the inserted content
1852 occur before any of the constraint checks. Fix for ticket
1853 <a href="https://www.sqlite.org/src/info/79cad5e4b2e219dd197242e9e">79cad5e4b2e219dd197242e9e</a>.
1854 <li> Avoid using a prepared statement for ".stats on" command of the
1855 <a href="cli.html">CLI</a> after it has been closed by the ".eqp full" logicc. Fix for ticket
1856 <a href="https://www.sqlite.org/src/info/7be932dfa60a8a6b3b26bcf76">7be932dfa60a8a6b3b26bcf76</a>.
1857 <li> The LIKE optimization was generating incorrect byte-code and hence
1858 getting the wrong answer
1859 if the left-hand operand has numeric affinity and the right-hand-side
1860 pattern is '/%' or if the pattern begins with the ESCAPE character.
1861 Fix for ticket
1862 <a href="https://www.sqlite.org/src/info/c94369cae9b561b1f996d0054b">c94369cae9b561b1f996d0054b</a>
1863 <p><b>Hashes:</b>
1864 <li>SQLITE_SOURCE_ID: "2018-09-15 04:01:47 b63af6c3bd33152742648d5d2e8dc5d5fcbcdd27df409272b6aea00a6f761760"
1865 <li>SHA3-256 for sqlite3.c: 989e3ff37f2b5eea8e42205f808ccf0ba86c6ea6aa928ad2c011f33a108ac45d
1866
1867 </ol></p>
1868 <a name="version_3_24_0"></a>
1869 <h3>2018-06-04 (3.24.0)</h3><p><ol class='lessindent'>
1870 <li> Add support for PostgreSQL-style <a href="lang_upsert.html">UPSERT</a>.
1871 <li> Add support for <a href="rtree.html#auxcol">auxiliary columns in r-tree tables</a>.
1872 <li> Add C-language APIs for discovering SQL keywords used by
1873 SQLite: <a href="c3ref/keyword_check.html">sqlite3_keyword_count()</a>, <a href="c3ref/keyword_check.html">sqlite3_keyword_name()</a>, and
1874 <a href="c3ref/keyword_check.html">sqlite3_keyword_check()</a>.
1875 <li> Add C-language APIs for dynamic strings based on the
1876 <a href="c3ref/str.html">sqlite3_str</a> object.
1877 <li> Enhance <a href="lang_altertable.html">ALTER TABLE</a> so that it recognizes "true" and "false" as
1878 valid arguments to DEFAULT.
1879 <li> Add the sorter-reference optimization as a compile-time option.
1880 Only available if compiled with SQLITE_ENABLE_SORTER_REFERENCES.
1881 <li> Improve the format of the <a href="eqp.html">EXPLAIN QUERY PLAN</a> raw output, so that
1882 it gives better information about the query plan and about the
1883 relationships between the various components of the plan.
1884 <li> Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigresetdatabase">SQLITE_DBCONFIG_RESET_DATABASE</a> option to the
1885 <a href="c3ref/db_config.html">sqlite3_db_config()</a> API.
1886 <p><b><a href="cli.html">CLI</a> Enhancements:</b>
1887 <li> Automatically intercepts the raw <a href="eqp.html">EXPLAIN QUERY PLAN</a>
1888 output and reformats it into an ASCII-art graph.
1889 <li> Lines that begin with "#" and that are not in the middle of an
1890 SQL statement are interpreted as comments.
1891 <li> Added the --append option to the ".backup" command.
1892 <li> Added the ".dbconfig" command.
1893 <p><b>Performance:</b>
1894 <li> <a href="lang_update.html">UPDATE</a> avoids unnecessary low-level disk writes when the contents
1895 of the database file do not actually change.
1896 For example, "UPDATE t1 SET x=25 WHERE y=?" generates no extra
1897 disk I/O if the value in column x is already 25. Similarly,
1898 when doing <a href="lang_update.html">UPDATE</a> on records that span multiple pages, only
1899 the subset of pages that actually change are written to disk.
1900 This is a low-level performance optimization only and does not
1901 affect the behavior of TRIGGERs or other higher level SQL
1902 structures.
1903 <li> Queries that use ORDER BY and LIMIT now try to avoid computing
1904 rows that cannot possibly come in under the LIMIT. This can greatly
1905 improve performance of ORDER BY LIMIT queries, especially when the
1906 LIMIT is small relative to the number of unrestricted output rows.
1907 <li> The <a href="optoverview.html#or_opt">OR optimization</a> is allowed to proceed
1908 even if the OR expression has also been converted into an IN
1909 expression. Uses of the OR optimization are now also
1910 <a href="eqp.html#or-opt">more clearly shown</a> in the <a href="eqp.html">EXPLAIN QUERY PLAN</a> output.
1911 <li> The query planner is more aggressive about using
1912 <a href="optoverview.html#autoindex">automatic indexes</a> for views and subqueries for which it is
1913 not possible to create a persistent index.
1914 <li> Make use of the one-pass UPDATE and DELETE query plans in the
1915 <a href="rtree.html">R-Tree extension</a> where appropriate.
1916 <li> Performance improvements in the LEMON-generated parser.
1917 <p><b>Bug fixes:</b>
1918 <li> For the right-hand table of a LEFT JOIN, compute the values
1919 of expressions directly rather than loading precomputed values
1920 out of an <a href="expridx.html">expression index</a> as the expression index might
1921 not contain the correct value. Ticket
1922 <a href="https://sqlite.org/src/info/7fa8049685b50b5aeb0c2">7fa8049685b50b5aeb0c2</a>
1923 <li> Do not attempt to use terms from the WHERE clause to enable
1924 indexed lookup of the right-hand table of a LEFT JOIN. Ticket
1925 <a href="https://sqlite.org/src/info/4ba5abf65c5b0f9a96a7a">4ba5abf65c5b0f9a96a7a</a>
1926 <li> Fix a memory leak that can occur following a failure to open error
1927 in the <a href="csv.html">CSV virtual table</a>
1928 <li> Fix a long-standing problem wherein a corrupt schema on the
1929 <a href="fileformat2.html#seqtab">sqlite_sequence</a> table used by <a href="autoinc.html">AUTOINCREMENT</a> can lead to
1930 a crash. Ticket
1931 <a href="https://www.sqlite.org/src/info/d8dc2b3a58cd5dc29">d8dc2b3a58cd5dc2918a1</a>
1932 <li> Fix the <a href="json1.html#jeach">json_each()</a> function so that it returns
1933 valid results on its "fullkey" column when the input is a simple value
1934 rather than an array or object.
1935 <p><b>Hashes:</b>
1936 <li>SQLITE_SOURCE_ID: "2018-06-04 19:24:41 c7ee0833225bfd8c5ec2f9bf62b97c4e04d03bd9566366d5221ac8fb199a87ca"
1937 <li>SHA3-256 for sqlite3.c: 0d384704e1c66026228336d1e91771d295bf688c9c44c7a44f25a4c16c26ab3c
1938
1939 </ol></p>
1940 <a name="version_3_23_1"></a>
1941 <h3>2018-04-10 (3.23.1)</h3><p><ol class='lessindent'>
1942 <li> Fix two problems in the new <a href="optoverview.html#leftjoinreduction">LEFT JOIN strength reduction optimization</a>.
1943 Tickets <a href="https://sqlite.org/src/info/1e39b966ae9ee739">1e39b966ae9ee739</a>
1944 and <a href="https://sqlite.org/src/info/fac496b61722daf2">fac496b61722daf2</a>.
1945 <li> Fix misbehavior of the FTS5 xBestIndex method. Ticket
1946 <a href="https://sqlite.org/src/info/2b8aed9f7c9e61e8">2b8aed9f7c9e61e8</a>.
1947 <li> Fix a harmless reference to an uninitialized virtual machine register.
1948 Ticket <a href="https://sqlite.org/src/info/093420fc0eb7cba7">093420fc0eb7cba7</a>.
1949 <li> Fix the <a href="cli.html">CLI</a> so that it builds with -DSQLITE_UNTESTABLE
1950 <li> Fix the <a href="https://sqlite.org/src/file/ext/misc/eval.c">eval.c</a> extension
1951 so that it works with <a href="pragma.html#pragma_empty_result_callbacks">PRAGMA empty_result_callbacks=ON</a>.
1952 <li> Fix the <a href="series.html">generate_series</a> virtual table so that it correctly returns
1953 no rows if any of its constraints are NULL.
1954 <li> Performance enhancements in the parser.
1955 <p><b>Hashes:</b>
1956 <li>SQLITE_SOURCE_ID: "2018-04-10 17:39:29 4bb2294022060e61de7da5c227a69ccd846ba330e31626ebcd59a94efd148b3b"
1957 <li>SHA3-256 for sqlite3.c: 65750d1e506f416a0b0b9dd22d171379679c733e3460549754dc68c92705b5dc
1958
1959 </ol></p>
1960 <a name="version_3_23_0"></a>
1961 <h3>2018-04-02 (3.23.0)</h3><p><ol class='lessindent'>
1962 <li> Add the <a href="c3ref/serialize.html">sqlite3_serialize()</a> and <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> interfaces when
1963 the <a href="compile.html#enable_deserialize">SQLITE_ENABLE_DESERIALIZE</a> compile-time option is used.
1964 <li> Recognize TRUE and FALSE as constants. (For compatibility, if there
1965 exist columns named "true" or "false", then the identifiers refer to the
1966 columns rather than Boolean constants.)
1967 <li> Support operators IS TRUE, IS FALSE, IS NOT TRUE, and IS NOT FALSE.
1968 <li> Added the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuscachespill">SQLITE_DBSTATUS_CACHE_SPILL</a> option to <a href="c3ref/db_status.html">sqlite3_db_status()</a> for
1969 reporting the number of cache spills that have occurred.
1970 <li> The "alternate-form-2" flag ("!") on the <a href="printf.html">built-in printf</a> implementation
1971 now causes string substitutions to measure the width and precision in
1972 characters instead of bytes.
1973 <li> If the <a href="vtab.html#xcolumn">xColumn</a> method in a <a href="vtab.html">virtual table</a> implementation returns
1974 an error message using <a href="c3ref/result_blob.html">sqlite3_result_error()</a> then give that error
1975 message preference over internally-generated messages.
1976 <li> Added the -A command-line option to the <a href="cli.html">CLI</a> to make it easier to manage
1977 <a href="sqlar.html">SQLite Archive files</a>.
1978 <li> Add support for INSERT OR REPLACE, INSERT OR IGNORE, and UPDATE OR REPLACE
1979 in the <a href="zipfile.html">Zipfile virtual table</a>.
1980 <li> Enhance the <a href="session/sqlite3changeset_apply.html">sqlite3changeset_apply()</a> interface so that it is hardened
1981 against attacks from deliberately corrupted <a href="sessionintro.html#changeset">changeset</a> objects.
1982 <li> Added the <a href="https://sqlite.org/src/file/ext/misc/normalize.c">sqlite3_normalize()</a>
1983 extension function.
1984 <li> Query optimizer enhancements:
1985 <ol type='a'>
1986 <li> Improve the <a href="optoverview.html#omitnoopjoin">omit-left-join optimization</a> so that it works in cases where
1987 the right-hand table is UNIQUE but not necessarily NOT NULL.
1988 <li> Improve the <a href="optoverview.html#pushdown">push-down optimization</a> so that it works for many LEFT JOINs.
1989 <li> Add the <a href="optoverview.html#leftjoinreduction">LEFT JOIN strength reduction optimization</a> that converts a LEFT
1990 JOIN into an ordinary JOIN if there exist terms in the WHERE clause
1991 that would prevent the extra all-NULL row of the LEFT JOIN from
1992 appearing in the output set.
1993 <li> Avoid unnecessary writes to the sqlite_sequence table when an
1994 <a href="autoinc.html">AUTOINCREMENT</a> table is updated with an rowid that is less than the
1995 maximum.
1996 </ol>
1997 <li> Bug fixes:
1998 <ol type='a'>
1999 <li> Fix the parser to accept valid <a href="rowvalue.html">row value</a> syntax.
2000 Ticket <a href="https://www.sqlite.org/src/info/7310e2fb3d046a5">7310e2fb3d046a5</a>
2001 <li> Fix the query planner so that it takes into account dependencies in
2002 the arguments to table-valued functions in subexpressions in
2003 the WHERE clause.
2004 Ticket <a href="https://www.sqlite.org/src/info/80177f0c226ff54">80177f0c226ff54</a>
2005 <li> Fix incorrect result with complex OR-connected WHERE and STAT4.
2006 Ticket <a href="https://www.sqlite.org/src/info/ec32177c99ccac2">ec32177c99ccac2</a>
2007 <li> Fix potential corruption in <a href="expridx.html">indexes on expressions</a> due to automatic
2008 datatype conversions.
2009 Ticket <a href="https://www.sqlite.org/src/info/343634942dd54ab">343634942dd54ab</a>
2010 <li> Assertion fault in FTS4.
2011 Ticket <a href="https://www.sqlite.org/src/info/d6ec09eccf68cfc">d6ec09eccf68cfc</a>
2012 <li> Incorrect result on the less-than operator in <a href="rowvalue.html">row values</a>.
2013 Ticket <a href="https://www.sqlite.org/src/info/f484b65f3d62305">f484b65f3d62305</a>
2014 <li> Always interpret non-zero floating-point values as TRUE, even if
2015 the integer part is zero.
2016 Ticket <a href="https://www.sqlite.org/src/info/36fae083b450e3a">36fae083b450e3a</a>
2017 <li> Fix an issue in the fsdir(PATH) <a href="vtab.html#tabfunc2">table-valued function</a> to the
2018 <a href="https://sqlite.org/src/file/ext/misc/fileio.c">fileio.c</a> extension,
2019 that caused a segfault if the fsdir() table was used as the inner table
2020 of a join. Problem reported on the mailing list and fixed by check-in
2021 <a href="https://www.sqlite.org/src/info/7ce4e71c1b7251be">7ce4e71c1b7251be</a>
2022 <li> Issue an error rather instead of an assertion-fault or null-pointer
2023 dereference when the sqlite_master table is corrupted so that the
2024 sqlite_sequence table root page is really a btree-index page. Check-in
2025 <a href="https://www.sqlite.org/src/info/525deb7a67fbd647">525deb7a67fbd647</a>
2026 <li> Fix the <a href="lang_analyze.html">ANALYZE</a> command so that it computes statistics on tables
2027 whose names begin with "sqlite". Check-in
2028 <a href="https://sqlite.org/src/info/0249d9aecf69948d">0249d9aecf69948d</a>
2029 </ol>
2030 <li> Additional fixes for issues detected by
2031 <a href="https://github.com/google/oss-fuzz">OSSFuzz</a>:
2032 <ol type='a'>
2033 <li> Fix a possible infinite loop on VACUUM for corrupt database files.
2034 Check-in <a href="https://www.sqlite.org/src/info/27754b74ddf64">27754b74ddf64</a>
2035 <li> Disallow <a href="lang_expr.html#varparam">parameters</a> in the <a href="lang_with.html">WITH clause</a> of triggers and views.
2036 Check-in <a href="https://www.sqlite.org/src/info/b918d4b4e546d">b918d4b4e546d</a>
2037 <li> Fix a potential memory leak in <a href="rowvalue.html">row value</a> processing.
2038 Check-in <a href="https://www.sqlite.org/src/info/2df6bbf1b8ca8">2df6bbf1b8ca8</a>
2039 <li> Improve the performance of the <a href="lang_corefunc.html#replace">replace() SQL function</a> for cases where
2040 there are many substitutions on megabyte-sized strings, in an attempt
2041 to avoid OSSFuzz timeouts during testing.
2042 Check-in <a href="https://www.sqlite.org/src/info/fab2c2b07b5d3">fab2c2b07b5d3</a>
2043 <li> Provide an appropriate error message when the sqlite_master table
2044 contains a CREATE TABLE AS statement. Formerly this caused either an
2045 assertion fault or null pointer dereference. Problem found by OSSFuzz
2046 on the GDAL project. Check-in
2047 <a href="https://www.sqlite.org/src/info/d75e67654aa96">d75e67654aa96</a>
2048 <li> Incorrect assert() statement removed. Check-in
2049 <a href="https://www.sqlite.org/src/info/823779d31eb09cda">823779d31eb09cda</a>.
2050 <li> Fix a problem with using the <a href="optoverview.html#like_opt">LIKE optimization</a> on an
2051 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a>. Check-in
2052 <a href="https://www.sqlite.org/src/info/b850dd159918af56">b850dd159918af56</a>.
2053 </ol>
2054 <p><b>Hashes:</b>
2055 <li>SQLITE_SOURCE_ID: "2018-04-02 11:04:16 736b53f57f70b23172c30880186dce7ad9baa3b74e3838cae5847cffb98f5cd2"
2056 <li>SHA3-256 for sqlite3.c: 4bed3dc2dc905ff55e2c21fd2725551fc0ca50912a9c96c6af712a4289cb24fa
2057
2058 </ol></p>
2059 <a name="version_3_22_0"></a>
2060 <h3>2018-01-22 (3.22.0)</h3><p><ol class='lessindent'>
2061 <li> The output of <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a> now shows each individual SQL statement
2062 run within a trigger.
2063 <li> Add the ability to read from <a href="wal.html">WAL mode</a> databases even if the application
2064 lacks write permission on the database and its containing directory, as long as
2065 the -shm and -wal files exist in that directory.
2066 <li> Added the <a href="rtree.html#rtreecheck">rtreecheck()</a> scalar SQL function to the <a href="rtree.html">R-Tree extension</a>.
2067 <li> Added the <a href="c3ref/vtab_nochange.html">sqlite3_vtab_nochange()</a> and <a href="c3ref/value_blob.html">sqlite3_value_nochange()</a> interfaces
2068 to help virtual table implementations optimize UPDATE operations.
2069 <li> Added the <a href="c3ref/vtab_collation.html">sqlite3_vtab_collation()</a> interface.
2070 <li> Added support for the <a href="fts5.html#carrotq">"&#94;" initial token syntax</a> in FTS5.
2071 <li> New extensions:
2072 <ol type='a'>
2073 <li> The <a href="zipfile.html">Zipfile virtual table</a> can read and write a
2074 <a href="https://en.wikipedia.org/wiki/Zip_(file_format)">ZIP Archive</a>.
2075 <li> Added the fsdir(PATH) <a href="vtab.html#tabfunc2">table-valued function</a> to the
2076 <a href="https://sqlite.org/src/file/ext/misc/fileio.c">fileio.c</a> extension,
2077 for listing the files in a directory.
2078 <li> The <a href="https://sqlite.org/src/file/ext/misc/btreeinfo.c">sqlite_btreeinfo</a>
2079 eponymous virtual table for introspecting and estimating the sizes of
2080 the btrees in a database.
2081 <li> The <a href="https://sqlite.org/src/file/ext/misc/appendvfs.c">Append VFS</a> is a
2082 <a href="vfs.html#shim">VFS shim</a> that allows an SQLite database to be appended to some other
2083 file. This allows (for example) a database to be appended to an
2084 executable that then opens and reads the database.
2085 </ol>
2086 <li> Query planner enhancements:
2087 <ol type='a'>
2088 <li> The optimization that uses an index to quickly compute an
2089 aggregate min() or max() is extended to work with
2090 <a href="expridx.html">indexes on expressions</a>.
2091 <li> The decision of whether to implement a FROM-clause subquery
2092 as a co-routine or using <a href="optoverview.html#flattening">query flattening</a>
2093 now considers whether
2094 the result set of the outer query is "complex" (if it
2095 contains functions or expression subqueries). A complex result
2096 set biases the decision toward the use of co-routines.
2097 <li> The planner avoids query plans that use indexes with unknown
2098 collating functions.
2099 <li> The planner omits unused LEFT JOINs even if they are not the
2100 right-most joins of a query.
2101 </ol>
2102 <li> Other performance optimizations:
2103 <ol type='a'>
2104 <li> A smaller and faster implementation of text to floating-point
2105 conversion subroutine: sqlite3AtoF().
2106 <li> The <a href="lemon.html">Lemon parser generator</a> creates a faster parser.
2107 <li> Use the strcspn() C-library routine to speed up the LIKE and
2108 GLOB operators.
2109 </ol>
2110 <li> Improvements to the <a href="cli.html">command-line shell</a>:
2111 <ol type='a'>
2112 <li> The ".schema" command shows the structure of virtual tables.
2113 <li> Added support for reading and writing
2114 <a href="sqlar.html">SQLite Archive</a> files using
2115 the <a href="cli.html#sqlar">.archive command</a>.
2116 <li> Added the experimental <a href="cli.html#expert">.expert command</a>
2117 <li> Added the ".eqp trigger" variant of the ".eqp" command
2118 <li> Enhance the ".lint fkey-indexes" command so that it works with
2119 <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
2120 <li> If the filename argument to the shell is a ZIP archive rather than
2121 an SQLite database, then the shell automatically opens that ZIP
2122 archive using the <a href="zipfile.html">Zipfile virtual table</a>.
2123 <li> Added the <a href="cli.html#editfunc">edit() SQL function</a>.
2124 <li> Added the <a href="cli.html#exexcel*">.excel command</a> to simplify exporting
2125 database content to a spreadsheet.
2126 <li> Databases are opened using
2127 <a href="https://sqlite.org/src/file/ext/misc/appendvfs.c">Append VFS</a> when
2128 the --append flag is used on the command line or with the
2129 .open command.
2130 </ol>
2131 <li> Enhance the <a href="compile.html#enable_update_delete_limit">SQLITE_ENABLE_UPDATE_DELETE_LIMIT</a> compile-time option so
2132 that it works for <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
2133 <li> Provide the <a href="lang_corefunc.html#sqlite_offset">sqlite_offset(X)</a> SQL function that returns
2134 the byte offset into the database file to the beginning of the record
2135 holding value X, when compiling with <a href="compile.html#enable_offset_sql_func">-DSQLITE_ENABLE_OFFSET_SQL_FUNC</a>.
2136 <li> Bug fixes:
2137 <ol type='a'>
2138 <li> Infinite loop on an UPDATE that uses an OR operator in the WHERE clause.
2139 Problem introduced with 3.17.0 and reported on the mailing list about
2140 one year later. Ticket
2141 <a href="https://www.sqlite.org/src/info/47b2581aa9bfecec">47b2581aa9bfecec</a>.
2142 <li> Incorrect query results when the skip-ahead-distinct optimization is
2143 used.
2144 Ticket <a href="https://sqlite.org/src/info/ef9318757b152e3a">ef9318757b152e3a</a>.
2145 <li> Incorrect query results on a join with a ORDER BY DESC. Ticket
2146 <a href="https://sqlite.org/src/info/123c9ba32130a6c9">123c9ba32130a6c9</a>.
2147 <li> Inconsistent result set column names between CREATE TABLE AS
2148 and a simple SELECT. Ticket
2149 <a href="https://sqlite.org/src/info/3b4450072511e621">3b4450072511e621</a>
2150 <li> Assertion fault when doing REPLACE on an index on an expression.
2151 Ticket <a href="https://sqlite.org/src/info/dc3f932f5a147771">dc3f932f5a147771</a>
2152 <li> Assertion fault when doing an IN operator on a constant index.
2153 Ticket <a href="https://sqlite.org/src/info/aa98619ad08ddcab">aa98619ad08ddcab</a>
2154 </ol>
2155 <p><b>Hashes:</b>
2156 <li>SQLITE_SOURCE_ID: "2018-01-22 18:45:57 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2171d"
2157 <li>SHA3-256 for sqlite3.c: 206df47ebc49cd1710ac0dd716ce5de5854826536993f4feab7a49d136b85069
2158
2159
2160 </ol></p>
2161 <a name="version_3_21_0"></a>
2162 <h3>2017-10-24 (3.21.0)</h3><p><ol class='lessindent'>
2163 <li> Take advantage of the atomic-write capabilities in the
2164 <a href="https://en.wikipedia.org/wiki/F2FS">F2FS filesystem</a> when available, for
2165 greatly reduced transaction overhead. This currently requires the
2166 <a href="compile.html#enable_batch_atomic_write">SQLITE_ENABLE_BATCH_ATOMIC_WRITE</a> compile-time option.
2167 <li> Allow <a href="lang_attach.html">ATTACH</a> and <a href="lang_detach.html">DETACH</a> commands to work inside of a transaction.
2168 <li> Allow <a href="vtab.html#worid">WITHOUT ROWID virtual tables</a> to be writable if the PRIMARY KEY
2169 contains exactly one column.
2170 <li> The "fsync()" that occurs after the header is written in a WAL reset
2171 now uses the sync settings for checkpoints. This means it will use a
2172 "fullfsync" on macs if <a href="pragma.html#pragma_checkpoint_fullfsync">PRAGMA checkpoint_fullfsync</a> set on.
2173 <li> The <a href="c3ref/libversion.html">sqlite3_sourceid()</a> function tries to detect if the source code has
2174 been modified from what is checked into version control and if there are
2175 modifications, the last four characters of the version hash are shown as
2176 "alt1" or "alt2". The objective is to detect accidental and/or careless
2177 edits. A forger can subvert this feature.
2178 <li> Improved de-quoting of column names for <a href="lang_createtable.html#createtabas">CREATE TABLE AS</a> statements with
2179 an aggregate query on the right-hand side.
2180 <li> Fewer "stat()" system calls issued by the unix VFS.
2181 <li> Enhanced the <a href="optoverview.html#like_opt">LIKE optimization</a> so that it works with an <a href="lang_expr.html#like">ESCAPE</a> clause.
2182 <li> Enhanced <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> and <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a> to detect obscure
2183 row corruption that they were formerly missing. Also update both pragmas
2184 so that they return error text rather than SQLITE_CORRUPT when encountering
2185 corruption in <a href="fileformat2.html#record_format">records</a>.
2186 <li> The query planner now prefers to implement FROM-clause subqueries using
2187 <a href="optoverview.html#coroutines">co-routines</a> rather using the <a href="optoverview.html#flattening">query flattener</a> optimization. Support for
2188 the use of co-routines for subqueries may no longer be disabled.
2189 <li> Pass information about !=, IS, IS NOT, NOT NULL, and IS NULL constraints
2190 into the <a href="vtab.html#xbestindex">xBestIndex</a> method of virtual tables.
2191 <li> Enhanced the <a href="csv.html">CSV virtual table</a> so that it accepts the last row of
2192 input if the final new-line character is missing.
2193 <li> Remove the rarely-used "scratch" memory allocator. Replace it with the
2194 <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigsmallmalloc">SQLITE_CONFIG_SMALL_MALLOC</a> configuration setting that gives SQLite
2195 a hint that large memory allocations should be avoided when possible.
2196 <li> Added the
2197 <a href="https://sqlite.org/src/file/ext/misc/unionvtab.c">swarm virtual table</a>
2198 to the existing union virtual table extension.
2199 <li> Added the
2200 <a href="https://sqlite.org/src/file/src/dbpage.c">sqlite_dbpage virtual table</a>
2201 for providing direct access to pages
2202 of the database file. The source code is built into the <a href="amalgamation.html">amalgamation</a> and
2203 is activated using the <a href="compile.html#enable_dbpage_vtab">-DSQLITE_ENABLE_DBPAGE_VTAB</a> compile-time option.
2204 <li> Add a new type of fts5vocab virtual table - "instance" - that provides
2205 direct access to an FTS5 full-text index at the lowest possible level.
2206 <li> Remove a call to rand_s() in the Windows VFS since it was causing problems
2207 in Firefox on some older laptops.
2208 <li> The <a href="https://sqlite.org/src/finfo?name=src/shell.c">src/shell.c</a> source code
2209 to the <a href="cli.html">command-line shell</a> is no longer under version control. That file
2210 is now generated as part of the build process.
2211 <li> Miscellaneous <a href="cpu.html#microopt">microoptimizations</a> reduce CPU usage by about 2.1%.
2212 <li> Bug fixes:
2213 <ol type="a">
2214 <li> Fix a faulty assert() statement discovered by OSSFuzz.
2215 Ticket <a href="https://sqlite.org/src/info/cb91bf4290c211d">cb91bf4290c211d</a>
2216 <li> Fix an obscure memory leak in <a href="c3ref/result_blob.html">sqlite3_result_pointer()</a>.
2217 Ticket <a href="https://sqlite.org/src/info/7486aa54b968e9b">7486aa54b968e9b</a>
2218 <li> Avoid a possible use-after-free error by deferring schema resets until
2219 after the query planner has finished running.
2220 Ticket <a href="https://sqlite.org/src/info/be436a7f4587ce5">be436a7f4587ce5</a>
2221 <li> Only use indexes-on-expressions to optimize ORDER BY or GROUP BY if
2222 the COLLATE is correct.
2223 Ticket <a href="https://sqlite.org/src/info/e20dd54ab0e4383">e20dd54ab0e4383</a>
2224 <li> Fix an assertion fault that was coming up when the expression in an
2225 index-on-expressions is really a constant.
2226 Ticket <a href="https://sqlite.org/src/info/aa98619ad08ddca">aa98619ad08ddca</a>
2227 <li> Fix an assertion fault that could occur following
2228 <a href="pragma.html#pragma_reverse_unordered_selects">PRAGMA reverse_unordered_selects</a>.
2229 Ticket <a href="https://sqlite.org/src/info/cb91bf4290c211d">cb91bf4290c211d</a>
2230 <li> Fix a segfault that can occur for queries that use table-valued functions
2231 in an IN or EXISTS subquery.
2232 Ticket <a href="https://sqlite.org/src/info/b899b6042f97f5">b899b6042f97f5</a>
2233 <li> Fix a potential integer overflow problem when compiling a particular
2234 horrendous common table expression. This was another problem discovered
2235 by OSSFuzz. Check-in <a href="https://sqlite.org/src/info/6ee8cb6ae5">6ee8cb6ae5</a>.
2236 <li> Fix a potential out-of-bound read when querying a corrupt database file,
2237 a problem detected by Natalie Silvanovich of Google Project Zero.
2238 Check-in <a href="https://sqlite.org/src/info/04925dee41a21f">04925dee41a21f</a>.
2239 </ol>
2240 <p><b>Hashes:</b>
2241 <li>SQLITE_SOURCE_ID: "2017-10-24 18:55:49 1a584e499906b5c87ec7d43d4abce641fdf017c42125b083109bc77c4de48827"
2242 <li>SHA3-256 for sqlite3.c: 84c181c0283d0320f488357fc8aab51898370c157601459ebee49d779036fe03
2243
2244 </ol></p>
2245 <a name="version_3_20_1"></a>
2246 <h3>2017-08-24 (3.20.1)</h3><p><ol class='lessindent'>
2247 <li> Fix a potential memory leak in the new <a href="c3ref/result_blob.html">sqlite3_result_pointer()</a> interface.
2248 Ticket <a href="https://sqlite.org/src/info/7486aa54b968e9b5">7486aa54b968e9b5</a>.
2249 <p><b>Hashes:</b>
2250 <li>SQLITE_SOURCE_ID: "2017-08-24 16:21:36 8d3a7ea6c5690d6b7c3767558f4f01b511c55463e3f9e64506801fe9b74dce34"
2251 <li>SHA3-256 for sqlite3.c: 93b1a6d69b48dc39697d1d3a1e4c30b55da0bdd2cad0c054462f91081832954a
2252
2253 </ol></p>
2254 <a name="version_3_20_0"></a>
2255 <h3>2017-08-01 (3.20.0)</h3><p><ol class='lessindent'>
2256 <li> Update the text of error messages returned by <a href="c3ref/errcode.html">sqlite3_errmsg()</a> for some
2257 error codes.
2258 <li> Add new <a href="bindptr.html">pointer passing interfaces</a>.
2259 <li> Backwards-incompatible changes to some extensions in order to take
2260 advantage of the improved security offered by the new
2261 <a href="bindptr.html">pointer passing interfaces</a>:
2262 <ol type='a'>
2263 <li> <a href="fts5.html#extending_fts5">Extending FTS5</a> &rarr; requires <a href="c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to find
2264 the fts5_api pointer.
2265 <li> <a href="carray.html">carray(PTR,N)</a> &rarr; requires <a href="c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to set the PTR parameter.
2266 <li> <a href="https://www.sqlite.org/src/file/ext/misc/remember.c">remember(V,PTR)</a>
2267 &rarr; requires <a href="c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to set the PTR parameter.
2268 </ol>
2269 <li> Added the <a href="stmt.html">SQLITE_STMT virtual table</a> extension.
2270 <li> Added the <a href="completion.html">COMPLETION extension</a> - designed to suggest
2271 tab-completions for interactive user interfaces. This is a work in progress.
2272 Expect further enhancements in future releases.
2273 <li> Added the <a href="unionvtab.html">UNION virtual table</a> extension.
2274 <li> The built-in <a href="lang_datefunc.html">date and time functions</a> have been enhanced so that they can be
2275 used in <a href="lang_createtable.html#ckconst">CHECK constraints</a>, in <a href="expridx.html">indexes on expressions</a>, and in the WHERE clauses
2276 of <a href="partialindex.html">partial indexes</a>, provided that they do not use the 'now', 'localtime', or
2277 'utc' keywords. <a href="deterministic.html#dtexception">More information</a>.
2278 <li> Added the <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> and <a href="c3ref/prepare.html">sqlite3_prepare16_v3()</a> interfaces
2279 with the extra "prepFlags" parameters.
2280 <li> Provide the <a href="c3ref/c_prepare_normalize.html#sqlitepreparepersistent">SQLITE_PREPARE_PERSISTENT</a> flag for <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> and
2281 use it to limit <a href="malloc.html#lookaside">lookaside memory</a> misuse by <a href="fts3.html">FTS3</a>, <a href="fts5.html">FTS5</a>, and the
2282 <a href="rtree.html">R-Tree extension</a>.
2283 <li> Added the <a href="pragma.html#pragma_secure_delete">PRAGMA secure_delete=FAST</a> command. When secure_delete is
2284 set to FAST, old content is overwritten with zeros as long as that does
2285 not increase the amount of I/O. Deleted content might still persist on
2286 the <a href="fileformat2.html#freelist">free-page list</a> but will be purged from all b-tree pages.
2287 <li> Enhancements to the <a href="cli.html">command-line shell</a>:
2288 <ol type='a'>
2289 <li> Add support for tab-completion using the <a href="completion.html">COMPLETION extension</a>, for
2290 both readline and linenoise.
2291 <li> Add the ".cd" command.
2292 <li> Enhance the "<a href="cli.html#dschema">.schema</a>" command to show the schema of all attached
2293 databases.
2294 <li> Enhance "<a href="cli.html#dtables">.tables</a>" so that it shows the schema names for all attached
2295 if the name is anything other than "main".
2296 <li> The "<a href="cli.html#csv">.import</a>" command ignores an initial UTF-8 BOM.
2297 <li> Added the "--newlines" option to the "<a href="cli.html#dump">.dump</a>" command to cause U+000a and
2298 U+000d characters to be output literally rather than escaped using the
2299 <a href="lang_corefunc.html#replace">replace()</a> function.
2300 </ol>
2301 <li> Query planner enhancements:
2302 <ol type='a'>
2303 <li> When generating individual loops for each ORed term of an OR scan,
2304 move any constant WHERE expressions outside of the loop, as is
2305 done for top-level loops.
2306 <li> The query planner examines the values of bound parameters to help
2307 determine if a partial index is usable.
2308 <li> When deciding between two plans with the same estimated cost, bias
2309 the selection toward the one that does not use the sorter.
2310 <li> Evaluate WHERE clause constraints involving correlated subqueries
2311 last, in the hope that they never have be evaluated at all.
2312 <li> Do not use the <a href="optoverview.html#flattening">flattening optimization</a> for a sub-query on the RHS
2313 of a LEFT JOIN if that subquery reads data from a <a href="vtab.html">virtual table</a> as
2314 doing so prevents the query planner from creating <a href="optoverview.html#autoindex">automatic indexes</a>
2315 on the results of the sub-query, which can slow down the query.
2316 </ol>
2317 <li> Add <a href="c3ref/c_stmtstatus_counter.html#sqlitestmtstatusreprepare">SQLITE_STMTSTATUS_REPREPARE</a>, <a href="c3ref/c_stmtstatus_counter.html#sqlitestmtstatusrun">SQLITE_STMTSTATUS_RUN</a>,
2318 and <a href="c3ref/c_stmtstatus_counter.html#sqlitestmtstatusmemused">SQLITE_STMTSTATUS_MEMUSED</a> options for the
2319 <a href="c3ref/stmt_status.html">sqlite3_stmt_status()</a> interface.
2320 <li> Provide <a href="pragma.html#pragfunc">PRAGMA functions</a> for
2321 <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>, <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a>, and
2322 <a href="pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a>.
2323 <li> Add the -withoutnulls option to the <a href="tclsqlite.html#eval">TCL interface eval method</a>.
2324 <li> Enhance the <a href="sqlanalyze.html">sqlite3_analyzer.exe</a> utility program so that it shows
2325 the number of bytes of metadata on btree pages.
2326 <li> The <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableqpsg">SQLITE_DBCONFIG_ENABLE_QPSG</a> run-time option and the
2327 <a href="compile.html#enable_qpsg">SQLITE_ENABLE_QPSG</a> compile-time option enable the
2328 <a href="queryplanner-ng.html#qpstab">query planner stability guarantee</a>. See also ticket
2329 <a href="https://www.sqlite.org/src/info/892fc34f173e99d8">892fc34f173e99d8</a>
2330 <li> Miscellaneous optimizations result in a 2% reduction in <a href="cpu.html">CPU cycles used</a>.
2331 <p><b>Bug Fixes:</b>
2332 <li> Fix the behavior of <a href="c3ref/column_name.html">sqlite3_column_name()</a> for queries that use the
2333 <a href="optoverview.html#flattening">flattening optimization</a> so that the result is consistent with other
2334 queries that do not use that optimization, and with PostgreSQL, MySQL,
2335 and SQLServer. Ticket <a href="https://sqlite.org/src/info/de3403bf5ae">de3403bf5ae</a>.
2336 <li> Fix the query planner so that it knows not to use <a href="optoverview.html#autoindex">automatic indexes</a>
2337 on the right table of LEFT JOIN if the WHERE clause uses the <a href="lang_expr.html#isisnot">IS operator</a>.
2338 Fix for <a href="https://sqlite.org/src/info/ce68383bf6aba">ce68383bf6aba</a>.
2339 <li> Ensure that the query planner knows that any column of a
2340 <a href="optoverview.html#flattening">flattened</a> LEFT JOIN can be NULL even
2341 if that column is labeled with "NOT NULL". Fix for ticket
2342 <a href="https://sqlite.org/src/info/892fc34f173e99d8">892fc34f173e99d8</a>.
2343 <li> Fix rare false-positives in <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> when run on a database connection
2344 with <a href="lang_attach.html">attached databases</a>. Ticket
2345 <a href="https://sqlite.org/src/info/a4e06e75a9ab61a12">a4e06e75a9ab61a12</a>
2346 <li> Fix a bug (discovered by OSSFuzz) that causes an assertion fault if certain
2347 dodgy CREATE TABLE declarations are used. Ticket
2348 <a href="https://sqlite.org/src/info/bc115541132dad136">bc115541132dad136</a>
2349 <p><b>Hashes:</b>
2350 <li>SQLITE_SOURCE_ID: "2017-08-01 13:24:15 9501e22dfeebdcefa783575e47c60b514d7c2e0cad73b2a496c0bc4b680900a8"
2351 <li>SHA3-256 for sqlite3.c: 79b7f3b977360456350219cba0ba0e5eb55910565eab68ea83edda2f968ebe95
2352
2353 </ol></p>
2354 <a name="version_3_18_2"></a>
2355 <h3>2017-06-17 (3.18.2)</h3><p><ol class='lessindent'>
2356 <li>Fix a bug that might cause duplicate output rows when an IN operator is
2357 used in the WHERE clause.
2358 Ticket <a href="https://sqlite.org/src/info/61fe9745">61fe9745</a>.
2359 <p><b>Hashes:</b>
2360 <li>SQLITE_SOURCE_ID: "2017-06-17 09:59:36 036ebf729e4b21035d7f4f8e35a6f705e6bf99887889e2dc14ebf2242e7930dd"
2361 <li>SHA3-256 for sqlite3.c: b0bd014f2776b9f9508a3fc6432f70e2436bf54475369f88f0aeef75b0eec93e
2362
2363 </ol></p>
2364 <a name="version_3_18_1"></a>
2365 <h3>2017-06-16 (3.18.1)</h3><p><ol class='lessindent'>
2366 <li>Fix a bug associated with <a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> that can lead to database
2367 corruption. The bug was introduced in <a href="#version_3_16_0">version 3.16.0</a> (2017-01-02).
2368 Ticket <a href="https://sqlite.org/src/info/fda22108">fda22108</a>.
2369 <p><b>Hashes:</b>
2370 <li>SQLITE_SOURCE_ID: "2017-06-16 13:41:15 77bb46233db03a3338bacf7e56f439be3dfd1926ea0c44d252eeafa7a7b31c06"
2371 <li>SHA3-256 for sqlite3.c: 334eaf776db9d09a4e69d6012c266bc837107edc2c981739ef82081cb11c5723
2372
2373 </ol></p>
2374 <a name="version_3_19_3"></a>
2375 <h3>2017-06-08 (3.19.3)</h3><p><ol class='lessindent'>
2376 <li>Fix a bug associated with <a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> that can lead to database
2377 corruption. The bug was introduced in <a href="#version_3_16_0">version 3.16.0</a> (2017-01-02).
2378 Ticket <a href="https://sqlite.org/src/info/fda22108">fda22108</a>.
2379 <p><b>Hashes:</b>
2380 <li>SQLITE_SOURCE_ID: "2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b"
2381 <li>SHA3-256 for sqlite3.c: 368f1d31272b1739f804bcfa5485e5de62678015c4adbe575003ded85c164bb8
2382
2383 </ol></p>
2384 <a name="version_3_19_2"></a>
2385 <h3>2017-05-25 (3.19.2)</h3><p><ol class='lessindent'>
2386 <li>Fix more bugs in the LEFT JOIN <a href="optoverview.html#flattening">flattening optimization</a>. Ticket
2387 <a href="https://www.sqlite.org/src/info/7fde638e94287d2c">7fde638e94287d2c</a>.
2388 <p><b>Hashes:</b>
2389 <li>SQLITE_SOURCE_ID: "2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9"
2390 <li>SHA3-256 for sqlite3.c: 1be0c457869c1f7eba58c3b5097b9ec307a15be338308bee8e5be8570bcf5d1e
2391
2392 </ol></p>
2393 <a name="version_3_19_1"></a>
2394 <h3>2017-05-24 (3.19.1)</h3><p><ol class='lessindent'>
2395 <li>Fix a bug in the LEFT JOIN <a href="optoverview.html#flattening">flattening optimization</a>. Ticket
2396 <a href="https://www.sqlite.org/src/info/cad1ab4cb7b0fc">cad1ab4cb7b0fc</a>.
2397 <li>Remove a surplus semicolon that was causing problems for older versions of MSVC.
2398 <p><b>Hashes:</b>
2399 <li>SQLITE_SOURCE_ID: "2017-05-24 13:08:33 f6d7b988f40217821a382bc298180e9e6794f3ed79a83c6ef5cae048989b3f86"
2400 <li>SHA3-256 for sqlite3.c: 996b2aff37b6e0c6663d0312cd921bbdf6826c989cbbb07dadde5e9672889bca
2401
2402 </ol></p>
2403 <a name="version_3_19_0"></a>
2404 <h3>2017-05-22 (3.19.0)</h3><p><ol class='lessindent'>
2405 <li> The <a href="c3ref/c_alter_table.html">SQLITE_READ</a> <a href="c3ref/set_authorizer.html">authorizer callback</a> is invoked once
2406 with a column name that is an empty string
2407 for every table referenced in a query from which no columns are extracted.
2408 <li> When using an index on an expression, try to use expression values already
2409 available in the index, rather than loading the original columns and recomputing
2410 the expression.
2411 <li> Enhance the <a href="optoverview.html#flattening">flattening optimization</a> so that it is able to flatten views
2412 on the right-hand side of a LEFT JOIN.
2413 <li> Use <a href="lang_corefunc.html#replace">replace()</a> instead of <a href="lang_corefunc.html#char">char()</a> for escaping newline and carriage-return
2414 characters embedded in strings in the .dump output from the <a href="cli.html">command-line shell</a>.
2415 <li> Avoid unnecessary foreign key processing in UPDATE statements that do not
2416 touch the columns that are constrained by the foreign keys.
2417 <li> On a DISTINCT query that uses an index, try to skip ahead to the next distinct
2418 entry using the index rather than stepping through rows, when an appropriate
2419 index is available.
2420 <li> Avoid unnecessary invalidation of <a href="c3ref/blob.html">sqlite3_blob</a> handles when making
2421 changes to unrelated tables.
2422 <li> Transfer any terms of the HAVING clause that use only columns mentioned in
2423 the GROUP BY clause over to the WHERE clause for faster processing.
2424 <li> Reuse the same materialization of a VIEW if that VIEW appears more than
2425 once in the same query.
2426 <li> Enhance <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> so that it identifies tables that have two
2427 or more rows with the same <a href="lang_createtable.html#rowid">rowid</a>.
2428 <li> Enhance the <a href="fts5.html">FTS5</a> query syntax so that <a href="fts5.html#fts5_column_filters">column filters</a>
2429 may be applied to arbitrary expressions.
2430 <li> Enhance the <a href="json1.html#jex">json_extract()</a> function to cache and reuse parses of JSON
2431 input text.
2432 <li> Added the <a href="https://sqlite.org/src/file/ext/misc/anycollseq.c">anycollseq.c</a>
2433 <a href="loadext.html">loadable extension</a> that allows a generic SQLite database connection to
2434 read a schema that contains unknown and/or
2435 application-specific <a href="datatype3.html#collation">collating sequences</a>.
2436 <p><b>Bug Fixes:</b>
2437 <li> Fix a problem in <a href="lang_replace.html">REPLACE</a> that can result in a corrupt database containing
2438 two or more rows with the same <a href="lang_createtable.html#rowid">rowid</a>. Fix for ticket
2439 <a href="https://www.sqlite.org/src/info/f68dc596c4e6018d">f68dc596c4e6018d</a>.
2440 <li> Fix a problem in <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> that was causing a subsequent
2441 <a href="lang_vacuum.html">VACUUM</a> to behave suboptimally.
2442 <li> Fix the <a href="pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a> command so that it works correctly with
2443 foreign keys on <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
2444 <li> Fix a bug in the b-tree logic that can result in incorrect duplicate answers
2445 for IN operator queries. Ticket
2446 <a href="https://sqlite.org/src/info/61fe9745">61fe9745</a>
2447 <li> Disallow leading zeros in numeric constants in JSON. Fix for ticket
2448 <a href="https://www.sqlite.org/src/info/b93be8729a895a528e2">b93be8729a895a528e2</a>.
2449 <li> Disallow control characters inside of strings in JSON. Fix for ticket
2450 <a href="https://www.sqlite.org/src/info/6c9b5514077fed34551">6c9b5514077fed34551</a>.
2451 <li> Limit the depth of recursion for JSON objects and arrays in order to avoid
2452 excess stack usage in the recursive descent parser. Fix for ticket
2453 <a href="https://www.sqlite.org/src/info/981329adeef51011052">981329adeef51011052</a>.
2454 <p><b>Hashes:</b>
2455 <li>SQLITE_SOURCE_ID: "2017-05-22 13:58:13 28a94eb282822cad1d1420f2dad6bf65e4b8b9062eda4a0b9ee8270b2c608e40"
2456 <li>SHA3-256 for sqlite3.c: c30326aa1a9cc342061b755725eac9270109acf878bc59200dd4b1cea6bc2908
2457
2458 </ol></p>
2459 <a name="version_3_18_0"></a>
2460 <h3>2017-03-30 (3.18.0)</h3><p><ol class='lessindent'>
2461 <li>Added the <a href="pragma.html#pragma_optimize">PRAGMA optimize</a> command
2462 <li>The SQLite version identifier returned by the <a href="lang_corefunc.html#sqlite_source_id">sqlite_source_id()</a> SQL function
2463 and the <a href="c3ref/libversion.html">sqlite3_sourceid()</a> C API and found in the <a href="c3ref/c_source_id.html">SQLITE_SOURCE_ID</a> macro is
2464 now a 64-digit SHA3-256 hash instead of a 40-digit SHA1 hash.
2465 <li>Added the <a href="json1.html#jpatch">json_patch()</a> SQL function to the <a href="json1.html">JSON1 extension</a>.
2466 <li>Enhance the <a href="optoverview.html#like_opt">LIKE optimization</a> so that it works for arbitrary expressions on
2467 the left-hand side as long as the LIKE pattern on the right-hand side does not
2468 begin with a digit or minus sign.
2469 <li>Added the <a href="c3ref/set_last_insert_rowid.html">sqlite3_set_last_insert_rowid()</a> interface and use the new interface in
2470 the <a href="fts3.html">FTS3</a>, <a href="fts3.html#fts4">FTS4</a>, and <a href="fts5.html">FTS5</a> extensions to ensure that the <a href="c3ref/last_insert_rowid.html">sqlite3_last_insert_rowid()</a>
2471 interface always returns reasonable values.
2472 <li>Enhance <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> and <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a> so that they verify
2473 <a href="lang_createtable.html#ckconst">CHECK constraints</a>.
2474 <li>Enhance the query plans for joins to detect empty tables early and
2475 halt without doing unnecessary work.
2476 <li>Enhance the <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> family of interfaces and the <a href="lang_corefunc.html#printf">printf SQL function</a>
2477 to put comma separators at the thousands marks for integers, if the "," format modifier
2478 is used in between the "%" and the "d" (example: "%,d").
2479 <li>Added the -D<a href="compile.html#max_memory">SQLITE_MAX_MEMORY</a>=<i>N</i> compile-time option.
2480 <li>Added the <a href="cli.html#sha3sum">.sha3sum dot-command</a> and the <a href="cli.html#selftest">.selftest dot-command</a>
2481 to the <a href="cli.html">command-line shell</a>
2482 <li>Begin enforcing <a href="c3ref/c_limit_attached.html#sqlitelimitvdbeop">SQLITE_LIMIT_VDBE_OP</a>. This can be used, for example, to prevent
2483 excessively large prepared statements in systems that accept SQL queries from
2484 untrusted users.
2485 <li>Various performance improvements.
2486 <p><b>Bug Fixes:</b>
2487 <li>Ensure that indexed expressions with collating sequences are handled correctly.
2488 Fix for ticket <a href="https://www.sqlite.org/src/info/eb703ba7b50c1a5">eb703ba7b50c1a5</a>.
2489 <li>Fix a bug in the 'start of ...' modifiers for the <a href="lang_datefunc.html">date and time functions</a>.
2490 Ticket <a href="https://www.sqlite.org/src/info/6097cb92745327a1">6097cb92745327a1</a>
2491 <li>Fix a potential segfault in complex recursive triggers, resulting from a
2492 bug in the OP_Once opcode introduced as part of a performance optimization in
2493 version 3.15.0.
2494 Ticket <a href="https://www.sqlite.org/src/info/06796225f59c057c">06796225f59c057c</a>
2495 <li>In the <a href="rbu.html">RBU extension</a>, add extra sync operations to avoid the possibility of
2496 corruption following a power failure.
2497 <li>The <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a> output for nested SQL statements should always begin
2498 with a "--" comment marker.
2499 <p><b>Hashes:</b>
2500 <li>SQLITE_SOURCE_ID: "2017-03-28 18:48:43 424a0d380332858ee55bdebc4af3789f74e70a2b3ba1cf29d84b9b4bcf3e2e37"
2501 <li>SHA3-256 for sqlite3.c: cbf322df1f76be57fb3be84f3da1fc71d1d3dfdb7e7c2757fb0ff630b3bc2e5d
2502
2503 </ol></p>
2504 <a name="version_3_17_0"></a>
2505 <h3>2017-02-13 (3.17.0)</h3><p><ol class='lessindent'>
2506 <li>Approximately 25% better performance from the <a href="rtree.html">R-Tree extension</a>.
2507 <ol type='a'>
2508 <li> Uses compiler built-ins (ex: __builtin_bswap32() or _byteswap_ulong())
2509 for byteswapping when available.
2510 <li> Uses the <a href="c3ref/blob.html">sqlite3_blob</a> key/value access object instead of SQL
2511 for pulling content out of R-Tree nodes
2512 <li> Other miscellaneous enhancements such as loop unrolling.
2513 </ol>
2514 <li>Add the <a href="compile.html#default_lookaside">SQLITE_DEFAULT_LOOKASIDE</a> compile-time option.
2515 <li>Increase the default <a href="malloc.html#lookaside">lookaside</a>
2516 size from 512,125 to 1200,100
2517 as this provides better performance while only adding 56KB
2518 of extra memory per connection. Memory-sensitive
2519 applications can restore the old
2520 default at compile-time, start-time, or run-time.
2521 <li>Use compiler built-ins __builtin_sub_overflow(), __builtin_add_overflow(),
2522 and __builtin_mul_overflow() when available. (All compiler
2523 built-ins can be omitted with the <a href="compile.html#disable_intrinsic">SQLITE_DISABLE_INTRINSIC</a> compile-time
2524 option.)
2525 <li>Added the <a href="compile.html#enable_null_trim">SQLITE_ENABLE_NULL_TRIM</a> compile-time option, which
2526 can result in significantly smaller database files for some
2527 applications, at the risk of being incompatible with older
2528 versions of SQLite.
2529 <li>Change <a href="compile.html#default_pcache_initsz">SQLITE_DEFAULT_PCACHE_INITSZ</a> from 100 to 20, for
2530 improved performance.
2531 <li>Added the SQLITE_UINT64_TYPE compile-time option as an
2532 analog to SQLITE_INT64_TYPE.
2533 <li>Perform some <a href="lang_update.html">UPDATE</a> operations in a single pass instead of
2534 in two passes.
2535 <li>Enhance the <a href="sessionintro.html">session extension</a> to support <a href="withoutrowid.html">WITHOUT ROWID</a>
2536 tables.
2537 <li>Fixed performance problems and potential stack overflows
2538 when creating <a href="lang_createview.html">views</a> from multi-row VALUES clauses with
2539 hundreds of thousands of rows.
2540 <li>Added the <a href="https://www.sqlite.org/src/file/ext/misc/sha1.c">sha1.c</a>
2541 extension.
2542 <li>In the <a href="cli.html">command-line shell</a>, enhance the ".mode" command so that it
2543 restores the default column and row separators for modes "line",
2544 "list", "column", and "tcl".
2545 <li>Enhance the <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> option so that it works
2546 in <a href="wal.html">WAL mode</a> as long as the pages being read are not in the WAL file.
2547 <li>Enhance the
2548 <a href="lemon.html">Lemon parser generator</a>
2549 so that it can store the parser object as a stack variable rather than
2550 allocating space from the heap and make use of that enhancement in
2551 the <a href="amalgamation.html">amalgamation</a>.
2552 <li>Other performance improvements. Uses about <a href="cpu.html">6.5% fewer CPU cycles</a>.
2553 <p><b>Bug Fixes:</b>
2554 <li>Throw an error if the ON clause of a LEFT JOIN references tables
2555 to the right of the ON clause. This is the same behavior as
2556 PostgreSQL. Formerly, SQLite silently converted the LEFT JOIN
2557 into an INNER JOIN. Fix for ticket
2558 <a href="https://www.sqlite.org/src/info/25e335f802dd">25e335f802dd</a>.
2559 <li>Use the correct affinity for columns of automatic indexes. Ticket
2560 <a href="https://www.sqlite.org/src/info/7ffd1ca1d2ad4ec">7ffd1ca1d2ad4ec</a>.
2561 <li>Ensure that the <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface can correctly
2562 handle short rows. Fix for ticket
2563 <a href="https://www.sqlite.org/src/info/e6e962d6b0f06f46e">e6e962d6b0f06f46e</a>.
2564 <p><b>Hashes:</b>
2565 <li>SQLITE_SOURCE_ID: "2017-02-13 16:02:40 ada05cfa86ad7f5645450ac7a2a21c9aa6e57d2c"
2566 <li>SHA1 for sqlite3.c: cc7d708bb073c44102a59ed63ce6142da1f174d1
2567
2568
2569 </ol></p>
2570 <a name="version_3_16_2"></a>
2571 <h3>2017-01-06 (3.16.2)</h3><p><ol class='lessindent'>
2572 <li>Fix the <a href="lang_replace.html">REPLACE</a> statement for
2573 <a href="withoutrowid.html">WITHOUT ROWID</a> tables that lack secondary indexes so that
2574 it works correctly with triggers and foreign keys. This was a new bug
2575 caused by performance optimizations added in version 3.16.0.
2576 Ticket <a href="https://www.sqlite.org/src/info/30027b613b4">30027b613b4</a>
2577 <li>Fix the <a href="c3ref/value_blob.html">sqlite3_value_text()</a> interface so that it correctly
2578 translates content generated by <a href="lang_corefunc.html#zeroblob">zeroblob()</a> into a string of all
2579 0x00 characters. This is a long-standing issue discovered after the
2580 3.16.1 release by <a href="https://github.com/google/oss-fuzz">OSS-Fuzz</a>
2581 <li>Fix the bytecode generator to deal with a subquery in the FROM clause
2582 that is itself a UNION ALL where one side of the UNION ALL is a view
2583 that contains an ORDER BY. This is a long-standing issue that was
2584 discovered after the release of 3.16.1. See ticket
2585 <a href="https://www.sqlite.org/src/info/190c2507">190c2507</a>.
2586 <li>Adjust the <a href="c3ref/column_count.html">sqlite3_column_count()</a> API so it more often returns the same
2587 values for <a href="pragma.html#syntax">PRAGMA</a> statements as it did in prior releases, to
2588 minimize disruption to applications that might be using that
2589 interface in unexpected ways.
2590 <p><b>Hashes:</b>
2591 <li>SQLITE_SOURCE_ID: "2017-01-06 16:32:41 a65a62893ca8319e89e48b8a38cf8a59c69a8209"
2592 <li>SHA1 for sqlite3.c: 2bebdc3f24911c0d12b6d6c0123c3f84d6946b08
2593
2594 </ol></p>
2595 <a name="version_3_16_1"></a>
2596 <h3>2017-01-03 (3.16.1)</h3><p><ol class='lessindent'>
2597 <li>Fix a bug concerning the use of <a href="rowvalue.html">row values</a> within <a href="lang_createtrigger.html">triggers</a>
2598 (see ticket <a href="https://www.sqlite.org/src/info/8c9458e7">8c9458e7</a>)
2599 that was in version 3.15.0 but was not reported until moments after the 3.16.0
2600 release was published.
2601 <p><b>Hashes:</b>
2602 <li>SQLITE_SOURCE_ID: "2017-01-03 18:27:03 979f04392853b8053817a3eea2fc679947b437fd"
2603 <li>SHA1 for sqlite3.c: 354f6223490b30fd5320b4066b1535e4ce33988d
2604
2605 </ol></p>
2606 <a name="version_3_16_0"></a>
2607 <h3>2017-01-02 (3.16.0)</h3><p><ol class='lessindent'>
2608 <li>Uses 9% fewer CPU cycles. (See the <a href="cpu.html">CPU performance measurement</a> report for
2609 details on how this performance increase was computed.)
2610 <li>Added experimental support for <a href="pragma.html#pragfunc">PRAGMA functions</a>.
2611 <li>Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfignockptonclose">SQLITE_DBCONFIG_NO_CKPT_ON_CLOSE</a> option to <a href="c3ref/db_config.html">sqlite3_db_config()</a>.
2612 <li>Enhance the <a href="lang_datefunc.html">date and time functions</a> so that the 'unixepoch' modifier works
2613 for the full span of supported dates.
2614 <li>Changed the default configuration of the <a href="malloc.html#lookaside">lookaside memory allocator</a> from
2615 500 slots of 128 bytes each into 125 slots of 512 bytes each.
2616 <li>Enhanced "WHERE x NOT NULL" <a href="partialindex.html">partial indexes</a> so that they are usable if
2617 the "x" column appears in a LIKE or GLOB operator.
2618 <li>Enhanced <a href="c3ref/interrupt.html">sqlite3_interrupt()</a> so that it interrupts <a href="wal.html#ckpt">checkpoint</a> operations that
2619 are in process.
2620 <li>Enhanced the <a href="lang_expr.html#like">LIKE</a> and <a href="lang_expr.html#glob">GLOB</a> matching algorithm to be faster
2621 for cases when the pattern contains multiple wildcards.
2622 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlwin32gethandle">SQLITE_FCNTL_WIN32_GET_HANDLE</a> file control opcode.
2623 <li>Added ".mode quote" to the <a href="cli.html">command-line shell</a>.
2624 <li>Added ".lint fkey-indexes" to the <a href="cli.html">command-line shell</a>.
2625 <li>Added the <a href="imposter.html#dotimposter">.imposter dot-command</a> to the <a href="cli.html">command-line shell</a>.
2626 <li>Added the <a href="https://www.sqlite.org/src/file/ext/misc/remember.c">remember(V,PTR)</a>
2627 SQL function as a <a href="loadext.html">loadable extension</a>.
2628 <li>Rename the <a href="compile.html#omit_builtin_test">SQLITE_OMIT_BUILTIN_TEST</a> compile-time option to
2629 <a href="compile.html#untestable">SQLITE_UNTESTABLE</a> to better reflect the implications of using it.
2630 <p><b>Bug Fixes:</b>
2631 <li>Fix a long-standing bug in the query planner that caused incorrect results
2632 on a LEFT JOIN where the left-hand table is a subquery and the join constraint
2633 is a bare column name coming from the left-hand subquery. Ticket
2634 <a href="https://www.sqlite.org/src/info/2df0107b">2df0107b</a>.
2635 <li>Correctly handle the integer literal -0x8000000000000000 in the query planner.
2636 <p><b>Hashes:</b>
2637 <li>SQLITE_SOURCE_ID: "2017-01-02 11:57:58 04ac0b75b1716541b2b97704f4809cb7ef19cccf"
2638 <li>SHA1 for sqlite3.c: e2920fb885569d14197c9b7958e6f1db573ee669
2639
2640 </ol></p>
2641 <a name="version_3_15_2"></a>
2642 <h3>2016-11-28 (3.15.2)</h3><p><ol class='lessindent'>
2643 <li> Multiple bug fixes to the <a href="rowvalue.html">row value</a> logic that was introduced in version 3.15.0.
2644 <li> Fix a NULL pointer dereference in ATTACH/DETACH following a maliciously constructed
2645 syntax error. Ticket
2646 <a href="https://www.sqlite.org/src/info/2f1b168ab4d4844">2f1b168ab4d4844</a>.
2647 <li> Fix a crash that can occur following an out-of-memory condition
2648 in the built-in <a href="lang_corefunc.html#instr">instr()</a> function.
2649 <li> In the <a href="json1.html">JSON extension</a>, fix the JSON validator so that it correctly rejects
2650 invalid backslash escapes within strings.
2651 <p><b>Hashes:</b>
2652 <li>SQLITE_SOURCE_ID: "2016-11-28 19:13:37 bbd85d235f7037c6a033a9690534391ffeacecc8"
2653 <li>SHA1 for sqlite3.c: 06d77b42a3e70609f8d4bbb97caf53652f1082cb
2654
2655 </ol></p>
2656 <a name="version_3_15_1"></a>
2657 <h3>2016-11-04 (3.15.1)</h3><p><ol class='lessindent'>
2658 <li> Added <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlwin32gethandle">SQLITE_FCNTL_WIN32_GET_HANDLE</a> file control opcode.
2659 <li> Fix the <a href="lang_vacuum.html">VACUUM</a> command so that it spills excess content to disk rather
2660 than holding everything in memory, and possible causing an out-of-memory
2661 error for larger database files. This fixes an issue introduced by
2662 version 3.15.0.
2663 <li> Fix a case (present since 3.8.0 - 2013-08-26)
2664 where OR-connected terms in the ON clause of a LEFT JOIN
2665 might cause incorrect results. Ticket
2666 <a href="https://www.sqlite.org/src/info/34a579141b2c5ac">34a579141b2c5ac</a>.
2667 <li> Fix a case where the use of <a href="rowvalue.html">row values</a> in the ON clause of a LEFT JOIN
2668 might cause incorrect results. Ticket
2669 <a href="https://www.sqlite.org/src/info/fef4bb4bd9185ec8f">fef4bb4bd9185ec8f</a>.
2670 <p><b>Hashes:</b>
2671 <li>SQLITE_SOURCE_ID: "2016-11-04 12:08:49 1136863c76576110e710dd5d69ab6bf347c65e36"
2672 <li>SHA1 for sqlite3.c: e7c26a7be3e431dd06898f8d262c4ef240c07366
2673
2674 </ol></p>
2675 <a name="version_3_15_0"></a>
2676 <h3>2016-10-14 (3.15.0)</h3><p><ol class='lessindent'>
2677 <li> Added support for <a href="rowvalue.html">row values</a>.
2678 <li> Allow <a href="deterministic.html">deterministic SQL functions</a> in the WHERE clause of a <a href="partialindex.html">partial index</a>.
2679 <li> Added the "<a href="uri.html#urimodeof">modeof=<i>filename</i></a>" URI parameter on the unix VFS
2680 <li> Added support for <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigmaindbname">SQLITE_DBCONFIG_MAINDBNAME</a>.
2681 <li> Added the ability to <a href="lang_vacuum.html">VACUUM</a> an <a href="lang_attach.html">ATTACH-ed</a> database.
2682 <li> Enhancements to the <a href="cli.html">command-line shell</a>:
2683 <ol type='a'>
2684 <li> Add the ".testcase" and ".check" <a href="cli.html#dotcmd">dot-commands</a>.
2685 <li> Added the --new option to the ".open" dot-command, causing
2686 any prior content in the database to be purged prior to
2687 opening.
2688 </ol>
2689 <li> Enhance the <a href="fts5.html#the_fts5vocab_virtual_table_module">fts5vocab</a> virtual table to handle "ORDER BY term" efficiently.
2690 <li> Miscellaneous micro-optimizations reduce CPU usage by more than 7%
2691 on common workloads. Most optimization in this release has been on the
2692 front-end (<a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>).
2693 <p><b>Bug Fixes:</b>
2694 <li> The multiply operator now correctly detects 64-bit integer overflow
2695 and promotes to floating point in all corner-cases. Fix for ticket
2696 <a href="https://www.sqlite.org/src/info/1ec41379c9c1e400">1ec41379c9c1e400</a>.
2697 <li> Correct handling of columns with redundant unique indexes when those
2698 columns are used on the LHS of an <a href="lang_expr.html#in_op">IN operator</a>. Fix for ticket
2699 <a href="https://www.sqlite.org/src/info/0eab1ac759">0eab1ac759</a>.
2700 <li> Skip NULL entries on range queries in <a href="expridx.html">indexes on expressions</a>.
2701 Fix for ticket
2702 <a href="https://www.sqlite.org/src/tktview/4baa46491212947">4baa46491212947</a>.
2703 <li> Ensure that the <a href="autoinc.html">AUTOINCREMENT</a> counters in the sqlite_sequence
2704 table are initialized doing "Xfer Optimization" on "INSERT ... SELECT"
2705 statements. Fix for ticket
2706 <a href="https://www.sqlite.org/src/info/7b3328086a5c116c">7b3328086a5c116c</a>.
2707 <li> Make sure the ORDER BY LIMIT optimization
2708 (from check-in <a href="https://www.sqlite.org/src/info/559733b09e9630fa">559733b09e</a>)
2709 works with IN operators on INTEGER PRIMARY KEYs. Fix for ticket
2710 <a href="https://www.sqlite.org/src/info/96c1454cbfd9509">96c1454c</a>
2711 <p><b>Hashes:</b>
2712 <li>SQLITE_SOURCE_ID: "2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8"
2713 <li>SHA1 for sqlite3.c: fba106f8f6493c66eeed08a2dfff0907de54ae76
2714
2715 </ol></p>
2716 <a name="version_3_14_2"></a>
2717 <h3>2016-09-12 (3.14.2)</h3><p><ol class='lessindent'>
2718 <li> Improved support for using the STDCALL calling convention in winsqlite3.dll.
2719 <li> Fix the <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a> interface so that it is disabled if either the
2720 callback or the mask arguments are zero, in accordance with the documentation.
2721 <li> Fix commenting errors and improve the comments generated on <a href="lang_explain.html">EXPLAIN</a> listings
2722 when the <a href="compile.html#enable_explain_comments">-DSQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option is used.
2723 <li> Fix the ".read" command in the <a href="cli.html">command-line shell</a> so that it understands
2724 that its input is not interactive.
2725 <li> Correct affinity computations for a SELECT on the RHS of an IN operator.
2726 Fix for ticket <a href="https://sqlite.org/src/info/199df4168c">199df4168c</a>.
2727 <li> The ORDER BY LIMIT optimization is not valid unless the inner-most IN operator
2728 loop is actually used by the query plan. Fix for
2729 ticket <a href="https://sqlite.org/src/info/0c4df46116e90f92">0c4df46116e90f92</a>.
2730 <li> Fix an internal code generator problem that was causing some <a href="lang_delete.html">DELETE</a> operations
2731 to no-op. Ticket <a href="https://sqlite.org/src/info/ef360601">ef360601</a>
2732 <p><b>Hashes:</b>
2733 <li>SQLITE_SOURCE_ID: "2016-09-12 18:50:49 29dbef4b8585f753861a36d6dd102ca634197bd6"
2734 <li>SHA1 for sqlite3.c: bcc4a1989db45e7f223191f2d0f66c1c28946383
2735
2736 </ol></p>
2737 <a name="version_3_14_1"></a>
2738 <h3>2016-08-11 (3.14.1)</h3><p><ol class='lessindent'>
2739 <li>A performance enhancement to the page-cache "truncate" operation
2740 reduces <a href="lang_transaction.html">COMMIT</a> time by dozens of milliseconds on systems with a
2741 large <a href="pragma.html#pragma_cache_size">page cache</a>.
2742 <li>Fix to the --rbu option of <a href="sqldiff.html">sqldiff</a>.
2743 <p><b>Hashes:</b>
2744 <li>SQLITE_SOURCE_ID: "2016-08-11 18:53:32 a12d8059770df4bca59e321c266410344242bf7b"
2745 <li>SHA1 for sqlite3.c: d545b24892278272ce4e40e0567d69c8babf12ea
2746
2747 </ol></p>
2748 <a name="version_3_14"></a>
2749 <h3>2016-08-08 (3.14)</h3><p><ol class='lessindent'>
2750 <div style="width:280px;float:right;padding:10px;margin:0px 10px;">
2751 <img src='images/sqlitepie.jpg' width=280 height=250></img><br>
2752 <center>Celebrating the SQLite "<big>&pi;</big> release"
2753 with a home-baked pie.</center>
2754 </div>
2755 <li>Added support for <a href="vtab.html#worid">WITHOUT ROWID virtual tables</a>.
2756 <li>Improved the query planner so that the <a href="optoverview.html#or_opt">OR optimization</a> can
2757 be used on <a href="vtab.html">virtual tables</a> even if one or more of the disjuncts
2758 use the <a href="lang_expr.html#like">LIKE</a>, <a href="lang_expr.html#glob">GLOB</a>, <a href="lang_expr.html#regexp">REGEXP</a>, <a href="lang_expr.html#match">MATCH</a> operators.
2759 <li>Added the <a href="csv.html">CSV virtual table</a> for reading
2760 <a href="https://www.ietf.org/rfc/rfc4180.txt">RFC 4180</a> formatted comma-separated
2761 value files.
2762 <li>Added the <a href="carray.html">carray() table-valued function</a> extension.
2763 <li>Enabled <a href="loadext.html#persist">persistent loadable extensions</a> using the new
2764 <a href="rescode.html#ok_load_permanently">SQLITE_OK_LOAD_PERMANENTLY</a> return code from the extension
2765 entry point.
2766 <li>Added the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuscacheusedshared">SQLITE_DBSTATUS_CACHE_USED_SHARED</a> option to <a href="c3ref/db_status.html">sqlite3_db_status()</a>.
2767 <li>Add the
2768 <a href="https://www.sqlite.org/src/artifact?ci=trunk&filename=ext/misc/vfsstat.c">vfsstat.c</a>
2769 loadable extension - a VFS shim that measures I/O
2770 together with an <a href="vtab.html#epovtab">eponymous virtual table</a> that provides access to the measurements.
2771 <li>Improved algorithm for running queries with both an ORDER BY and a LIMIT where
2772 only the inner-most loop naturally generates rows in the correct order.
2773 <li>Enhancements to <a href="lemon.html">Lemon parser generator</a>, so that it generates a
2774 faster parser.
2775 <li>The <a href="pragma.html#pragma_compile_options">PRAGMA compile_options</a> command now attempts to show the version number
2776 of the compiler that generated the library.
2777 <li>Enhance <a href="pragma.html#pragma_table_info">PRAGMA table_info</a> so that it provides information about
2778 <a href="vtab.html#epovtab">eponymous virtual tables</a>.
2779 <li>Added the "win32-none" VFS, analogous to the "unix-none" VFS, that works like
2780 the default "win32" VFS except that it ignores all file locks.
2781 <li>The query planner uses a full scan of a <a href="partialindex.html">partial index</a> instead of a
2782 full scan of the main table, in cases where that makes sense.
2783 <li>Allow <a href="vtab.html#tabfunc2">table-valued functions</a> to appear on the right-hand side of an <a href="lang_expr.html#in_op">IN operator</a>.
2784 <li>Created the <a href="dbhash.html">dbhash.exe</a> command-line utility.
2785 <li>Added two new C-language interfaces: <a href="c3ref/expanded_sql.html">sqlite3_expanded_sql()</a> and
2786 <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a>. These new interfaces subsume the functions of
2787 <a href="c3ref/profile.html">sqlite3_trace()</a> and <a href="c3ref/profile.html">sqlite3_profile()</a> which are now deprecated.
2788 <li>Added the <a href="json1.html#jquote">json_quote()</a> SQL function to <a href="json1.html">the json1 extension</a>.
2789 <li>Disable the <a href="c3ref/set_authorizer.html">authorizer callback</a> while reparsing the schema.
2790 <li>Added the <a href="compile.html#enable_unknown_sql_function">SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION</a> compile-time option and turned that
2791 option on by default when building the <a href="cli.html">command-line shell</a>.
2792 <p><b>Bug Fixes:</b>
2793 <li>Fix the <a href="lang_altertable.html">ALTER TABLE</a> command so that it does not corrupt <a href="lang_createindex.html#descidx">descending indexes</a>
2794 when adding a column to a <a href="pragma.html#pragma_legacy_file_format">legacy file format</a> database. Ticket
2795 <a href="https://www.sqlite.org/src/info/f68bf68513a1c15f">f68bf68513a1c15f</a>
2796 <li>Fix a NULL-pointer dereference/crash that could occurs when a transitive WHERE
2797 clause references a non-existent collating sequence. Ticket
2798 <a href="https://www.sqlite.org/src/info/e8d439c77685eca6">e8d439c77685eca6</a>.
2799 <li>Improved the cost estimation for an index scan which includes a WHERE clause
2800 that can be partially or fully evaluated using columns in the index and without
2801 having to do a table lookup. This fixes a performance regression that occurred
2802 for some obscure queries following the ORDER BY LIMIT optimization introduced
2803 in <a href="#version_3_12_0">version 3.12.0</a>.
2804 <p><b>Hashes:</b>
2805 <li>SQLITE_SOURCE_ID: "2016-08-08 13:40:27 d5e98057028abcf7217d0d2b2e29bbbcdf09d6de"
2806 <li>SHA1 for sqlite3.c: 234a3275d03a287434ace3ccdf1afb208e6b0e92
2807
2808 </ol></p>
2809 <a name="version_3_13_0"></a>
2810 <h3>2016-05-18 (3.13.0)</h3><p><ol class='lessindent'>
2811 <li>Postpone I/O associated with TEMP files for as long as possible, with the hope
2812 that the I/O can ultimately be avoided completely.
2813 <li>Merged the <a href="sessionintro.html">session</a> extension into trunk.
2814 <li>Added the ".auth ON|OFF" command to the <a href="cli.html">command-line shell</a>.
2815 <li>Added the "--indent" option to the ".schema" and ".fullschema" commands of
2816 the <a href="cli.html">command-line shell</a>, to turn on pretty-printing.
2817 <li>Added the ".eqp full" option to the <a href="cli.html">command-line shell</a>, that does both <a href="lang_explain.html">EXPLAIN</a>
2818 and <a href="eqp.html">EXPLAIN QUERY PLAN</a> on each statement that is evaluated.
2819 <li>Improved unicode filename handling in the <a href="cli.html">command-line shell</a> on Windows.
2820 <li>Improved resistance against goofy query planner decisions caused by
2821 incomplete or incorrect modifications to the <a href="fileformat2.html#stat1tab">sqlite_stat1</a>
2822 table by the application.
2823 <li>Added the <a href="c3ref/db_config.html">sqlite3_db_config</a>(db,<a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableloadextension">SQLITE_DBCONFIG_ENABLE_LOAD_EXTENSION</a>) interface
2824 which allows the <a href="c3ref/load_extension.html">sqlite3_load_extension()</a> C-API to be enabled while keeping the
2825 <a href="lang_corefunc.html#load_extension">load_extension()</a> SQL function disabled for security.
2826 <li>Change the <a href="tempfiles.html#tempdir">temporary directory search algorithm</a> on Unix to allow directories with
2827 write and execute permission, but without read permission, to serve as temporary
2828 directories. Apply this same standard to the "." fallback directory.
2829 <p><b>Bug Fixes:</b>
2830 <li>Fix a problem with the multi-row one-pass DELETE optimization that was
2831 causing it to compute incorrect answers with a self-referential subquery in
2832 the WHERE clause. Fix for ticket
2833 <a href="https://www.sqlite.org/src/info/dc6ebeda9396087">dc6ebeda9396087</a>
2834 <li>Fix a possible segfault with DELETE when table is a <a href="rowidtable.html">rowid table</a> with an
2835 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a> and the WHERE clause contains a OR and
2836 the table has one or more indexes that are able to trigger the OR optimization,
2837 but none of the indexes reference any table columns other than the INTEGER PRIMARY KEY.
2838 Ticket <a href="https://www.sqlite.org/src/info/16c9801ceba49">16c9801ceba49</a>.
2839 <li>When checking for the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a>, verify that all terms
2840 of the compound inner SELECT are non-aggregate, not just the last term. Fix for ticket
2841 <a href="https://www.sqlite.org/src/info/f7f8c97e97597">f7f8c97e97597</a>.
2842 <li>Fix a locking race condition in Windows that can occur when two or more processes
2843 attempt to recover the same <a href="fileformat2.html#hotjrnl">hot journal</a> at the same time.
2844 <p><b>Hashes:</b>
2845 <li>SQLITE_SOURCE_ID: "2016-05-18 10:57:30 fc49f556e48970561d7ab6a2f24fdd7d9eb81ff2"
2846 <li>SHA1 for sqlite3.c: 9b9171b1e6ce7a980e6b714e9c0d9112657ad552
2847
2848 <p><b>Bug fixes backported into patch release 3.12.2 (2016-04-18):</b></p>
2849
2850 <li>Fix a backwards compatibility problem in version 3.12.0 and 3.12.1:
2851 Columns declared as <tt>"INTEGER" PRIMARY KEY</tt> (with quotes around
2852 the datatype keyword) were not being recognized as an
2853 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a>, which resulted in an incompatible database file.
2854 Ticket <a href="https://www.sqlite.org/src/info/7d7525cb01b68">7d7525cb01b68</a>
2855 <li>Fix a bug (present since <a href="#version_3_9_0">version 3.9.0</a>) that can cause the <a href="lang_delete.html">DELETE</a>
2856 operation to miss rows if <a href="pragma.html#pragma_reverse_unordered_selects">PRAGMA reverse_unordered_selects</a> is turned on.
2857 Ticket <a href="https://www.sqlite.org/src/info/a306e56ff68b8fa5">a306e56ff68b8fa5</a>
2858 <li>Fix a bug in the code generator that can cause incorrect results if
2859 two or more <a href="vtab.html">virtual tables</a> are joined and the virtual table used in
2860 outer loop of the join has an <a href="lang_expr.html#in_op">IN operator</a> constraint.
2861 <li>Correctly interpret negative "PRAGMA cache_size" values when determining
2862 the cache size used for sorting large amounts of data.
2863
2864 <p><b>Bug fixes backported into patch release 3.12.1 (2016-04-08):</b></p>
2865
2866 <li>Fix a boundary condition error introduced by version 3.12.0
2867 that can result in a crash during heavy <a href="lang_savepoint.html">SAVEPOINT</a> usage.
2868 Ticket <a href="https://www.sqlite.org/src/info/7f7f8026eda38">7f7f8026eda38</a>.
2869 <li>Fix <a href="lang_createview.html">views</a> so that they inherit column datatypes from the
2870 table that they are defined against, when possible.
2871 <li>Fix the query planner so that IS and IS NULL operators are able
2872 to drive an index on a LEFT OUTER JOIN.
2873
2874 </ol></p>
2875 <a name="version_3_12_2"></a>
2876 <h3>2016-04-18 (3.12.2)</h3><p><ol class='lessindent'>
2877 <li>Fix a backwards compatibility problem in version 3.12.0 and 3.12.1:
2878 Columns declared as <tt>"INTEGER" PRIMARY KEY</tt> (with quotes around
2879 the datatype keyword) were not being recognized as an
2880 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a>, which resulted in an incompatible database file.
2881 Ticket <a href="https://www.sqlite.org/src/info/7d7525cb01b68">7d7525cb01b68</a>
2882 <li>Fix a bug (present since <a href="#version_3_9_0">version 3.9.0</a>) that can cause the <a href="lang_delete.html">DELETE</a>
2883 operation to miss rows if <a href="pragma.html#pragma_reverse_unordered_selects">PRAGMA reverse_unordered_selects</a> is turned on.
2884 Ticket <a href="https://www.sqlite.org/src/info/a306e56ff68b8fa5">a306e56ff68b8fa5</a>
2885 <li>Fix a bug in the code generator that can cause incorrect results if
2886 two or more <a href="vtab.html">virtual tables</a> are joined and the virtual table used in
2887 outer loop of the join has an <a href="lang_expr.html#in_op">IN operator</a> constraint.
2888 <li>Correctly interpret negative "PRAGMA cache_size" values when determining
2889 the cache size used for sorting large amounts of data.
2890 <p><b>Hashes:</b>
2891 <li>SQLITE_SOURCE_ID: "2016-04-18 17:30:31 92dc59fd5ad66f646666042eb04195e3a61a9e8e"
2892 <li>SHA1 for sqlite3.c: de5a5898ebd3a3477d4652db143746d008b24c83
2893
2894 </ol></p>
2895 <a name="version_3_12_1"></a>
2896 <h3>2016-04-08 (3.12.1)</h3><p><ol class='lessindent'>
2897 <li>Fix a boundary condition error introduced by version 3.12.0
2898 that can result in a crash during heavy <a href="lang_savepoint.html">SAVEPOINT</a> usage.
2899 Ticket <a href="https://www.sqlite.org/src/info/7f7f8026eda38">7f7f8026eda38</a>.
2900 <li>Fix <a href="lang_createview.html">views</a> so that they inherit column datatypes from the
2901 table that they are defined against, when possible.
2902 <li>Fix the query planner so that IS and IS NULL operators are able
2903 to drive an index on a LEFT OUTER JOIN.
2904 <p><b>Hashes:</b>
2905 <li>SQLITE_SOURCE_ID: "2016-04-08 15:09:49 fe7d3b75fe1bde41511b323925af8ae1b910bc4d"
2906 <li>SHA1 for sqlite3.c: ebb18593350779850e3e1a930eb84a70fca8c1d1
2907
2908 </ol></p>
2909 <a name="version_3_9_3"></a>
2910 <h3>2016-04-01 (3.9.3)</h3><p><ol class='lessindent'>
2911 <li>Backport a
2912 <a href="https://www.sqlite.org/src/info/c648539b52ca28c0">simple query planner optimization</a>
2913 that allows the IS operator
2914 to drive an index on a LEFT OUTER JOIN. No other changes from the
2915 <a href="#version_3_9_2">version 3.9.2</a> baseline.
2916
2917 </ol></p>
2918 <a name="version_3_12_0"></a>
2919 <h3>2016-03-29 (3.12.0)</h3><p><ol class='lessindent'>
2920 <p><b>Potentially Disruptive Change:</b>
2921 <li>The <a href="compile.html#default_page_size">SQLITE_DEFAULT_PAGE_SIZE</a> is increased from 1024 to 4096.
2922 The <a href="compile.html#default_cache_size">SQLITE_DEFAULT_CACHE_SIZE</a> is changed from 2000 to -2000 so
2923 the same amount of cache memory is used by default.
2924 See the application note on the
2925 <a href="pgszchng2016.html">version 3.12.0 page size change</a> for further information.
2926 <p><b>Performance enhancements:</b>
2927 <li>Enhancements to the <a href="lemon.html">Lemon parser generator</a>
2928 so that it creates a smaller and faster SQL parser.
2929 <li>Only create <a href="tempfiles.html#superjrnl">master journal</a> files if two or more attached databases are all
2930 modified, do not have <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> set to OFF, and
2931 do not have the <a href="pragma.html#pragma_journal_mode">journal_mode</a> set to OFF, MEMORY, or WAL.
2932 <li>Only create <a href="tempfiles.html#stmtjrnl">statement journal</a> files when their size exceeds a threshold.
2933 Otherwise the journal is held in memory and no I/O occurs. The threshold
2934 can be configured at compile-time using <a href="compile.html#stmtjrnl_spill">SQLITE_STMTJRNL_SPILL</a> or at
2935 start-time using <a href="c3ref/config.html">sqlite3_config</a>(<a href="c3ref/c_config_covering_index_scan.html#sqliteconfigstmtjrnlspill">SQLITE_CONFIG_STMTJRNL_SPILL</a>).
2936 <li>The query planner is able to optimize IN operators on <a href="vtab.html">virtual tables</a>
2937 even if the <a href="vtab.html#xbestindex">xBestIndex</a> method does not set the
2938 sqlite3_index_constraint_usage.omit flag of the
2939 virtual table column to the left of the IN operator.
2940 <li>The query planner now does a better job of optimizing <a href="vtab.html">virtual table</a>
2941 accesses in a 3-way or higher join where constraints on the virtual
2942 table are split across two or more other tables of the join.
2943 <li>More efficient handling of <a href="appfunc.html">application-defined SQL functions</a>, especially
2944 in cases where the application defines hundreds or thousands of
2945 custom functions.
2946 <li>The query planner considers the LIMIT clause when estimating the cost
2947 of ORDER BY.
2948 <li>The configure script (on unix) automatically detects
2949 pread() and pwrite() and sets compile-time options to use those OS
2950 interfaces if they are available.
2951 <li>Reduce the amount of memory needed to hold the schema.
2952 <li>Other miscellaneous micro-optimizations for improved performance and reduced
2953 memory usage.
2954 <p><b>New Features:</b>
2955 <li>Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenablefts3tokenizer">SQLITE_DBCONFIG_ENABLE_FTS3_TOKENIZER</a> option to <a href="c3ref/db_config.html">sqlite3_db_config()</a>
2956 which allows the two-argument version of the <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> SQL function to
2957 be enabled or disabled at run-time.
2958 <li>Added the <a href="https://www.sqlite.org/src/artifact/d7cc99350?ln=403-443">sqlite3rbu_bp_progress()</a>
2959 interface to the <a href="rbu.html">RBU</a> extension.
2960 <li>The <a href="pragma.html#pragma_defer_foreign_keys">PRAGMA defer_foreign_keys=ON</a> statement now also disables
2961 <a href="foreignkeys.html#fk_actions">RESTRICT actions</a> on foreign key.
2962 <li>Added the <a href="c3ref/system_errno.html">sqlite3_system_errno()</a> interface.
2963 <li>Added the <a href="compile.html#default_synchronous">SQLITE_DEFAULT_SYNCHRONOUS</a> and <a href="compile.html#default_wal_synchronous">SQLITE_DEFAULT_WAL_SYNCHRONOUS</a>
2964 compile-time options. The <a href="compile.html#default_synchronous">SQLITE_DEFAULT_SYNCHRONOUS</a> compile-time option
2965 replaces the <a href="compile.html#extra_durable">SQLITE_EXTRA_DURABLE</a> option, which is no longer supported.
2966 <li>Enhanced the ".stats" command in the <a href="cli.html">command-line shell</a> to show more
2967 information about I/O performance obtained from /proc, when available.
2968 <p><b>Bug fixes:</b>
2969 <li>Make sure the <a href="c3ref/get_auxdata.html">sqlite3_set_auxdata()</a> values from multiple triggers
2970 within a single statement do not interfere with one another.
2971 Ticket <a href="https://www.sqlite.org/src/info/dc9b1c91">dc9b1c91</a>.
2972 <li>Fix the code generator for expressions of the form "x IN (SELECT...)" where
2973 the SELECT statement on the RHS is a correlated subquery.
2974 Ticket <a href="https://www.sqlite.org/src/info/5e3c886796e5512e">5e3c886796e5512e</a>.
2975 <li>Fix a harmless TSAN warning associated with the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface.
2976 <p><b>Hashes:</b>
2977 <li>SQLITE_SOURCE_ID: "2016-03-29 10:14:15 e9bb4cf40f4971974a74468ef922bdee481c988b"
2978 <li>SHA1 for sqlite3.c: cba2be96d27cb51978cd4a200397a4ad178986eb
2979
2980 </ol></p>
2981 <a name="version_3_11_1"></a>
2982 <h3>2016-03-03 (3.11.1)</h3><p><ol class='lessindent'>
2983 <li>Improvements to the Makefiles and build scripts used by VisualStudio.
2984 <li>Fix an <a href="fts5.html">FTS5</a> issue in which the 'optimize' command could cause index corruption.
2985 <li>Fix a buffer overread that might occur if <a href="fts5.html">FTS5</a> is used to query a corrupt
2986 database file.
2987 <li>Increase the maximum "scope" value for the <a href="spellfix1.html">spellfix1</a> extension from 6 to 30.
2988 <li>SQLITE_SOURCE_ID: "2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7"
2989 <li>SHA1 for sqlite3.c: 3da832fd2af36eaedb05d61a8f4c2bb9f3d54265
2990
2991 </ol></p>
2992 <a name="version_3_11_0"></a>
2993 <h3>2016-02-15 (3.11.0)</h3><p><ol class='lessindent'>
2994 <p><b>General improvements:</b>
2995 <li>Enhanced <a href="wal.html">WAL mode</a> so that it works efficiently with transactions that are
2996 larger than the <a href="pragma.html#pragma_cache_size">cache_size</a>.
2997 <li>Added the <a href="fts5.html#the_detail_option">FTS5 detail option</a>.
2998 <li>Added the "EXTRA" option to <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> that does a sync of the
2999 containing directory when a rollback journal is unlinked in DELETE mode,
3000 for better durability. The <a href="compile.html#extra_durable">SQLITE_EXTRA_DURABLE</a> compile-time option enables
3001 <a href="pragma.html#pragma_synchronous">PRAGMA synchronous=EXTRA</a> by default.
3002 <li>Enhanced the <a href="optoverview.html">query planner</a> so that it is able to use
3003 a <a href="queryplanner.html#covidx">covering index</a> as part of the <a href="optoverview.html#or_opt">OR optimization</a>.
3004 <li>Avoid recomputing <a href="lang_createtable.html#notnullconst">NOT NULL</a> and <a href="lang_createtable.html#ckconst">CHECK constraints</a> on unchanged
3005 columns in <a href="lang_update.html">UPDATE</a> statement.
3006 <li>Many micro-optimizations, resulting in a library that is
3007 faster than the previous release.
3008 <p><b>Enhancements to the <a href="cli.html">command-line shell</a>:</b>
3009 <li>By default, the shell is now in "auto-explain" mode. The output of
3010 <a href="lang_explain.html">EXPLAIN</a> commands is automatically formatted.
3011 <li>Added the ".vfslist" <a href="cli.html#dotcmd">dot-command</a>.
3012 <li>The <a href="compile.html#enable_explain_comments">SQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option is now turned
3013 on by default in the standard builds.
3014 <p><b>Enhancements to the <a href="tclsqlite.html">TCL Interface</a>:</b>
3015 <li>If a database connection is opened with the "-uri 1" option, then
3016 <a href="uri.html">URI filenames</a> are honored by the "backup" and "restore" commands.
3017 <li>Added the "-sourceid" option to the "sqlite3" command.
3018 <p><b>Makefile improvements:</b>
3019 <li>Improved pthreads detection in configure scripts.
3020 <li>Add the ability to do MSVC Windows builds from the <a href="download.html">amalgamation tarball</a>.
3021 <p><b>Bug fixes</b>
3022 <li>Fix an issue with incorrect sharing of VDBE temporary registers between
3023 co-routines that could cause incorrect query results in obscure cases. Ticket
3024 <a href="https://www.sqlite.org/src/info/d06a25c84454a">d06a25c84454a</a>.
3025 <li>Fix a problem in the <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a> interface that could
3026 cause problems for the <a href="json1.html">json1</a> extension under obscure circumstances.
3027 Fix for ticket
3028 <a href="https://www.sqlite.org/src/info/f45ac567eaa9f9">f45ac567eaa9f9</a>.
3029 <li>Escape control characters in JSON strings. Fix for ticket
3030 <a href="https://www.sqlite.org/src/info/ad2559db380abf8">ad2559db380abf8</a>.
3031 <li>Reenable the xCurrentTime and xGetLastError methods in the built-in
3032 unix <a href="vfs.html">VFSes</a> as long as <a href="compile.html#omit_deprecated">SQLITE_OMIT_DEPRECATED</a> is not defined.
3033 <p><b>Backwards Compatibility:</b>
3034 <li>Because of continuing security concerns, the two-argument version
3035 of the seldom-used and little-known <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> function is
3036 disabled unless SQLite is compiled with the <a href="compile.html#enable_fts3_tokenizer">SQLITE_ENABLE_FTS3_TOKENIZER</a>.
3037 <p><b>Hashes:</b>
3038 <li>SQLITE_SOURCE_ID: "2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f"
3039 <li>SHA1 for sqlite3.c: df01436c5fcfe72d1a95bc172158219796e1a90b
3040
3041
3042 </ol></p>
3043 <a name="version_3_10_2"></a>
3044 <h3>2016-01-20 (3.10.2)</h3><p><ol class='lessindent'>
3045 <p><b>Critical bug fix:</b>
3046 <li>Version 3.10.0 introduced a case-folding bug in the <a href="lang_expr.html#like">LIKE</a> operator which is fixed
3047 by this patch release. Ticket
3048 <a href="https://www.sqlite.org/src/info/80369eddd5c94">80369eddd5c94</a>.
3049 <p><b>Other miscellaneous bug fixes:</b>
3050 <li>Fix a use-after-free that can occur when SQLite is compiled with -DSQLITE_HAS_CODEC.
3051 <li>Fix the build so that it works with -DSQLITE_OMIT_WAL.
3052 <li>Fix the configure script for the amalgamation so that the --readline option works again
3053 on Raspberry PIs.
3054 <p><b>Hashes:</b>
3055 <li>SQLITE_SOURCE_ID: "2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9"
3056 <li>SHA1 for sqlite3.c: f7088b19d97cd7a1c805ee95c696abd54f01de4f
3057
3058 </ol></p>
3059 <a name="version_3_10_1"></a>
3060 <h3>2016-01-14 (3.10.1)</h3><p><ol class='lessindent'>
3061 <p><b>New feature:</b>
3062 <li>Add the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntljournalpointer">SQLITE_FCNTL_JOURNAL_POINTER</a> file control.
3063 <p><b>Bug fix:</b>
3064 <li>Fix a 16-month-old bug in the query planner that could generate incorrect results
3065 when a scalar subquery attempts to use the <a href="queryplanner.html#partialsort">block sorting</a> optimization. Ticket
3066 <a href="https://www.sqlite.org/src/info/cb3aa0641d9a4">cb3aa0641d9a4</a>.
3067 <p><b>Hashes:</b>
3068 <li>SQLITE_SOURCE_ID: "2016-01-13 21:41:56 254419c36766225ca542ae873ed38255e3fb8588"
3069 <li>SHA1 for sqlite3.c: 1398ba8e4043550a533cdd0834bfdad1c9eab0f4
3070
3071 </ol></p>
3072 <a name="version_3_10_0"></a>
3073 <h3>2016-01-06 (3.10.0)</h3><p><ol class='lessindent'>
3074 <p><b>General improvements:</b>
3075 <li>Added support for <a href="lang_expr.html#like">LIKE</a>, <a href="lang_expr.html#glob">GLOB</a>, and <a href="lang_expr.html#regexp">REGEXP</a> operators on <a href="vtab.html">virtual tables</a>.
3076 <li>Added the <a href="vtab.html#colUsed">colUsed field</a> to <a href="c3ref/index_info.html">sqlite3_index_info</a> for use by
3077 the <a href="vtab.html#xbestindex">sqlite3_module.xBestIndex</a> method.
3078 <li>Enhance the <a href="pragma.html#pragma_cache_spill">PRAGMA cache_spill</a> statement to accept a 32-bit integer
3079 parameter which is the threshold below which cache spilling is prohibited.
3080 <li>On unix, if a symlink to a database file is opened, then the corresponding
3081 journal files are based on the actual filename, not the symlink name.
3082 <li>Added the "--transaction" option to <a href="sqldiff.html">sqldiff</a>.
3083 <li>Added the <a href="c3ref/db_cacheflush.html">sqlite3_db_cacheflush()</a> interface.
3084 <li>Added the <a href="c3ref/strlike.html">sqlite3_strlike()</a> interface.
3085 <li>When using <a href="mmap.html">memory-mapped I/O</a> map the database file read-only so that stray pointers
3086 and/or array overruns in the application cannot accidentally modify the database file.
3087 <li>Added the <em>experimental</em> <a href="c3ref/snapshot_get.html">sqlite3_snapshot_get()</a>, <a href="c3ref/snapshot_open.html">sqlite3_snapshot_open()</a>,
3088 and <a href="c3ref/snapshot_free.html">sqlite3_snapshot_free()</a> interfaces. These are subject to change or removal in
3089 a subsequent release.
3090 <li>Enhance the <a href="lang_datefunc.html#localtime">'utc' modifier</a> in the <a href="lang_datefunc.html">date and time functions</a> so that it is a no-op if
3091 the date/time is known to already be in UTC. (This is not a compatibility break since
3092 the behavior has long been documented as "undefined" in that case.)
3093 <li>Added the <a href="json1.html#jgrouparray">json_group_array()</a> and <a href="json1.html#jgroupobject">json_group_object()</a> SQL functions in the
3094 <a href="json1.html#jmini">json</a> extension.
3095 <li>Added the <a href="compile.html#like_doesnt_match_blobs">SQLITE_LIKE_DOESNT_MATCH_BLOBS</a> compile-time option.
3096 <li>Many small performance optimizations.
3097 <p><b>Portability enhancements:</b>
3098 <li>Work around a sign-extension bug in the optimizer of the HP C compiler on HP/UX.
3099 <a href="https://www.sqlite.org/src/fdiff?sbs=1&v1=869c95b0fc73026d&v2=232c242a0ccb3d67">(details)</a>
3100 <p><b>Enhancements to the <a href="cli.html">command-line shell</a>:</b>
3101 <li>Added the ".changes ON|OFF" and ".vfsinfo" <a href="cli.html#dotcmd">dot-commands</a>.
3102 <li>Translate between MBCS and UTF8 when
3103 running in <a href="https://en.wikipedia.org/wiki/Cmd.exe">cmd.exe</a> on Windows.
3104 <p><b>Enhancements to makefiles:</b>
3105 <li>Added the --enable-editline and --enable-static-shell options
3106 to the various autoconf-generated configure scripts.
3107 <li>Omit all use of "awk" in the makefiles, to make building easier for MSVC users.
3108 <p><b>Important fixes:</b>
3109 <li>Fix inconsistent integer to floating-point comparison operations that
3110 could result in a corrupt index if the index is created on a table
3111 column that contains both large integers and floating point values
3112 of similar magnitude. Ticket
3113 <a href="https://www.sqlite.org/src/tktview?name=38a97a87a6">38a97a87a6</a>.
3114 <li>Fix an infinite-loop in the query planner that could occur on
3115 malformed <a href="lang_with.html">common table expressions</a>.
3116 <li>Various bug fixes in the <a href="sqldiff.html">sqldiff</a> tool.
3117 <p><b>Hashes:</b>
3118 <li>SQLITE_SOURCE_ID: "2016-01-06 11:01:07 fd0a50f0797d154fefff724624f00548b5320566"
3119 <li>SHA1 for sqlite3.c: b92ca988ebb6df02ac0c8f866dbf3256740408ac
3120
3121
3122 </ol></p>
3123 <a name="version_3_9_2"></a>
3124 <h3>2015-11-02 (3.9.2)</h3><p><ol class='lessindent'>
3125 <li>Fix the schema parser so that it interprets certain
3126 (obscure and ill-formed)
3127 CREATE TABLE statements the same as legacy. Fix for ticket
3128 <a href="https://www.sqlite.org/src/info/ac661962a2aeab3c331">ac661962a2aeab3c331</a>
3129 <li>Fix a query planner problem that could result in an incorrect
3130 answer due to the use of <a href="optoverview.html#autoindex">automatic indexing</a> in subqueries in
3131 the FROM clause of a correlated scalar subqueries. Fix for ticket
3132 <a href="https://www.sqlite.org/src/info/8a2adec1">8a2adec1</a>.
3133
3134 <li>SQLITE_SOURCE_ID: "2015-11-02 18:31:45 bda77dda9697c463c3d0704014d51627fceee328"
3135 <li>SHA1 for sqlite3.c: 1c4013876f50bbaa3e6f0f98e0147c76287684c1
3136
3137 </ol></p>
3138 <a name="version_3_9_1"></a>
3139 <h3>2015-10-16 (3.9.1)</h3><p><ol class='lessindent'>
3140 <li>Fix <a href="json1.html">the json1 extension</a> so that it does <u>not</u> recognize ASCII form-feed as a
3141 whitespace character, in order to comply with RFC-7159. Fix for ticket
3142 <a href="https://www.sqlite.org/src/info/57eec374ae1d0a1d">57eec374ae1d0a1d</a>
3143 <li>Add a few #ifdef and build script changes to address compilation issues that
3144 appeared after the 3.9.0 release.
3145
3146 <li>SQLITE_SOURCE_ID: ""2015-10-16 17:31:12 767c1727fec4ce11b83f25b3f1bfcfe68a2c8b02"
3147 <li>SHA1 for sqlite3.c: 5e6d1873a32d82c2cf8581f143649940cac8ae49
3148
3149 </ol></p>
3150 <a name="version_3_9_0"></a>
3151 <h3>2015-10-14 (3.9.0)</h3><p><ol class='lessindent'>
3152 <p><b>Policy Changes:</b>
3153 <li>The <a href="versionnumbers.html">version numbering conventions</a> for SQLite are revised to use the
3154 emerging standard of <a href="http://semver.org/">semantic versioning</a>.
3155 <p><b>New Features And Enhancements:</b>
3156 <li>Added <a href="json1.html">the json1 extension</a> module in the source tree, and in the <a href="amalgamation.html">amalgamation</a>.
3157 Enable support using the <a href="compile.html#enable_json1">SQLITE_ENABLE_JSON1</a> compile-time option.
3158 <li>Added <a href="fts5.html">Full Text Search version 5 (FTS5)</a> to the <a href="amalgamation.html">amalgamation</a>, enabled
3159 using <a href="compile.html#enable_fts5">SQLITE_ENABLE_FTS5</a>. FTS5 will be considered "experimental" (subject
3160 to incompatible changes) for at least one more release cycle.
3161 <li>The <a href="lang_createview.html">CREATE VIEW</a> statement now accepts an optional list of
3162 column names following the view name.
3163 <li>Added support for <a href="expridx.html">indexes on expressions</a>.
3164 <li>Added support for <a href="vtab.html#tabfunc2">table-valued functions</a> in the FROM clause of a
3165 <a href="lang_select.html">SELECT</a> statement.
3166 <li>Added support for <a href="vtab.html#epovtab">eponymous virtual tables</a>.
3167 <li>A <a href="lang_createview.html">VIEW</a> may now reference undefined tables and functions when
3168 initially created. Missing tables and functions are reported when
3169 the VIEW is used in a query.
3170 <li>Added the <a href="c3ref/value_subtype.html">sqlite3_value_subtype()</a> and <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a>
3171 interfaced (used by <a href="json1.html">the json1 extension</a>).
3172 <li>The query planner is now able to use <a href="partialindex.html">partial indexes</a> that contain
3173 AND-connected terms in the WHERE clause.
3174 <li>The sqlite3_analyzer.exe utility is updated to report the depth of
3175 each btree and to show the average fanout for indexes and
3176 WITHOUT ROWID tables.
3177 <li>Enhanced the <a href="dbstat.html">dbstat virtual table</a> so that it can be used as a
3178 <a href="vtab.html#tabfunc2">table-valued function</a> where the argument is the schema to be
3179 analyzed.
3180 <p><b>Other changes:</b>
3181 <li>The <a href="c3ref/aggregate_count.html">sqlite3_memory_alarm()</a> interface, which has been deprecated and
3182 undocumented for 8 years, is changed into a no-op.
3183 <p><b>Important fixes:</b>
3184 <li>Fixed a critical bug in the
3185 <a href="https://www.sqlite.org/see/doc/trunk/www/readme.wiki">SQLite Encryption Extension</a> that
3186 could cause the database to become unreadable and unrecoverable if a <a href="lang_vacuum.html">VACUUM</a> command
3187 changed the size of the encryption nonce.
3188 <li>Added a memory barrier in the implementation of
3189 <a href="c3ref/initialize.html">sqlite3_initialize()</a> to help ensure that it is thread-safe.
3190 <li>Fix the <a href="optoverview.html#or_opt">OR optimization</a> so that it always ignores subplans that
3191 do not use an index.
3192 <li>Do not apply the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a> on terms that originate
3193 in the ON or USING clause of a LEFT JOIN. Fix for ticket
3194 <a href="https://www.sqlite.org/src/info/c2a19d81652f40568c">c2a19d81652f40568c</a>.
3195
3196 <li>SQLITE_SOURCE_ID: "2015-10-14 12:29:53 a721fc0d89495518fe5612e2e3bbc60befd2e90d"
3197 <li>SHA1 for sqlite3.c: c03e47e152ddb9c342b84ffb39448bf4a2bd4288
3198
3199 </ol></p>
3200 <a name="version_3_8_11_1"></a>
3201 <h3>2015-07-29 (3.8.11.1)</h3><p><ol class='lessindent'>
3202 <li>Restore an undocumented side-effect of <a href="pragma.html#pragma_cache_size">PRAGMA cache_size</a>: force
3203 the database schema to be parsed if the database has not been previously accessed.
3204 <li>Fix a long-standing problem in <a href="c3ref/changes.html">sqlite3_changes()</a> for <a href="withoutrowid.html">WITHOUT ROWID</a>
3205 tables that was reported a few hours after the 3.8.11 release.
3206 <li>SQLITE_SOURCE_ID: "2015-07-29 20:00:57 cf538e2783e468bbc25e7cb2a9ee64d3e0e80b2f"
3207 <li>SHA1 for sqlite3.c: 3be71d99121fe5b17f057011025bcf84e7cc6c84
3208
3209 </ol></p>
3210 <a name="version_3_8_11"></a>
3211 <h3>2015-07-27 (3.8.11)</h3><p><ol class='lessindent'>
3212 <li>Added the experimental <a href="rbu.html">RBU</a> extension. Note that this extension is experimental
3213 and subject to change in incompatible ways.
3214 <li>Added the experimental <a href="fts5.html">FTS5</a> extension. Note that this extension is experimental
3215 and subject to change in incompatible ways.
3216 <li>Added the <a href="c3ref/value_dup.html">sqlite3_value_dup()</a> and <a href="c3ref/value_dup.html">sqlite3_value_free()</a> interfaces.
3217 <li>Enhance the <a href="spellfix1.html">spellfix1</a> extension to support <a href="lang_conflict.html">ON CONFLICT</a> clauses.
3218 <li>The <a href="lang_expr.html#isisnot">IS operator</a> is now able to drive indexes.
3219 <li>Enhance the query planner to permit <a href="optoverview.html#autoindex">automatic indexing</a> on FROM-clause
3220 subqueries that are implemented by co-routine.
3221 <li>Disallow the use of "rowid" in <a href="lang_with.html">common table expressions</a>.
3222 <li>Added the <a href="pragma.html#pragma_cell_size_check">PRAGMA cell_size_check</a> command for better and earlier
3223 detection of database file corruption.
3224 <li>Added the <a href="fts3.html#matchinfo-b">matchinfo 'b' flag</a> to the <a href="fts3.html#matchinfo">matchinfo()</a> function in <a href="fts3.html">FTS3</a>.
3225 <li>Improved fuzz-testing of database files, with fixes for problems found.
3226 <li>Add the fuzzcheck test program and automatically run this program
3227 using both SQL and database test cases on "make test".
3228 <li>Added the <a href="c3ref/c_mutex_fast.html">SQLITE_MUTEX_STATIC_VFS1</a> static mutex and use it in the
3229 Windows <a href="vfs.html">VFS</a>.
3230 <li>The <a href="c3ref/profile.html">sqlite3_profile()</a> callback is invoked (by <a href="c3ref/reset.html">sqlite3_reset()</a> or
3231 <a href="c3ref/finalize.html">sqlite3_finalize()</a>) for statements that did not run to completion.
3232 <li>Enhance the page cache so that it can preallocate a block of memory to
3233 use for the initial set page cache lines. Set the default preallocation
3234 to 100 pages. Yields about a 5% performance increase on common workloads.
3235 <li>Miscellaneous micro-optimizations result in 22.3% more work for the same
3236 number of CPU cycles relative to the previous release.
3237 SQLite now runs twice as fast as <a href="#version_3_8_0">version 3.8.0</a> and three times as
3238 fast as <a href="#version_3_3_9">version 3.3.9</a>.
3239 (Measured using
3240 <a href="http://valgrind.org/docs/manual/cg-manual.html">cachegrind</a> on the
3241 <a href="https://www.sqlite.org/src/artifact/83f6b3318f7ee">speedtest1.c</a> workload on
3242 Ubuntu 14.04 x64 with gcc 4.8.2 and -Os. Your performance may vary.)
3243 <li>Added the <a href="c3ref/result_blob.html">sqlite3_result_zeroblob64()</a> and <a href="c3ref/bind_blob.html">sqlite3_bind_zeroblob64()</a>
3244 interfaces.
3245 <p><b>Important bug fixes:</b>
3246 <li>Fix <a href="lang_createtable.html#createtabas">CREATE TABLE AS</a> so that columns of type TEXT never end up
3247 holding an INT value. Ticket
3248 <a href="https://www.sqlite.org/src/info/f2ad7de056ab1dc9200">f2ad7de056ab1dc9200</a>
3249 <li>Fix <a href="lang_createtable.html#createtabas">CREATE TABLE AS</a> so that it does not leave NULL entries in the
3250 <a href="schematab.html">sqlite_master table</a> if the SELECT statement on the right-hand side
3251 aborts with an error. Ticket
3252 <a href="https://www.sqlite.org/src/info/873cae2b6e25b">873cae2b6e25b</a>
3253 <li>Fix the <a href="optoverview.html#skipscan">skip-scan optimization</a> so that it works correctly when
3254 the <a href="optoverview.html#or_opt">OR optimization</a> is used on <a href="withoutrowid.html">WITHOUT ROWID</a> tables. Ticket
3255 <a href="https://www.sqlite.org/src/info/8fd39115d8f46">8fd39115d8f46</a>
3256 <li>Fix the <a href="c3ref/memory_highwater.html">sqlite3_memory_used()</a> and <a href="c3ref/memory_highwater.html">sqlite3_memory_highwater()</a> interfaces
3257 so that they actually do provide a 64-bit answer.
3258
3259 <p><b>Hashes:</b>
3260 <li>SQLITE_SOURCE_ID: "2015-07-27 13:49:41 b8e92227a469de677a66da62e4361f099c0b79d0"
3261 <li>SHA1 for sqlite3.c: 719f6891abcd9c459b5460b191d731cd12a3643e
3262
3263 </ol></p>
3264 <a name="version_3_8_10_2"></a>
3265 <h3>2015-05-20 (3.8.10.2)</h3><p><ol class='lessindent'>
3266 <li>Fix an index corruption issue introduced by <a href="#version_3_8_7">version 3.8.7</a>. An index
3267 with a TEXT key can be corrupted by an <a href="lang_insert.html">INSERT</a> into the corresponding
3268 table if the table has two nested triggers that convert the key value to INTEGER
3269 and back to TEXT again.
3270 Ticket <a href="https://www.sqlite.org/src/info/34cd55d68e0e6e7c9a0711aab81a2ee3c354b4c0">34cd55d68e0</a>
3271
3272 <li>SQLITE_SOURCE_ID: "2015-05-20 18:17:19 2ef4f3a5b1d1d0c4338f8243d40a2452cc1f7fe4"
3273 <li>SHA1 for sqlite3.c: 638abb77965332c956dbbd2c8e4248e84da4eb63
3274
3275 </ol></p>
3276 <a name="version_3_8_10_1"></a>
3277 <h3>2015-05-09 (3.8.10.1)</h3><p><ol class='lessindent'>
3278 <li>Make <a href="c3ref/compileoption_get.html">sqlite3_compileoption_used()</a> responsive to the <a href="compile.html#enable_dbstat_vtab">SQLITE_ENABLE_DBSTAT_VTAB</a>
3279 compile-time option.
3280 <li>Fix a harmless warning in the <a href="cli.html">command-line shell</a> on some versions of MSVC.
3281 <li>Fix minor issues with the <a href="dbstat.html">dbstat virtual table</a>.
3282
3283 <li>SQLITE_SOURCE_ID: "2015-05-09 12:14:55 05b4b1f2a937c06c90db70c09890038f6c98ec40"
3284 <li>SHA1 for sqlite3.c: 85e4e1c08c7df28ef61bb9759a0d466e0eefbaa2
3285
3286 </ol></p>
3287 <a name="version_3_8_10"></a>
3288 <h3>2015-05-07 (3.8.10)</h3><p><ol class='lessindent'>
3289 <li>Added the <a href="sqldiff.html">sqldiff.exe</a> utility program for computing the differences between two
3290 SQLite database files.
3291 <li>Added the <a href="fts3.html#matchinfo-y">matchinfo y flag</a> to the
3292 <a href="fts3.html#matchinfo">matchinfo()</a> function of <a href="fts3.html">FTS3</a>.
3293 <li>Performance improvements for <a href="lang_select.html#orderby">ORDER BY</a>, <a href="lang_vacuum.html">VACUUM</a>, <a href="lang_createindex.html">CREATE INDEX</a>,
3294 <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>, and <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a>.
3295 <li>Fix many obscure problems discovered while <a href="testing.html#fuzztesting">SQL fuzzing</a>.
3296 <li>Identify all methods for important objects in the interface documentation.
3297 (<a href="c3ref/context.html">example</a>)
3298 <li>Made the <a href="testing.html#aflfuzz">American Fuzzy Lop fuzzer</a>
3299 a standard part of SQLite's <a href="testing.html">testing strategy</a>.
3300 <li>Add the ".binary" and ".limits" commands to the <a href="cli.html">command-line shell</a>.
3301 <li>Make the <a href="dbstat.html">dbstat virtual table</a> part of standard builds when
3302 compiled with the <a href="compile.html#enable_dbstat_vtab">SQLITE_ENABLE_DBSTAT_VTAB</a> option.
3303
3304 <li>SQLITE_SOURCE_ID: "2015-05-07 11:53:08 cf975957b9ae671f34bb65f049acf351e650d437"
3305 <li>SHA1 for sqlite3.c: 0b34f0de356a3f21b9dfc761f3b7821b6353c570
3306
3307 </ol></p>
3308 <a name="version_3_8_9"></a>
3309 <h3>2015-04-08 (3.8.9)</h3><p><ol class='lessindent'>
3310 <li>Add VxWorks-7 as an officially supported and tested platform.
3311 <li>Added the <a href="c3ref/status.html">sqlite3_status64()</a> interface.
3312 <li>Fix memory size tracking so that it works even if SQLite uses more
3313 than 2GiB of memory.
3314 <li>Added the <a href="pragma.html#pragma_index_xinfo">PRAGMA index_xinfo</a> command.
3315 <li>Fix a potential 32-bit integer overflow problem in the
3316 <a href="c3ref/blob_read.html">sqlite3_blob_read()</a> and <a href="c3ref/blob_write.html">sqlite3_blob_write()</a> interfaces.
3317 <li>Ensure that prepared statements automatically reset on extended
3318 error codes of SQLITE_BUSY and SQLITE_LOCKED even when compiled
3319 using <a href="compile.html#omit_autoreset">SQLITE_OMIT_AUTORESET</a>.
3320 <li>Correct miscounts in the sqlite3_analyzer.exe utility related
3321 to WITHOUT ROWID tables.
3322 <li>Added the ".dbinfo" command to the <a href="cli.html">command-line shell</a>.
3323 <li>Improve the performance of fts3/4 queries that use the OR operator
3324 and at least one auxiliary fts function.
3325 <li>Fix a bug in the fts3 snippet() function causing it to omit
3326 leading separator characters from snippets that begin with the
3327 first token in a column.
3328 <li>SQLITE_SOURCE_ID: "2015-04-08 12:16:33 8a8ffc862e96f57aa698f93de10dee28e69f6e09"
3329 <li>SHA1 for sqlite3.c: 49f1c3ae347e1327b5aaa6c7f76126bdf09c6f42
3330
3331 </ol></p>
3332 <a name="version_3_8_8_3"></a>
3333 <h3>2015-02-25 (3.8.8.3)</h3><p><ol class='lessindent'>
3334 <li>Fix a bug (ticket
3335 <a href="https://www.sqlite.org/src/info/2326c258d02ead33">2326c258d02ead33</a>) that can lead
3336 to incorrect results if the qualifying constraint of a <a href="partialindex.html">partial index</a> appears in the
3337 ON clause of a LEFT JOIN.
3338 <li>Added the ability to link against the
3339 "<a href="https://github.com/antirez/linenoise">linenoise</a>"
3340 command-line editing library in unix builds of the <a href="cli.html">command-line shell</a>.
3341
3342 <li>SQLITE_SOURCE_ID: "2015-02-25 13:29:11 9d6c1880fb75660bbabd693175579529785f8a6b"
3343 <li>SHA1 for sqlite3.c: 74ee38c8c6fd175ec85a47276dfcefe8a262827a
3344
3345 </ol></p>
3346 <a name="version_3_8_8_2"></a>
3347 <h3>2015-01-30 (3.8.8.2)</h3><p><ol class='lessindent'>
3348 <li>Enhance <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2(TRUNCATE)</a> interface so that it truncates the
3349 WAL file even if there is no checkpoint work to be done.
3350
3351 <li>SQLITE_SOURCE_ID: "2015-01-30 14:30:45 7757fc721220e136620a89c9d28247f28bbbc098"
3352 <li>SHA1 for sqlite3.c: 85ce79948116aa9a087ec345c9d2ce2c1d3cd8af
3353
3354
3355 </ol></p>
3356 <a name="version_3_8_8_1"></a>
3357 <h3>2015-01-20 (3.8.8.1)</h3><p><ol class='lessindent'>
3358 <li>Fix a bug in the sorting logic, present since version 3.8.4, that can cause
3359 output to appear in the wrong order on queries that contains an ORDER BY clause,
3360 a LIMIT clause, and that have approximately 60 or more columns in the result set.
3361 Ticket <a href="https://www.sqlite.org/src/tktview?name=f97c4637102a3ae72b79">f97c4637102a3ae72b79</a>.
3362
3363 <li>SQLITE_SOURCE_ID: "2015-01-20 16:51:25 f73337e3e289915a76ca96e7a05a1a8d4e890d55"
3364 <li>SHA1 for sqlite3.c: 33987fb50dcc09f1429a653d6b47672f5a96f19e
3365
3366 </ol></p>
3367 <a name="version_3_8_8"></a>
3368 <h3>2015-01-16 (3.8.8)</h3><p><ol class='lessindent'>
3369 <p><b>New Features:</b>
3370 <li>Added the <a href="pragma.html#pragma_data_version">PRAGMA data_version</a> command that can be used to determine if
3371 a database file has been modified by another process.
3372 <li>Added the <a href="c3ref/c_checkpoint_full.html">SQLITE_CHECKPOINT_TRUNCATE</a> option to the
3373 <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2()</a> interface, with corresponding enhancements
3374 to <a href="pragma.html#pragma_wal_checkpoint">PRAGMA wal_checkpoint</a>.
3375 <li>Added the <a href="c3ref/stmt_scanstatus.html">sqlite3_stmt_scanstatus()</a> interface, available only when
3376 compiled with <a href="compile.html#enable_stmt_scanstatus">SQLITE_ENABLE_STMT_SCANSTATUS</a>.
3377 <li>The <a href="c3ref/table_column_metadata.html">sqlite3_table_column_metadata()</a> is enhanced to work correctly on
3378 <a href="withoutrowid.html">WITHOUT ROWID</a> tables and to check for the existence of a
3379 a table if the column name parameter is NULL. The interface is now
3380 also included in the build by default, without requiring
3381 the <a href="compile.html#enable_column_metadata">SQLITE_ENABLE_COLUMN_METADATA</a> compile-time option.
3382 <li>Added the <a href="compile.html#enable_api_armor">SQLITE_ENABLE_API_ARMOR</a> compile-time option.
3383 <li>Added the <a href="compile.html#reverse_unordered_selects">SQLITE_REVERSE_UNORDERED_SELECTS</a> compile-time option.
3384 <li>Added the <a href="compile.html#sorter_pmasz">SQLITE_SORTER_PMASZ</a> compile-time option and <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpmasz">SQLITE_CONFIG_PMASZ</a>
3385 start-time option.
3386 <li>Added the <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpcachehdrsz">SQLITE_CONFIG_PCACHE_HDRSZ</a> option to <a href="c3ref/config.html">sqlite3_config()</a>
3387 which makes it easier for applications to determine the appropriate
3388 amount of memory for use with <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a>.
3389 <li>The number of rows in a <a href="lang_select.html#values">VALUES clause</a> is no longer limited by
3390 <a href="c3ref/c_limit_attached.html#sqlitelimitcompoundselect">SQLITE_LIMIT_COMPOUND_SELECT</a>.
3391 <li>Added the <a href="https://www.sqlite.org/src/artifact/f971962e92ebb8b0">eval.c</a>
3392 <a href="loadext.html">loadable extension</a> that implements an eval() SQL function that will recursively
3393 evaluate SQL.
3394 <p><b>Performance Enhancements:</b>
3395 <li>Reduce the number of memcpy() operations involved in balancing a b-tree,
3396 for 3.2% overall performance boost.
3397 <li>Improvements to cost estimates for the <a href="optoverview.html#skipscan">skip-scan optimization</a>.
3398 <li>The <a href="optoverview.html#autoindex">automatic indexing</a> optimization is now capable of generating
3399 a <a href="partialindex.html">partial index</a> if that is appropriate.
3400 <p><b>Bug fixes:</b>
3401 <li>Ensure durability following a power loss with
3402 "PRAGMA journal_mode=TRUNCATE" by calling fsync() right after truncating
3403 the journal file.
3404 <li>The query planner now recognizes that any column in the right-hand
3405 table of a LEFT JOIN can be NULL, even if that column has a NOT NULL
3406 constraint. Avoid trying to optimize out NULL tests in those cases.
3407 Fix for ticket
3408 <a href="https://www.sqlite.org/src/info/6f2222d550f5b0ee7ed">6f2222d550f5b0ee7ed</a>.
3409 <li>Make sure ORDER BY puts rows in ascending order even if the DISTINCT
3410 operator is implemented using a descending index. Fix for ticket
3411 <a href="https://www.sqlite.org/src/info/c5ea805691bfc4204b1cb9e">c5ea805691bfc4204b1cb9e</a>.
3412 <li>Fix data races that might occur under stress when running with many threads
3413 in <a href="sharedcache.html">shared cache mode</a> where some of the threads are opening and
3414 closing connections.
3415 <li>Fix obscure crash bugs found by
3416 <a href="http://lcamtuf.coredump.cx/afl/">american fuzzy lop</a>. Ticket
3417 <a href="https://www.sqlite.org/src/info/a59ae93ee990a55">a59ae93ee990a55</a>.
3418 <li>Work around a GCC optimizer bug (for gcc 4.2.1 on MacOS 10.7) that caused the
3419 <a href="rtree.html">R-Tree extension</a> to compute incorrect results when compiled with -O3.
3420 <p><b>Other changes:</b>
3421 <li>Disable the use of the strchrnul() C-library routine unless it is
3422 specifically enabled using the -DHAVE_STRCHRNULL compile-time option.
3423 <li>Improvements to the effectiveness and accuracy of the
3424 <a href="lang_corefunc.html#likelihood">likelihood()</a>, <a href="lang_corefunc.html#likely">likely()</a>, and <a href="lang_corefunc.html#unlikely">unlikely()</a> SQL hint functions.
3425
3426 <li>SQLITE_SOURCE_ID: "2015-01-16 12:08:06 7d68a42face3ab14ed88407d4331872f5b243fdf"
3427 <li>SHA1 for sqlite3.c: 91aea4cc722371d58aae3d22e94d2a4165276905
3428
3429 </ol></p>
3430 <a name="version_3_8_7_4"></a>
3431 <h3>2014-12-09 (3.8.7.4)</h3><p><ol class='lessindent'>
3432 <li>Bug fix: Add in a mutex that was omitted from the previous release.
3433 <li>SQLITE_SOURCE_ID: "2014-12-09 01:34:36 f66f7a17b78ba617acde90fc810107f34f1a1f2e"
3434 <li>SHA1 for sqlite3.c: 0a56693a3c24aa3217098afab1b6fecccdedfd23
3435
3436 </ol></p>
3437 <a name="version_3_8_7_3"></a>
3438 <h3>2014-12-05 (3.8.7.3)</h3><p><ol class='lessindent'>
3439 <li>Bug fix: Ensure the cached KeyInfo objects (an internal abstraction not visible to the
3440 application) do not go stale when operating in <a href="sharedcache.html">shared cache mode</a> and frequently closing
3441 and reopening some database connections while leaving other database connections on the
3442 same shared cache open continuously. Ticket
3443 <a href="https://www.sqlite.org/src/info/e4a18565a36884b00edf">e4a18565a36884b00edf</a>.
3444 <li>Bug fix: Recognize that any column in the right-hand table of a LEFT JOIN can be
3445 NULL even if the column has a NOT NULL constraint. Do not apply optimizations that
3446 assume the column is never NULL. Ticket
3447 <a href="https://www.sqlite.org/src/info/6f2222d550f5b0ee7ed">6f2222d550f5b0ee7ed</a>.
3448
3449 <li>SQLITE_SOURCE_ID: "2014-12-05 22:29:24 647e77e853e81a5effeb4c33477910400a67ba86"
3450 <li>SHA1 for sqlite3.c: 3ad2f5ba3a4a3e3e51a1dac9fda9224b359f0261
3451
3452 </ol></p>
3453 <a name="version_3_8_7_2"></a>
3454 <h3>2014-11-18 (3.8.7.2)</h3><p><ol class='lessindent'>
3455 <li>Enhance the <a href="lang_transaction.html">ROLLBACK</a> command so that pending queries are allowed to continue as long
3456 as the schema is unchanged. Formerly, a ROLLBACK would cause all pending queries to
3457 fail with an <a href="rescode.html#abort">SQLITE_ABORT</a> or <a href="rescode.html#abort_rollback">SQLITE_ABORT_ROLLBACK</a> error. That error is still returned
3458 if the ROLLBACK modifies the schema.
3459 <li>Bug fix: Make sure that NULL results from OP_Column are fully and completely NULL and
3460 do not have the MEM_Ephem bit set.
3461 Ticket <a href="https://www.sqlite.org/src/info/094d39a4c95ee4">094d39a4c95ee4</a>.
3462 <li>Bug fix: The %c format in sqlite3_mprintf() is able to handle precisions greater than 70.
3463 <li>Bug fix: Do not automatically remove the DISTINCT keyword from a SELECT that forms
3464 the right-hand side of an IN operator since it is necessary if the SELECT also
3465 contains a LIMIT.
3466 Ticket <a href="https://www.sqlite.org/src/info/db87229497">db87229497</a>.
3467
3468 <li>SQLITE_SOURCE_ID: "2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93"
3469 <li>SHA1 for sqlite3.c: b2a68d5783f48dba6a8cb50d8bf69b238c5ec53a
3470
3471 </ol></p>
3472 <a name="version_3_8_7_1"></a>
3473 <h3>2014-10-29 (3.8.7.1)</h3><p><ol class='lessindent'>
3474 <li>In <a href="pragma.html#pragma_journal_mode">PRAGMA journal_mode=TRUNCATE</a> mode, call fsync() immediately after truncating
3475 the journal file to ensure that the transaction is durable across a power loss.
3476 <li>Fix an assertion fault that can occur when updating the NULL value of a field
3477 at the end of a table that was added using <a href="lang_altertable.html">ALTER TABLE ADD COLUMN</a>.
3478 <li>Do not attempt to use the strchrnul() function from the standard C library unless
3479 the HAVE_STRCHRNULL compile-time option is set.
3480 <li>Fix a couple of problems associated with running an UPDATE or DELETE on a
3481 <a href="lang_createview.html">VIEW</a> with a <a href="lang_createtable.html#rowid">rowid</a> in the WHERE clause.
3482
3483 <li>SQLITE_SOURCE_ID: "2014-10-29 13:59:56 3b7b72c4685aa5cf5e675c2c47ebec10d9704221"
3484 <li>SHA1 for sqlite3.c: 2d25bd1a73dc40f538f3a81c28e6efa5999bdf0c
3485
3486 </ol></p>
3487 <a name="version_3_8_7"></a>
3488 <h3>2014-10-17 (3.8.7)</h3><p><ol class='lessindent'>
3489 <p><b>Performance Enhancements:</b>
3490 <li>Many micro-optimizations result in 20.3% more work for the same number
3491 of CPU cycles relative to the previous release.
3492 The cumulative performance increase since <a href="#version_3_8_0">version 3.8.0</a> is 61%.
3493 (Measured using
3494 <a href="http://valgrind.org/docs/manual/cg-manual.html">cachegrind</a> on the
3495 <a href="https://www.sqlite.org/src/artifact/83f6b3318f7ee">speedtest1.c</a> workload on
3496 Ubuntu 13.10 x64 with gcc 4.8.1 and -Os. Your performance may vary.)
3497 <li>The sorter can use auxiliary helper threads to increase real-time response.
3498 This feature is off by default and may be
3499 enabled using the <a href="pragma.html#pragma_threads">PRAGMA threads</a> command or the <a href="compile.html#default_worker_threads">SQLITE_DEFAULT_WORKER_THREADS</a>
3500 compile-time option.
3501 <li>Enhance the <a href="optoverview.html#skipscan">skip-scan</a> optimization so that it is able to skip index terms that
3502 occur in the middle of the index, not just as the left-hand side of the index.
3503 <li>Improved optimization of <a href="lang_expr.html#castexpr">CAST</a> operators.
3504 <li>Various improvements in how the query planner uses <a href="fileformat2.html#stat4tab">sqlite_stat4</a>
3505 information to estimate plan costs.
3506 <p><b>New Features:</b>
3507 <li>Added new interfaces with 64-bit length parameters:
3508 <a href="c3ref/free.html">sqlite3_malloc64()</a>,
3509 <a href="c3ref/free.html">sqlite3_realloc64()</a>,
3510 <a href="c3ref/bind_blob.html">sqlite3_bind_blob64()</a>,
3511 <a href="c3ref/result_blob.html">sqlite3_result_blob64()</a>,
3512 <a href="c3ref/bind_blob.html">sqlite3_bind_text64()</a>, and
3513 <a href="c3ref/result_blob.html">sqlite3_result_text64()</a>.
3514 <li>Added the new interface <a href="c3ref/free.html">sqlite3_msize()</a> that returns the size of a memory allocation
3515 obtained from <a href="c3ref/free.html">sqlite3_malloc64()</a> and its variants.
3516 <li>Added the <a href="c3ref/c_limit_attached.html#sqlitelimitworkerthreads">SQLITE_LIMIT_WORKER_THREADS</a> option to <a href="c3ref/limit.html">sqlite3_limit()</a> and
3517 <a href="pragma.html#pragma_threads">PRAGMA threads</a> command for configuring the number of available worker threads.
3518 <li>The <a href="spellfix1.html">spellfix1</a> extension allows the application to optionally specify the rowid for
3519 each INSERT.
3520 <li>Added the <a href="https://www.sqlite.org/src/doc/trunk/ext/userauth/user-auth.txt">User Authentication</a>
3521 extension.
3522 <p><b>Bug Fixes:</b>
3523 <li>Fix a bug in the <a href="partialindex.html">partial index</a> implementation that might result in an incorrect
3524 answer if a partial index is used in a subquery or in a <a href="lang_createview.html">view</a>.
3525 Ticket <a href="https://www.sqlite.org/src/info/98d973b8f5">98d973b8f5</a>.
3526 <li>Fix a query planner bug that might cause a table to be scanned in the wrong direction
3527 (thus reversing the order of output) when a DESC index is used to implement the ORDER BY
3528 clause on a query that has an identical GROUP BY clause.
3529 Ticket <a href="https://www.sqlite.org/src/info/ba7cbfaedc7e6">ba7cbfaedc7e6</a>.
3530 <li>Fix a bug in <a href="c3ref/profile.html">sqlite3_trace()</a> that was causing it to sometimes fail to print
3531 an SQL statement if that statement needed to be re-prepared.
3532 Ticket <a href="https://www.sqlite.org/src/info/11d5aa455e0d98f3c1e6a08">11d5aa455e0d98f3c1e6a08</a>
3533 <li>Fix a faulty assert() statement.
3534 Ticket <a href="https://www.sqlite.org/src/info/369d57fb8e5ccdff06f1">369d57fb8e5ccdff06f1</a>
3535 <p><b>Test, Debug, and Analysis Changes:</b>
3536 <li>Show ASCII-art abstract syntax tree diagrams using the ".selecttrace"
3537 and ".wheretrace" commands in the
3538 <a href="cli.html">command-line shell</a> when compiled with <a href="compile.html#debug">SQLITE_DEBUG</a>, SQLITE_ENABLE_SELECTTRACE,
3539 and SQLITE_ENABLE_WHERETRACE. Also provide the sqlite3TreeViewExpr() and
3540 sqlite3TreeViewSelect() entry points that can be invoked from with the
3541 debugger to show the parse tree when stopped at a breakpoint.
3542 <li>Drop support for SQLITE_ENABLE_TREE_EXPLAIN. The SELECTTRACE mechanism provides
3543 more useful diagnostics information.
3544 <li>New options to the <a href="cli.html">command-line shell</a> for configuring auxiliary
3545 memory usage: --pagecache, --lookaside, and --scratch.
3546 <li>SQLITE_SOURCE_ID: "2014-10-17 11:24:17 e4ab094f8afce0817f4074e823fabe59fc29ebb4"
3547 <li>SHA1 for sqlite3.c: 56dcf5e931a9e1fa12fc2d600cd91d3bf9b639cd
3548
3549
3550 </ol></p>
3551 <a name="version_3_8_6"></a>
3552 <h3>2014-08-15 (3.8.6)</h3><p><ol class='lessindent'>
3553 <li>Added support for <a href="lang_expr.html#hexint">hexadecimal integer literals</a> in the SQL parser.
3554 (Ex: 0x123abc)
3555 <li>Enhanced the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command to detect <a href="lang_createtable.html#uniqueconst">UNIQUE</a> and
3556 <a href="lang_createtable.html#notnullconst">NOT NULL</a> constraint violations.
3557 <li>Increase the maximum value of <a href="limits.html#max_attached">SQLITE_MAX_ATTACHED</a> from 62 to 125.
3558 <li>Increase the timeout in <a href="wal.html">WAL mode</a> before issuing an <a href="rescode.html#protocol">SQLITE_PROTOCOL</a>
3559 error from 1 second to 10 seconds.
3560 <li>Added the <a href="lang_corefunc.html#likely">likely(X)</a> SQL function.
3561 <li>The <a href="fts3.html#unicode61">unicode61</a> tokenizer is now included in <a href="fts3.html#fts4">FTS4</a> by default.
3562 <li>Trigger automatic reprepares on all prepared statements when <a href="lang_analyze.html">ANALYZE</a> is
3563 run.
3564 <li>Added a new
3565 <a href="loadext.html">loadable extension</a> source code file to the source tree:
3566 <a href="https://www.sqlite.org/src/finfo?name=ext/misc/fileio.c">fileio.c</a>
3567 <li>Add extension functions <a href="cli.html#fileio">readfile(X) and writefile(X,Y)</a>
3568 (using code copy/pasted from fileio.c in the previous bullet) to the
3569 <a href="cli.html">command-line shell</a>.
3570 <li>Added the <a href="cli.html#fullschema">.fullschema</a> dot-command to the <a href="cli.html">command-line shell</a>.
3571 <p><b>Performance Enhancements:</b>
3572 <li>Deactivate the <a href="lang_select.html#distinct">DISTINCT</a> keyword on subqueries on the
3573 right-hand side of the <a href="lang_expr.html#in_op">IN operator</a>.
3574 <li>Add the capability of evaluating an <a href="lang_expr.html#in_op">IN operator</a> as a sequence
3575 of comparisons as an alternative to using a table lookup. Use the sequence
3576 of comparisons implementation in circumstances where it is likely to be
3577 faster, such as when the right-hand side of the IN operator
3578 is small and/or changes frequently.
3579 <li>The query planner now uses <a href="fileformat2.html#stat4tab">sqlite_stat4</a> information (created by <a href="lang_analyze.html">ANALYZE</a>)
3580 to help determine if the <a href="optoverview.html#skipscan">skip-scan optimization</a> is appropriate.
3581 <li>Ensure that the query planner never tries to use a self-made transient
3582 index in place of a schema-defined index.
3583 <li>Other minor tweaks to improve the quality of <a href="opcode.html">VDBE</a> code.
3584 <p><b>Bug Fixes:</b>
3585 <li>Fix a bug in <a href="lang_createindex.html">CREATE UNIQUE INDEX</a>, introduced when <a href="withoutrowid.html">WITHOUT ROWID</a>
3586 support added in version 3.8.2, that allows a non-unique NOT NULL column to be
3587 given a UNIQUE index.
3588 Ticket <a href="https://www.sqlite.org/src/info/9a6daf340df99ba93c">9a6daf340df99ba93c</a>
3589 <li>Fix a bug in <a href="rtree.html">R-Tree extension</a>, introduced in the previous release,
3590 that can cause an
3591 incorrect results for queries that use the rowid of the R-Tree on the
3592 left-hand side of an <a href="lang_expr.html#in_op">IN operator</a>.
3593 Ticket <a href="https://www.sqlite.org/src/info/d2889096e7bdeac6">d2889096e7bdeac6</a>.
3594 <li>Fix the <a href="c3ref/stmt_busy.html">sqlite3_stmt_busy()</a> interface so that it gives the correct answer
3595 for <a href="lang_transaction.html">ROLLBACK</a> statements that have been stepped but never reset.
3596 <li>Fix a bug in that would cause a null pointer to be dereferenced
3597 if a column with a DEFAULT that is an aggregate function tried to usee its
3598 DEFAULT.
3599 Ticket <a href="https://www.sqlite.org/src/info/3a88d85f36704eebe1">3a88d85f36704eebe1</a>
3600 <li>CSV output from the <a href="cli.html">command-line shell</a> now always uses CRNL for the
3601 row separator and avoids inserting CR in front of NLs contained in
3602 data.
3603 <li>Fix a <a href="datatype3.html#affinity">column affinity</a> problem with the <a href="lang_expr.html#in_op">IN operator</a>.
3604 Ticket <a href="https://www.sqlite.org/src/info/9a8b09f8e6">9a8b09f8e6</a>.
3605 <li>Fix the <a href="lang_analyze.html">ANALYZE</a> command so that it adds correct samples for
3606 <a href="withoutrowid.html">WITHOUT ROWID</a> tables in the <a href="fileformat2.html#stat4tab">sqlite_stat4</a> table.
3607 Ticket <a href="https://www.sqlite.org/src/info/b2fa5424e6fcb15">b2fa5424e6fcb15</a>.
3608
3609 <li>SQLITE_SOURCE_ID: "2014-08-15 11:46:33 9491ba7d738528f168657adb43a198238abde19e"
3610 <li>SHA1 for sqlite3.c: 72c64f05cd9babb9c0f9b3c82536d83be7804b1c
3611
3612 </ol></p>
3613 <a name="version_3_8_5"></a>
3614 <h3>2014-06-04 (3.8.5)</h3><p><ol class='lessindent'>
3615 <li>Added support for <a href="queryplanner.html#partialsort">partial sorting by index</a>.
3616 <li>Enhance the query planner so that it always prefers an index that uses a superset of
3617 WHERE clause terms relative to some other index.
3618 <li>Improvements to the <a href="fts3.html#*fts4automergecmd">automerge command</a> of <a href="fts3.html#fts4">FTS4</a> to better control the index size
3619 for a full-text index that is subject to a large number of updates.
3620 <li>Added the <a href="rtree.html#xquery">sqlite3_rtree_query_callback()</a> interface to <a href="rtree.html">R-Tree extension</a>
3621 <li>Added new <a href="uri.html#coreqp">URI query parameters</a> "nolock" and "immutable".
3622 <li>Use less memory by not remembering CHECK constraints on read-only
3623 database connections.
3624 <li>Enable the <a href="queryplanner.html#or_in_where">OR optimization</a> for <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
3625 <li>Render expressions of the form "x IN (?)" (with a single value in
3626 the list on the right-hand side of the IN operator) as if they where "x==?",
3627 Similarly optimize "x NOT IN (?)"
3628 <li>Add the ".system" and ".once" commands to the <a href="cli.html">command-line shell</a>.
3629 <li>Added the <a href="c3ref/c_iocap_atomic.html">SQLITE_IOCAP_IMMUTABLE</a> bit to the set of bits that can be returned by
3630 the xDeviceCharacteristics method of a <a href="vfs.html">VFS</a>.
3631 <li>Added the <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_BYTEORDER</a> test control.
3632 <p><b>Bug Fixes:</b>
3633 <li>OFFSET clause ignored on queries without a FROM clause.
3634 Ticket <a href="https://www.sqlite.org/src/info/07d6a0453d">07d6a0453d</a>
3635 <li>Assertion fault on queries involving expressions of the form
3636 "x IN (?)". Ticket <a href="https://www.sqlite.org/src/info/e39d032577">e39d032577</a>.
3637 <li>Incorrect column datatype reported.
3638 Ticket <a href="https://www.sqlite.org/src/info/a8a0d2996a">a8a0d2996a</a>
3639 <li>Duplicate row returned on a query against a table with more than
3640 16 indices, each on a separate column, and all used via OR-connected constraints.
3641 Ticket <a href="https://www.sqlite.org/src/info/10fb063b11">10fb063b11</a>
3642 <li>Partial index causes assertion fault on UPDATE OR REPLACE.
3643 Ticket <a href="https://www.sqlite.org/src/info/2ea3e9fe63">2ea3e9fe63</a>
3644 <li>Crash when calling undocumented SQL function sqlite_rename_parent()
3645 with NULL parameters.
3646 Ticket <a href="https://www.sqlite.org/src/info/264b970c4379fd">264b970c43</a>
3647 <li>ORDER BY ignored if the query has an identical GROUP BY.
3648 Ticket <a href="https://www.sqlite.org/src/info/b75a9ca6b0499">b75a9ca6b0</a>
3649 <li>The group_concat(x,'') SQL function returns NULL instead of an empty string
3650 when all inputs are empty strings.
3651 Ticket <a href="https://www.sqlite.org/src/info/55746f9e65f85">55746f9e65</a>
3652 <li>Fix a bug in the VDBE code generator that caused crashes when
3653 doing an INSERT INTO ... SELECT statement where the number of columns
3654 being inserted is larger than the number of columns in the destination
3655 table.
3656 Ticket <a href="https://www.sqlite.org/src/info/e9654505cfda9">e9654505cfd</a>
3657 <li>Fix a problem in CSV import in the <a href="cli.html">command-line shell</a>
3658 where if the leftmost field of the first row
3659 in the CSV file was both zero bytes in size and unquoted no data would
3660 be imported.
3661 <li>Fix a problem in FTS4 where the left-most column that contained
3662 the <a href="fts3.html#fts4notindexed">notindexed column</a> name as a prefix
3663 was not indexed rather than the column whose name matched exactly.
3664 <li>Fix the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface so that it returns true if
3665 the database is read-only due to the file format write version number
3666 being too large.
3667
3668 <li>SQLITE_SOURCE_ID: "2014-06-04 14:06:34 b1ed4f2a34ba66c29b130f8d13e9092758019212"
3669 <li>SHA1 for sqlite3.c: 7bc194957238c61b1a47f301270286be5bc5208c
3670
3671 </ol></p>
3672 <a name="version_3_8_4_3"></a>
3673 <h3>2014-04-03 (3.8.4.3)</h3><p><ol class='lessindent'>
3674 <li>Add a
3675 <a href="https://www.sqlite.org/src/fdiff?sbs=1&v1=7d539cedb1c&v2=ebad891b7494d&smhdr">one-character fix</a>
3676 for a problem that might cause incorrect query results on a query that mixes
3677 DISTINCT, GROUP BY in a subquery, and ORDER BY.
3678 <a href="https://www.sqlite.org/src/info/98825a79ce1456863">Ticket 98825a79ce14</a>.
3679 <li>SQLITE_SOURCE_ID: "2014-04-03 16:53:12 a611fa96c4a848614efe899130359c9f6fb889c3"
3680 <li>SHA1 for sqlite3.c: 310a1faeb9332a3cd8d1f53b4a2e055abf537bdc
3681
3682 </ol></p>
3683 <a name="version_3_8_4_2"></a>
3684 <h3>2014-03-26 (3.8.4.2)</h3><p><ol class='lessindent'>
3685 <li>Fix a potential buffer overread that could result when trying to search a
3686 corrupt database file.
3687 <li>SQLITE_SOURCE_ID: "2014-03-26 18:51:19 02ea166372bdb2ef9d8dfbb05e78a97609673a8e"
3688 <li>SHA1 for sqlite3.c: 4685ca86c2ea0649ed9f59a500013e90b3fe6d03
3689
3690 </ol></p>
3691 <a name="version_3_8_4_1"></a>
3692 <h3>2014-03-11 (3.8.4.1)</h3><p><ol class='lessindent'>
3693 <li>Work around a C-preprocessor macro conflict that breaks the build for some
3694 configurations with Microsoft Visual Studio.
3695 <li>When computing the cost of the <a href="optoverview.html#skipscan">skip-scan optimization</a>, take into account the
3696 fact that multiple seeks are required.
3697 <li>SQLITE_SOURCE_ID: "2014-03-11 15:27:36 018d317b1257ce68a92908b05c9c7cf1494050d0"
3698 <li>SHA1 for sqlite3.c: d5cd1535053a50aa8633725e3595740b33709ac5
3699
3700 </ol></p>
3701 <a name="version_3_8_4"></a>
3702 <h3>2014-03-10 (3.8.4)</h3><p><ol class='lessindent'>
3703 <li>Code optimization and refactoring for improved performance.
3704 <li>Add the ".clone" and ".save" commands to the command-line shell.
3705 <li>Update the banner on the command-line shell to alert novice users when they
3706 are using an ephemeral in-memory database.
3707 <li>Fix editline support in the command-line shell.
3708 <li>Add support for coverage testing of VDBE programs using the
3709 <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_VDBE_COVERAGE</a> verb of <a href="c3ref/test_control.html">sqlite3_test_control()</a>.
3710 <li>Update the _FILE_OFFSET_BITS macro so that builds work again on QNX.
3711 <li>Change the datatype of SrcList.nSrc from type u8 to type int to work around
3712 an issue in the C compiler on AIX.
3713 <li>Get extension loading working on Cygwin.
3714 <li>Bug fix: Fix the <a href="lang_corefunc.html#char">char()</a> SQL function so that it returns an empty string
3715 rather than an "out of memory" error when called with zero arguments.
3716 <li>Bug fix: DISTINCT now recognizes that a <a href="lang_corefunc.html#zeroblob">zeroblob</a> and a blob of all
3717 0x00 bytes are the same thing.
3718 <a href="https://www.sqlite.org/src/info/fccbde530a">Ticket &#91;fccbde530a&#93;</a>
3719 <li>Bug fix: Compute the correct answer for queries that contain an IS NOT NULL
3720 term in the WHERE clause and also contain an OR term in the WHERE clause and
3721 are compiled with <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a>.
3722 <a href="https://www.sqlite.org/src/info/4c86b126f2">Ticket &#91;4c86b126f2&#93;</a>
3723 <li>Bug fix: Make sure "rowid" columns are correctly resolved in joins between
3724 normal tables and WITHOUT ROWID tables.
3725 <a href="https://www.sqlite.org/src/info/c34d0557f7">Ticket &#91;c34d0557f7&#93;</a>
3726 <li>Bug fix: Make sure the same temporary registers are not used in concurrent
3727 co-routines used to implement compound SELECT statements containing ORDER
3728 BY clauses, as such use can lead to incorrect answers.
3729 <a href="https://www.sqlite.org/src/info/8c63ff0eca">Ticket &#91;8c63ff0eca&#93;</a>
3730 <li>Bug fix: Ensure that "ORDER BY random()" clauses do not get optimized out.
3731 <a href="https://www.sqlite.org/src/info/65bdeb9739">Ticket &#91;65bdeb9739&#93;</a>
3732 <li>Bug fix: Repair a name-resolution error that can occur in sub-select statements
3733 contained within a TRIGGER.
3734 <a href="https://www.sqlite.org/src/info/4ef7e3cfca">Ticket &#91;4ef7e3cfca&#93;</a>
3735 <li>Bug fix: Fix column default values expressions of the form
3736 "DEFAULT(-(-9223372036854775808))" so that they work correctly, initializing
3737 the column to a floating point value approximately equal to
3738 +9223372036854775808.0.
3739 <li>SQLITE_SOURCE_ID: "2014-03-10 12:20:37 530a1ee7dc2435f80960ce4710a3c2d2bfaaccc5"
3740 <li>SHA1 for sqlite3.c: b0c22e5f15f5ba2afd017ecd990ea507918afe1c
3741
3742 </ol></p>
3743 <a name="version_3_8_3_1"></a>
3744 <h3>2014-02-11 (3.8.3.1)</h3><p><ol class='lessindent'>
3745 <li>Fix a bug (ticket <a href="https://www.sqlite.org/src/info/4c86b126f2">4c86b126f2</a>)
3746 that causes rows to go missing on some queries with OR clauses and
3747 IS NOT NULL operators in the WHERE clause, when the <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a>
3748 or <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a> compile-time options are used.
3749 <li>Fix a harmless compiler warning that was causing problems for VS2013.
3750 <li>SQLITE_SOURCE_ID: "2014-02-11 14:52:19 ea3317a4803d71d88183b29f1d3086f46d68a00e"
3751 <li>SHA1 for sqlite3.c: 990004ef2d0eec6a339e4caa562423897fe02bf0
3752
3753 </ol></p>
3754 <a name="version_3_8_3"></a>
3755 <h3>2014-02-03 (3.8.3)</h3><p><ol class='lessindent'>
3756 <li>Added support for <a href="lang_with.html">common table expressions</a> and the <a href="lang_with.html">WITH clause</a>.
3757 <li>Added the <a href="lang_corefunc.html#printf">printf()</a> SQL function.
3758 <li>Added <a href="c3ref/c_deterministic.html#sqlitedeterministic">SQLITE_DETERMINISTIC</a> as an optional bit in the 4th argument to the
3759 <a href="c3ref/create_function.html">sqlite3_create_function()</a> and related interfaces, providing applications with
3760 the ability to create new functions that can be factored out of inner loops when
3761 they have constant arguments.
3762 <li>Add <a href="rescode.html#readonly_dbmoved">SQLITE_READONLY_DBMOVED</a> error code, returned at the beginning of a
3763 transaction, to indicate that the underlying database file has been renamed
3764 or moved out from under SQLite.
3765 <li>Allow arbitrary expressions, including function calls and subqueries, in
3766 the filename argument to <a href="lang_attach.html">ATTACH</a>.
3767 <li>Allow a <a href="lang_select.html#values">VALUES clause</a> to be used anywhere a <a href="lang_select.html">SELECT</a> statement is valid.
3768 <li>Reseed the PRNG used by <a href="c3ref/randomness.html">sqlite3_randomness(N,P)</a> when invoked with N==0.
3769 Automatically reseed after a fork() on unix.
3770 <li>Enhance the <a href="spellfix1.html">spellfix1</a> virtual table so that it can search efficiently by rowid.
3771 <li>Performance enhancements.
3772 <li>Improvements to the comments in the VDBE byte-code display when running <a href="lang_explain.html">EXPLAIN</a>.
3773 <li>Add the "%token_class" directive to <a href="lemon.html">Lemon parser generator</a> and use it to simplify
3774 the grammar.
3775 <li>Change the <a href="lemon.html">Lemon</a> source code to avoid calling C-library functions that OpenBSD
3776 considers dangerous. (Ex: sprintf).
3777 <li>Bug fix: In the <a href="cli.html">command-line shell</a> CSV import feature, do not end a field
3778 when an escaped double-quote occurs at the end of a CRLN line.
3779 <li>SQLITE_SOURCE_ID:
3780 "2014-02-03 13:52:03 e816dd924619db5f766de6df74ea2194f3e3b538"
3781 <li>SHA1 for sqlite3.c: 98a07da78f71b0275e8d9c510486877adc31dbee
3782
3783 </ol></p>
3784 <a name="version_3_8_2"></a>
3785 <h3>2013-12-06 (3.8.2)</h3><p><ol class='lessindent'>
3786 <li>Changed the defined behavior for the <a href="lang_expr.html#castexpr">CAST expression</a> when floating point values
3787 greater than +9223372036854775807 are cast into integers so that the
3788 result is the largest possible integer, +9223372036854775807, instead of
3789 the smallest possible integer, -9223372036854775808. After this change,
3790 CAST(9223372036854775809.0 as INT) yields +9223372036854775807 instead
3791 of -9223372036854775808.
3792 <b><big>&larr;</big>&nbsp;Potentially Incompatible Change!</b>
3793 <li>Added support for <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
3794 <li>Added the <a href="optoverview.html#skipscan">skip-scan optimization</a> to the query planner.
3795 <li>Extended the <a href="vtab.html">virtual table</a> interface, and in particular the
3796 <a href="c3ref/index_info.html">sqlite3_index_info</a> object to allow a virtual table to report its estimate
3797 on the number of rows that will be returned by a query.
3798 <li>Update the <a href="rtree.html">R-Tree extension</a> to make use of the enhanced virtual table
3799 interface.
3800 <li>Add the <a href="compile.html#enable_explain_comments">SQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option.
3801 <li>Enhanced the comments that are inserted into <a href="lang_explain.html">EXPLAIN</a> output when the
3802 <a href="compile.html#enable_explain_comments">SQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option is enabled.
3803 <li>Performance enhancements in the VDBE, especially to the OP_Column opcode.
3804 <li>Factor constant subexpressions in inner loops out to the initialization code
3805 in prepared statements.
3806 <li>Enhanced the ".explain" output formatting of the <a href="cli.html">command-line shell</a>
3807 so that loops are indented to better show the structure of the program.
3808 <li>Enhanced the ".timer" feature of the <a href="cli.html">command-line shell</a> so that it
3809 shows wall-clock time in addition to system and user times.
3810
3811 <li>SQLITE_SOURCE_ID:
3812 "2013-12-06 14:53:30 27392118af4c38c5203a04b8013e1afdb1cebd0d"
3813 <li>SHA1 for sqlite3.c: 6422c7d69866f5ea3db0968f67ee596e7114544e
3814
3815 </ol></p>
3816 <a name="version_3_8_1"></a>
3817 <h3>2013-10-17 (3.8.1)</h3><p><ol class='lessindent'>
3818 <li>Added the <a href="lang_corefunc.html#unlikely">unlikely()</a> and <a href="lang_corefunc.html#likelihood">likelihood()</a> SQL functions to be used
3819 as hints to the query planner.
3820 <li>Enhancements to the query planner:
3821 <ol type='a'>
3822 <li>Take into account the fact WHERE clause terms that cannot be used with indices
3823 still probably reduce the number of output rows.
3824 <li>Estimate the sizes of table and index rows and use the smallest applicable B-Tree
3825 for full scans and "count(*)" operations.
3826 </ol>
3827 <li>Added the <a href="pragma.html#pragma_soft_heap_limit">soft_heap_limit pragma</a>.
3828 <li>Added support for <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a>
3829 <li>Added support for "sz=NNN" parameters at the end of
3830 <a href="fileformat2.html#stat1tab">sqlite_stat1.stat</a> fields
3831 used to specify the average length in bytes for table and index rows.
3832 <li>Avoid running foreign-key constraint checks on an UPDATE if none of the
3833 modified columns are associated with foreign keys.
3834 <li>Added the <a href="compile.html#minimum_file_descriptor">SQLITE_MINIMUM_FILE_DESCRIPTOR</a> compile-time option
3835 <li>Added the win32-longpath VFS on windows, permitting filenames up to 32K
3836 characters in length.
3837 <li>The <a href="lang_datefunc.html">Date And Time Functions</a> are enhanced so that the current time
3838 (ex: julianday('now')) is always the same for multiple function invocations
3839 within the same <a href="c3ref/step.html">sqlite3_step()</a> call.
3840 <li>Add the "totype.c" extension, implementing the tointeger() and toreal()
3841 SQL functions.
3842 <li><a href="fts3.html#fts4">FTS4</a> queries are better able to make use of docid<$limit constraints to
3843 limit the amount of I/O required.
3844 <li>Added the hidden <a href="fts3.html#f4alid">fts4aux languageid column</a> to the <a href="fts3.html#fts4aux">fts4aux</a> virtual table.
3845 <li>The <a href="lang_vacuum.html">VACUUM</a> command packs the database about 1% tighter.
3846 <li>The sqlite3_analyzer utility program is updated to provide better descriptions
3847 and to compute a more accurate estimate for "Non-sequential pages"
3848 <li>Refactor the implementation of PRAGMA statements to improve parsing performance.
3849 <li>The directory used to hold temporary files on unix can now be set using
3850 the SQLITE_TMPDIR environment variable, which takes precedence over the
3851 TMPDIR environment variable. The <a href="c3ref/temp_directory.html">sqlite3_temp_directory</a> global variable
3852 still has higher precedence than both environment variables, however.
3853 <li>Added the <a href="pragma.html#pragma_stats">PRAGMA stats</a> statement.
3854 <li><b>Bug fix:</b> Return the correct answer for "SELECT count(*) FROM table" even if
3855 there is a <a href="partialindex.html">partial index</a> on the table. Ticket
3856 <a href="https://www.sqlite.org/src/info/a5c8ed66ca">a5c8ed66ca</a>.
3857
3858 <li>SQLITE_SOURCE_ID:
3859 "2013-10-17 12:57:35 c78be6d786c19073b3a6730dfe3fb1be54f5657a"
3860 <li>SHA1 for sqlite3.c: 0a54d76566728c2ba96292a49b138e4f69a7c391
3861
3862 </ol></p>
3863 <a name="version_3_8_0_2"></a>
3864 <h3>2013-09-03 (3.8.0.2)</h3><p><ol class='lessindent'>
3865 <li>Fix a bug in the optimization that attempts to omit unused LEFT JOINs
3866
3867 <li>SQLITE_SOURCE_ID:
3868 "2013-09-03 17:11:13 7dd4968f235d6e1ca9547cda9cf3bd570e1609ef"
3869 <li>SHA1 for sqlite3.c: 6cf0c7b46975a87a0dc3fba69c229a7de61b0c21
3870
3871 </ol></p>
3872 <a name="version_3_8_0_1"></a>
3873 <h3>2013-08-29 (3.8.0.1)</h3><p><ol class='lessindent'>
3874 <li>Fix an off-by-one error that caused quoted empty string at the end of a
3875 CRNL-terminated line of CSV input to be misread by the command-line shell.
3876 <li>Fix a query planner bug involving a LEFT JOIN with a BETWEEN or LIKE/GLOB
3877 constraint and then another INNER JOIN to the right that involves an OR constraint.
3878 <li>Fix a query planner bug that could result in a segfault when querying tables
3879 with a UNIQUE or PRIMARY KEY constraint with more than four columns.
3880
3881 <li>SQLITE_SOURCE_ID:
3882 "2013-08-29 17:35:01 352362bc01660edfbda08179d60f09e2038a2f49"
3883 <li>SHA1 for sqlite3.c: 99906bf63e6cef63d6f3d7f8526ac4a70e76559e
3884
3885 </ol></p>
3886 <a name="version_3_8_0"></a>
3887 <h3>2013-08-26 (3.8.0)</h3><p><ol class='lessindent'>
3888 <li>Add support for <a href="partialindex.html">partial indexes</a></li>
3889 <li>Cut-over to the <a href="queryplanner-ng.html">next generation query planner</a> for faster and better query plans.
3890 <li>The <a href="eqp.html">EXPLAIN QUERY PLAN</a> output no longer shows an estimate of the number of
3891 rows generated by each loop in a join.
3892 <li>Added the <a href="fts3.html#fts4notindexed">FTS4 notindexed option</a>, allowing non-indexed columns in an FTS4 table.
3893 <li>Added the <a href="c3ref/c_stmtstatus_counter.html#sqlitestmtstatusvmstep">SQLITE_STMTSTATUS_VM_STEP</a> option to <a href="c3ref/stmt_status.html">sqlite3_stmt_status()</a>.
3894 <li>Added the <a href="pragma.html#pragma_cache_spill">cache_spill pragma</a>.
3895 <li>Added the <a href="pragma.html#pragma_query_only">query_only pragma</a>.
3896 <li>Added the <a href="pragma.html#pragma_defer_foreign_keys">defer_foreign_keys pragma</a> and the
3897 <a href="c3ref/db_status.html">sqlite3_db_status</a>(db, <a href="c3ref/c_dbstatus_options.html#sqlitedbstatusdeferredfks">SQLITE_DBSTATUS_DEFERRED_FKS</a>,...) C-language interface.
3898 <li>Added the "percentile()" function as a <a href="loadext.html">loadable extension</a> in the ext/misc
3899 subdirectory of the source tree.
3900 <li>Added the <a href="compile.html#allow_uri_authority">SQLITE_ALLOW_URI_AUTHORITY</a> compile-time option.
3901 <li>Add the <a href="c3ref/cancel_auto_extension.html">sqlite3_cancel_auto_extension(X)</a> interface.
3902 <li>A running SELECT statement that lacks a FROM clause (or any other statement that
3903 never reads or writes from any database file) will not prevent a read
3904 transaction from closing.
3905 <li>Add the <a href="compile.html#default_automatic_index">SQLITE_DEFAULT_AUTOMATIC_INDEX</a> compile-time option. Setting this option
3906 to 0 disables automatic indices by default.
3907 <li>Issue an <a href="rescode.html#warning_autoindex">SQLITE_WARNING_AUTOINDEX</a> warning on the <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiglog">SQLITE_CONFIG_LOG</a> whenever
3908 the query planner uses an automatic index.
3909 <li>Added the <a href="compile.html#fts3_max_expr_depth">SQLITE_FTS3_MAX_EXPR_DEPTH</a> compile-time option.
3910 <li>Added an optional 5th parameter defining the collating sequence to the
3911 next_char() extension SQL function.
3912 <li>The <a href="rescode.html#busy_snapshot">SQLITE_BUSY_SNAPSHOT</a> extended error code is returned in WAL mode when
3913 a read transaction cannot be upgraded to a write transaction because the read is
3914 on an older snapshot.
3915 <li>Enhancements to the sqlite3_analyzer utility program to provide size
3916 information separately for each individual index of a table, in addition to
3917 the aggregate size.
3918 <li>Allow read transactions to be freely opened and closed by SQL statements run
3919 from within the implementation of <a href="appfunc.html">application-defined SQL functions</a> if the
3920 function is called by a SELECT statement that does not access any database table.
3921 <li>Disable the use of posix_fallocate() on all (unix) systems unless the
3922 HAVE_POSIX_FALLOCATE compile-time option is used.
3923 <li>Update the ".import" command in the <a href="cli.html">command-line shell</a> to support multi-line
3924 fields and correct RFC-4180 quoting and to issue warning and/or error messages
3925 if the input text is not strictly RFC-4180 compliant.
3926 <li>Bug fix: In the <a href="fts3.html#unicode61">unicode61</a> tokenizer of <a href="fts3.html#fts4">FTS4</a>, treat all private code points
3927 as identifier symbols.
3928 <li>Bug fix: Bare identifiers in ORDER BY clauses bind more tightly to output column
3929 names, but identifiers in expressions bind more tightly to input column names.
3930 Identifiers in GROUP BY clauses always prefer output column names, however.
3931 <li>Bug fixes: Multiple problems in the legacy query optimizer were fixed by the
3932 move to <a href="queryplanner-ng.html">NGQP</a>.
3933
3934 <li>SQLITE_SOURCE_ID:
3935 "2013-08-26 04:50:08 f64cd21e2e23ed7cff48f7dafa5e76adde9321c2"
3936 <li>SHA1 for sqlite3.c: b7347f4b4c2a840e6ba12040093d606bd16ea21e
3937
3938 </ol></p>
3939 <a name="version_3_7_17"></a>
3940 <h3>2013-05-20 (3.7.17)</h3><p><ol class='lessindent'>
3941 <li>Add support for <a href="mmap.html">memory-mapped I/O</a>.
3942 <li>Add the <a href="c3ref/strglob.html">sqlite3_strglob()</a> convenience interface.
3943 <li>Assigned the integer at offset 68 in the <a href="fileformat2.html#database_header">database header</a> as the
3944 <a href="fileformat2.html#appid">Application ID</a> for when SQLite is used as an <a href="appfileformat.html">application file-format</a>.
3945 Added the <a href="pragma.html#pragma_application_id">PRAGMA application_id</a> command to query and set the Application ID.
3946 <li>Report rollback recovery in the <a href="errlog.html">error log</a> as SQLITE_NOTICE_RECOVER_ROLLBACK.
3947 Change the error log code for WAL recover from
3948 SQLITE_OK to SQLITE_NOTICE_RECOVER_WAL.
3949 <li>Report the risky uses of <a href="howtocorrupt.html#unlink">unlinked database files</a> and
3950 <a href="howtocorrupt.html#alias">database filename aliasing</a> as SQLITE_WARNING messages in the <a href="errlog.html">error log</a>.
3951 <li>Added the <a href="compile.html#trace_size_limit">SQLITE_TRACE_SIZE_LIMIT</a> compile-time option.
3952 <li>Increase the default value of <a href="compile.html#max_schema_retry">SQLITE_MAX_SCHEMA_RETRY</a> to 50 and make sure
3953 that it is honored in every place that a schema change might force a statement
3954 retry.
3955 <li>Add a new test harness called "mptester" used to verify correct operation
3956 when multiple processes are using the same database file at the same time.
3957 <li>Enhance the <a href="loadext.html">extension loading</a> mechanism to be more flexible (while
3958 still maintaining backwards compatibility) in two ways:
3959 <ol>
3960 <li>If the default entry point "sqlite3_extension_init" is not present in
3961 the loadable extension, also try an entry point "sqlite3_X_init" where
3962 "X" is based on the shared library filename. This allows every extension
3963 to have a different entry point, which allows them to be statically linked
3964 with no code changes.
3965 <li>The shared library filename passed to <a href="c3ref/load_extension.html">sqlite3_load_extension()</a> may
3966 omit the filename suffix, and an appropriate architecture-dependent
3967 suffix (".so", ".dylib", or ".dll") will be added automatically.
3968 </ol>
3969 <li>Added many new loadable extensions to the source tree, including
3970 amatch, closure, fuzzer, ieee754, nextchar, regexp, spellfix,
3971 and wholenumber. See header comments on each extension source file
3972 for further information about what that extension does.
3973 <li>Enhance <a href="fts3.html">FTS3</a> to avoid using excess stack space when there are a huge
3974 number of terms on the right-hand side of the MATCH operator. A side-effect
3975 of this change is that the MATCH operator can only accommodate 12 NEAR
3976 operators at a time.
3977 <li>Enhance the <a href="fts3.html#fts4aux">fts4aux</a> virtual table so that it can be a TEMP table.
3978 <li>Added the <a href="fts3.html#fts3tok">fts3tokenize virtual table</a> to the <a href="fts3.html">full-text search</a> logic.
3979 <li>Query planner enhancement: Use the transitive property of constraints
3980 to move constraints into the outer loops of a join whenever possible,
3981 thereby reducing the amount of work that needs to occur in inner loops.
3982 <li>Discontinue the use of posix_fallocate() on unix, as it does not work on all
3983 filesystems.
3984 <li>Improved tracing and debugging facilities in the Windows <a href="vfs.html">VFS</a>.
3985 <li>Bug fix: Fix a potential <b>database corruption bug</b>
3986 in <a href="sharedcache.html">shared cache mode</a> when one
3987 <a href="c3ref/sqlite3.html">database connection</a> is closed while another is in the middle of a write
3988 transaction.
3989 Ticket <a href="https://www.sqlite.org/src/info/e636a050b7">e636a050b7</a>
3990 <li>Bug fix:
3991 Only consider AS names from the result set as candidates for resolving
3992 identifiers in the WHERE clause if there are no other matches. In the
3993 ORDER BY clause, AS names take priority over any column names.
3994 Ticket <a href="https://www.sqlite.org/src/info/2500cdb9be05">2500cdb9be05</a>
3995 <li>Bug fix: Do not allow a virtual table to cancel the ORDER BY clause unless
3996 all outer loops are guaranteed to return no more than one row result.
3997 Ticket <a href="https://www.sqlite.org/src/info/ba82a4a41eac1">ba82a4a41eac1</a>.
3998 <li>Bug fix: Do not suppress the ORDER BY clause on a virtual table query if
3999 an IN constraint is used.
4000 Ticket <a href="https://www.sqlite.org/src/info/f69b96e3076e">f69b96e3076e</a>.
4001 <li>Bug fix: The <a href="cli.html">command-line shell</a> gives an exit code of 0 when terminated
4002 using the ".quit" command.
4003 <li>Bug fix: Make sure <a href="pragma.html#syntax">PRAGMA</a> statements appear in <a href="c3ref/profile.html">sqlite3_trace()</a> output.
4004 <li>Bug fix: When a <a href="lang_select.html#compound">compound query</a> that uses an ORDER BY clause
4005 with a <a href="lang_expr.html#collateop">COLLATE operator</a>, make sure that the sorting occurs
4006 according to the specified collation and that the comparisons associate with
4007 the compound query use the native collation. Ticket
4008 <a href="https://www.sqlite.org/src/info/6709574d2a8d8">6709574d2a8d8</a>.
4009 <li>Bug fix: Makes sure the <a href="c3ref/set_authorizer.html">authorizer</a> callback gets
4010 a valid pointer to the string "ROWID" for the column-name parameter when
4011 doing an <a href="lang_update.html">UPDATE</a> that changes the rowid. Ticket
4012 <a href="https://www.sqlite.org/src/info/0eb70d77cb05bb2272">0eb70d77cb05bb2272</a>
4013 <li>Bug fix: Do not move WHERE clause terms inside OR expressions that are
4014 contained within an ON clause of a LEFT JOIN. Ticket
4015 <a href="https://www.sqlite.org/src/info/f2369304e4">f2369304e4</a>
4016 <li>Bug fix: Make sure an error is always reported when attempting to preform
4017 an operation that requires a <a href="datatype3.html#collation">collating sequence</a> that is missing.
4018 Ticket <a href="https://www.sqlite.org/src/info/0fc59f908b">0fc59f908b</a>
4019
4020 <li>SQLITE_SOURCE_ID:
4021 "2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668"
4022 <li>SHA1 for sqlite3.c: 246987605d0503c700a08b9ee99a6b5d67454aab
4023
4024 </ol></p>
4025 <a name="version_3_7_16_2"></a>
4026 <h3>2013-04-12 (3.7.16.2)</h3><p><ol class='lessindent'>
4027 <li>Fix a bug (present since version 3.7.13) that could result in database corruption
4028 on windows if two or more processes try to access the same database file at the
4029 same time and immediately after third process crashed in the middle of committing
4030 to that same file. See ticket
4031 <a href="https://www.sqlite.org/src/info/7ff3120e4f">7ff3120e4f</a> for further
4032 information.
4033
4034 <li>SQLITE_SOURCE_ID:
4035 "2013-04-12 11:52:43 cbea02d93865ce0e06789db95fd9168ebac970c7"
4036 <li>SHA1 for sqlite3.c: d466b54789dff4fb0238b9232e74896deaefab94
4037
4038 </ol></p>
4039 <a name="version_3_7_16_1"></a>
4040 <h3>2013-03-29 (3.7.16.1)</h3><p><ol class='lessindent'>
4041 <li>Fix for a bug in the ORDER BY optimizer that was introduced in
4042 <a href="#version_3_7_15">version 3.7.15</a> which would sometimes optimize out the sorting step
4043 when in fact the sort was required.
4044 Ticket <a href="https://www.sqlite.org/src/info/a179fe7465">a179fe7465</a>
4045 <li>Fix a long-standing bug in the <a href="lang_expr.html#castexpr">CAST expression</a> that would recognize UTF16
4046 characters as digits even if their most-significant-byte was not zero.
4047 Ticket <a href="https://www.sqlite.org/src/info/689137afb6da41">689137afb6da41</a>.
4048 <li>Fix a bug in the NEAR operator of <a href="fts3.html">FTS3</a> when applied to subfields.
4049 Ticket <a href="https://www.sqlite.org/src/info/38b1ae018f">38b1ae018f</a>.
4050 <li>Fix a long-standing bug in the storage engine that would (very rarely)
4051 cause a spurious report of an SQLITE_CORRUPT error but which was otherwise
4052 harmless.
4053 Ticket <a href="https://www.sqlite.org/src/info/6bfb98dfc0c">6bfb98dfc0c</a>.
4054 <li>The SQLITE_OMIT_MERGE_SORT option has been removed. The merge sorter is
4055 now a required component of SQLite.
4056 <li>Fixed lots of spelling errors in the source-code comments
4057 <li>SQLITE_SOURCE_ID:
4058 "2013-03-29 13:44:34 527231bc67285f01fb18d4451b28f61da3c4e39d"
4059 <li>SHA1 for sqlite3.c: 7a91ceceac9bcf47ceb8219126276e5518f7ff5a
4060
4061 </ol></p>
4062 <a name="version_3_7_16"></a>
4063 <h3>2013-03-18 (3.7.16)</h3><p><ol class='lessindent'>
4064 <li>Added the <a href="pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a> command.
4065 <li>Added new extended error codes for all SQLITE_CONSTRAINT errors
4066 <li>Added the SQLITE_READONLY_ROLLBACK extended error code for when a database
4067 cannot be opened because it needs rollback recovery but is read-only.
4068 <li>Added SQL functions <a href="lang_corefunc.html#unicode">unicode(A)</a> and <a href="lang_corefunc.html#char">char(X1,...,XN)</a>.
4069 <li>Performance improvements for <a href="pragma.html#pragma_incremental_vacuum">PRAGMA incremental_vacuum</a>, especially in
4070 cases where the number of free pages is greater than what will fit on a
4071 single trunk page of the freelist.
4072 <li>Improved optimization of queries containing aggregate min() or max().
4073 <li>Enhance virtual tables so that they can potentially use an index when
4074 the WHERE clause contains the IN operator.
4075 <li>Allow indices to be used for sorting even if prior terms of the index
4076 are constrained by IN operators in the WHERE clause.
4077 <li>Enhance the <a href="pragma.html#pragma_table_info">PRAGMA table_info</a> command so that the "pk" column is an
4078 increasing integer to show the order of columns in the primary key.
4079 <li>Enhance the query optimizer to exploit transitive join constraints.
4080 <li>Performance improvements in the query optimizer.
4081 <li>Allow the error message from <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> to be longer than
4082 20000 bytes.
4083 <li>Improved name resolution for deeply nested queries.
4084 <li>Added the test_regexp.c module as a demonstration of how to implement
4085 the REGEXP operator.
4086 <li>Improved error messages in the <a href="rtree.html">RTREE</a> extension.
4087 <li>Enhance the <a href="cli.html">command-line shell</a> so that a non-zero argument to the
4088 ".exit" command causes the shell to exit immediately without cleanly
4089 shutting down the database connection.
4090 <li>Improved error messages for invalid boolean arguments to dot-commands
4091 in the <a href="cli.html">command-line shell</a>.
4092 <li>Improved error messages for "foreign key mismatch" showing the names of
4093 the two tables involved.
4094 <li>Remove all uses of umask() in the unix VFS.
4095 <li>Added the <a href="pragma.html#pragma_vdbe_addoptrace">PRAGMA vdbe_addoptrace</a> and <a href="pragma.html#pragma_vdbe_debug">PRAGMA vdbe_debug</a> commands.
4096 <li>Change to use strncmp() or the equivalent instead of memcmp() when
4097 comparing non-zero-terminated strings.
4098 <li>Update cygwin interfaces to omit deprecated API calls.
4099 <li>Enhance the <a href="spellfix1.html">spellfix1</a> extension so that the edit distance cost table can
4100 be changed at runtime by inserting a string like 'edit_cost_table=TABLE'
4101 into the "command" field.
4102
4103 <li>Bug fix: repair a long-standing problem that could cause incorrect query
4104 results in a 3-way or larger join that compared INTEGER fields against TEXT
4105 fields in two or more places.
4106 Ticket <a href="https://www.sqlite.org/src/info/fc7bd6358f">fc7bd6358f</a>
4107 <li>Bug fix: Issue an error message if the 16-bit reference counter on a
4108 view overflows due to an overly complex query.
4109 <li>Bug fix: Avoid leaking memory on LIMIT and OFFSET clauses in deeply
4110 nested UNION ALL queries.
4111 <li>Bug fix: Make sure the schema is up-to-date prior to running pragmas
4112 table_info, index_list, index_info, and foreign_key_list.
4113
4114 <li>SQLITE_SOURCE_ID:
4115 "2013-03-18 11:39:23 66d5f2b76750f3520eb7a495f6247206758f5b90"
4116 <li>SHA1 for sqlite3.c: 7308ab891ca1b2ebc596025cfe4dc36f1ee89cf6
4117
4118 </ol></p>
4119 <a name="version_3_7_15_2"></a>
4120 <h3>2013-01-09 (3.7.15.2)</h3><p><ol class='lessindent'>
4121 <li>Fix a bug, introduced in <a href="#version_3_7_15">version 3.7.15</a>, that causes an ORDER BY clause
4122 to be optimized out of a three-way join when the ORDER BY is actually
4123 required.
4124 Ticket <a href="https://www.sqlite.org/src/info/598f5f7596b055">598f5f7596b055</a>
4125
4126 <li>SQLITE_SOURCE_ID:
4127 "2013-01-09 11:53:05 c0e09560d26f0a6456be9dd3447f5311eb4f238f"
4128 <li>SHA1 for sqlite3.c: 5741f47d1bc38aa0a8c38f09e60a5fe0031f272d
4129
4130 </ol></p>
4131 <a name="version_3_7_15_1"></a>
4132 <h3>2012-12-19 (3.7.15.1)</h3><p><ol class='lessindent'>
4133 <li>Fix a bug, introduced in <a href="#version_3_7_15">version 3.7.15</a>, that causes a segfault if
4134 the AS name of a result column of a SELECT statement is used as a logical
4135 term in the WHERE clause. Ticket
4136 <a href="https://www.sqlite.org/src/info/a7b7803e8d1e869">a7b7803e8d1e869</a>.
4137
4138 <li>SQLITE_SOURCE_ID:
4139 "2012-12-19 20:39:10 6b85b767d0ff7975146156a99ad673f2c1a23318"
4140 <li>SHA1 for sqlite3.c: bbbaa68061e925bd4d7d18d7e1270935c5f7e39a
4141
4142 </ol></p>
4143 <a name="version_3_7_15"></a>
4144 <h3>2012-12-12 (3.7.15)</h3><p><ol class='lessindent'>
4145 <li>Added the <a href="c3ref/errcode.html">sqlite3_errstr()</a> interface.
4146 <li>Avoid invoking the <a href="c3ref/profile.html">sqlite3_trace()</a> callback multiple times when a
4147 statement is automatically reprepared due to <a href="rescode.html#schema">SQLITE_SCHEMA</a> errors.
4148 <li>Added support for Windows Phone 8 platforms
4149 <li>Enhance IN operator processing to make use of indices with numeric
4150 affinities.
4151 <li>Do full-table scans using covering indices when possible, under the
4152 theory that an index will be smaller and hence can be scanned with
4153 less I/O.
4154 <li>Enhance the query optimizer so that ORDER BY clauses are more aggressively
4155 optimized, especially in joins where various terms of the ORDER BY clause
4156 come from separate tables of the join.
4157 <li>Add the ability to implement FROM clause subqueries as coroutines rather
4158 that manifesting the subquery into a temporary table.
4159 <li>Enhancements the command-line shell:
4160 <ol type='a'>
4161 <li>Added the ".print" command
4162 <li>Negative numbers in the ".width" command cause right-alignment
4163 <li>Add the ".wheretrace" command when compiled with SQLITE_DEBUG
4164 </ol>
4165 <li>Added the <a href="pragma.html#pragma_busy_timeout">busy_timeout pragma</a>.
4166 <li>Added the <a href="lang_corefunc.html#instr">instr()</a> SQL function.
4167 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlbusyhandler">SQLITE_FCNTL_BUSYHANDLER</a> file control, used to allow VFS
4168 implementations to get access to the busy handler callback.
4169 <li>The xDelete method in the built-in <a href="vfs.html">VFSes</a> now return
4170 SQLITE_IOERR_DELETE_NOENT if the file to be deleted does not exist.
4171 <li>Enhanced support for QNX.
4172 <li>Work around an optimizer bug in the MSVC compiler when targeting ARM.
4173 <li>Bug fix: Avoid various concurrency problems in <a href="sharedcache.html">shared cache mode</a>.
4174 <li>Bug fix: Avoid a deadlock or crash if the <a href="backup.html">backup API</a>, <a href="sharedcache.html">shared cache</a>,
4175 and the SQLite Encryption Extension are all used at once.
4176 <li>Bug fix: SQL functions created using the TCL interface honor the
4177 "nullvalue" setting.
4178 <li>Bug fix: Fix a 32-bit overflow problem on CREATE INDEX for databases
4179 larger than 16GB.
4180 <li>Bug fix: Avoid segfault when using the <a href="lang_expr.html#collateop">COLLATE operator</a> inside of a
4181 <a href="lang_createtable.html#ckconst">CHECK constraint</a> or <a href="lang_createview.html">view</a> in <a href="sharedcache.html">shared cache mode</a>.
4182
4183 <li>SQLITE_SOURCE_ID:
4184 "2012-12-12 13:36:53 cd0b37c52658bfdf992b1e3dc467bae1835a94ae"
4185 <li>SHA1 for sqlite3.c: 2b413611f5e3e3b6ef5f618f2a9209cdf25cbcff"
4186
4187 </ol></p>
4188 <a name="version_3_7_14_1"></a>
4189 <h3>2012-10-04 (3.7.14.1)</h3><p><ol class='lessindent'>
4190 <li>Fix a bug (ticket
4191 <a href="https://www.sqlite.org/src/tktview/d02e1406a58ea02d">&#91;d02e1406a58ea02d]&#93;</a>)
4192 that causes a segfault on a LEFT JOIN that includes an OR in the ON clause.
4193 <li>Work around a bug in the optimizer in the VisualStudio-2012 compiler that
4194 causes invalid code to be generated when compiling SQLite on ARM.
4195 <li>Fix the TCL interface so that the "nullvalue" setting is honored for
4196 TCL implementations of SQL functions.
4197 <li>SQLITE_SOURCE_ID:
4198 "2012-10-04 19:37:12 091570e46d04e84b67228e0bdbcd6e1fb60c6bdb"
4199 <li>SHA1 for sqlite3.c: 62aaecaacab3a4bf4a8fe4aec1cfdc1571fe9a44
4200
4201 </ol></p>
4202 <a name="version_3_7_14"></a>
4203 <h3>2012-09-03 (3.7.14)</h3><p><ol class='lessindent'>
4204 <li>Drop built-in support for OS/2. If you need to upgrade an OS/2
4205 application to use this or a later version of SQLite,
4206 then add an application-defined <a href="vfs.html">VFS</a> using the
4207 <a href="c3ref/vfs_find.html">sqlite3_vfs_register()</a> interface. The code removed in this release can
4208 serve as a baseline for the application-defined VFS.
4209 <li>Ensure that floating point values are preserved exactly when reconstructing
4210 a database from the output of the ".dump" command of the
4211 <a href="cli.html">command-line shell</a>.
4212 <li>Added the <a href="c3ref/close.html">sqlite3_close_v2()</a> interface.
4213 <li>Updated the <a href="cli.html">command-line shell</a> so that it can be built using
4214 <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a> and <a href="compile.html#omit_autoinit">SQLITE_OMIT_AUTOINIT</a>.
4215 <li>Improvements to the windows makefiles and build processes.
4216 <li>Enhancements to <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> and <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a> so that
4217 they can optionally check just a single attached database instead of all
4218 attached databases.
4219 <li>Enhancements to <a href="wal.html">WAL mode</a> processing that ensure that at least one
4220 valid read-mark is available at all times, so that read-only processes
4221 can always read the database.
4222 <li>Performance enhancements in the sorter used by ORDER BY and CREATE INDEX.
4223 <li>Added the <a href="compile.html#disable_fts4_deferred">SQLITE_DISABLE_FTS4_DEFERRED</a> compile-time option.
4224 <li>Better handling of aggregate queries where the aggregate functions are
4225 contained within subqueries.
4226 <li>Enhance the query planner so that it will try to use a <a href="queryplanner.html#covidx">covering index</a>
4227 on queries that make use of <a href="optoverview.html#or_opt">or optimization</a>.
4228 <li>SQLITE_SOURCE_ID:
4229 "2012-09-03 15:42:36 c0d89d4a9752922f9e367362366efde4f1b06f2a"
4230 <li>SHA1 for sqlite3.c: 5fdf596b29bb426001f28b488ff356ae14d5a5a6
4231
4232 </ol></p>
4233 <a name="version_3_7_13"></a>
4234 <h3>2012-06-11 (3.7.13)</h3><p><ol class='lessindent'>
4235 <li><a href="inmemorydb.html">In-memory databases</a> that are specified using
4236 <a href="uri.html">URI filenames</a> are allowed to use <a href="sharedcache.html#inmemsharedcache">shared cache</a>,
4237 so that the same
4238 in-memory database can be accessed from multiple database connections.
4239 <li>Recognize and use the <a href="uri.html#coreqp">mode=memory</a> query parameter in
4240 <a href="uri.html">URI filenames</a>.
4241 <li>Avoid resetting the schema of <a href="sharedcache.html">shared cache</a> connections when any one
4242 connection closes. Instead, wait for the last connection to close before
4243 resetting the schema.
4244 <li>In the <a href="rtree.html">RTREE</a> extension, when rounding 64-bit floating point numbers
4245 to 32-bit for storage, always round in a direction that causes the
4246 bounding box to get larger.
4247 <li>Adjust the unix driver to avoid unnecessary calls to fchown().
4248 <li>Add interfaces sqlite3_quota_ferror() and sqlite3_quota_file_available()
4249 to the test_quota.c module.
4250 <li>The <a href="c3ref/create_module.html">sqlite3_create_module()</a> and <a href="c3ref/create_module.html">sqlite3_create_module_v2()</a> interfaces
4251 return SQLITE_MISUSE on any attempt to overload or replace a <a href="vtab.html">virtual table</a>
4252 module. The destructor is always called in this case, in accordance with
4253 historical and current documentation.
4254 <li>SQLITE_SOURCE_ID:
4255 "2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc"
4256 <li>SHA1 for sqlite3.c: ff0a771d6252545740ba9685e312b0e3bb6a641b
4257
4258 </ol></p>
4259 <a name="version_3_7_12_1"></a>
4260 <h3>2012-05-22 (3.7.12.1)</h3><p><ol class='lessindent'>
4261 <li>Fix a bug
4262 <a href="https://www.sqlite.org/src/info/c2ad16f997ee9c">(ticket c2ad16f997)</a>
4263 in the 3.7.12 release that can cause a segfault for certain
4264 obscure nested aggregate queries.
4265 <li>Fix various other minor test script problems.
4266 <li>SQLITE_SOURCE_ID:
4267 "2012-05-22 02:45:53 6d326d44fd1d626aae0e8456e5fa2049f1ce0789"
4268 <li>SHA1 for sqlite3.c: d494e8d81607f0515d4f386156fb0fd86d5ba7df
4269
4270 </ol></p>
4271 <a name="version_3_7_12"></a>
4272 <h3>2012-05-14 (3.7.12)</h3><p><ol class='lessindent'>
4273 <li>Add the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuscachewrite">SQLITE_DBSTATUS_CACHE_WRITE</a> option for <a href="c3ref/db_status.html">sqlite3_db_status()</a>.
4274 <li>Optimize the <a href="lang_corefunc.html#typeof">typeof()</a> and <a href="lang_corefunc.html#length">length()</a> SQL functions so that they avoid
4275 unnecessary reading of database content from disk.
4276 <li>Add the <a href="fts3.html#*fts4mergecmd">FTS4 "merge" command</a>, the <a href="fts3.html#*fts4automergecmd">FTS4 "automerge" command</a>, and
4277 the <a href="fts3.html#*fts4ickcmd">FTS4 "integrity-check" command</a>.
4278 <li>Report the name of specific <a href="lang_createtable.html#ckconst">CHECK</a> constraints that fail.
4279 <li>In the command-line shell, use popen() instead of fopen() if the first
4280 character of the argument to the ".output" command is "|".
4281 <li>Make use of OVERLAPPED in the windows <a href="vfs.html">VFS</a> to avoid some system calls
4282 and thereby obtain a performance improvement.
4283 <li>More aggressive optimization of the AND operator when one side or the
4284 other is always false.
4285 <li>Improved performance of queries with many OR-connected terms in the
4286 WHERE clause that can all be indexed.
4287 <li>Add the <a href="compile.html#rtree_int_only">SQLITE_RTREE_INT_ONLY</a> compile-time option to force the
4288 <a href="rtree.html">R*Tree Extension Module</a> to use integer instead of
4289 floating point values for both storage and computation.
4290 <li>Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command to use much less memory when
4291 processing multi-gigabyte databases.
4292 <li>New interfaces added to the test_quota.c add-on module.
4293 <li>Added the ".trace" dot-command to the command-line shell.
4294 <li>Allow virtual table constructors to be invoked recursively.
4295 <li>Improved optimization of ORDER BY clauses on compound queries.
4296 <li>Improved optimization of aggregate subqueries contained within an
4297 aggregate query.
4298 <li>Bug fix: Fix the <a href="lang_savepoint.html">RELEASE</a> command so that it does not cancel pending
4299 queries. This repairs a problem introduced in 3.7.11.
4300 <li>Bug fix: Do not discard the DISTINCT as superfluous unless a subset of
4301 the result set is subject to a UNIQUE constraint <em>and</em> it none
4302 of the columns in that subset can be NULL.
4303 Ticket <a href="https://www.sqlite.org/src/info/385a5b56b9">385a5b56b9</a>.
4304 <li>Bug fix: Do not optimize away an ORDER BY clause that has the same terms
4305 as a UNIQUE index unless those terms are also NOT NULL.
4306 Ticket <a href="https://www.sqlite.org/src/info/2a5629202f">2a5629202f</a>.
4307 <li>SQLITE_SOURCE_ID:
4308 "2012-05-14 01:41:23 8654aa9540fe9fd210899d83d17f3f407096c004"
4309 <li>SHA1 for sqlite3.c: 57e2104a0f7b3f528e7f6b7a8e553e2357ccd2e1
4310
4311
4312 </ol></p>
4313 <a name="version_3_7_11"></a>
4314 <h3>2012-03-20 (3.7.11)</h3><p><ol class='lessindent'>
4315 <li>Enhance the <a href="lang_insert.html">INSERT</a> syntax to allow multiple rows to be inserted
4316 via the VALUES clause.
4317 <li>Enhance the <a href="lang_createvtab.html">CREATE VIRTUAL TABLE</a> command to support the
4318 IF NOT EXISTS clause.
4319 <li>Added the <a href="c3ref/stricmp.html">sqlite3_stricmp()</a> interface as a counterpart to
4320 <a href="c3ref/stricmp.html">sqlite3_strnicmp()</a>.
4321 <li>Added the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface.
4322 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlpragma">SQLITE_FCNTL_PRAGMA</a> file control, giving <a href="vfs.html">VFS</a> implementations
4323 the ability to add new <a href="pragma.html#syntax">PRAGMA</a> statements or to override built-in
4324 PRAGMAs.
4325 <li>Queries of the form: "SELECT max(x), y FROM table" returns the
4326 value of y on the same row that contains the maximum x value.
4327 <li>Added support for the <a href="fts3.html#*fts4languageid">FTS4 languageid option</a>.
4328 <li>Documented support for the <a href="fts3.html#*fts4content">FTS4 content option</a>. This feature has
4329 actually been in the code since <a href="#version_3_7_9">version 3.7.9</a> but is only now considered
4330 to be officially supported.
4331 <li>Pending statements no longer block <a href="lang_transaction.html">ROLLBACK</a>. Instead, the pending
4332 statement will return SQLITE_ABORT upon next access after the ROLLBACK.
4333 <li>Improvements to the handling of CSV inputs in the <a href="cli.html">command-line shell</a>
4334 <li>Fix a <a href="https://www.sqlite.org/src/info/b7c8682cc1">bug</a> introduced
4335 in <a href="#version_3_7_10">version 3.7.10</a> that might cause a LEFT JOIN
4336 to be incorrectly converted into an INNER JOIN if the WHERE clause
4337 indexable terms connected by OR.
4338
4339 <li>SQLITE_SOURCE_ID:
4340 "2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669"
4341 <li>SHA1 for sqlite3.c: d460d7eda3a9dccd291aed2a9fda868b9b120a10
4342
4343 </ol></p>
4344 <a name="version_3_7_10"></a>
4345 <h3>2012-01-16 (3.7.10)</h3><p><ol class='lessindent'>
4346 <li>The default <a href="fileformat2.html#schemaformat">schema format number</a> is changed from 1 to 4.
4347 This means that, unless
4348 the <a href="pragma.html#pragma_legacy_file_format">PRAGMA legacy_file_format=ON</a> statement is
4349 run, newly created database files will be unreadable by version of SQLite
4350 prior to 3.3.0 (2006-01-10). It also means that the <a href="lang_createindex.html#descidx">descending indices</a>
4351 are enabled by default.
4352 <li>The sqlite3_pcache_methods structure and the <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpcache">SQLITE_CONFIG_PCACHE</a>
4353 and <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiggetpcache">SQLITE_CONFIG_GETPCACHE</a> configuration parameters are deprecated.
4354 They are replaced by a new <a href="c3ref/pcache_methods2.html">sqlite3_pcache_methods2</a> structure and
4355 <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpcache2">SQLITE_CONFIG_PCACHE2</a> and <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiggetpcache2">SQLITE_CONFIG_GETPCACHE2</a> configuration
4356 parameters.
4357 <li>Added the <a href="psow.html">powersafe overwrite</a> property to the VFS interface. Provide
4358 the <a href="c3ref/c_iocap_atomic.html">SQLITE_IOCAP_POWERSAFE_OVERWRITE</a> I/O capability, the
4359 <a href="compile.html#powersafe_overwrite">SQLITE_POWERSAFE_OVERWRITE</a> compile-time option, and the
4360 "psow=BOOLEAN" query parameter for <a href="uri.html">URI filenames</a>.
4361 <li>Added the <a href="c3ref/db_release_memory.html">sqlite3_db_release_memory()</a> interface and the
4362 <a href="pragma.html#pragma_shrink_memory">shrink_memory pragma</a>.
4363 <li>Added the <a href="c3ref/db_filename.html">sqlite3_db_filename()</a> interface.
4364 <li>Added the <a href="c3ref/stmt_busy.html">sqlite3_stmt_busy()</a> interface.
4365 <li>Added the <a href="c3ref/uri_boolean.html">sqlite3_uri_boolean()</a> and <a href="c3ref/uri_boolean.html">sqlite3_uri_int64()</a> interfaces.
4366 <li>If the argument to <a href="pragma.html#pragma_cache_size">PRAGMA cache_size</a> is negative N, that means to use
4367 approximately -1024*N bytes of memory for the page cache regardless of
4368 the page size.
4369 <li>Enhanced the default memory allocator to make use of _msize() on windows,
4370 malloc_size() on Mac, and malloc_usable_size() on Linux.
4371 <li>Enhanced the query planner to support index queries with range constraints
4372 on the rowid.
4373 <li>Enhanced the query planner flattening logic to allow UNION ALL compounds
4374 to be promoted upwards to replace a simple wrapper SELECT even if the
4375 compounds are joins.
4376 <li>Enhanced the query planner so that the xfer optimization can be used with
4377 INTEGER PRIMARY KEY ON CONFLICT as long as the destination table is
4378 initially empty.
4379 <li>Enhanced the windows <a href="vfs.html">VFS</a> so that all system calls can be overridden
4380 using the xSetSystemCall interface.
4381 <li>Updated the "unix-dotfile" <a href="vfs.html">VFS</a> to use locking directories with mkdir()
4382 and rmdir() instead of locking files with open() and unlink().
4383 <li>Enhancements to the test_quota.c extension to support stdio-like interfaces
4384 with quotas.
4385 <li>Change the unix <a href="vfs.html">VFS</a> to be tolerant of read() system calls that return
4386 less then the full number of requested bytes.
4387 <li>Change both unix and windows <a href="vfs.html">VFSes</a> to report a sector size of 4096
4388 instead of the old default of 512.
4389 <li>In the <a href="tclsqlite.html">TCL Interface</a>, add the -uri option to the "sqlite3" TCL command
4390 used for creating new database connection objects.
4391 <li>Added the <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_EXPLAIN_STMT</a> test-control option with the
4392 <a href="compile.html#enable_tree_explain">SQLITE_ENABLE_TREE_EXPLAIN</a> compile-time option to enable the
4393 <a href="cli.html">command-line shell</a> to display ASCII-art parse trees of SQL statements
4394 that it processes, for debugging and analysis.
4395 <li><b>Bug fix:</b>
4396 Add an additional xSync when restarting a WAL in order to prevent an
4397 exceedingly unlikely but theoretically possible
4398 database corruption following power-loss.
4399 Ticket <a href="https://www.sqlite.org/src/info/ff5be73dee">ff5be73dee</a>.
4400 <li><b>Bug fix:</b>
4401 Change the VDBE so that all registers are initialized to Invalid
4402 instead of NULL.
4403 Ticket <a href="https://www.sqlite.org/src/info/7bbfb7d442">7bbfb7d442</a>
4404 <li><b>Bug fix:</b>
4405 Fix problems that can result from 32-bit integer overflow.
4406 Ticket <a href="https://www.sqlite.org/src/info/ac0ff496b7e2">ac00f496b7e2</a>
4407 <li>SQLITE_SOURCE_ID:
4408 "2012-01-16 13:28:40 ebd01a8deffb5024a5d7494eef800d2366d97204"
4409 <li>SHA1 for sqlite3.c: 6497cbbaad47220bd41e2e4216c54706e7ae95d4
4410
4411 </ol></p>
4412 <a name="version_3_7_9"></a>
4413 <h3>2011-11-01 (3.7.9)</h3><p><ol class='lessindent'>
4414 <li>If a search token (on the right-hand side of the MATCH operator) in
4415 <a href="fts3.html#fts4">FTS4</a> begins with "&#94;" then that token must be the first in its field
4416 of the document. <b>** Potentially Incompatible Change **</b>
4417 <li>Added options <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuscachehit">SQLITE_DBSTATUS_CACHE_HIT</a> and <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuscachemiss">SQLITE_DBSTATUS_CACHE_MISS</a>
4418 to the <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface.
4419 <li>Removed support for <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a>, replacing it with the much
4420 more capable <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a> option.
4421 <li>Enhancements to the sqlite3_analyzer utility program, including the
4422 --pageinfo and --stats options and support for multiplexed databases.
4423 <li>Enhance the <a href="c3ref/data_count.html">sqlite3_data_count()</a> interface so that it can be used to
4424 determine if SQLITE_DONE has been seen on the prepared statement.
4425 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntloverwrite">SQLITE_FCNTL_OVERWRITE</a> file-control by which the SQLite core
4426 indicates to the VFS that the current transaction will overwrite the
4427 entire database file.
4428 <li>Increase the default <a href="malloc.html#lookaside">lookaside memory allocator</a> allocation size from
4429 100 to 128 bytes.
4430 <li>Enhanced the query planner so that it can factor terms in and out of
4431 OR expressions in the WHERE clause in an effort to find better indices.
4432 <li>Added the <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> compile-time option, causing
4433 <a href="fileformat2.html#ovflpgs">overflow pages</a> to be read directly from the database file,
4434 bypassing the <a href="c3ref/pcache_methods2.html">page cache</a>.
4435 <li>Remove limits on the magnitude of precision and width value in the
4436 format specifiers of the <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> family of string rendering
4437 routines.
4438 <li>Fix a bug that prevent <a href="lang_altertable.html">ALTER TABLE ... RENAME</a> from working
4439 on some virtual tables in a database with a UTF16 encoding.
4440 <li>Fix a bug in ASCII-to-float conversion that causes slow performance and
4441 incorrect results when converting numbers with ridiculously large exponents.
4442 <li>Fix a bug that causes incorrect results in aggregate queries that use
4443 multiple aggregate functions whose arguments contain complicated expressions
4444 that differ only in the case of string literals contained within those
4445 expressions.
4446 <li>Fix a bug that prevented the <a href="pragma.html#pragma_page_count">page_count</a> and <a href="pragma.html#pragma_quick_check">quick_check</a> pragmas from
4447 working correctly if their names were capitalized.
4448 <li>Fix a bug that caused <a href="lang_vacuum.html">VACUUM</a> to fail if the <a href="pragma.html#pragma_count_changes">count_changes pragma</a> was
4449 engaged.
4450 <li>Fix a bug in <a href="vtab.html">virtual table</a> implementation that causes a crash if
4451 an <a href="fts3.html#fts4">FTS4</a> table is <a href="lang_droptable.html">dropped</a> inside a transaction and
4452 a <a href="lang_savepoint.html">SAVEPOINT</a> occurs afterwards.
4453 <li>SQLITE_SOURCE_ID:
4454 "2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e"
4455 <li>SHA1 for sqlite3.c: becd16877f4f9b281b91c97e106089497d71bb47
4456
4457 </ol></p>
4458 <a name="version_3_7_8"></a>
4459 <h3>2011-09-19 (3.7.8)</h3><p><ol class='lessindent'>
4460 <li> Orders of magnitude performance improvement for <a href="lang_createindex.html">CREATE INDEX</a> on
4461 very large tables.
4462 <li> Improved the windows VFS to better defend against interference
4463 from anti-virus software.
4464 <li> Improved query plan optimization when the DISTINCT keyword is present.
4465 <li> Allow more system calls to be overridden in the unix VFS - to provide
4466 better support for chromium sandboxes.
4467 <li> Increase the default size of a lookahead cache line from 100 to 128 bytes.
4468 <li> Enhancements to the test_quota.c module so that it can track
4469 preexisting files.
4470 <li> Bug fix: Virtual tables now handle IS NOT NULL constraints correctly.
4471 <li> Bug fixes: Correctly handle nested correlated subqueries used with
4472 indices in a WHERE clause.
4473 <li> SQLITE_SOURCE_ID:
4474 "2011-09-19 14:49:19 3e0da808d2f5b4d12046e05980ca04578f581177"
4475 <li> SHA1 for sqlite3.c: bfcd74a655636b592c5dba6d0d5729c0f8e3b4de
4476
4477 </ol></p>
4478 <a name="version_3_7_7_1"></a>
4479 <h3>2011-06-28 (3.7.7.1)</h3><p><ol class='lessindent'>
4480 <li> Fix <a href="https://www.sqlite.org/src/info/25ee812710">a bug</a> causing
4481 <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> statements compiled using sqlite3_prepare()
4482 to fail with an <a href="rescode.html#schema">SQLITE_SCHEMA</a> error.
4483 <li> SQLITE_SOURCE_ID:
4484 "2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f"
4485 <li> SHA1 for sqlite3.c: d47594b8a02f6cf58e91fb673e96cb1b397aace0
4486
4487 </ol></p>
4488 <a name="version_3_7_7"></a>
4489 <h3>2011-06-23 (3.7.7)</h3><p><ol class='lessindent'>
4490 <li> Add support for <a href="uri.html">URI filenames</a>
4491 <li> Add the <a href="c3ref/vtab_config.html">sqlite3_vtab_config()</a> interface in
4492 support of <a href="lang_conflict.html">ON CONFLICT</a> clauses with <a href="vtab.html">virtual tables</a>.
4493 <li> Add the <a href="vtab.html#xsavepoint">xSavepoint</a>, <a href="vtab.html#xsavepoint">xRelease</a> and <a href="vtab.html#xsavepoint">xRollbackTo</a> methods in
4494 <a href="vtab.html">virtual tables</a> in support of <a href="lang_savepoint.html">SAVEPOINT</a> for virtual tables.
4495 <li> Update the built-in <a href="fts3.html">FTS3/FTS4</a> and <a href="rtree.html">RTREE</a> virtual tables to support
4496 <a href="lang_conflict.html">ON CONFLICT</a> clauses and <a href="lang_replace.html">REPLACE</a>.
4497 <li> Avoid unnecessary reparsing of the database schema.
4498 <li> Added support for the <a href="fts3.html#fts4prefix">FTS4 prefix option</a> and the <a href="fts3.html#fts4order">FTS4 order option</a>.
4499 <li> Allow <a href="wal.html">WAL-mode</a> databases to be opened read-only as long as
4500 there is an existing read/write connection.
4501 <li> Added support for <a href="shortnames.html">short filenames</a>.
4502 <li> SQLITE_SOURCE_ID:
4503 "2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2"
4504 <li> SHA1 for sqlite3.c: 5bbe79e206ae5ffeeca760dbd0d66862228db551
4505
4506 </ol></p>
4507 <a name="version_3_7_6_3"></a>
4508 <h3>2011-05-19 (3.7.6.3)</h3><p><ol class='lessindent'>
4509 <li> Fix a problem with <a href="wal.html">WAL mode</a> which could cause transactions to
4510 silently rollback if the <a href="pragma.html#pragma_cache_size">cache_size</a> is set very small (less than 10)
4511 and SQLite comes under memory pressure.
4512
4513 </ol></p>
4514 <a name="version_3_7_6_2"></a>
4515 <h3>2011-04-17 (3.7.6.2)</h3><p><ol class='lessindent'>
4516 <li> Fix the function prototype for the open(2) system call to agree with
4517 POSIX. Without this fix, pthreads does not work correctly on NetBSD.
4518 <li> SQLITE_SOURCE_ID:
4519 "2011-04-17 17:25:17 154ddbc17120be2915eb03edc52af1225eb7cb5e"
4520 <li> SHA1 for sqlite3.c: 806577fd524dd5f3bfd8d4d27392ed2752bc9701
4521
4522
4523 </ol></p>
4524 <a name="version_3_7_6_1"></a>
4525 <h3>2011-04-13 (3.7.6.1)</h3><p><ol class='lessindent'>
4526 <li> Fix a bug in 3.7.6 that only appears if the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlsizehint">SQLITE_FCNTL_SIZE_HINT</a>
4527 file control is used with a build of SQLite that makes use of the
4528 HAVE_POSIX_FALLOCATE compile-time option and which has
4529 SQLITE_ENABLE_LOCKING_MODE turned off.
4530 <li> SQLITE_SOURCE_ID:
4531 "2011-04-13 14:40:25 a35e83eac7b185f4d363d7fa51677f2fdfa27695"
4532 <li> SHA1 for sqlite3.c: b81bfa27d3e09caf3251475863b1ce6dd9f6ab66
4533
4534 </ol></p>
4535 <a name="version_3_7_6"></a>
4536 <h3>2011-04-12 (3.7.6)</h3><p><ol class='lessindent'>
4537 <li> Added the <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2()</a> interface and enhanced the
4538 <a href="pragma.html#pragma_wal_checkpoint">wal_checkpoint pragma</a> to support blocking checkpoints.
4539 <li> Improvements to the query planner so that it makes better estimates of
4540 plan costs and hence does a better job of choosing the right plan,
4541 especially when <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a> is used.
4542 <li> Fix a bug which prevented deferred foreign key constraints from being
4543 enforced when <a href="c3ref/finalize.html">sqlite3_finalize()</a> was not
4544 called by one statement with a failed foreign key constraint prior to
4545 another statement with foreign key constraints running.
4546 <li> Integer arithmetic operations that would have resulted in overflow
4547 are now performed using floating-point instead.
4548 <li> Increased the version number on the <a href="c3ref/vfs.html">VFS object</a> to
4549 3 and added new methods xSetSysCall, xGetSysCall, and xNextSysCall
4550 used for doing full-coverage testing.
4551 <li> Increase the maximum value of <a href="limits.html#max_attached">SQLITE_MAX_ATTACHED</a> from 30 to 62
4552 (though the default value remains at 10).
4553 <li> Enhancements to FTS4:
4554 <ol type="a">
4555 <li> Added the <a href="fts3.html#fts4aux">fts4aux</a> table
4556 <li> Added support for <a href="fts3.html#*fts4compression">compressed FTS4 content</a>
4557 </ol>
4558 <li> Enhance the <a href="lang_analyze.html">ANALYZE</a> command to support the name of an index
4559 as its argument, in order to analyze just that one index.
4560 <li> Added the "unix-excl" built-in VFS on unix and unix-like platforms.
4561 <li> SQLITE_SOURCE_ID:
4562 "2011-04-12 01:58:40 f9d43fa363d54beab6f45db005abac0a7c0c47a7"
4563 <li> SHA1 for sqlite3.c: f38df08547efae0ff4343da607b723f588bbd66b
4564
4565 </ol></p>
4566 <a name="version_3_7_5"></a>
4567 <h3>2011-02-01 (3.7.5)</h3><p><ol class='lessindent'>
4568 <li> Added the <a href="c3ref/mprintf.html">sqlite3_vsnprintf()</a> interface.
4569 <li> Added the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidehit">SQLITE_DBSTATUS_LOOKASIDE_HIT</a>,
4570 <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidemisssize">SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</a>, and
4571 <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidemissfull">SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</a> options for the
4572 <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface.
4573 <li> Added the <a href="compile.html#omit_autoreset">SQLITE_OMIT_AUTORESET</a> compile-time option.
4574 <li> Added the <a href="compile.html#default_foreign_keys">SQLITE_DEFAULT_FOREIGN_KEYS</a> compile-time option.
4575 <li> Updates to <a href="c3ref/stmt_readonly.html">sqlite3_stmt_readonly()</a> so that its result is well-defined
4576 for all prepared statements and so that it works with <a href="lang_vacuum.html">VACUUM</a>.
4577 <li> Added the "-heap" option to the <a href="cli.html">command-line shell</a>
4578 <li> Fix <a href="https://www.sqlite.org/src/info/5d863f876e">a bug</a> involving
4579 frequent changes in and out of WAL mode and
4580 VACUUM that could (in theory) cause database corruption.
4581 <li> Enhance the <a href="c3ref/profile.html">sqlite3_trace()</a> mechanism so that nested SQL statements
4582 such as might be generated by virtual tables are shown but are shown
4583 in comments and without parameter expansion. This
4584 greatly improves tracing output when using the FTS3/4 and/or RTREE
4585 virtual tables.
4586 <li> Change the xFileControl() methods on all built-in VFSes to return
4587 <a href="rescode.html#notfound">SQLITE_NOTFOUND</a> instead of <a href="rescode.html#error">SQLITE_ERROR</a> for an unrecognized
4588 operation code.
4589 <li> The SQLite core invokes the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlsyncomitted">SQLITE_FCNTL_SYNC_OMITTED</a>
4590 <a href="c3ref/file_control.html">file control</a>
4591 to the VFS in place of a call to xSync if the database has
4592 <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> set to OFF.
4593
4594 </ol></p>
4595 <a name="version_3_7_4"></a>
4596 <h3>2010-12-07 (3.7.4)</h3><p><ol class='lessindent'>
4597 <li> Added the <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface to allow an existing
4598 <a href="c3ref/blob.html">sqlite3_blob</a> object to be rebound to a new row.
4599 <li> Use the new <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface to improve the performance
4600 of FTS.
4601 <li> <a href="c3ref/vfs.html">VFSes</a> that do not support shared memory are allowed
4602 to access <a href="wal.html">WAL</a> databases if <a href="pragma.html#pragma_locking_mode">PRAGMA locking_mode</a> is set to EXCLUSIVE.
4603 <li> Enhancements to <a href="eqp.html">EXPLAIN QUERY PLAN</a>.
4604 <li> Added the <a href="c3ref/stmt_readonly.html">sqlite3_stmt_readonly()</a> interface.
4605 <li> Added <a href="pragma.html#pragma_checkpoint_fullfsync">PRAGMA checkpoint_fullfsync</a>.
4606 <li> Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlfilepointer">SQLITE_FCNTL_FILE_POINTER</a> option
4607 to <a href="c3ref/file_control.html">sqlite3_file_control()</a>.
4608 <li> Added support for <a href="fts3.html#fts4">FTS4</a> and enhancements
4609 to the FTS <a href="fts3.html#matchinfo">matchinfo()</a> function.
4610 <li> Added the test_superlock.c module which provides example
4611 code for obtaining an exclusive lock to a rollback or WAL database.
4612 <li> Added the test_multiplex.c module which provides
4613 an example VFS that provides multiplexing (sharding)
4614 of a DB, splitting it over multiple files of fixed size.
4615 <li> A <a href="https://www.sqlite.org/src/info/80ba201079">very obscure bug</a>
4616 associated with the <a href="optoverview.html#or_opt">or optimization</a> was fixed.
4617
4618 </ol></p>
4619 <a name="version_3_7_3"></a>
4620 <h3>2010-10-08 (3.7.3)</h3><p><ol class='lessindent'>
4621 <li> Added the <a href="c3ref/create_function.html">sqlite3_create_function_v2()</a> interface that includes a
4622 destructor callback.
4623 <li> Added support for <a href="rtree.html#customquery">custom r-tree queries</a> using application-supplied
4624 callback routines to define the boundary of the query region.
4625 <li> The default page cache strives more diligently to avoid using memory
4626 beyond what is allocated to it by <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a>. Or if
4627 using page cache is allocating from the heap, it strives to avoid
4628 going over the <a href="c3ref/hard_heap_limit64.html">sqlite3_soft_heap_limit64()</a>, even if
4629 <a href="compile.html#enable_memory_management">SQLITE_ENABLE_MEMORY_MANAGEMENT</a> is not set.
4630 <li> Added the <a href="c3ref/hard_heap_limit64.html">sqlite3_soft_heap_limit64()</a> interface as a replacement for
4631 <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit()</a>.
4632 <li> The <a href="lang_analyze.html">ANALYZE</a> command now gathers statistics on tables even if they
4633 have no indices.
4634 <li> Tweaks to the query planner to help it do a better job of finding the
4635 most efficient query plan for each query.
4636 <li> Enhanced the internal text-to-numeric conversion routines so that they
4637 work with UTF8 or UTF16, thereby avoiding some UTF16-to-UTF8 text
4638 conversions.
4639 <li> Fix a problem that was causing excess memory usage with large <a href="wal.html">WAL</a>
4640 transactions in win32 systems.
4641 <li> The interface between the VDBE and B-Tree layer is enhanced such that
4642 the VDBE provides hints to the B-Tree layer letting the B-Tree layer
4643 know when it is safe to use hashing instead of B-Trees for transient
4644 tables.
4645 <li> Miscellaneous documentation enhancements.
4646
4647 </ol></p>
4648 <a name="version_3_7_2"></a>
4649 <h3>2010-08-24 (3.7.2)</h3><p><ol class='lessindent'>
4650 <li> Fix an <a href="https://www.sqlite.org/src/info/5e10420e8d">
4651 old and very obscure bug</a> that can lead to corruption of the
4652 database <a href="fileformat2.html#freelist">free-page list</a> when <a href="pragma.html#pragma_incremental_vacuum">incremental_vacuum</a> is used.
4653
4654 </ol></p>
4655 <a name="version_3_7_1"></a>
4656 <h3>2010-08-23 (3.7.1)</h3><p><ol class='lessindent'>
4657 <li> Added new commands <a href="c3ref/c_dbstatus_options.html#sqlitedbstatusschemaused">SQLITE_DBSTATUS_SCHEMA_USED</a> and
4658 <a href="c3ref/c_dbstatus_options.html#sqlitedbstatusstmtused">SQLITE_DBSTATUS_STMT_USED</a> to the <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface, in
4659 order to report out the amount of memory used to hold the schema and
4660 prepared statements of a connection.
4661 <li> Increase the maximum size of a database pages from 32KiB to 64KiB.
4662 <li> Use the <a href="optoverview.html#like_opt">LIKE optimization</a> even if the right-hand side string contains
4663 no wildcards.
4664 <li> Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlchunksize">SQLITE_FCNTL_CHUNK_SIZE</a> verb to the <a href="c3ref/file_control.html">sqlite3_file_control()</a>
4665 interface for both unix and windows, to cause database files to grow in
4666 large chunks in order to reduce disk fragmentation.
4667 <li> Fixed a bug in the query planner that caused performance regressions
4668 relative to 3.6.23.1 on some complex joins.
4669 <li> Fixed a typo in the OS/2 backend.
4670 <li> Refactored the pager module.
4671 <li> The SQLITE_MAX_PAGE_SIZE compile-time option is now silently ignored.
4672 The maximum page size is hard-coded at 65536 bytes.
4673
4674 </ol></p>
4675 <a name="version_3_7_0_1"></a>
4676 <h3>2010-08-04 (3.7.0.1)</h3><p><ol class='lessindent'>
4677 <li> Fix a potential database corruption bug that can occur if version 3.7.0
4678 and version 3.6.23.1 alternately write to the same database file.
4679 <a href="https://www.sqlite.org/src/info/51ae9cad317a1">
4680 Ticket &#91;51ae9cad317a1&#93;</a>
4681 <li> Fix a performance regression related to the query planner enhancements
4682 of version 3.7.0.
4683
4684 </ol></p>
4685 <a name="version_3_7_0"></a>
4686 <h3>2010-07-21 (3.7.0)</h3><p><ol class='lessindent'>
4687 <li> Added support for <a href="wal.html">write-ahead logging</a>.
4688 <li> Query planner enhancement - automatic transient indices are created
4689 when doing so reduces the estimated query time.
4690 <li> Query planner enhancement - the ORDER BY becomes a no-op if the query
4691 also contains a GROUP BY clause that forces the correct output order.
4692 <li> Add the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuscacheused">SQLITE_DBSTATUS_CACHE_USED</a> verb for <a href="c3ref/db_status.html">sqlite3_db_status()</a>.
4693 <li> The logical database size is now stored in the database header so that
4694 bytes can be appended to the end of the database file without corrupting
4695 it and so that SQLite will work correctly on systems that lack support
4696 for ftruncate().
4697
4698 </ol></p>
4699 <a name="version_3_6_23_1"></a>
4700 <h3>2010-03-26 (3.6.23.1)</h3><p><ol class='lessindent'>
4701 <li> Fix a bug in the offsets() function of <a href="fts3.html">FTS3</a>
4702 <li> Fix a missing "sync" that when omitted could lead to database
4703 corruption if a power failure or OS crash occurred just as a
4704 ROLLBACK operation was finishing.
4705
4706 </ol></p>
4707 <a name="version_3_6_23"></a>
4708 <h3>2010-03-09 (3.6.23)</h3><p><ol class='lessindent'>
4709 <li> Added the <a href="pragma.html#pragma_secure_delete">secure_delete pragma</a>.
4710 <li> Added the <a href="c3ref/compileoption_get.html">sqlite3_compileoption_used()</a> and
4711 <a href="c3ref/compileoption_get.html">sqlite3_compileoption_get()</a> interfaces as well as the
4712 <a href="pragma.html#pragma_compile_options">compile_options pragma</a> and the <a href="lang_corefunc.html#sqlite_compileoption_used">sqlite_compileoption_used()</a> and
4713 <a href="lang_corefunc.html#sqlite_compileoption_get">sqlite_compileoption_get()</a> SQL functions.
4714 <li> Added the <a href="c3ref/log.html">sqlite3_log()</a> interface together with the
4715 <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiglog">SQLITE_CONFIG_LOG</a> verb to <a href="c3ref/config.html">sqlite3_config()</a>. The ".log" command
4716 is added to the <a href="cli.html">Command Line Interface</a>.
4717 <li> Improvements to <a href="fts3.html">FTS3</a>.
4718 <li> Improvements and bug-fixes in support for <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a>.
4719 <li> The <a href="pragma.html#pragma_integrity_check">integrity_check pragma</a> is enhanced to detect out-of-order rowids.
4720 <li> The ".genfkey" operator has been removed from the
4721 <a href="cli.html">Command Line Interface</a>.
4722 <li> Updates to the co-hosted <a href="lemon.html">Lemon LALR(1) parser generator</a>. (These
4723 updates did not affect SQLite.)
4724 <li> Various minor bug fixes and performance enhancements.
4725
4726 </ol></p>
4727 <a name="version_3_6_22"></a>
4728 <h3>2010-01-06 (3.6.22)</h3><p><ol class='lessindent'>
4729 <li>Fix bugs that can (rarely) lead to incorrect query results when
4730 the CAST or OR operators are used in the WHERE clause of a query.
4731 <li>Continuing enhancements and improvements to <a href="fts3.html">FTS3</a>.
4732 <li>Other miscellaneous bug fixes.
4733
4734 </ol></p>
4735 <a name="version_3_6_21"></a>
4736 <h3>2009-12-07 (3.6.21)</h3><p><ol class='lessindent'>
4737 <li>The SQL output resulting from <a href="c3ref/profile.html">sqlite3_trace()</a> is now modified to include
4738 the values of <a href="lang_expr.html#varparam">bound parameters</a>.
4739 <li>Performance optimizations targeting a specific use case from
4740 a single high-profile user of SQLite. A 12% reduction in the number of
4741 CPU operations is achieved (as measured by Valgrind). Actual performance
4742 improvements in practice may vary depending on workload. Changes
4743 include:
4744 <ol type='a'>
4745 <li>The <a href="lang_corefunc.html#ifnull">ifnull()</a> and <a href="lang_corefunc.html#coalesce">coalesce()</a> SQL functions are now implemented
4746 using in-line VDBE code rather than calling external functions, so that
4747 unused arguments need never be evaluated.
4748 <li>The <a href="lang_corefunc.html#substr">substr()</a> SQL function does not bother to measure the length
4749 its entire input string if it is only computing a prefix
4750 <li>Unnecessary OP_IsNull, OP_Affinity, and OP_MustBeInt VDBE opcodes
4751 are suppressed
4752 <li>Various code refactorizations for performance
4753 </ol>
4754 <li>The FTS3 extension has undergone a major rework and cleanup.
4755 New <a href="fts3.html">FTS3 documentation</a> is now available.
4756 <li>The <a href="compile.html#secure_delete">SQLITE_SECURE_DELETE</a> compile-time option fixed to make sure that
4757 content is deleted even when the <a href="lang_delete.html#truncateopt">truncate optimization</a> applies.
4758 <li>Improvements to "dot-command" handling in the
4759 <a href="cli.html">Command Line Interface</a>.
4760 <li>Other minor bug fixes and documentation enhancements.
4761
4762 </ol></p>
4763 <a name="version_3_6_20"></a>
4764 <h3>2009-11-04 (3.6.20)</h3><p><ol class='lessindent'>
4765 <li>Optimizer enhancement: <a href="c3ref/stmt.html">prepared statements</a> are automatically
4766 re-compiled when a binding on the RHS of a LIKE operator changes or
4767 when any range constraint changes under <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a>.
4768 <li>Various minor bug fixes and documentation enhancements.
4769
4770 </ol></p>
4771 <a name="version_3_6_16_1"></a>
4772 <h3>2009-10-30 (3.6.16.1)</h3><p><ol class='lessindent'>
4773 <li>A small patch to version 3.6.16 to fix
4774 <a href="https://www.sqlite.org/src/info/6b00e0a34c">the OP_If bug</a>.
4775
4776 </ol></p>
4777 <a name="version_3_6_19"></a>
4778 <h3>2009-10-14 (3.6.19)</h3><p><ol class='lessindent'>
4779 <li>Added support for <a href="foreignkeys.html">foreign key constraints</a>. Foreign key constraints
4780 are disabled by default. Use the <a href="pragma.html#pragma_foreign_keys">foreign_keys pragma</a> to turn them on.
4781 <li>Generalized the IS and IS NOT operators to take arbitrary expressions
4782 on their right-hand side.
4783 <li>The <a href="tclsqlite.html">TCL Interface</a> has been enhanced to use the
4784 <a href="http://www.tcl-lang.org/cgi-bin/tct/tip/322.html">Non-Recursive Engine (NRE)</a>
4785 interface to the TCL interpreter when linked against TCL 8.6 or later.
4786 <li>Fix a bug introduced in 3.6.18 that can lead to a segfault when an
4787 attempt is made to write on a read-only database.
4788
4789 </ol></p>
4790 <a name="version_3_6_18"></a>
4791 <h3>2009-09-11 (3.6.18)</h3><p><ol class='lessindent'>
4792 <li>Versioning of the SQLite source code has transitioned from CVS to
4793 <a href="http://www.fossil-scm.org/">Fossil</a>.
4794 <li>Query planner enhancements.
4795 <li>The <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a> compile-time option causes the <a href="lang_analyze.html">ANALYZE</a>
4796 command to collect a small histogram of each index, to help SQLite better
4797 select among competing range query indices.
4798 <li>Recursive triggers can be enabled using the <a href="pragma.html#pragma_recursive_triggers">PRAGMA recursive_triggers</a>
4799 statement.
4800 <li>Delete triggers fire when rows are removed due to a
4801 <a href="lang_conflict.html">REPLACE conflict resolution</a>. This feature is only
4802 enabled when recursive triggers are enabled.
4803 <li>Added the <a href="c3ref/c_open_autoproxy.html">SQLITE_OPEN_SHAREDCACHE</a> and <a href="c3ref/c_open_autoproxy.html">SQLITE_OPEN_PRIVATECACHE</a>
4804 flags for <a href="c3ref/open.html">sqlite3_open_v2()</a> used to override the global
4805 <a href="sharedcache.html">shared cache mode</a> settings for individual database connections.
4806 <li>Added improved version identification features:
4807 C-Preprocessor macro <a href="c3ref/c_source_id.html">SQLITE_SOURCE_ID</a>,
4808 C/C++ interface <a href="c3ref/libversion.html">sqlite3_sourceid()</a>, and SQL function <a href="lang_corefunc.html#sqlite_source_id">sqlite_source_id()</a>.
4809 <li>Obscure bug fix on triggers
4810 (<a href="https://www.sqlite.org/src/info/efc02f9779">&#91;efc02f9779&#93;</a>).
4811
4812 </ol></p>
4813 <a name="version_3_6_17"></a>
4814 <h3>2009-08-10 (3.6.17)</h3><p><ol class='lessindent'>
4815 <li>Expose the <a href="c3ref/stricmp.html">sqlite3_strnicmp()</a> interface for use by extensions and
4816 applications.
4817 <li>Remove the restriction on <a href="vtab.html">virtual tables</a> and <a href="sharedcache.html">shared cache mode</a>.
4818 Virtual tables and shared cache can now be used at the same time.
4819 <li>Many code simplifications and obscure bug fixes in support of
4820 providing <a href="testing.html#coverage">100% branch test coverage</a>.
4821
4822 </ol></p>
4823 <a name="version_3_6_16"></a>
4824 <h3>2009-06-27 (3.6.16)</h3><p><ol class='lessindent'>
4825 <li>Fix a bug (ticket #3929) that occasionally causes INSERT or UPDATE
4826 operations to fail on an indexed table that has a self-modifying trigger.
4827 <li>Other minor bug fixes and performance optimizations.
4828
4829 </ol></p>
4830 <a name="version_3_6_15"></a>
4831 <h3>2009-06-15 (3.6.15)</h3><p><ol class='lessindent'>
4832 <li>Refactor the internal representation of SQL expressions so that they
4833 use less memory on embedded platforms.
4834 <li>Reduce the amount of stack space used
4835 <li>Fix an 64-bit alignment bug on HP/UX and Sparc
4836 <li>The <a href="c3ref/create_function.html">sqlite3_create_function()</a> family of interfaces now return
4837 <a href="rescode.html#misuse">SQLITE_MISUSE</a> instead of <a href="rescode.html#error">SQLITE_ERROR</a> when passed invalid
4838 parameter combinations.
4839 <li>When new tables are created using CREATE TABLE ... AS SELECT ... the
4840 datatype of the columns is the simplified SQLite datatype (TEXT, INT,
4841 REAL, NUMERIC, or BLOB) instead of a copy of the original datatype from
4842 the source table.
4843 <li>Resolve race conditions when checking for a hot rollback journal.
4844 <li>The <a href="c3ref/initialize.html">sqlite3_shutdown()</a> interface frees all mutexes under windows.
4845 <li>Enhanced robustness against corrupt database files
4846 <li>Continuing improvements to the test suite and fixes to obscure
4847 bugs and inconsistencies that the test suite improvements are
4848 uncovering.
4849
4850 </ol></p>
4851 <a name="version_3_6_14_2"></a>
4852 <h3>2009-05-25 (3.6.14.2)</h3><p><ol class='lessindent'>
4853 <li>Fix a code generator bug introduced in <a href="#version_3_6_14">version 3.6.14</a>. This bug
4854 can cause incorrect query results under obscure circumstances.
4855 Ticket #3879.
4856
4857 </ol></p>
4858 <a name="version_3_6_14_1"></a>
4859 <h3>2009-05-19 (3.6.14.1)</h3><p><ol class='lessindent'>
4860 <li>Fix a bug in <a href="lang_aggfunc.html#group_concat">group_concat()</a>, ticket #3841
4861 <li>Fix a performance bug in the pager cache, ticket #3844
4862 <li>Fix a bug in the <a href="c3ref/backup.html">sqlite3_backup</a> implementation that can lead
4863 to a corrupt backup database. Ticket #3858.
4864
4865 </ol></p>
4866 <a name="version_3_6_14"></a>
4867 <h3>2009-05-07 (3.6.14)</h3><p><ol class='lessindent'>
4868 <li>Added the optional <a href="asyncvfs.html">asynchronous VFS</a> module.</li>
4869 <li>Enhanced the query optimizer so that <a href="vtab.html">virtual tables</a> are able to
4870 make use of OR and IN operators in the WHERE clause.</li>
4871 <li>Speed improvements in the btree and pager layers.</li>
4872 <li>Added the <a href="compile.html#have_isnan">SQLITE_HAVE_ISNAN</a> compile-time option which will cause
4873 the isnan() function from the standard math library to be used instead
4874 of SQLite's own home-brew NaN checker.</li>
4875 <li>Countless minor bug fixes, documentation improvements, new and
4876 improved test cases, and code simplifications and cleanups.</p>
4877
4878 </ol></p>
4879 <a name="version_3_6_13"></a>
4880 <h3>2009-04-13 (3.6.13)</h3><p><ol class='lessindent'>
4881 <li>Fix a bug in <a href="#version_3_6_12">version 3.6.12</a> that causes a segfault when running
4882 a count(*) on the sqlite_master table of an empty database. Ticket #3774.
4883 <li>Fix a bug in <a href="#version_3_6_12">version 3.6.12</a> that causes a segfault that when
4884 inserting into a table using a DEFAULT value where there is a
4885 function as part of the DEFAULT value expression. Ticket #3791.
4886 <li>Fix data structure alignment issues on Sparc. Ticket #3777.
4887 <li>Other minor bug fixes.
4888
4889 </ol></p>
4890 <a name="version_3_6_12"></a>
4891 <h3>2009-03-31 (3.6.12)</h3><p><ol class='lessindent'>
4892 <li>Fixed a bug that caused database corruption when an <a href="pragma.html#pragma_incremental_vacuum">incremental_vacuum</a> is
4893 rolled back in an in-memory database. Ticket #3761.
4894 <li>Added the <a href="c3ref/unlock_notify.html">sqlite3_unlock_notify()</a> interface.
4895 <li>Added the <a href="pragma.html#pragma_reverse_unordered_selects">reverse_unordered_selects pragma</a>.
4896 <li>The default page size on windows is automatically adjusted to match the
4897 capabilities of the underlying filesystem.
4898 <li>Add the new ".genfkey" command in the <a href="cli.html">CLI</a> for generating triggers to
4899 implement foreign key constraints.
4900 <li>Performance improvements for "count(*)" queries.
4901 <li>Reduce the amount of heap memory used, especially by TRIGGERs.
4902 <li>
4903
4904 </ol></p>
4905 <a name="version_3_6_11"></a>
4906 <h3>2009-02-18 (3.6.11)</h3><p><ol class='lessindent'>
4907 <li>Added the <a href="c3ref/backup_finish.html#sqlite3backupinit">hot-backup interface</a>.
4908 <li>Added new commands ".backup" and ".restore" to the <a href="cli.html">CLI</a>.
4909 <li>Added new methods <a href="tclsqlite.html#backup">backup</a> and
4910 <a href="tclsqlite.html#restore">restore</a> to the TCL interface.
4911 <li>Improvements to the <a href="syntaxdiagrams.html">syntax bubble
4912 diagrams</a>
4913 <li>Various minor bug fixes
4914
4915 </ol></p>
4916 <a name="version_3_6_10"></a>
4917 <h3>2009-01-15 (3.6.10)</h3><p><ol class='lessindent'>
4918 <li>Fix a cache coherency problem that could lead to database corruption.
4919 Ticket #3584.
4920
4921 </ol></p>
4922 <a name="version_3_6_9"></a>
4923 <h3>2009-01-14 (3.6.9)</h3><p><ol class='lessindent'>
4924 <li>Fix two bugs, which when combined might result in incorrect
4925 query results. Both bugs were harmless by themselves; only when
4926 they team up do they cause problems. Ticket #3581.
4927
4928 </ol></p>
4929 <a name="version_3_6_8"></a>
4930 <h3>2009-01-12 (3.6.8)</h3><p><ol class='lessindent'>
4931 <li>Added support for <a href="lang_savepoint.html">nested transactions</a></li>
4932 <li>Enhanced the query optimizer so that it is able to use
4933 multiple indices to efficiently process
4934 <a href="optoverview.html#or_opt">OR-connected constraints</a>
4935 in a WHERE clause.</li>
4936 <li>Added support for parentheses in FTS3 query patterns using the
4937 <a href="compile.html#enable_fts3_parenthesis">SQLITE_ENABLE_FTS3_PARENTHESIS</a> compile-time option.</li>
4938
4939 </ol></p>
4940 <a name="version_3_6_7"></a>
4941 <h3>2008-12-16 (3.6.7)</h3><p><ol class='lessindent'>
4942 <li>Reorganize the Unix interface in os_unix.c</li>
4943 <li>Added support for "Proxy Locking" on Mac OS X.</li>
4944 <li>Changed the prototype of the <a href="c3ref/auto_extension.html">sqlite3_auto_extension()</a> interface in a
4945 way that is backwards compatible but which might cause warnings in new
4946 builds of applications that use that interface.</li>
4947 <li>Changed the signature of the xDlSym method of the <a href="c3ref/vfs.html">sqlite3_vfs</a> object
4948 in a way that is backwards compatible but which might cause
4949 compiler warnings.</li>
4950 <li>Added superfluous casts and variable initializations in order
4951 to suppress nuisance compiler warnings.</li>
4952 <li>Fixes for various minor bugs.</li>
4953
4954 </ol></p>
4955 <a name="version_3_6_6_2"></a>
4956 <h3>2008-11-26 (3.6.6.2)</h3><p><ol class='lessindent'>
4957 <li>Fix a bug in the b-tree delete algorithm that seems like it might be
4958 able to cause database corruption. The bug was first introduced in
4959 <a href="#version_3_6_6">version 3.6.6</a> by check-in &#91;5899&#93; on 2008-11-13.</li>
4960 <li>Fix a memory leak that can occur following a disk I/O error.</li>
4961
4962 </ol></p>
4963 <a name="version_3_6_6_1"></a>
4964 <h3>2008-11-22 (3.6.6.1)</h3><p><ol class='lessindent'>
4965 <li>Fix a bug in the page cache that can lead database corruption following
4966 a rollback. This bug was first introduced in <a href="#version_3_6_4">version 3.6.4</a>.</li>
4967 <li>Two other very minor bug fixes</li>
4968
4969 </ol></p>
4970 <a name="version_3_6_6"></a>
4971 <h3>2008-11-19 (3.6.6)</h3><p><ol class='lessindent'>
4972 <li>Fix a #define that prevented <a href="malloc.html#memsys5">memsys5</a> from compiling</li>
4973 <li>Fix a problem in the virtual table commit mechanism that was causing
4974 a crash in FTS3. Ticket #3497.</li>
4975 <li>Add the <a href="c3ref/pcache_methods2.html">application-defined page cache</a></li>
4976 <li>Added built-in support for VxWorks</li>
4977
4978 </ol></p>
4979 <a name="version_3_6_5"></a>
4980 <h3>2008-11-12 (3.6.5)</h3><p><ol class='lessindent'>
4981 <li>Add the MEMORY option to the <a href="pragma.html#pragma_journal_mode">journal_mode pragma</a>.</li>
4982 <li>Added the <a href="c3ref/db_mutex.html">sqlite3_db_mutex()</a> interface.</li>
4983 <li>Added the <a href="compile.html#omit_truncate_optimization">SQLITE_OMIT_TRUNCATE_OPTIMIZATION</a> compile-time option.</li>
4984 <li>Fixed the <a href="lang_delete.html#truncateopt">truncate optimization</a> so that <a href="c3ref/changes.html">sqlite3_changes()</a> and
4985 <a href="c3ref/total_changes.html">sqlite3_total_changes()</a> interfaces and the <a href="pragma.html#pragma_count_changes">count_changes pragma</a>
4986 return the correct values.</li>
4987 <li>Added the <a href="c3ref/errcode.html">sqlite3_extended_errcode()</a> interface.</li>
4988 <li>The <a href="lang_transaction.html">COMMIT</a> command now succeeds even if there are pending queries.
4989 It returns <a href="rescode.html#busy">SQLITE_BUSY</a> if there are pending incremental BLOB I/O requests.
4990 <li>The error code is changed to <a href="rescode.html#busy">SQLITE_BUSY</a> (instead of <a href="rescode.html#error">SQLITE_ERROR</a>)
4991 when an attempt is made to <a href="lang_transaction.html">ROLLBACK</a> while one or more queries are
4992 still pending.</li>
4993 <li>Drop all support for the <a href="malloc.html#memsysx">experimental memory allocators</a> memsys4 and
4994 memsys6.</li>
4995 <li>Added the <a href="compile.html#zero_malloc">SQLITE_ZERO_MALLOC</a> compile-time option.</li>
4996
4997 </ol></p>
4998 <a name="version_3_6_4"></a>
4999 <h3>2008-10-15 (3.6.4)</h3><p><ol class='lessindent'>
5000 <li>Add option support for LIMIT and ORDER BY clauses on <a href="lang_delete.html">DELETE</a> and
5001 <a href="lang_update.html">UPDATE</a> statements. Only works if SQLite is compiled with
5002 <a href="compile.html#enable_update_delete_limit">SQLITE_ENABLE_UPDATE_DELETE_LIMIT</a>.
5003 <li>Added the <a href="c3ref/stmt_status.html">sqlite3_stmt_status()</a> interface for performance monitoring.</li>
5004 <li>Add the <a href="lang_indexedby.html">INDEXED BY</a> clause.</li>
5005 <li>The LOCKING_STYLE extension is now enabled by default on Mac OS X</li>
5006 <li>Added the TRUNCATE option to <a href="pragma.html#pragma_journal_mode">PRAGMA journal_mode</a></li>
5007 <li>Performance enhancements to tree balancing logic in the B-Tree layer.</li>
5008 <li>Added the
5009 <a href="https://www.sqlite.org/src/finfo?name=tool/genfkey.c">
5010 source code</a> and
5011 <a href="https://www.sqlite.org/src/finfo?name=tool/genfkey.README">
5012 documentation</a> for the <b>genfkey</b> program for automatically generating
5013 triggers to enforce foreign key constraints.</li>
5014 <li>Added the <a href="compile.html#omit_truncate_optimization">SQLITE_OMIT_TRUNCATE_OPTIMIZATION</a> compile-time option.</li>
5015 <li>The <a href="lang.html">SQL language documentation</a> is converted to use
5016 <a href="syntaxdiagrams.html">syntax diagrams</a> instead of BNF.</li>
5017 <li>Other minor bug fixes</li>
5018
5019 </ol></p>
5020 <a name="version_3_6_3"></a>
5021 <h3>2008-09-22 (3.6.3)</h3><p><ol class='lessindent'>
5022 <li>Fix for a bug in the SELECT DISTINCT logic that was introduced by the
5023 prior version.</li>
5024 <li>Other minor bug fixes</li>
5025
5026 </ol></p>
5027 <a name="version_3_6_2"></a>
5028 <h3>2008-08-30 (3.6.2)</h3><p><ol class='lessindent'>
5029 <li>Split the pager subsystem into separate pager and pcache subsystems.</li>
5030 <li>Factor out identifier resolution procedures into separate files.</li>
5031 <li>Bug fixes</li>
5032
5033 </ol></p>
5034 <a name="version_3_6_1"></a>
5035 <h3>2008-08-06 (3.6.1)</h3><p><ol class='lessindent'>
5036 <li>Added the <a href="malloc.html#lookaside">lookaside memory allocator</a> for a speed improvement in excess
5037 of 15% on some workloads. (Your mileage may vary.)</li>
5038 <li>Added the <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiglookaside">SQLITE_CONFIG_LOOKASIDE</a> verb to <a href="c3ref/config.html">sqlite3_config()</a> to control
5039 the default lookaside configuration.</li>
5040 <li>Added verbs <a href="c3ref/c_status_malloc_count.html#sqlitestatuspagecachesize">SQLITE_STATUS_PAGECACHE_SIZE</a> and
5041 <a href="c3ref/c_status_malloc_count.html#sqlitestatusscratchsize">SQLITE_STATUS_SCRATCH_SIZE</a> to the <a href="c3ref/status.html">sqlite3_status()</a> interface.
5042 <li>Modified <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a> and <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigscratch">SQLITE_CONFIG_SCRATCH</a> to remove
5043 the "+4" magic number in the buffer size computation.
5044 <li>Added the <a href="c3ref/db_config.html">sqlite3_db_config()</a> and <a href="c3ref/db_status.html">sqlite3_db_status()</a> interfaces for
5045 controlling and monitoring the lookaside allocator separately on each
5046 <a href="c3ref/sqlite3.html">database connection</a>.</li>
5047 <li>Numerous other performance enhancements</li>
5048 <li>Miscellaneous minor bug fixes</li>
5049
5050 </ol></p>
5051 <h3>2008-07-16 (3.6.0 beta)</h3><p><ol class='lessindent'>
5052 <li>Modifications to the <a href="c3ref/vfs.html">virtual file system</a> interface
5053 to support a wider range of embedded systems.
5054 See <a href="35to36.html">35to36.html</a> for additional information.
5055 <font color="red">*** Potentially incompatible change ***</font></li>
5056 <li>All C-preprocessor macros used to control compile-time options
5057 now begin with the prefix "SQLITE_". This may require changes to
5058 applications that compile SQLite using their own makefiles and with
5059 custom compile-time options, hence we mark this as a
5060 <font color="red">*** Potentially incompatible change ***</font></li>
5061 <li>The SQLITE_MUTEX_APPDEF compile-time option is no longer supported.
5062 Alternative mutex implementations can now be added at run-time using
5063 the <a href="c3ref/config.html">sqlite3_config()</a> interface with the <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigmutex">SQLITE_CONFIG_MUTEX</a> verb.
5064 <font color="red">*** Potentially incompatible change ***</font></li>
5065 <li>The handling of IN and NOT IN operators that contain a NULL on their
5066 right-hand side expression is brought into compliance with the SQL
5067 standard and with other SQL database engines. This is a bug fix,
5068 but as it has the potential to break legacy applications that depend
5069 on the older buggy behavior, we mark that as a
5070 <font color="red">*** Potentially incompatible change ***</font></li>
5071 <li>The result column names generated for compound subqueries have been
5072 simplified to show only the name of the column of the original table and
5073 omit the table name. This makes SQLite operate more like other SQL
5074 database engines.</li>
5075 <li>Added the <a href="c3ref/config.html">sqlite3_config()</a> interface for doing run-time configuration
5076 of the entire SQLite library.</li>
5077 <li>Added the <a href="c3ref/status.html">sqlite3_status()</a> interface used for querying run-time status
5078 information about the overall SQLite library and its subsystems.</li>
5079 <li>Added the <a href="c3ref/initialize.html">sqlite3_initialize()</a> and <a href="c3ref/initialize.html">sqlite3_shutdown()</a> interfaces.</li>
5080 <li>The <a href="c3ref/c_open_autoproxy.html">SQLITE_OPEN_NOMUTEX</a> option was added to <a href="c3ref/open.html">sqlite3_open_v2()</a>.</li>
5081 <li>Added the <a href="pragma.html#pragma_page_count">PRAGMA page_count</a> command.</li>
5082 <li>Added the <a href="c3ref/next_stmt.html">sqlite3_next_stmt()</a> interface.</li>
5083 <li>Added a new <a href="rtree.html">R*Tree virtual table</a></li>
5084
5085 </ol></p>
5086 <a name="version_3_5_9"></a>
5087 <h3>2008-05-14 (3.5.9)</h3><p><ol class='lessindent'>
5088 <li>Added <em>experimental</em>
5089 support for the <a href="pragma.html#pragma_journal_mode">journal_mode</a> PRAGMA and persistent journal.</li>
5090 <li><a href="pragma.html#pragma_journal_mode">Journal mode PERSIST</a> is the default behavior in
5091 <a href="pragma.html#pragma_locking_mode">exclusive locking mode</a>.</li>
5092 <li>Fix a performance regression on LEFT JOIN (see ticket #3015)
5093 that was mistakenly introduced in <a href="#version_3_5_8">version 3.5.8</a>.</li>
5094 <li>Performance enhancement: Reengineer the internal routines used
5095 to interpret and render variable-length integers.</li>
5096 <li>Fix a buffer-overrun problem in <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> which occurs
5097 when a string without a zero-terminator is passed to "%.*s".</li>
5098 <li>Always convert IEEE floating point NaN values into NULL during
5099 processing. (Ticket #3060)</li>
5100 <li>Make sure that when a connection blocks on a RESERVED lock that
5101 it is able to continue after the lock is released. (Ticket #3093)</li>
5102 <li>The "configure" scripts should now automatically configure Unix
5103 systems for large file support. Improved error messages for
5104 when large files are encountered and large file support is disabled.</li>
5105 <li>Avoid cache pages leaks following disk-full or I/O errors</li>
5106 <li>And, many more minor bug fixes and performance enhancements....</li>
5107
5108 </ol></p>
5109 <a name="version_3_5_8"></a>
5110 <h3>2008-04-16 (3.5.8)</h3><p><ol class='lessindent'>
5111 <li>Expose SQLite's internal pseudo-random number generator (PRNG)
5112 via the <a href="c3ref/randomness.html">sqlite3_randomness()</a> interface</li>
5113 <li>New interface <a href="c3ref/context_db_handle.html">sqlite3_context_db_handle()</a> that returns the
5114 <a href="c3ref/sqlite3.html">database connection</a> handle that has invoked an application-defined
5115 SQL function.</li>
5116 <li>New interface <a href="c3ref/limit.html">sqlite3_limit()</a> allows size and length limits to be
5117 set on a per-connection basis and at run-time.</li>
5118 <li>Improved crash-robustness: write the database page size into the rollback
5119 journal header.</li>
5120 <li>Allow the <a href="lang_vacuum.html">VACUUM</a> command to change the page size of a database file.</li>
5121 <li>The xAccess() method of the VFS is allowed to return -1 to signal
5122 a memory allocation error.</li>
5123 <li>Performance improvement: The OP_IdxDelete opcode uses unpacked records,
5124 obviating the need for one OP_MakeRecord opcode call for each index
5125 record deleted.</li>
5126 <li>Performance improvement: Constant subexpressions are factored out of
5127 loops.</li>
5128 <li>Performance improvement: Results of OP_Column are reused rather than
5129 issuing multiple OP_Column opcodes.</li>
5130 <li>Fix a bug in the RTRIM collating sequence.</li>
5131 <li>Fix a bug in the SQLITE_SECURE_DELETE option that was causing
5132 Firefox crashes. Make arrangements to always test SQLITE_SECURE_DELETE
5133 prior to each release.</li>
5134 <li>Other miscellaneous performance enhancements.</li>
5135 <li>Other miscellaneous minor bug fixes.</li>
5136
5137 </ol></p>
5138 <a name="version_3_5_7"></a>
5139 <h3>2008-03-17 (3.5.7)</h3><p><ol class='lessindent'>
5140 <li>Fix a bug (ticket #2927) in the register allocation for
5141 compound selects - introduced by the new VM code in version 3.5.5.</li>
5142 <li>ALTER TABLE uses double-quotes instead of single-quotes for quoting
5143 filenames.</li>
5144 <li>Use the WHERE clause to reduce the size of a materialized VIEW in
5145 an UPDATE or DELETE statement. (Optimization)</li>
5146 <li>Do not apply the flattening optimization if the outer query is an
5147 aggregate and the inner query contains ORDER BY. (Ticket #2943)</li>
5148 <li>Additional OS/2 updates</li>
5149 <li>Added an experimental power-of-two, first-fit memory allocator.</li>
5150 <li>Remove all instances of sprintf() from the code</li>
5151 <li>Accept "Z" as the zulu timezone at the end of date strings</li>
5152 <li>Fix a bug in the LIKE optimizer that occurs when the last character
5153 before the first wildcard is an upper-case "Z"</li>
5154 <li>Added the "bitvec" object for keeping track of which pages have
5155 been journalled. Improves speed and reduces memory consumption, especially
5156 for large database files.</li>
5157 <li>Get the SQLITE_ENABLE_LOCKING_STYLE macro working again on Mac OS X.</li>
5158 <li>Store the statement journal in the temporary file directory instead of
5159 collocated with the database file.</li>
5160 <li>Many improvements and cleanups to the configure script</li>
5161
5162 </ol></p>
5163 <a name="version_3_5_6"></a>
5164 <h3>2008-02-06 (3.5.6)</h3><p><ol class='lessindent'>
5165 <li>Fix a bug (ticket #2913)
5166 that prevented virtual tables from working in a LEFT JOIN.
5167 The problem was introduced into shortly before the 3.5.5 release.</li>
5168 <li>Bring the OS/2 porting layer up-to-date.</li>
5169 <li>Add the new <a href="c3ref/result_blob.html">sqlite3_result_error_code()</a> API and use it in the
5170 implementation of <a href="lang_attach.html">ATTACH</a> so that proper error codes are returned
5171 when an <a href="lang_attach.html">ATTACH</a> fails.</li>
5172
5173 </ol></p>
5174 <a name="version_3_5_5"></a>
5175 <h3>2008-01-31 (3.5.5)</h3><p><ol class='lessindent'>
5176 <li>Convert the underlying virtual machine to be a register-based machine
5177 rather than a stack-based machine. The only user-visible change
5178 is in the output of EXPLAIN.</li>
5179 <li>Add the build-in RTRIM collating sequence.</li>
5180
5181 </ol></p>
5182 <a name="version_3_5_4"></a>
5183 <h3>2007-12-14 (3.5.4)</h3><p><ol class='lessindent'>
5184 <li>Fix a critical bug in UPDATE or DELETE that occurs when an
5185 OR REPLACE clause or a trigger causes rows in the same table to
5186 be deleted as side effects. (See ticket #2832.) The most likely
5187 result of this bug is a segmentation fault, though database
5188 corruption is a possibility.</li>
5189 <li>Bring the processing of ORDER BY into compliance with the
5190 SQL standard for case where a result alias and a table column name
5191 are in conflict. Correct behavior is to prefer the result alias.
5192 Older versions of SQLite incorrectly picked the table column.
5193 (See ticket #2822.)</li>
5194 <li>The <a href="lang_vacuum.html">VACUUM</a> command preserves
5195 the setting of the
5196 <a href="pragma.html#pragma_legacy_file_format">legacy_file_format pragma</a>.
5197 (Ticket #2804.)</li>
5198 <li>Productize and officially support the group_concat() SQL function.</li>
5199 <li>Better optimization of some IN operator expressions.</li>
5200 <li>Add the ability to change the
5201 <a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> status of a
5202 database by setting the auto_vaccum pragma and VACUUMing the database.</li>
5203 <li>Prefix search in FTS3 is much more efficient.</li>
5204 <li>Relax the SQL statement length restriction in the CLI so that
5205 the ".dump" output of databases with very large BLOBs and strings can
5206 be played back to recreate the database.</li>
5207 <li>Other small bug fixes and optimizations.</li>
5208
5209 </ol></p>
5210 <a name="version_3_5_3"></a>
5211 <h3>2007-11-27 (3.5.3)</h3><p><ol class='lessindent'>
5212 <li>Move website and documentation files out of the source tree into
5213 a <a href="https://www.sqlite.org/docsrc/">separate CM system</a>.
5214 <li>Fix a long-standing bug in INSERT INTO ... SELECT ... statements
5215 where the SELECT is compound.
5216 <li>Fix a long-standing bug in RAISE(IGNORE) as used in BEFORE triggers.
5217 <li>Fixed the operator precedence for the ~ operator.
5218 <li>On Win32, do not return an error when attempting to delete a file
5219 that does not exist.
5220 <li>Allow collating sequence names to be quoted.
5221 <li>Modify the TCL interface to use <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>.
5222 <li>Fix multiple bugs that can occur following a malloc() failure.
5223 <li><a href="c3ref/step.html">sqlite3_step()</a> returns <a href="rescode.html#misuse">SQLITE_MISUSE</a> instead of crashing when
5224 called with a NULL parameter.
5225 <li>FTS3 now uses the SQLite memory allocator exclusively. The
5226 FTS3 amalgamation can now be appended to the SQLite amalgamation to
5227 generate a super-amalgamation containing both.
5228 <li>The DISTINCT keyword now will sometimes use an INDEX if an
5229 appropriate index is available and the optimizer thinks its use
5230 might be advantageous.
5231
5232 </ol></p>
5233 <a name="version_3_5_2"></a>
5234 <h3>2007-11-05 (3.5.2)</h3><p><ol class='lessindent'>
5235 <li>Dropped support for the <a href="compile.html#omitfeatures">SQLITE_OMIT_MEMORY_ALLOCATION</a> compile-time
5236 option.
5237 <li>Always open files using FILE_FLAG_RANDOM_ACCESS under Windows.
5238 <li>The 3rd parameter of the built-in SUBSTR() function is now optional.
5239 <li>Bug fix: do not invoke the authorizer when reparsing the schema after
5240 a schema change.
5241 <li>Added the experimental malloc-free memory allocator in mem3.c.
5242 <li>Virtual machine stores 64-bit integer and floating point constants
5243 in binary instead of text for a performance boost.
5244 <li>Fix a race condition in test_async.c.
5245 <li>Added the ".timer" command to the CLI
5246
5247 </ol></p>
5248 <a name="version_3_5_1"></a>
5249 <h3>2007-10-04 (3.5.1)</h3><p><ol class='lessindent'>
5250 <li><i><b>Nota Bene:</b> We are not using terms "alpha" or "beta" on this
5251 release because the code is stable and because if we use those terms,
5252 nobody will upgrade. However, we still reserve the right to make
5253 incompatible changes to the new VFS interface in future releases.</i></li>
5254
5255 <li>Fix a bug in the handling of <a href="rescode.html#full">SQLITE_FULL</a> errors that could lead
5256 to database corruption. Ticket #2686.
5257 <li>The test_async.c drive now does full file locking and works correctly
5258 when used simultaneously by multiple processes on the same database.
5259 <li>The CLI ignores whitespace (including comments) at the end of lines
5260 <li>Make sure the query optimizer checks dependencies on all terms of
5261 a compound SELECT statement. Ticket #2640.
5262 <li>Add demonstration code showing how to build a VFS for a raw
5263 mass storage without a filesystem.
5264 <li>Added an output buffer size parameter to the xGetTempname() method
5265 of the VFS layer.
5266 <li>Sticky <a href="rescode.html#full">SQLITE_FULL</a> or <a href="rescode.html#ioerr">SQLITE_IOERR</a> errors in the pager are reset
5267 when a new transaction is started.
5268
5269 </ol></p>
5270 <a name="version_3_5_0"></a>
5271 <h3>2007-09-04 (3.5.0) alpha</h3><p><ol class='lessindent'>
5272 <li>Redesign the OS interface layer. See
5273 <a href="34to35.html">34to35.html</a> for details.
5274 <font color="red">*** Potentially incompatible change ***</font>
5275 <li>The <a href="c3ref/release_memory.html">sqlite3_release_memory()</a>, <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit()</a>,
5276 and <a href="c3ref/enable_shared_cache.html">sqlite3_enable_shared_cache()</a> interfaces now work cross all
5277 threads in the process, not just the single thread in which they
5278 are invoked.
5279 <font color="red">*** Potentially incompatible change ***</font>
5280 <li>Added the <a href="c3ref/open.html">sqlite3_open_v2()</a> interface.
5281 <li>Reimplemented the memory allocation subsystem and made it
5282 replaceable at compile-time.
5283 <li>Created a new mutex subsystem and made it replicable at
5284 compile-time.
5285 <li>The same database connection may now be used simultaneously by
5286 separate threads.
5287
5288 </ol></p>
5289 <a name="version_3_4_2"></a>
5290 <h3>2007-08-13 (3.4.2)</h3><p><ol class='lessindent'>
5291 <li>Fix a database corruption bug that might occur if a ROLLBACK command
5292 is executed in <a href="pragma.html#pragma_auto_vacuum">auto-vacuum mode</a>
5293 and a very small <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit</a> is set.
5294 Ticket #2565.
5295
5296 <li>Add the ability to run a full regression test with a small
5297 <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit</a>.
5298
5299 <li>Fix other minor problems with using small soft heap limits.
5300
5301 <li>Work-around for
5302 <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32575">GCC bug 32575</a>.
5303
5304 <li>Improved error detection of misused aggregate functions.
5305
5306 <li>Improvements to the amalgamation generator script so that all symbols
5307 are prefixed with either SQLITE_PRIVATE or SQLITE_API.
5308
5309 </ol></p>
5310 <a name="version_3_4_1"></a>
5311 <h3>2007-07-20 (3.4.1)</h3><p><ol class='lessindent'>
5312 <li>Fix a bug in <a href="lang_vacuum.html">VACUUM</a> that can lead to
5313 database corruptio if two
5314 processes are connected to the database at the same time and one
5315 VACUUMs then the other then modifies the database.</li>
5316 <li>The expression "+column" is now considered the same as "column"
5317 when computing the collating sequence to use on the expression.</li>
5318 <li>In the <a href="tclsqlite.html">TCL language interface</a>,
5319 "@variable" instead of "$variable" always binds as a blob.</li>
5320 <li>Added <a href="pragma.html#pragma_freelist_count">PRAGMA freelist_count</a>
5321 for determining the current size of the freelist.</li>
5322 <li>The <a href="pragma.html#pragma_auto_vacuum">
5323 PRAGMA auto_vacuum=incremental</a> setting is now persistent.</li>
5324 <li>Add FD_CLOEXEC to all open files under Unix.</li>
5325 <li>Fix a bug in the <a href="optoverview.html#minmax">
5326 min()/max() optimization</a> when applied to
5327 descending indices.</li>
5328 <li>Make sure the TCL language interface works correctly with 64-bit
5329 integers on 64-bit machines.</li>
5330 <li>Allow the value -9223372036854775808 as an integer literal in SQL
5331 statements.</li>
5332 <li>Add the capability of "hidden" columns in virtual tables.</li>
5333 <li>Use the macro SQLITE_PRIVATE (defaulting to "static") on all
5334 internal functions in the amalgamation.</li>
5335 <li>Add pluggable tokenizers and <a href="https://icu.unicode.org">ICU</a>
5336 tokenization support to FTS2</li>
5337 <li>Other minor bug fixes and documentation enhancements</li>
5338
5339 </ol></p>
5340 <a name="version_3_4_0"></a>
5341 <h3>2007-06-18 (3.4.0)</h3><p><ol class='lessindent'>
5342 <li>Fix a bug that can lead to database corruption if an <a href="rescode.html#busy">SQLITE_BUSY</a> error
5343 occurs in the middle of an explicit transaction and that transaction
5344 is later committed. Ticket #2409.
5345 <li>Fix a bug that can lead to database corruption if autovacuum mode is
5346 on and a malloc() failure follows a CREATE TABLE or CREATE INDEX statement
5347 which itself follows a cache overflow inside a transaction. See
5348 ticket #2418.
5349 </li>
5350 <li>Added explicit <a href="limits.html">upper bounds</a> on the sizes and
5351 quantities of things SQLite can process. This change might cause
5352 compatibility problems for
5353 applications that use SQLite in the extreme, which is why the current
5354 release is 3.4.0 instead of 3.3.18.</li>
5355 <li>Added support for <a href="c3ref/blob_open.html">Incremental BLOB I/O</a>.</li>
5356 <li>Added the <a href="c3ref/bind_blob.html">sqlite3_bind_zeroblob()</a> API</a>
5357 and the <a href="lang_corefunc.html#zeroblob">zeroblob()</a> SQL function.</li>
5358 <li>Added support for <a href="pragma.html#pragma_incremental_vacuum">
5359 Incremental Vacuum</a>.</li>
5360 <li>Added the SQLITE_MIXED_ENDIAN_64BIT_FLOAT compile-time option to support
5361 ARM7 processors with goofy endianness.</li>
5362 <li>Removed all instances of sprintf() and strcpy() from the core library.</li>
5363 <li>Added support for
5364 <a href="https://icu.unicode.org">International Components for Unicode (ICU)</a>
5365 to the full-text search extensions.
5366 <li>In the Windows OS driver, reacquire a SHARED lock if an attempt to
5367 acquire an EXCLUSIVE lock fails. Ticket #2354</li>
5368 <li>Fix the REPLACE() function so that it returns NULL if the second argument
5369 is an empty string. Ticket #2324.</li>
5370 <li>Document the hazards of type conversions in
5371 <a href="c3ref/column_blob.html">sqlite3_column_blob()</a>
5372 and related APIs. Fix unnecessary type conversions. Ticket #2321.</li>
5373 <li>Internationalization of the TRIM() function. Ticket #2323</li>
5374 <li>Use memmove() instead of memcpy() when moving between memory regions
5375 that might overlap. Ticket #2334</li>
5376 <li>Fix an optimizer bug involving subqueries in a compound SELECT that has
5377 both an ORDER BY and a LIMIT clause. Ticket #2339.</li>
5378 <li>Make sure the <a href="c3ref/mprintf.html">sqlite3_snprintf()</a>
5379 interface does not zero-terminate the buffer if the buffer size is
5380 less than 1. Ticket #2341</li>
5381 <li>Fix the built-in printf logic so that it prints "NaN" not "Inf" for
5382 floating-point NaNs. Ticket #2345</li>
5383 <li>When converting BLOB to TEXT, use the text encoding of the main database.
5384 Ticket #2349</li>
5385 <li>Keep the full precision of integers (if possible) when casting to
5386 NUMERIC. Ticket #2364</li>
5387 <li>Fix a bug in the handling of UTF16 codepoint 0xE000</li>
5388 <li>Consider explicit collate clauses when matching WHERE constraints
5389 to indices in the query optimizer. Ticket #2391</li>
5390 <li>Fix the query optimizer to correctly handle constant expressions in
5391 the ON clause of a LEFT JOIN. Ticket #2403</li>
5392 <li>Fix the query optimizer to handle rowid comparisons to NULL
5393 correctly. Ticket #2404</li>
5394 <li>Fix many potential segfaults that could be caused by malicious SQL
5395 statements.</li>
5396
5397 </ol></p>
5398 <a name="version_3_3_17"></a>
5399 <h3>2007-04-25 (3.3.17)</h3><p><ol class='lessindent'>
5400 <li>When the "write_version" value of the database header is larger than
5401 what the library understands, make the database read-only instead of
5402 unreadable.</li>
5403 <li>Other minor bug fixes</li>
5404
5405 </ol></p>
5406 <a name="version_3_3_16"></a>
5407 <h3>2007-04-18 (3.3.16)</h3><p><ol class='lessindent'>
5408 <li>Fix a bug that caused VACUUM to fail if NULLs appeared in a
5409 UNIQUE column.</li>
5410 <li>Reinstate performance improvements that were added in
5411 <a href="#version_3_3_14">Version 3.3.14</a>
5412 but regressed in <a href="#version_3_3_15">Version 3.3.15</a>.</li>
5413 <li>Fix problems with the handling of ORDER BY expressions on
5414 compound SELECT statements in subqueries.</li>
5415 <li>Fix a potential segfault when destroying locks on WinCE in
5416 a multi-threaded environment.</li>
5417 <li>Documentation updates.</li>
5418
5419 </ol></p>
5420 <a name="version_3_3_15"></a>
5421 <h3>2007-04-09 (3.3.15)</h3><p><ol class='lessindent'>
5422 <li>Fix a bug introduced in 3.3.14 that caused a rollback of
5423 CREATE TEMP TABLE to leave the database connection wedged.</li>
5424 <li>Fix a bug that caused an extra NULL row to be returned when
5425 a descending query was interrupted by a change to the database.</li>
5426 <li>The FOR EACH STATEMENT clause on a trigger now causes a syntax
5427 error. It used to be silently ignored.</li>
5428 <li>Fix an obscure and relatively harmless problem that might have caused
5429 a resource leak following an I/O error.</li>
5430 <li>Many improvements to the test suite. Test coverage now exceeded 98%</li>
5431
5432 </ol></p>
5433 <a name="version_3_3_14"></a>
5434 <h3>2007-04-02 (3.3.14)</h3><p><ol class='lessindent'>
5435 <li>Fix a bug (ticket #2273)
5436 that could cause a segfault when the IN operator
5437 is used one term of a two-column index and the right-hand side of
5438 the IN operator contains a NULL.</li>
5439 <li>Added a new OS interface method for determining the sector size
5440 of underlying media: sqlite3OsSectorSize().</li>
5441 <li>A new algorithm for statements of the form
5442 INSERT INTO <i>table1</i> SELECT * FROM <i>table2</i>
5443 is faster and reduces fragmentation. VACUUM uses statements of
5444 this form and thus runs faster and defragments better.</li>
5445 <li>Performance enhancements through reductions in disk I/O:
5446 <ol type='a'>
5447 <li>Do not read the last page of an overflow chain when
5448 deleting the row - just add that page to the freelist.</li>
5449 <li>Do not store pages being deleted in the
5450 rollback journal.</li>
5451 <li>Do not read in the (meaningless) content of
5452 pages extracted from the freelist.</li>
5453 <li>Do not flush the page cache (and thus avoiding
5454 a cache refill) unless another process changes the underlying
5455 database file.</li>
5456 <li>Truncate rather than delete the rollback journal when committing
5457 a transaction in exclusive access mode, or when committing the TEMP
5458 database.</li>
5459 </ol></li>
5460 <li>Added support for exclusive access mode using
5461 <a href="pragma.html#pragma_locking_mode">
5462 "PRAGMA locking_mode=EXCLUSIVE"</a></li>
5463 <li>Use heap space instead of stack space for large buffers in the
5464 pager - useful on embedded platforms with stack-space
5465 limitations.</li>
5466 <li>Add a makefile target "sqlite3.c" that builds an amalgamation containing
5467 the core SQLite library C code in a single file.</li>
5468 <li>Get the library working correctly when compiled
5469 with GCC option "-fstrict-aliasing".</li>
5470 <li>Removed the vestigal SQLITE_PROTOCOL error.</li>
5471 <li>Improvements to test coverage, other minor bugs fixed,
5472 memory leaks plugged,
5473 code refactored and/or recommended in places for easier reading.</li>
5474
5475 </ol></p>
5476 <a name="version_3_3_13"></a>
5477 <h3>2007-02-13 (3.3.13)</h3><p><ol class='lessindent'>
5478 <li>Add a "fragmentation" measurement in the output of sqlite3_analyzer.</li>
5479 <li>Add the COLLATE operator used to explicitly set the collating sequence
5480 used by an expression. This feature is considered experimental pending
5481 additional testing.</li>
5482 <li>Allow up to 64 tables in a join - the old limit was 32.</li>
5483 <li>Added two new experimental functions:
5484 <a href="lang_corefunc.html#randomblob">randomblob()</a> and
5485 <a href="lang_corefunc.html#hex">hex()</a>.
5486 Their intended use is to facilitate generating
5487 <a href="http://en.wikipedia.org/wiki/UUID">UUIDs</a>.
5488 </li>
5489 <li>Fix a problem where
5490 <a href="pragma.html#pragma_count_changes">PRAGMA count_changes</a> was
5491 causing incorrect results for updates on tables with triggers</li>
5492 <li>Fix a bug in the ORDER BY clause optimizer for joins where the
5493 left-most table in the join is constrained by a UNIQUE index.</li>
5494 <li>Fixed a bug in the "copy" method of the TCL interface.</li>
5495 <li>Bug fixes in fts1 and fts2 modules.</li>
5496
5497 </ol></p>
5498 <a name="version_3_3_12"></a>
5499 <h3>2007-01-27 (3.3.12)</h3><p><ol class='lessindent'>
5500 <li>Fix another bug in the IS NULL optimization that was added in
5501 version 3.3.9.</li>
5502 <li>Fix an assertion fault that occurred on deeply nested views.</li>
5503 <li>Limit the amount of output that
5504 <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>
5505 generates.</li>
5506 <li>Minor syntactic changes to support a wider variety of compilers.</li>
5507
5508 </ol></p>
5509 <a name="version_3_3_11"></a>
5510 <h3>2007-01-22 (3.3.11)</h3><p><ol class='lessindent'>
5511 <li>Fix another bug in the implementation of the new
5512 <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> API.
5513 We'll get it right eventually...</li>
5514 <li>Fix a bug in the IS NULL optimization that was added in version 3.3.9 -
5515 the bug was causing incorrect results on certain LEFT JOINs that included
5516 in the WHERE clause an IS NULL constraint for the right table of the
5517 LEFT JOIN.</li>
5518 <li>Make AreFileApisANSI() a no-op macro in WinCE since WinCE does not
5519 support this function.</li>
5520
5521 </ol></p>
5522 <a name="version_3_3_10"></a>
5523 <h3>2007-01-09 (3.3.10)</h3><p><ol class='lessindent'>
5524 <li>Fix bugs in the implementation of the new
5525 <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> API
5526 that can lead to segfaults.</li>
5527 <li>Fix 1-second round-off errors in the
5528 strftime() function</li>
5529 <li>Enhance the Windows OS layer to provide detailed error codes</li>
5530 <li>Work around a win2k problem so that SQLite can use single-character
5531 database file names</li>
5532 <li>The
5533 <a href="pragma.html#pragma_user_version">user_version</a> and
5534 <a href="pragma.html#pragma_schema_version">schema_version</a> pragmas
5535 correctly set their column names in the result set</li>
5536 <li>Documentation updates</li>
5537
5538 </ol></p>
5539 <a name="version_3_3_9"></a>
5540 <h3>2007-01-04 (3.3.9)</h3><p><ol class='lessindent'>
5541 <li>Fix bugs in pager.c that could lead to database corruption if two
5542 processes both try to recover a hot journal at the same instant</li>
5543 <li>Added the <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>
5544 API.</li>
5545 <li>Fixed the ".dump" command in the command-line shell to show
5546 indices, triggers and views again.</li>
5547 <li>Change the table_info pragma so that it returns NULL for the default
5548 value if there is no default value</li>
5549 <li>Support for non-ASCII characters in win95 filenames</li>
5550 <li>Query optimizer enhancements:
5551 <ol type='a'>
5552 <li>Optimizer does a better job of using indices to satisfy ORDER BY
5553 clauses that sort on the integer primary key</li>
5554 <li>Use an index to satisfy an IS NULL operator in the WHERE clause</li>
5555 <li>Fix a bug that was causing the optimizer to miss an OR optimization
5556 opportunity</li>
5557 <li>The optimizer has more freedom to reorder tables in the FROM clause
5558 even in there are LEFT joins.</li>
5559 </ol>
5560 <li>Extension loading supported added to WinCE</li>
5561 <li>Allow constraint names on the DEFAULT clause in a table definition</li>
5562 <li>Added the ".bail" command to the command-line shell</li>
5563 <li>Make CSV (comma separate value) output from the command-line shell
5564 more closely aligned to accepted practice</li>
5565 <li>Experimental FTS2 module added</li>
5566 <li>Use sqlite3_mprintf() instead of strdup() to avoid libc dependencies</li>
5567 <li>VACUUM uses a temporary file in the official TEMP folder, not in the
5568 same directory as the original database</li>
5569 <li>The prefix on temporary filenames on Windows is changed from "sqlite"
5570 to "etilqs".</li>
5571
5572 </ol></p>
5573 <a name="version_3_3_8"></a>
5574 <h3>2006-10-09 (3.3.8)</h3><p><ol class='lessindent'>
5575 <li>Support for full text search using the FTS1 module (beta)</li>
5576 <li>Added Mac OS X locking patches (beta - disabled by default)</li>
5577 <li>Introduce extended error codes and add error codes for various
5578 kinds of I/O errors.</li>
5579 <li>Added support for IF EXISTS on CREATE/DROP TRIGGER/VIEW</li>
5580 <li>Fix the regression test suite so that it works with Tcl8.5</li>
5581 <li>Enhance sqlite3_set_authorizer() to provide notification of calls to
5582 SQL functions.</li>
5583 <li>Added experimental API: sqlite3_auto_extension()</li>
5584 <li>Various minor bug fixes</li>
5585
5586 </ol></p>
5587 <a name="version_3_3_7"></a>
5588 <h3>2006-08-12 (3.3.7)</h3><p><ol class='lessindent'>
5589 <li>Added support for virtual tables (beta)</li>
5590 <li>Added support for dynamically loaded extensions (beta)</li>
5591 <li>The
5592 <a href="c3ref/interrupt.html">sqlite3_interrupt()</a>
5593 routine can be called for a different thread</li>
5594 <li>Added the <a href="lang_expr.html#match">MATCH</a> operator.</li>
5595 <li>The default file format is now 1.
5596
5597 </ol></p>
5598 <a name="version_3_3_6"></a>
5599 <h3>2006-06-06 (3.3.6)</h3><p><ol class='lessindent'>
5600 <li>Plays better with virus scanners on Windows</li>
5601 <li>Faster :memory: databases</li>
5602 <li>Fix an obscure segfault in UTF-8 to UTF-16 conversions</li>
5603 <li>Added driver for OS/2</li>
5604 <li>Correct column meta-information returned for aggregate queries</li>
5605 <li>Enhanced output from EXPLAIN QUERY PLAN</li>
5606 <li>LIMIT 0 now works on subqueries</li>
5607 <li>Bug fixes and performance enhancements in the query optimizer</li>
5608 <li>Correctly handle NULL filenames in ATTACH and DETACH</li>
5609 <li>Improved syntax error messages in the parser</li>
5610 <li>Fix type coercion rules for the IN operator</li>
5611
5612 </ol></p>
5613 <a name="version_3_3_5"></a>
5614 <h3>2006-04-05 (3.3.5)</h3><p><ol class='lessindent'>
5615 <li>CHECK constraints use conflict resolution algorithms correctly.</li>
5616 <li>The SUM() function throws an error on integer overflow.</li>
5617 <li>Choose the column names in a compound query from the left-most SELECT
5618 instead of the right-most.</li>
5619 <li>The sqlite3_create_collation() function
5620 honors the SQLITE_UTF16_ALIGNED flag.</li>
5621 <li>SQLITE_SECURE_DELETE compile-time option causes deletes to overwrite
5622 old data with zeros.</li>
5623 <li>Detect integer overflow in abs().</li>
5624 <li>The random() function provides 64 bits of randomness instead of
5625 only 32 bits.</li>
5626 <li>Parser detects and reports automaton stack overflow.</li>
5627 <li>Change the round() function to return REAL instead of TEXT.</li>
5628 <li>Allow WHERE clause terms on the left table of a LEFT OUTER JOIN to
5629 contain aggregate subqueries.</li>
5630 <li>Skip over leading spaces in text to numeric conversions.</li>
5631 <li>Various minor bug and documentation typo fixes and
5632 performance enhancements.</li>
5633
5634 </ol></p>
5635 <a name="version_3_3_4"></a>
5636 <h3>2006-02-11 (3.3.4)</h3><p><ol class='lessindent'>
5637 <li>Fix a blunder in the Unix mutex implementation that can lead to
5638 deadlock on multithreaded systems.</li>
5639 <li>Fix an alignment problem on 64-bit machines</li>
5640 <li>Added the fullfsync pragma.</li>
5641 <li>Fix an optimizer bug that could have caused some unusual LEFT OUTER JOINs
5642 to give incorrect results.</li>
5643 <li>The SUM function detects integer overflow and converts to accumulating
5644 an approximate result using floating point numbers</li>
5645 <li>Host parameter names can begin with '@' for compatibility with SQL Server.
5646 </li>
5647 <li>Other miscellaneous bug fixes</li>
5648
5649 </ol></p>
5650 <a name="version_3_3_3"></a>
5651 <h3>2006-01-31 (3.3.3)</h3><p><ol class='lessindent'>
5652 <li>Removed support for an ON CONFLICT clause on CREATE INDEX - it never
5653 worked correctly so this should not present any backward compatibility
5654 problems.</li>
5655 <li>Authorizer callback now notified of ALTER TABLE ADD COLUMN commands</li>
5656 <li>After any changes to the TEMP database schema, all prepared statements
5657 are invalidated and must be recreated using a new call to
5658 sqlite3_prepare()</li>
5659 <li>Other minor bug fixes in preparation for the first stable release
5660 of version 3.3</li>
5661
5662 </ol></p>
5663 <h3>2006-01-24 (3.3.2 beta)</h3><p><ol class='lessindent'>
5664 <li>Bug fixes and speed improvements. Improved test coverage.</li>
5665 <li>Changes to the OS-layer interface: mutexes must now be recursive.</li>
5666 <li>Discontinue the use of thread-specific data for out-of-memory
5667 exception handling</li>
5668
5669 </ol></p>
5670 <h3>2006-01-16 (3.3.1 alpha)</h3><p><ol class='lessindent'>
5671 <li>Countless bug fixes</li>
5672 <li>Speed improvements</li>
5673 <li>Database connections can now be used by multiple threads, not just
5674 the thread in which they were created.</li>
5675
5676 </ol></p>
5677 <h3>2006-01-11 (3.3.0 alpha)</h3><p><ol class='lessindent'>
5678 <li>CHECK constraints</li>
5679 <li>IF EXISTS and IF NOT EXISTS clauses on CREATE/DROP TABLE/INDEX.</li>
5680 <li>DESC indices</li>
5681 <li>More efficient encoding of boolean values resulting in smaller database
5682 files</li>
5683 <li>More aggressive <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a></li>
5684 <li>Separate INTEGER and REAL affinity</li>
5685 <li>Added a virtual function layer for the OS interface</li>
5686 <li>"exists" method added to the TCL interface</li>
5687 <li>Improved response to out-of-memory errors</li>
5688 <li>Database cache can be optionally shared between connections
5689 in the same thread</li>
5690 <li>Optional READ UNCOMMITTED isolation (instead of the default
5691 isolation level of SERIALIZABLE) and table level locking when
5692 database connections share a common cache.</li>
5693
5694 </ol></p>
5695 <a name="version_3_2_8"></a>
5696 <h3>2005-12-19 (3.2.8)</h3><p><ol class='lessindent'>
5697 <li>Fix an obscure bug that can cause database corruption under the
5698 following unusual circumstances: A large INSERT or UPDATE statement which
5699 is part of an even larger transaction fails due to a uniqueness constraint
5700 but the containing transaction commits.</li>
5701
5702 </ol></p>
5703 <a name="version_2_8_17"></a>
5704 <h3>2005-12-19 (2.8.17)</h3><p><ol class='lessindent'>
5705 <li>Fix an obscure bug that can cause database corruption under the
5706 following unusual circumstances: A large INSERT or UPDATE statement which
5707 is part of an even larger transaction fails due to a uniqueness contraint
5708 but the containing transaction commits.</li>
5709
5710 </ol></p>
5711 <a name="version_3_2_7"></a>
5712 <h3>2005-09-24 (3.2.7)</h3><p><ol class='lessindent'>
5713 <li>GROUP BY now considers NULLs to be equal again, as it should
5714 </li>
5715 <li>Now compiles on Solaris and OpenBSD and other Unix variants
5716 that lack the fdatasync() function</li>
5717 <li>Now compiles on MSVC++6 again</li>
5718 <li>Fix uninitialized variables causing malfunctions for various obscure
5719 queries</li>
5720 <li>Correctly compute a LEFT OUTER JOINs that is constrained on the
5721 left table only</li>
5722
5723 </ol></p>
5724 <a name="version_3_2_6"></a>
5725 <h3>2005-09-17 (3.2.6)</h3><p><ol class='lessindent'>
5726 <li>Fix a bug that can cause database corruption if a VACUUM (or
5727 autovacuum) fails and is rolled back on a database that is
5728 larger than 1GiB</li>
5729 <li>LIKE optimization now works for columns with COLLATE NOCASE</li>
5730 <li>ORDER BY and GROUP BY now use bounded memory</li>
5731 <li>Added support for COUNT(DISTINCT expr)</li>
5732 <li>Change the way SUM() handles NULL values in order to comply with
5733 the SQL standard</li>
5734 <li>Use fdatasync() instead of fsync() where possible in order to speed
5735 up commits slightly</li>
5736 <li>Use of the CROSS keyword in a join turns off the table reordering
5737 optimization</li>
5738 <li>Added the experimental and undocumented EXPLAIN QUERY PLAN capability</li>
5739 <li>Use the unicode API in Windows</li>
5740
5741 </ol></p>
5742 <a name="version_3_2_5"></a>
5743 <h3>2005-08-27 (3.2.5)</h3><p><ol class='lessindent'>
5744 <li>Fix a bug effecting DELETE and UPDATE statements that changed
5745 more than 40960 rows.</li>
5746 <li>Change the makefile so that it no longer requires GNUmake extensions</li>
5747 <li>Fix the --enable-threadsafe option on the configure script</li>
5748 <li>Fix a code generator bug that occurs when the left-hand side of an IN
5749 operator is constant and the right-hand side is a SELECT statement</li>
5750 <li>The PRAGMA synchronous=off statement now disables syncing of the
5751 master journal file in addition to the normal rollback journals</li>
5752
5753 </ol></p>
5754 <a name="version_3_2_4"></a>
5755 <h3>2005-08-24 (3.2.4)</h3><p><ol class='lessindent'>
5756 <li>Fix a bug introduced in the previous release
5757 that can cause a segfault while generating code
5758 for complex WHERE clauses.</li>
5759 <li>Allow floating point literals to begin or end with a decimal point.</li>
5760
5761 </ol></p>
5762 <a name="version_3_2_3"></a>
5763 <h3>2005-08-21 (3.2.3)</h3><p><ol class='lessindent'>
5764 <li>Added support for the CAST operator</li>
5765 <li>Tcl interface allows BLOB values to be transferred to user-defined
5766 functions</li>
5767 <li>Added the "transaction" method to the Tcl interface</li>
5768 <li>Allow the DEFAULT value of a column to call functions that have constant
5769 operands</li>
5770 <li>Added the ANALYZE command for gathering statistics on indices and
5771 using those statistics when picking an index in the optimizer</li>
5772 <li>Remove the limit (formerly 100) on the number of terms in the
5773 WHERE clause</li>
5774 <li>The right-hand side of the IN operator can now be a list of expressions
5775 instead of just a list of constants</li>
5776 <li>Rework the optimizer so that it is able to make better use of indices</li>
5777 <li>The order of tables in a join is adjusted automatically to make
5778 better use of indices</li>
5779 <li>The IN operator is now a candidate for optimization even if the left-hand
5780 side is not the left-most term of the index. Multiple IN operators can be
5781 used with the same index.</li>
5782 <li>WHERE clause expressions using BETWEEN and OR are now candidates
5783 for optimization</li>
5784 <li>Added the "case_sensitive_like" pragma and the SQLITE_CASE_SENSITIVE_LIKE
5785 compile-time option to set its default value to "on".</li>
5786 <li>Use indices to help with GLOB expressions and LIKE expressions too
5787 when the case_sensitive_like pragma is enabled</li>
5788 <li>Added support for grave-accent quoting for compatibility with MySQL</li>
5789 <li>Improved test coverage</li>
5790 <li>Dozens of minor bug fixes</li>
5791
5792 </ol></p>
5793 <a name="version_3_2_2"></a>
5794 <h3>2005-06-12 (3.2.2)</h3><p><ol class='lessindent'>
5795 <li>Added the sqlite3_db_handle() API</li>
5796 <li>Added the sqlite3_get_autocommit() API</li>
5797 <li>Added a REGEXP operator to the parser. There is no function to back
5798 up this operator in the standard build but users can add their own using
5799 sqlite3_create_function()</li>
5800 <li>Speed improvements and library footprint reductions.</li>
5801 <li>Fix byte alignment problems on 64-bit architectures.</li>
5802 <li>Many, many minor bug fixes and documentation updates.</li>
5803
5804 </ol></p>
5805 <a name="version_3_2_1"></a>
5806 <h3>2005-03-29 (3.2.1)</h3><p><ol class='lessindent'>
5807 <li>Fix a memory allocation error in the new ADD COLUMN comment.</li>
5808 <li>Documentation updates</li>
5809
5810 </ol></p>
5811 <a name="version_3_2_0"></a>
5812 <h3>2005-03-21 (3.2.0)</h3><p><ol class='lessindent'>
5813 <li>Added support for ALTER TABLE ADD COLUMN.</li>
5814 <li>Added support for the "T" separator in ISO-8601 date/time strings.</li>
5815 <li>Improved support for Cygwin.</li>
5816 <li>Numerous bug fixes and documentation updates.</li>
5817
5818 </ol></p>
5819 <a name="version_3_1_6"></a>
5820 <h3>2005-03-17 (3.1.6)</h3><p><ol class='lessindent'>
5821 <li>Fix a bug that could cause database corruption when inserting
5822 record into tables with around 125 columns.</li>
5823 <li>sqlite3_step() is now much more likely to invoke the busy handler
5824 and less likely to return SQLITE_BUSY.</li>
5825 <li>Fix memory leaks that used to occur after a malloc() failure.</li>
5826
5827 </ol></p>
5828 <a name="version_3_1_5"></a>
5829 <h3>2005-03-11 (3.1.5)</h3><p><ol class='lessindent'>
5830 <li>The ioctl on Mac OS X to control syncing to disk is F_FULLFSYNC,
5831 not F_FULLSYNC. The previous release had it wrong.</li>
5832
5833 </ol></p>
5834 <a name="version_3_1_4"></a>
5835 <h3>2005-03-11 (3.1.4)</h3><p><ol class='lessindent'>
5836 <li>Fix a bug in autovacuum that could cause database corruption if
5837 a CREATE UNIQUE INDEX fails because of a constraint violation.
5838 This problem only occurs if the new autovacuum feature introduced in
5839 version 3.1 is turned on.</li>
5840 <li>The F_FULLSYNC ioctl (currently only supported on Mac OS X) is disabled
5841 if the synchronous pragma is set to something other than "full".</li>
5842 <li>Add additional forward compatibility to the future version 3.2 database
5843 file format.</li>
5844 <li>Fix a bug in WHERE clauses of the form (rowid<'2')</li>
5845 <li>New <a href="compile.html#omitfeatures">SQLITE_OMIT_...</a> compile-time options added</li>
5846 <li>Updates to the man page</li>
5847 <li>Remove the use of strcasecmp() from the shell</li>
5848 <li>Windows DLL exports symbols Tclsqlite_Init and Sqlite_Init</li>
5849
5850 </ol></p>
5851 <a name="version_3_1_3"></a>
5852 <h3>2005-02-19 (3.1.3)</h3><p><ol class='lessindent'>
5853 <li>Fix a problem with VACUUM on databases from which tables containing
5854 AUTOINCREMENT have been dropped.</li>
5855 <li>Add forward compatibility to the future version 3.2 database file
5856 format.</li>
5857 <li>Documentation updates</li>
5858
5859 </ol></p>
5860 <a name="version_3_1_2"></a>
5861 <h3>2005-02-15 (3.1.2)</h3><p><ol class='lessindent'>
5862 <li>Fix a bug that can lead to database corruption if there are two
5863 open connections to the same database and one connection does a VACUUM
5864 and the second makes some change to the database.</li>
5865 <li>Allow "?" parameters in the LIMIT clause.</li>
5866 <li>Fix VACUUM so that it works with AUTOINCREMENT.</li>
5867 <li>Fix a race condition in AUTOVACUUM that can lead to corrupt databases</li>
5868 <li>Add a numeric version number to the sqlite3.h include file.</li>
5869 <li>Other minor bug fixes and performance enhancements.</li>
5870
5871 </ol></p>
5872 <a name="version_2_8_16"></a>
5873 <h3>2005-02-15 (2.8.16)</h3><p><ol class='lessindent'>
5874 <li>Fix a bug that can lead to database corruption if there are two
5875 open connections to the same database and one connection does a VACUUM
5876 and the second makes some change to the database.</li>
5877 <li>Correctly handle quoted names in CREATE INDEX statements.</li>
5878 <li>Fix a naming conflict between sqlite.h and sqlite3.h.</li>
5879 <li>Avoid excess heap usage when copying expressions.</li>
5880 <li>Other minor bug fixes.</li>
5881
5882 </ol></p>
5883 <h3>2005-02-01 (3.1.1 BETA)</h3><p><ol class='lessindent'>
5884 <li>Automatic caching of prepared statements in the TCL interface</li>
5885 <li>ATTACH and DETACH as well as some other operations cause existing
5886 prepared statements to expire.</li>
5887 <li>Numerous minor bug fixes</li>
5888
5889 </ol></p>
5890 <h3>2005-01-21 (3.1.0 ALPHA)</h3><p><ol class='lessindent'>
5891 <li>Autovacuum support added</li>
5892 <li>CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP added</li>
5893 <li>Support for the EXISTS clause added.</li>
5894 <li>Support for correlated subqueries added.</li>
5895 <li>Added the ESCAPE clause on the LIKE operator.</li>
5896 <li>Support for ALTER TABLE ... RENAME TABLE ... added</li>
5897 <li>AUTOINCREMENT keyword supported on INTEGER PRIMARY KEY</li>
5898 <li>Many SQLITE_OMIT_ macros inserts to omit features at compile-time
5899 and reduce the library footprint.</li>
5900 <li>The REINDEX command was added.</li>
5901 <li>The engine no longer consults the main table if it can get
5902 all the information it needs from an index.</li>
5903 <li>Many nuisance bugs fixed.</li>
5904
5905 </ol></p>
5906 <a name="version_3_0_8"></a>
5907 <h3>2004-10-12 (3.0.8)</h3><p><ol class='lessindent'>
5908 <li>Add support for DEFERRED, IMMEDIATE, and EXCLUSIVE transactions.</li>
5909 <li>Allow new user-defined functions to be created when there are
5910 already one or more precompiled SQL statements.<li>
5911 <li>Fix portability problems for MinGW/MSYS.</li>
5912 <li>Fix a byte alignment problem on 64-bit Sparc machines.</li>
5913 <li>Fix the ".import" command of the shell so that it ignores \r
5914 characters at the end of lines.</li>
5915 <li>The "csv" mode option in the shell puts strings inside double-quotes.</li>
5916 <li>Fix typos in documentation.</li>
5917 <li>Convert array constants in the code to have type "const".</li>
5918 <li>Numerous code optimizations, specially optimizations designed to
5919 make the code footprint smaller.</li>
5920
5921 </ol></p>
5922 <a name="version_3_0_7"></a>
5923 <h3>2004-09-18 (3.0.7)</h3><p><ol class='lessindent'>
5924 <li>The BTree module allocates large buffers using malloc() instead of
5925 off of the stack, in order to play better on machines with limited
5926 stack space.</li>
5927 <li>Fixed naming conflicts so that versions 2.8 and 3.0 can be
5928 linked and used together in the same ANSI-C source file.</li>
5929 <li>New interface: sqlite3_bind_parameter_index()</li>
5930 <li>Add support for wildcard parameters of the form: "?nnn"</li>
5931 <li>Fix problems found on 64-bit systems.</li>
5932 <li>Removed encode.c file (containing unused routines) from the
5933 version 3.0 source tree.</li>
5934 <li>The sqlite3_trace() callbacks occur before each statement
5935 is executed, not when the statement is compiled.</li>
5936 <li>Makefile updates and miscellaneous bug fixes.</li>
5937
5938 </ol></p>
5939 <h3>2004-09-02 (3.0.6 beta)</h3><p><ol class='lessindent'>
5940 <li>Better detection and handling of corrupt database files.</li>
5941 <li>The sqlite3_step() interface returns SQLITE_BUSY if it is unable
5942 to commit a change because of a lock</li>
5943 <li>Combine the implementations of LIKE and GLOB into a single
5944 pattern-matching subroutine.</li>
5945 <li>Miscellaneous code size optimizations and bug fixes</li>
5946
5947 </ol></p>
5948 <h3>2004-08-29 (3.0.5 beta)</h3><p><ol class='lessindent'>
5949 <li>Support for ":AAA" style bind parameter names.</li>
5950 <li>Added the new sqlite3_bind_parameter_name() interface.</li>
5951 <li>Support for TCL variable names embedded in SQL statements in the
5952 TCL bindings.</li>
5953 <li>The TCL bindings transfer data without necessarily doing a conversion
5954 to a string.</li>
5955 <li>The database for TEMP tables is not created until it is needed.</li>
5956 <li>Add the ability to specify an alternative temporary file directory
5957 using the "sqlite_temp_directory" global variable.</li>
5958 <li>A compile-time option (SQLITE_BUSY_RESERVED_LOCK) causes the busy
5959 handler to be called when there is contention for a RESERVED lock.</li>
5960 <li>Various bug fixes and optimizations</li>
5961
5962 </ol></p>
5963 <h3>2004-08-09 (3.0.4 beta)</h3><p><ol class='lessindent'>
5964 <li>CREATE TABLE and DROP TABLE now work correctly as prepared statements.</li>
5965 <li>Fix a bug in VACUUM and UNIQUE indices.</li>
5966 <li>Add the ".import" command to the command-line shell.</li>
5967 <li>Fix a bug that could cause index corruption when an attempt to
5968 delete rows of a table is blocked by a pending query.</li>
5969 <li>Library size optimizations.</li>
5970 <li>Other minor bug fixes.</li>
5971
5972 </ol></p>
5973 <a name="version_2_8_15"></a>
5974 <h3>2004-07-22 (2.8.15)</h3><p><ol class='lessindent'>
5975 <li>This is a maintenance release only. Various minor bugs have been
5976 fixed and some portability enhancements are added.</li>
5977
5978 </ol></p>
5979 <h3>2004-07-22 (3.0.3 beta)</h3><p><ol class='lessindent'>
5980 <li>The second beta release for SQLite 3.0.</li>
5981 <li>Add support for "PRAGMA page_size" to adjust the page size of
5982 the database.</li>
5983 <li>Various bug fixes and documentation updates.</li>
5984
5985 </ol></p>
5986 <h3>2004-06-30 (3.0.2 beta)</h3><p><ol class='lessindent'>
5987 <li>The first beta release for SQLite 3.0.</li>
5988
5989 </ol></p>
5990 <h3>2004-06-22 (3.0.1 alpha)</h3><p><ol class='lessindent'>
5991 <li><font color="red"><b>
5992 *** Alpha Release - Research And Testing Use Only ***</b></font>
5993 <li>Lots of bug fixes.</li>
5994
5995 </ol></p>
5996 <h3>2004-06-18 (3.0.0 alpha)</h3><p><ol class='lessindent'>
5997 <li><font color="red"><b>
5998 *** Alpha Release - Research And Testing Use Only ***</b></font>
5999 <li>Support for internationalization including UTF-8, UTF-16, and
6000 user defined collating sequences.</li>
6001 <li>New file format that is 25% to 35% smaller for typical use.</li>
6002 <li>Improved concurrency.</li>
6003 <li>Atomic commits for ATTACHed databases.</li>
6004 <li>Remove cruft from the APIs.</li>
6005 <li>BLOB support.</li>
6006 <li>64-bit rowids.</li>
6007 <li><a href="version3.html">More information</a>.
6008
6009 </ol></p>
6010 <a name="version_2_8_14"></a>
6011 <h3>2004-06-09 (2.8.14)</h3><p><ol class='lessindent'>
6012 <li>Fix the min() and max() optimizer so that it works when the FROM
6013 clause consists of a subquery.</li>
6014 <li>Ignore extra whitespace at the end of "." commands in the shell.</li>
6015 <li>Bundle sqlite_encode_binary() and sqlite_decode_binary() with the
6016 library.</li>
6017 <li>The TEMP_STORE and DEFAULT_TEMP_STORE pragmas now work.</li>
6018 <li>Code changes to compile cleanly using OpenWatcom.</li>
6019 <li>Fix VDBE stack overflow problems with INSTEAD OF triggers and
6020 NULLs in IN operators.</li>
6021 <li>Add the global variable sqlite_temp_directory which if set defines the
6022 directory in which temporary files are stored.</li>
6023 <li>sqlite_interrupt() plays well with VACUUM.</li>
6024 <li>Other minor bug fixes.</li>
6025
6026 </ol></p>
6027 <a name="version_2_8_13"></a>
6028 <h3>2004-03-08 (2.8.13)</h3><p><ol class='lessindent'>
6029 <li>Refactor parts of the code in order to make the code footprint
6030 smaller. The code is now also a little bit faster.</li>
6031 <li>sqlite_exec() is now implemented as a wrapper around sqlite_compile()
6032 and sqlite_step().</li>
6033 <li>The built-in min() and max() functions now honor the difference between
6034 NUMERIC and TEXT datatypes. Formerly, min() and max() always assumed
6035 their arguments were of type NUMERIC.</li>
6036 <li>New HH:MM:SS modifier to the built-in date/time functions.</li>
6037 <li>Experimental sqlite_last_statement_changes() API added. Fixed
6038 the last_insert_rowid() function so that it works correctly with
6039 triggers.</li>
6040 <li>Add functions prototypes for the database encryption API.</li>
6041 <li>Fix several nuisance bugs.</li>
6042
6043 </ol></p>
6044 <a name="version_2_8_12"></a>
6045 <h3>2004-02-08 (2.8.12)</h3><p><ol class='lessindent'>
6046 <li>Fix a bug that will might corrupt the rollback journal if a power failure
6047 or external program halt occurs in the middle of a COMMIT. The corrupt
6048 journal can lead to database corruption when it is rolled back.</li>
6049 <li>Reduce the size and increase the speed of various modules, especially
6050 the virtual machine.</li>
6051 <li>Allow "&lt;expr&gt; IN &lt;table&gt;" as a shorthand for
6052 "&lt;expr&gt; IN (SELECT * FROM &lt;table&gt;".</li>
6053 <li>Optimizations to the sqlite_mprintf() routine.</li>
6054 <li>Make sure the MIN() and MAX() optimizations work within subqueries.</li>
6055
6056 </ol></p>
6057 <a name="version_2_8_11"></a>
6058 <h3>2004-01-14 (2.8.11)</h3><p><ol class='lessindent'>
6059 <li>Fix a bug in how the IN operator handles NULLs in subqueries. The bug
6060 was introduced by the previous release.</li>
6061
6062 </ol></p>
6063 <a name="version_2_8_10"></a>
6064 <h3>2004-01-14 (2.8.10)</h3><p><ol class='lessindent'>
6065 <li>Fix a potential database corruption problem on Unix caused by the fact
6066 that all POSIX advisory locks are cleared whenever you close() a file.
6067 The work around it to embargo all close() calls while locks are
6068 outstanding.</li>
6069 <li>Performance enhancements on some corner cases of COUNT(*).</li>
6070 <li>Make sure the in-memory backend response sanely if malloc() fails.</li>
6071 <li>Allow sqlite_exec() to be called from within user-defined SQL
6072 functions.</li>
6073 <li>Improved accuracy of floating-point conversions using "long double".</li>
6074 <li>Bug fixes in the experimental date/time functions.</li>
6075
6076 </ol></p>
6077 <a name="version_2_8_9"></a>
6078 <h3>2004-01-06 (2.8.9)</h3><p><ol class='lessindent'>
6079 <li>Fix a 32-bit integer overflow problem that could result in corrupt
6080 indices in a database if large negative numbers (less than -2147483648)
6081 were inserted into an indexed numeric column.</li>
6082 <li>Fix a locking problem on multi-threaded Linux implementations.</li>
6083 <li>Always use "." instead of "," as the decimal point even if the locale
6084 requests ",".</li>
6085 <li>Added UTC to localtime conversions to the experimental date/time
6086 functions.</li>
6087 <li>Bug fixes to date/time functions.</li>
6088
6089 </ol></p>
6090 <a name="version_2_8_8"></a>
6091 <h3>2003-12-18 (2.8.8)</h3><p><ol class='lessindent'>
6092 <li>Fix a critical bug introduced into 2.8.0 which could cause
6093 database corruption.</li>
6094 <li>Fix a problem with 3-way joins that do not use indices</li>
6095 <li>The VACUUM command now works with the non-callback API</li>
6096 <li>Improvements to the "PRAGMA integrity_check" command</li>
6097
6098 </ol></p>
6099 <a name="version_2_8_7"></a>
6100 <h3>2003-12-04 (2.8.7)</h3><p><ol class='lessindent'>
6101 <li>Added experimental sqlite_bind() and sqlite_reset() APIs.</li>
6102 <li>If the name of the database is an empty string, open a new database
6103 in a temporary file that is automatically deleted when the database
6104 is closed.</li>
6105 <li>Performance enhancements in the <a href="lemon.html">Lemon</a>-generated parser</li>
6106 <li>Experimental date/time functions revised.</li>
6107 <li>Disallow temporary indices on permanent tables.</li>
6108 <li>Documentation updates and typo fixes</li>
6109 <li>Added experimental sqlite_progress_handler() callback API</li>
6110 <li>Removed support for the Oracle8 outer join syntax.</li>
6111 <li>Allow GLOB and LIKE operators to work as functions.</li>
6112 <li>Other minor documentation and makefile changes and bug fixes.</li>
6113
6114 </ol></p>
6115 <a name="version_2_8_6"></a>
6116 <h3>2003-08-22 (2.8.6)</h3><p><ol class='lessindent'>
6117 <li>Moved the CVS repository to www.sqlite.org</li>
6118 <li>Update the NULL-handling documentation.</li>
6119 <li>Experimental date/time functions added.</li>
6120 <li>Bug fix: correctly evaluate a view of a view without segfaulting.</li>
6121 <li>Bug fix: prevent database corruption if you dropped a
6122 trigger that had the same name as a table.</li>
6123 <li>Bug fix: allow a VACUUM (without segfaulting) on an empty
6124 database after setting the EMPTY_RESULT_CALLBACKS pragma.</li>
6125 <li>Bug fix: if an integer value will not fit in a 32-bit int, store it in
6126 a double instead.</li>
6127 <li>Bug fix: Make sure the journal file directory entry is committed to disk
6128 before writing the database file.</li>
6129
6130 </ol></p>
6131 <a name="version_2_8_5"></a>
6132 <h3>2003-07-22 (2.8.5)</h3><p><ol class='lessindent'>
6133 <li>Make LIMIT work on a compound SELECT statement.</li>
6134 <li>LIMIT 0 now shows no rows. Use LIMIT -1 to see all rows.</li>
6135 <li>Correctly handle comparisons between an INTEGER PRIMARY KEY and
6136 a floating point number.</li>
6137 <li>Fix several important bugs in the new ATTACH and DETACH commands.</li>
6138 <li>Updated the <a href="nulls.html">NULL-handling document</a>.</li>
6139 <li>Allow NULL arguments in sqlite_compile() and sqlite_step().</li>
6140 <li>Many minor bug fixes</li>
6141
6142 </ol></p>
6143 <a name="version_2_8_4"></a>
6144 <h3>2003-06-29 (2.8.4)</h3><p><ol class='lessindent'>
6145 <li>Enhanced the "PRAGMA integrity_check" command to verify indices.</li>
6146 <li>Added authorization hooks for the new ATTACH and DETACH commands.</li>
6147 <li>Many documentation updates</li>
6148 <li>Many minor bug fixes</li>
6149
6150 </ol></p>
6151 <a name="version_2_8_3"></a>
6152 <h3>2003-06-04 (2.8.3)</h3><p><ol class='lessindent'>
6153 <li>Fix a problem that will corrupt the indices on a table if you
6154 do an INSERT OR REPLACE or an UPDATE OR REPLACE on a table that
6155 contains an INTEGER PRIMARY KEY plus one or more indices.</li>
6156 <li>Fix a bug in Windows locking code so that locks work correctly
6157 when simultaneously accessed by Win95 and WinNT systems.</li>
6158 <li>Add the ability for INSERT and UPDATE statements to refer to the
6159 "rowid" (or "_rowid_" or "oid") columns.</li>
6160 <li>Other important bug fixes</li>
6161
6162 </ol></p>
6163 <a name="version_2_8_2"></a>
6164 <h3>2003-05-17 (2.8.2)</h3><p><ol class='lessindent'>
6165 <li>Fix a problem that will corrupt the database file if you drop a
6166 table from the main database that has a TEMP index.</li>
6167
6168 </ol></p>
6169 <a name="version_2_8_1"></a>
6170 <h3>2003-05-17 (2.8.1)</h3><p><ol class='lessindent'>
6171 <li>Reactivated the VACUUM command that reclaims unused disk space in
6172 a database file.</li>
6173 <li>Added the ATTACH and DETACH commands to allow interacting with multiple
6174 database files at the same time.</li>
6175 <li>Added support for TEMP triggers and indices.</li>
6176 <li>Added support for in-memory databases.</li>
6177 <li>Removed the experimental sqlite_open_aux_file(). Its function is
6178 subsumed in the new ATTACH command.</li>
6179 <li>The precedence order for ON CONFLICT clauses was changed so that
6180 ON CONFLICT clauses on BEGIN statements have a higher precedence than
6181 ON CONFLICT clauses on constraints.
6182 <li>Many, many bug fixes and compatibility enhancements.</li>
6183
6184 </ol></p>
6185 <a name="version_2_8_0"></a>
6186 <h3>2003-02-16 (2.8.0)</h3><p><ol class='lessindent'>
6187 <li>Modified the journal file format to make it more resistant to corruption
6188 that can occur after an OS crash or power failure.</li>
6189 <li>Added a new C/C++ API that does not use callback for returning data.</li>
6190
6191 </ol></p>
6192 <a name="version_2_7_6"></a>
6193 <h3>2003-01-25 (2.7.6)</h3><p><ol class='lessindent'>
6194 <li>Performance improvements. The library is now much faster.</li>
6195 <li>Added the <b>sqlite_set_authorizer()</b> API. Formal documentation has
6196 not been written - see the source code comments for instructions on
6197 how to use this function.</li>
6198 <li>Fix a bug in the GLOB operator that was preventing it from working
6199 with upper-case letters.</li>
6200 <li>Various minor bug fixes.</li>
6201
6202 </ol></p>
6203 <a name="version_2_7_5"></a>
6204 <h3>2002-12-28 (2.7.5)</h3><p><ol class='lessindent'>
6205 <li>Fix an uninitialized variable in pager.c which could (with a probability
6206 of about 1 in 4 billion) result in a corrupted database.</li>
6207
6208 </ol></p>
6209 <a name="version_2_7_4"></a>
6210 <h3>2002-12-17 (2.7.4)</h3><p><ol class='lessindent'>
6211 <li>Database files can now grow to be up to 2&#94;41 bytes. The old limit
6212 was 2&#94;31 bytes.</li>
6213 <li>The optimizer will now scan tables in the reverse if doing so will
6214 satisfy an ORDER BY ... DESC clause.</li>
6215 <li>The full pathname of the database file is now remembered even if
6216 a relative path is passed into sqlite_open(). This allows
6217 the library to continue operating correctly after a chdir().</li>
6218 <li>Speed improvements in the VDBE.</li>
6219 <li>Lots of little bug fixes.</li>
6220
6221 </ol></p>
6222 <a name="version_2_7_3"></a>
6223 <h3>2002-10-31 (2.7.3)</h3><p><ol class='lessindent'>
6224 <li>Various compiler compatibility fixes.</li>
6225 <li>Fix a bug in the "expr IN ()" operator.</li>
6226 <li>Accept column names in parentheses.</li>
6227 <li>Fix a problem with string memory management in the VDBE</li>
6228 <li>Fix a bug in the "table_info" pragma"</li>
6229 <li>Export the sqlite_function_type() API function in the Windows DLL</li>
6230 <li>Fix locking behavior under Windows</li>
6231 <li>Fix a bug in LEFT OUTER JOIN</li>
6232
6233 </ol></p>
6234 <a name="version_2_7_2"></a>
6235 <h3>2002-09-25 (2.7.2)</h3><p><ol class='lessindent'>
6236 <li>Prevent journal file overflows on huge transactions.</li>
6237 <li>Fix a memory leak that occurred when sqlite_open() failed.</li>
6238 <li>Honor the ORDER BY and LIMIT clause of a SELECT even if the
6239 result set is used for an INSERT.</li>
6240 <li>Do not put write locks on the file used to hold TEMP tables.</li>
6241 <li>Added documentation on SELECT DISTINCT and on how SQLite handles NULLs.</li>
6242 <li>Fix a problem that was causing poor performance when many thousands
6243 of SQL statements were executed by a single sqlite_exec() call.</li>
6244
6245 </ol></p>
6246 <a name="version_2_7_1"></a>
6247 <h3>2002-08-31 (2.7.1)</h3><p><ol class='lessindent'>
6248 <li>Fix a bug in the ORDER BY logic that was introduced in version 2.7.0</li>
6249 <li>C-style comments are now accepted by the tokenizer.</li>
6250 <li>INSERT runs a little faster when the source is a SELECT statement.</li>
6251
6252 </ol></p>
6253 <a name="version_2_7_0"></a>
6254 <h3>2002-08-25 (2.7.0)</h3><p><ol class='lessindent'>
6255 <li>Make a distinction between numeric and text values when sorting.
6256 Text values sort according to memcmp(). Numeric values sort in
6257 numeric order.</li>
6258 <li>Allow multiple simultaneous readers under Windows by simulating
6259 the reader/writers locks that are missing from Win95/98/ME.</li>
6260 <li>An error is now returned when trying to start a transaction if
6261 another transaction is already active.</li>
6262
6263 </ol></p>
6264 <a name="version_2_6_3"></a>
6265 <h3>2002-08-13 (2.6.3)</h3><p><ol class='lessindent'>
6266 <li>Add the ability to read both little-endian and big-endian databases.
6267 So a database created under SunOS or Mac OS X can be read and written
6268 under Linux or Windows and vice versa.</li>
6269 <li>Convert to the new website: https://www.sqlite.org/</li>
6270 <li>Allow transactions to span Linux Threads</li>
6271 <li>Bug fix in the processing of the ORDER BY clause for GROUP BY queries</li>
6272
6273 </ol></p>
6274 <a name="version_2_6_2"></a>
6275 <h3>2002-07-31 (2.6.2)</h3><p><ol class='lessindent'>
6276 <li>Text files read by the COPY command can now have line terminators
6277 of LF, CRLF, or CR.</li>
6278 <li>SQLITE_BUSY is handled correctly if encountered during database
6279 initialization.</li>
6280 <li>Fix to UPDATE triggers on TEMP tables.</li>
6281 <li>Documentation updates.</li>
6282
6283 </ol></p>
6284 <a name="version_2_6_1"></a>
6285 <h3>2002-07-19 (2.6.1)</h3><p><ol class='lessindent'>
6286 <li>Include a static string in the library that responds to the RCS
6287 "ident" command and which contains the library version number.</li>
6288 <li>Fix an assertion failure that occurred when deleting all rows of
6289 a table with the "count_changes" pragma turned on.</li>
6290 <li>Better error reporting when problems occur during the automatic
6291 2.5.6 to 2.6.0 database format upgrade.</li>
6292
6293 </ol></p>
6294 <a name="version_2_6_0"></a>
6295 <h3>2002-07-18 (2.6.0)</h3><p><ol class='lessindent'>
6296 <li>Change the format of indices to correct a design flaw the originated
6297 with version 2.1.0. <font color="red">*** This is an incompatible
6298 file format change ***</font> When version 2.6.0 or later of the
6299 library attempts to open a database file created by version 2.5.6 or
6300 earlier, it will automatically and irreversibly convert the file format.
6301 <b>Make backup copies of older database files before opening them with
6302 version 2.6.0 of the library.</b>
6303 </li>
6304
6305 </ol></p>
6306 <a name="version_2_5_6"></a>
6307 <h3>2002-07-07 (2.5.6)</h3><p><ol class='lessindent'>
6308 <li>Fix more problems with rollback. Enhance the test suite to exercise
6309 the rollback logic extensively in order to prevent any future problems.
6310 </li>
6311
6312 </ol></p>
6313 <a name="version_2_5_5"></a>
6314 <h3>2002-07-06 (2.5.5)</h3><p><ol class='lessindent'>
6315 <li>Fix a bug which could cause database corruption during a rollback.
6316 This bugs was introduced in version 2.4.0 by the freelist
6317 optimization of checkin &#91;410&#93;.</li>
6318 <li>Fix a bug in aggregate functions for VIEWs.</li>
6319 <li>Other minor changes and enhancements.</li>
6320
6321 </ol></p>
6322 <a name="version_2_5_4"></a>
6323 <h3>2002-07-01 (2.5.4)</h3><p><ol class='lessindent'>
6324 <li>Make the "AS" keyword optional again.</li>
6325 <li>The datatype of columns now appear in the 4th argument to the
6326 callback.</li>
6327 <li>Added the <b>sqlite_open_aux_file()</b> API, though it is still
6328 mostly undocumented and untested.</li>
6329 <li>Added additional test cases and fixed a few bugs that those
6330 test cases found.</li>
6331
6332 </ol></p>
6333 <a name="version_2_5_3"></a>
6334 <h3>2002-06-25 (2.5.3)</h3><p><ol class='lessindent'>
6335 <li>Bug fix: Database corruption can occur due to the optimization
6336 that was introduced in version 2.4.0 (check-in &#91;410&#93;). The problem
6337 should now be fixed. The use of versions 2.4.0 through 2.5.2 is
6338 not recommended.</li>
6339
6340 </ol></p>
6341 <a name="version_2_5_2"></a>
6342 <h3>2002-06-25 (2.5.2)</h3><p><ol class='lessindent'>
6343 <li>Added the new <b>SQLITE_TEMP_MASTER</b> table which records the schema
6344 for temporary tables in the same way that <b>SQLITE_MASTER</b> does for
6345 persistent tables.</li>
6346 <li>Added an optimization to UNION ALL</li>
6347 <li>Fixed a bug in the processing of LEFT OUTER JOIN</li>
6348 <li>The LIMIT clause now works on subselects</li>
6349 <li>ORDER BY works on subselects</li>
6350 <li>There is a new TypeOf() function used to determine if an expression
6351 is numeric or text.</li>
6352 <li>Autoincrement now works for INSERT from a SELECT.</li>
6353
6354 </ol></p>
6355 <a name="version_2_5_1"></a>
6356 <h3>2002-06-19 (2.5.1)</h3><p><ol class='lessindent'>
6357 <li>The query optimizer now attempts to implement the ORDER BY clause
6358 using an index. Sorting is still used if not suitable index is
6359 available.</li>
6360
6361 </ol></p>
6362 <a name="version_2_5_0"></a>
6363 <h3>2002-06-17 (2.5.0)</h3><p><ol class='lessindent'>
6364 <li>Added support for row triggers.</li>
6365 <li>Added SQL-92 compliant handling of NULLs.</li>
6366 <li>Add support for the full SQL-92 join syntax and LEFT OUTER JOINs.</li>
6367 <li>Double-quoted strings interpreted as column names not text literals.</li>
6368 <li>Parse (but do not implement) foreign keys.</li>
6369 <li>Performance improvements in the parser, pager, and WHERE clause code
6370 generator.</li>
6371 <li>Make the LIMIT clause work on subqueries. (ORDER BY still does not
6372 work, though.)</li>
6373 <li>Added the "%Q" expansion to sqlite_*_printf().</li>
6374 <li>Bug fixes too numerous to mention (see the change log).</li>
6375
6376 </ol></p>
6377 <a name="version_2_4_12"></a>
6378 <h3>2002-05-10 (2.4.12)</h3><p><ol class='lessindent'>
6379 <li>Added logic to detect when the library API routines are called out
6380 of sequence.</li>
6381
6382 </ol></p>
6383 <a name="version_2_4_11"></a>
6384 <h3>2002-05-08 (2.4.11)</h3><p><ol class='lessindent'>
6385 <li>Bug fix: Column names in the result set were not being generated
6386 correctly for some (rather complex) VIEWs. This could cause a
6387 segfault under certain circumstances.</li>
6388
6389 </ol></p>
6390 <a name="version_2_4_10"></a>
6391 <h3>2002-05-03 (2.4.10)</h3><p><ol class='lessindent'>
6392 <li>Bug fix: Generate correct column headers when a compound SELECT is used
6393 as a subquery.</li>
6394 <li>Added the sqlite_encode_binary() and sqlite_decode_binary() functions to
6395 the source tree. But they are not yet linked into the library.</li>
6396 <li>Documentation updates.</li>
6397 <li>Export the sqlite_changes() function from Windows DLLs.</li>
6398 <li>Bug fix: Do not attempt the subquery flattening optimization on queries
6399 that lack a FROM clause. To do so causes a segfault.</li>
6400
6401 </ol></p>
6402 <a name="version_2_4_9"></a>
6403 <h3>2002-04-22 (2.4.9)</h3><p><ol class='lessindent'>
6404 <li>Fix a bug that was causing the precompiled binary of SQLITE.EXE to
6405 report "out of memory" under Windows 98.</li>
6406
6407 </ol></p>
6408 <a name="version_2_4_8"></a>
6409 <h3>2002-04-20 (2.4.8)</h3><p><ol class='lessindent'>
6410 <li>Make sure VIEWs are created after their corresponding TABLEs in the
6411 output of the <b>.dump</b> command in the shell.</li>
6412 <li>Speed improvements: Do not do synchronous updates on TEMP tables.</li>
6413 <li>Many improvements and enhancements to the shell.</li>
6414 <li>Make the GLOB and LIKE operators functions that can be overridden
6415 by a programmer. This allows, for example, the LIKE operator to
6416 be changed to be case sensitive.</li>
6417
6418 </ol></p>
6419 <a name="version_2_4_7"></a>
6420 <h3>2002-04-12 (2.4.7)</h3><p><ol class='lessindent'>
6421 <li>Add the ability to put TABLE.* in the column list of a
6422 SELECT statement.</li>
6423 <li>Permit SELECT statements without a FROM clause.</li>
6424 <li>Added the <b>last_insert_rowid()</b> SQL function.</li>
6425 <li>Do not count rows where the IGNORE conflict resolution occurs in
6426 the row count.</li>
6427 <li>Make sure functions expressions in the VALUES clause of an INSERT
6428 are correct.</li>
6429 <li>Added the <b>sqlite_changes()</b> API function to return the number
6430 of row that changed in the most recent operation.</li>
6431
6432 </ol></p>
6433 <a name="version_2_4_6"></a>
6434 <h3>2002-04-02 (2.4.6)</h3><p><ol class='lessindent'>
6435 <li>Bug fix: Correctly handle terms in the WHERE clause of a join that
6436 do not contain a comparison operator.</li>
6437
6438 </ol></p>
6439 <a name="version_2_4_5"></a>
6440 <h3>2002-04-02 (2.4.5)</h3><p><ol class='lessindent'>
6441 <li>Bug fix: Correctly handle functions that appear in the WHERE clause
6442 of a join.</li>
6443 <li>When the PRAGMA vdbe_trace=ON is set, correctly print the P3 operand
6444 value when it is a pointer to a structure rather than a pointer to
6445 a string.</li>
6446 <li>When inserting an explicit NULL into an INTEGER PRIMARY KEY, convert
6447 the NULL value into a unique key automatically.</li>
6448
6449 </ol></p>
6450 <a name="version_2_4_4"></a>
6451 <h3>2002-03-30 (2.4.4)</h3><p><ol class='lessindent'>
6452 <li>Allow "VIEW" to be a column name</li>
6453 <li>Added support for CASE expressions (patch from Dan Kennedy)</li>
6454 <li>Added RPMS to the delivery (patches from Doug Henry)</li>
6455 <li>Fix typos in the documentation</li>
6456 <li>Cut over configuration management to a new CVS repository with
6457 its own CVSTrac bug tracking system.</li>
6458
6459 </ol></p>
6460 <a name="version_2_4_3"></a>
6461 <h3>2002-03-23 (2.4.3)</h3><p><ol class='lessindent'>
6462 <li>Fix a bug in SELECT that occurs when a compound SELECT is used as a
6463 subquery in the FROM of a SELECT.</li>
6464 <li>The <b>sqlite_get_table()</b> function now returns an error if you
6465 give it two or more SELECTs that return different numbers of columns.</li>
6466
6467 </ol></p>
6468 <a name="version_2_4_2"></a>
6469 <h3>2002-03-20 (2.4.2)</h3><p><ol class='lessindent'>
6470 <li>Bug fix: Fix an assertion failure that occurred when ROWID was a column
6471 in a SELECT statement on a view.</li>
6472 <li>Bug fix: Fix an uninitialized variable in the VDBE that would could an
6473 assert failure.</li>
6474 <li>Make the os.h header file more robust in detecting when the compile is
6475 for Windows and when it is for Unix.</li>
6476
6477 </ol></p>
6478 <a name="version_2_4_1"></a>
6479 <h3>2002-03-13 (2.4.1)</h3><p><ol class='lessindent'>
6480 <li>Using an unnamed subquery in a FROM clause would cause a segfault.</li>
6481 <li>The parser now insists on seeing a semicolon or the end of input before
6482 executing a statement. This avoids an accidental disaster if the
6483 WHERE keyword is misspelled in an UPDATE or DELETE statement.</li>
6484
6485 </ol></p>
6486 <a name="version_2_4_0"></a>
6487 <h3>2002-03-11 (2.4.0)</h3><p><ol class='lessindent'>
6488 <li>Change the name of the sanity_check PRAGMA to <b>integrity_check</b>
6489 and make it available in all compiles.</li>
6490 <li>SELECT min() or max() of an indexed column with no WHERE or GROUP BY
6491 clause is handled as a special case which avoids a complete table scan.</li>
6492 <li>Automatically generated ROWIDs are now sequential.</li>
6493 <li>Do not allow dot-commands of the command-line shell to occur in the
6494 middle of a real SQL command.</li>
6495 <li>Modifications to the <a href="lemon.html">Lemon parser generator</a> so that the parser tables
6496 are 4 times smaller.</li>
6497 <li>Added support for user-defined functions implemented in C.</li>
6498 <li>Added support for new functions: <b>coalesce()</b>, <b>lower()</b>,
6499 <b>upper()</b>, and <b>random()</b>
6500 <li>Added support for VIEWs.</li>
6501 <li>Added the subquery flattening optimizer.</li>
6502 <li>Modified the B-Tree and Pager modules so that disk pages that do not
6503 contain real data (free pages) are not journaled and are not
6504 written from memory back to the disk when they change. This does not
6505 impact database integrity, since the
6506 pages contain no real data, but it does make large INSERT operations
6507 about 2.5 times faster and large DELETEs about 5 times faster.</li>
6508 <li>Made the CACHE_SIZE pragma persistent</li>
6509 <li>Added the SYNCHRONOUS pragma</li>
6510 <li>Fixed a bug that was causing updates to fail inside of transactions when
6511 the database contained a temporary table.</li>
6512
6513 </ol></p>
6514 <a name="version_2_3_3"></a>
6515 <h3>2002-02-19 (2.3.3)</h3><p><ol class='lessindent'>
6516 <li>Allow identifiers to be quoted in square brackets, for compatibility
6517 with MS-Access.</li>
6518 <li>Added support for sub-queries in the FROM clause of a SELECT.</li>
6519 <li>More efficient implementation of sqliteFileExists() under Windows.
6520 (by Joel Luscy)</li>
6521 <li>The VALUES clause of an INSERT can now contain expressions, including
6522 scalar SELECT clauses.</li>
6523 <li>Added support for CREATE TABLE AS SELECT</li>
6524 <li>Bug fix: Creating and dropping a table all within a single
6525 transaction was not working.</li>
6526
6527 </ol></p>
6528 <a name="version_2_3_2"></a>
6529 <h3>2002-02-14 (2.3.2)</h3><p><ol class='lessindent'>
6530 <li>Bug fix: There was an incorrect assert() in pager.c. The real code was
6531 all correct (as far as is known) so everything should work OK if you
6532 compile with -DNDEBUG=1. When asserts are not disabled, there
6533 could be a fault.</li>
6534
6535 </ol></p>
6536 <a name="version_2_3_1"></a>
6537 <h3>2002-02-13 (2.3.1)</h3><p><ol class='lessindent'>
6538 <li>Bug fix: An assertion was failing if "PRAGMA full_column_names=ON;" was
6539 set and you did a query that used a rowid, like this:
6540 "SELECT rowid, * FROM ...".</li>
6541
6542 </ol></p>
6543 <a name="version_2_3_0"></a>
6544 <h3>2002-02-03 (2.3.0)</h3><p><ol class='lessindent'>
6545 <li>Fix a serious bug in the INSERT command which was causing data to go
6546 into the wrong columns if the data source was a SELECT and the INSERT
6547 clauses specified its columns in some order other than the default.</li>
6548 <li>Added the ability to resolve constraint conflicts is ways other than
6549 an abort and rollback. See the documentation on the "ON CONFLICT"
6550 clause for details.</li>
6551 <li>Temporary files are now automatically deleted by the operating system
6552 when closed. There are no more dangling temporary files on a program
6553 crash. (If the OS crashes, fsck will delete the file after reboot
6554 under Unix. I do not know what happens under Windows.)</li>
6555 <li>NOT NULL constraints are honored.</li>
6556 <li>The COPY command puts NULLs in columns whose data is '\N'.</li>
6557 <li>In the COPY command, backslash can now be used to escape a newline.</li>
6558 <li>Added the SANITY_CHECK pragma.</li>
6559
6560 </ol></p>
6561 <a name="version_2_2_5"></a>
6562 <h3>2002-01-28 (2.2.5)</h3><p><ol class='lessindent'>
6563 <li>Important bug fix: the IN operator was not working if either the
6564 left-hand or right-hand side was derived from an INTEGER PRIMARY KEY.</li>
6565 <li>Do not escape the backslash '\' character in the output of the
6566 <b>sqlite</b> command-line access program.</li>
6567
6568 </ol></p>
6569 <a name="version_2_2_4"></a>
6570 <h3>2002-01-22 (2.2.4)</h3><p><ol class='lessindent'>
6571 <li>The label to the right of an AS in the column list of a SELECT can now
6572 be used as part of an expression in the WHERE, ORDER BY, GROUP BY, and/or
6573 HAVING clauses.</li>
6574 <li>Fix a bug in the <b>-separator</b> command-line option to the <b>sqlite</b>
6575 command.</li>
6576 <li>Fix a problem with the sort order when comparing upper-case strings against
6577 characters greater than 'Z' but less than 'a'.</li>
6578 <li>Report an error if an ORDER BY or GROUP BY expression is constant.</li>
6579
6580 </ol></p>
6581 <a name="version_2_2_3"></a>
6582 <h3>2002-01-16 (2.2.3)</h3><p><ol class='lessindent'>
6583 <li>Fix warning messages in VC++ 7.0. (Patches from nicolas352001)</li>
6584 <li>Make the library thread-safe. (The code is there and appears to work
6585 but has not been stressed.)</li>
6586 <li>Added the new <b>sqlite_last_insert_rowid()</b> API function.</li>
6587
6588 </ol></p>
6589 <a name="version_2_2_2"></a>
6590 <h3>2002-01-14 (2.2.2)</h3><p><ol class='lessindent'>
6591 <li>Bug fix: An assertion was failing when a temporary table with an index
6592 had the same name as a permanent table created by a separate process.</li>
6593 <li>Bug fix: Updates to tables containing an INTEGER PRIMARY KEY and an
6594 index could fail.</li>
6595
6596 </ol></p>
6597 <a name="version_2_2_1"></a>
6598 <h3>2002-01-09 (2.2.1)</h3><p><ol class='lessindent'>
6599 <li>Bug fix: An attempt to delete a single row of a table with a WHERE
6600 clause of "ROWID=x" when no such rowid exists was causing an error.</li>
6601 <li>Bug fix: Passing in a NULL as the 3rd parameter to <b>sqlite_open()</b>
6602 would sometimes cause a coredump.</li>
6603 <li>Bug fix: DROP TABLE followed by a CREATE TABLE with the same name all
6604 within a single transaction was causing a coredump.</li>
6605 <li>Makefile updates from A. Rottmann</li>
6606
6607 </ol></p>
6608 <a name="version_2_2_0"></a>
6609 <h3>2001-12-22 (2.2.0)</h3><p><ol class='lessindent'>
6610 <li>Columns of type INTEGER PRIMARY KEY are actually used as the primary
6611 key in underlying B-Tree representation of the table.</li>
6612 <li>Several obscure, unrelated bugs were found and fixed while
6613 implemented the integer primary key change of the previous bullet.</li>
6614 <li>Added the ability to specify "*" as part of a larger column list in
6615 the result section of a SELECT statement. For example:
6616 <nobr>"<b>SELECT rowid, * FROM table1;</b>"</nobr>.</li>
6617 <li>Updates to comments and documentation.</li>
6618
6619 </ol></p>
6620 <a name="version_2_1_7"></a>
6621 <h3>2001-12-15 (2.1.7)</h3><p><ol class='lessindent'>
6622 <li>Fix a bug in <b>CREATE TEMPORARY TABLE</b> which was causing the
6623 table to be initially allocated in the main database file instead
6624 of in the separate temporary file. This bug could cause the library
6625 to suffer an assertion failure and it could cause "page leaks" in the
6626 main database file.
6627 <li>Fix a bug in the b-tree subsystem that could sometimes cause the first
6628 row of a table to be repeated during a database scan.</li>
6629
6630 </ol></p>
6631 <a name="version_2_1_6"></a>
6632 <h3>2001-12-14 (2.1.6)</h3><p><ol class='lessindent'>
6633 <li>Fix the locking mechanism yet again to prevent
6634 <b>sqlite_exec()</b> from returning SQLITE_PROTOCOL
6635 unnecessarily. This time the bug was a race condition in
6636 the locking code. This change affects both POSIX and Windows users.</li>
6637
6638 </ol></p>
6639 <a name="version_2_1_5"></a>
6640 <h3>2001-12-06 (2.1.5)</h3><p><ol class='lessindent'>
6641 <li>Fix for another problem (unrelated to the one fixed in 2.1.4)
6642 that sometimes causes <b>sqlite_exec()</b> to return SQLITE_PROTOCOL
6643 unnecessarily. This time the bug was
6644 in the POSIX locking code and should not effect Windows users.</li>
6645
6646 </ol></p>
6647 <a name="version_2_1_4"></a>
6648 <h3>2001-12-05 (2.1.4)</h3><p><ol class='lessindent'>
6649 <li>Sometimes <b>sqlite_exec()</b> would return SQLITE_PROTOCOL when it
6650 should have returned SQLITE_BUSY.</li>
6651 <li>The fix to the previous bug uncovered a deadlock which was also
6652 fixed.</li>
6653 <li>Add the ability to put a single .command in the second argument
6654 of the sqlite shell</li>
6655 <li>Updates to the FAQ</li>
6656
6657 </ol></p>
6658 <a name="version_2_1_3"></a>
6659 <h3>2001-11-24 (2.1.3)</h3><p><ol class='lessindent'>
6660 <li>Fix the behavior of comparison operators
6661 (ex: "<b>&lt;</b>", "<b>==</b>", etc.)
6662 so that they are consistent with the order of entries in an index.</li>
6663 <li>Correct handling of integers in SQL expressions that are larger than
6664 what can be represented by the machine integer.</li>
6665
6666 </ol></p>
6667 <a name="version_2_1_2"></a>
6668 <h3>2001-11-23 (2.1.2)</h3><p><ol class='lessindent'>
6669 <li>Changes to support 64-bit architectures.</li>
6670 <li>Fix a bug in the locking protocol.</li>
6671 <li>Fix a bug that could (rarely) cause the database to become
6672 unreadable after a DROP TABLE due to corruption to the SQLITE_MASTER
6673 table.</li>
6674 <li>Change the code so that version 2.1.1 databases that were rendered
6675 unreadable by the above bug can be read by this version of
6676 the library even though the SQLITE_MASTER table is (slightly)
6677 corrupted.</li>
6678
6679 </ol></p>
6680 <a name="version_2_1_1"></a>
6681 <h3>2001-11-13 (2.1.1)</h3><p><ol class='lessindent'>
6682 <li>Bug fix: Sometimes arbitrary strings were passed to the callback
6683 function when the actual value of a column was NULL.</li>
6684
6685 </ol></p>
6686 <a name="version_2_1_0"></a>
6687 <h3>2001-11-12 (2.1.0)</h3><p><ol class='lessindent'>
6688 <li>Change the format of data records so that records up to 16MB in size
6689 can be stored.</li>
6690 <li>Change the format of indices to allow for better query optimization.</li>
6691 <li>Implement the "LIMIT ... OFFSET ..." clause on SELECT statements.</li>
6692
6693 </ol></p>
6694 <a name="version_2_0_8"></a>
6695 <h3>2001-11-03 (2.0.8)</h3><p><ol class='lessindent'>
6696 <li>Made selected parameters in API functions <b>const</b>. This should
6697 be fully backwards compatible.</li>
6698 <li>Documentation updates</li>
6699 <li>Simplify the design of the VDBE by restricting the number of sorters
6700 and lists to 1.
6701 In practice, no more than one sorter and one list was ever used anyhow.
6702 </li>
6703
6704 </ol></p>
6705 <a name="version_2_0_7"></a>
6706 <h3>2001-10-22 (2.0.7)</h3><p><ol class='lessindent'>
6707 <li>Any UTF-8 character or ISO8859 character can be used as part of
6708 an identifier.</li>
6709 <li>Patches from Christian Werner to improve ODBC compatibility and to
6710 fix a bug in the round() function.</li>
6711 <li>Plug some memory leaks that use to occur if malloc() failed.
6712 We have been and continue to be memory leak free as long as
6713 malloc() works.</li>
6714 <li>Changes to some test scripts so that they work on Windows in
6715 addition to Unix.</li>
6716
6717 </ol></p>
6718 <a name="version_2_0_6"></a>
6719 <h3>2001-10-19 (2.0.6)</h3><p><ol class='lessindent'>
6720 <li>Added the EMPTY_RESULT_CALLBACKS pragma</li>
6721 <li>Support for UTF-8 and ISO8859 characters in column and table names.</li>
6722 <li>Bug fix: Compute correct table names with the FULL_COLUMN_NAMES pragma
6723 is turned on.</li>
6724
6725 </ol></p>
6726 <a name="version_2_0_5"></a>
6727 <h3>2001-10-15 (2.0.5)</h3><p><ol class='lessindent'>
6728 <li>Added the COUNT_CHANGES pragma.</li>
6729 <li>Changes to the FULL_COLUMN_NAMES pragma to help out the ODBC driver.</li>
6730 <li>Bug fix: "SELECT count(*)" was returning NULL for empty tables.
6731 Now it returns 0.</li>
6732
6733 </ol></p>
6734 <a name="version_2_0_4"></a>
6735 <h3>2001-10-13 (2.0.4)</h3><p><ol class='lessindent'>
6736 <li>Bug fix: an obscure and relatively harmless bug was causing one of
6737 the tests to fail when gcc optimizations are turned on. This release
6738 fixes the problem.</li>
6739
6740 </ol></p>
6741 <a name="version_2_0_3"></a>
6742 <h3>2001-10-13 (2.0.3)</h3><p><ol class='lessindent'>
6743 <li>Bug fix: the <b>sqlite_busy_timeout()</b> function was delaying 1000
6744 times too long before failing.</li>
6745 <li>Bug fix: an assertion was failing if the disk holding the database
6746 file became full or stopped accepting writes for some other reason.
6747 New tests were added to detect similar problems in the future.</li>
6748 <li>Added new operators: <b>&amp;</b> (bitwise-and)
6749 <b>|</b> (bitwise-or), <b>~</b> (ones-complement),
6750 <b>&lt;&lt;</b> (shift left), <b>&gt;&gt;</b> (shift right).</li>
6751 <li>Added new functions: <b>round()</b> and <b>abs()</b>.</li>
6752
6753 </ol></p>
6754 <a name="version_2_0_2"></a>
6755 <h3>2001-10-09 (2.0.2)</h3><p><ol class='lessindent'>
6756 <li>Fix two bugs in the locking protocol. (One was masking the other.)</li>
6757 <li>Removed some unused "#include <unistd.h>" that were causing problems
6758 for VC++.</li>
6759 <li>Fixed <b>sqlite.h</b> so that it is usable from C++</li>
6760 <li>Added the FULL_COLUMN_NAMES pragma. When set to "ON", the names of
6761 columns are reported back as TABLE.COLUMN instead of just COLUMN.</li>
6762 <li>Added the TABLE_INFO() and INDEX_INFO() pragmas to help support the
6763 ODBC interface.</li>
6764 <li>Added support for TEMPORARY tables and indices.</li>
6765
6766 </ol></p>
6767 <a name="version_2_0_1"></a>
6768 <h3>2001-10-02 (2.0.1)</h3><p><ol class='lessindent'>
6769 <li>Remove some C++ style comments from btree.c so that it will compile
6770 using compilers other than gcc.</li>
6771 <li>The ".dump" output from the shell does not work if there are embedded
6772 newlines anywhere in the data. This is an old bug that was carried
6773 forward from version 1.0. To fix it, the ".dump" output no longer
6774 uses the COPY command. It instead generates INSERT statements.</li>
6775 <li>Extend the expression syntax to support "expr NOT NULL" (with a
6776 space between the "NOT" and the "NULL") in addition to "expr NOTNULL"
6777 (with no space).</li>
6778
6779 </ol></p>
6780 <a name="version_2_0_0"></a>
6781 <h3>2001-09-28 (2.0.0)</h3><p><ol class='lessindent'>
6782 <li>Automatically build binaries for Linux and Windows and put them on
6783 the website.</li>
6784
6785 </ol></p>
6786 <h3>2001-09-28 (2.0-alpha-4)</h3><p><ol class='lessindent'>
6787 <li>Incorporate makefile patches form A. Rottmann to use LIBTOOL</li>
6788
6789 </ol></p>
6790 <h3>2001-09-27 (2.0-alpha-3)</h3><p><ol class='lessindent'>
6791 <li>SQLite now honors the UNIQUE keyword in CREATE UNIQUE INDEX. Primary
6792 keys are required to be unique.</li>
6793 <li>File format changed back to what it was for alpha-1</li>
6794 <li>Fixes to the rollback and locking behavior</li>
6795
6796 </ol></p>
6797 <h3>2001-09-20 (2.0-alpha-2)</h3><p><ol class='lessindent'>
6798 <li>Initial release of version 2.0. The idea of renaming the library
6799 to "SQLus" was abandoned in favor of keeping the "SQLite" name and
6800 bumping the major version number.</li>
6801 <li>The pager and btree subsystems added back. They are now the only
6802 available backend.</li>
6803 <li>The Dbbe abstraction and the GDBM and memory drivers were removed.</li>
6804 <li>Copyright on all code was disclaimed. The library is now in the
6805 public domain.</li>
6806
6807 </ol></p>
6808 <a name="version_1_0_32"></a>
6809 <h3>2001-07-23 (1.0.32)</h3><p><ol class='lessindent'>
6810 <li>Pager and btree subsystems removed. These will be used in a follow-on
6811 SQL server library named "SQLus".</li>
6812 <li>Add the ability to use quoted strings as table and column names in
6813 expressions.</li>
6814
6815 </ol></p>
6816 <a name="version_1_0_31"></a>
6817 <h3>2001-04-15 (1.0.31)</h3><p><ol class='lessindent'>
6818 <li>Pager subsystem added but not yet used.</li>
6819 <li>More robust handling of out-of-memory errors.</li>
6820 <li>New tests added to the test suite.</li>
6821
6822 </ol></p>
6823 <a name="version_1_0_30"></a>
6824 <h3>2001-04-06 (1.0.30)</h3><p><ol class='lessindent'>
6825 <li>Remove the <b>sqlite_encoding</b> TCL variable that was introduced
6826 in the previous version.</li>
6827 <li>Add options <b>-encoding</b> and <b>-tcl-uses-utf</b> to the
6828 <b>sqlite</b> TCL command.</li>
6829 <li>Add tests to make sure that tclsqlite was compiled using Tcl header
6830 files and libraries that match.</li>
6831
6832 </ol></p>
6833 <a name="version_1_0_29"></a>
6834 <h3>2001-04-05 (1.0.29)</h3><p><ol class='lessindent'>
6835 <li>The library now assumes data is stored as UTF-8 if the --enable-utf8
6836 option is given to configure. The default behavior is to assume
6837 iso8859-x, as it has always done. This only makes a difference for
6838 LIKE and GLOB operators and the LENGTH and SUBSTR functions.</li>
6839 <li>If the library is not configured for UTF-8 and the Tcl library
6840 is one of the newer ones that uses UTF-8 internally,
6841 then a conversion from UTF-8 to iso8859 and
6842 back again is done inside the TCL interface.</li>
6843
6844 </ol></p>
6845 <a name="version_1_0_28"></a>
6846 <h3>2001-04-04 (1.0.28)</h3><p><ol class='lessindent'>
6847 <li>Added limited support for transactions. At this point, transactions
6848 will do table locking on the GDBM backend. There is no support (yet)
6849 for rollback or atomic commit.</li>
6850 <li>Added special column names ROWID, OID, and _ROWID_ that refer to the
6851 unique random integer key associated with every row of every table.</li>
6852 <li>Additional tests added to the regression suite to cover the new ROWID
6853 feature and the TCL interface bugs mentioned below.</li>
6854 <li>Changes to the <a href="lemon.html">Lemon parser generator</a> to help it work better when
6855 compiled using MSVC.</li>
6856 <li>Bug fixes in the TCL interface identified by Oleg Oleinick.</li>
6857
6858 </ol></p>
6859 <a name="version_1_0_27"></a>
6860 <h3>2001-03-20 (1.0.27)</h3><p><ol class='lessindent'>
6861 <li>When doing DELETE and UPDATE, the library used to write the record
6862 numbers of records to be deleted or updated into a temporary file.
6863 This is changed so that the record numbers are held in memory.</li>
6864 <li>The DELETE command without a WHILE clause just removes the database
6865 files from the disk, rather than going through and deleting record
6866 by record.</li>
6867
6868 </ol></p>
6869 <a name="version_1_0_26"></a>
6870 <h3>2001-03-20 (1.0.26)</h3><p><ol class='lessindent'>
6871 <li>A serious bug fixed on Windows. Windows users should upgrade.
6872 No impact to Unix.</li>
6873
6874 </ol></p>
6875 <a name="version_1_0_25"></a>
6876 <h3>2001-03-15 (1.0.25)</h3><p><ol class='lessindent'>
6877 <li>Modify the test scripts to identify tests that depend on system
6878 load and processor speed and
6879 to warn the user that a failure of one of those (rare) tests does
6880 not necessarily mean the library is malfunctioning. No changes to
6881 code.
6882 </li>
6883
6884 </ol></p>
6885 <a name="version_1_0_24"></a>
6886 <h3>2001-03-14 (1.0.24)</h3><p><ol class='lessindent'>
6887 <li>Fix a bug which was causing
6888 the UPDATE command to fail on systems where "malloc(0)" returns
6889 NULL. The problem does not appear on Windows, Linux, or HPUX but does
6890 cause the library to fail on QNX.
6891 </li>
6892
6893 </ol></p>
6894 <a name="version_1_0_23"></a>
6895 <h3>2001-02-20 (1.0.23)</h3><p><ol class='lessindent'>
6896 <li>An unrelated (and minor) bug from Mark Muranwski fixed. The algorithm
6897 for figuring out where to put temporary files for a "memory:" database
6898 was not working quite right.
6899 </li>
6900
6901 </ol></p>
6902 <a name="version_1_0_22"></a>
6903 <h3>2001-02-19 (1.0.22)</h3><p><ol class='lessindent'>
6904 <li>The previous fix was not quite right. This one seems to work better.
6905 </li>
6906
6907 </ol></p>
6908 <a name="version_1_0_21"></a>
6909 <h3>2001-02-19 (1.0.21)</h3><p><ol class='lessindent'>
6910 <li>The UPDATE statement was not working when the WHERE clause contained
6911 some terms that could be satisfied using indices and other terms that
6912 could not. Fixed.</li>
6913
6914 </ol></p>
6915 <a name="version_1_0_20"></a>
6916 <h3>2001-02-11 (1.0.20)</h3><p><ol class='lessindent'>
6917 <li>Merge development changes into the main trunk. Future work toward
6918 using a BTree file structure will use a separate CVS source tree. This
6919 CVS tree will continue to support the GDBM version of SQLite only.</li>
6920
6921 </ol></p>
6922 <a name="version_1_0_19"></a>
6923 <h3>2001-02-06 (1.0.19)</h3><p><ol class='lessindent'>
6924 <li>Fix a strange (but valid) C declaration that was causing problems
6925 for QNX. No logical changes.</li>
6926
6927 </ol></p>
6928 <a name="version_1_0_18"></a>
6929 <h3>2001-01-04 (1.0.18)</h3><p><ol class='lessindent'>
6930 <li>Print the offending SQL statement when an error occurs.</li>
6931 <li>Do not require commas between constraints in CREATE TABLE statements.</li>
6932 <li>Added the "-echo" option to the shell.</li>
6933 <li>Changes to comments.</li>
6934
6935 </ol></p>
6936 <a name="version_1_0_17"></a>
6937 <h3>2000-12-10 (1.0.17)</h3><p><ol class='lessindent'>
6938 <li>Rewrote <b>sqlite_complete()</b> to make it faster.</li>
6939 <li>Minor tweaks to other code to make it run a little faster.</li>
6940 <li>Added new tests for <b>sqlite_complete()</b> and for memory leaks.</li>
6941
6942 </ol></p>
6943 <a name="version_1_0_16"></a>
6944 <h3>2000-11-28 (1.0.16)</h3><p><ol class='lessindent'>
6945 <li>Documentation updates. Mostly fixing of typos and spelling errors.</li>
6946
6947 </ol></p>
6948 <a name="version_1_0_15"></a>
6949 <h3>2000-10-23 (1.0.15)</h3><p><ol class='lessindent'>
6950 <li>Documentation updates</li>
6951 <li>Some sanity checking code was removed from the inner loop of vdbe.c
6952 to help the library to run a little faster. The code is only
6953 removed if you compile with -DNDEBUG.</li>
6954
6955 </ol></p>
6956 <a name="version_1_0_14"></a>
6957 <h3>2000-10-19 (1.0.14)</h3><p><ol class='lessindent'>
6958 <li>Added a "memory:" backend driver that stores its database in an
6959 in-memory hash table.</li>
6960
6961 </ol></p>
6962 <a name="version_1_0_13"></a>
6963 <h3>2000-10-19 (1.0.13)</h3><p><ol class='lessindent'>
6964 <li>Break out the GDBM driver into a separate file in anticipation
6965 to added new drivers.</li>
6966 <li>Allow the name of a database to be prefixed by the driver type.
6967 For now, the only driver type is "gdbm:".</li>
6968
6969 </ol></p>
6970 <a name="version_1_0_12"></a>
6971 <h3>2000-10-17 (1.0.12)</h3><p><ol class='lessindent'>
6972 <li>Fixed an off-by-one error that was causing a coredump in
6973 the '%q' format directive of the new
6974 <b>sqlite_..._printf()</b> routines.</li>
6975 <li>Added the <b>sqlite_interrupt()</b> interface.</li>
6976 <li>In the shell, <b>sqlite_interrupt()</b> is invoked when the
6977 user presses Control-C</li>
6978 <li>Fixed some instances where <b>sqlite_exec()</b> was
6979 returning the wrong error code.</li>
6980
6981 </ol></p>
6982 <a name="version_1_0_10"></a>
6983 <h3>2000-10-11 (1.0.10)</h3><p><ol class='lessindent'>
6984 <li>Added notes on how to compile for Windows95/98.</li>
6985 <li>Removed a few variables that were not being used. Etc.</li>
6986
6987 </ol></p>
6988 <a name="version_1_0_9"></a>
6989 <h3>2000-10-09 (1.0.9)</h3><p><ol class='lessindent'>
6990 <li>Added the <b>sqlite_..._printf()</b> interface routines.</li>
6991 <li>Modified the <b>sqlite</b> shell program to use the new interface
6992 routines.</li>
6993 <li>Modified the <b>sqlite</b> shell program to print the schema for
6994 the built-in SQLITE_MASTER table, if explicitly requested.</li>
6995
6996 </ol></p>
6997 <a name="version_1_0_8"></a>
6998 <h3>2000-09-30 (1.0.8)</h3><p><ol class='lessindent'>
6999 <li>Begin writing documentation on the TCL interface.</li>
7000
7001 </ol></p>
7002 <h3>2000-09-29 (Not Released)</h3><p><ol class='lessindent'>
7003 <li>Added the <b>sqlite_get_table()</b> API</li>
7004 <li>Updated the documentation for due to the above change.</li>
7005 <li>Modified the <b>sqlite</b> shell to make use of the new
7006 sqlite_get_table() API in order to print a list of tables
7007 in multiple columns, similar to the way "ls" prints filenames.</li>
7008 <li>Modified the <b>sqlite</b> shell to print a semicolon at the
7009 end of each CREATE statement in the output of the ".schema" command.</li>
7010
7011 </ol></p>
7012 <h3>2000-09-21 (Not Released)</h3><p><ol class='lessindent'>
7013 <li>Change the tclsqlite "eval" method to return a list of results if
7014 no callback script is specified.</li>
7015 <li>Change tclsqlite.c to use the Tcl_Obj interface</li>
7016 <li>Add tclsqlite.c to the libsqlite.a library</li>
7017
7018 </ol></p>
7019 <a name="version_1_0_5"></a>
7020 <h3>2000-09-14 (1.0.5)</h3><p><ol class='lessindent'>
7021 <li>Changed the print format for floating point values from "%g" to "%.15g".
7022 </li>
7023 <li>Changed the comparison function so that numbers in exponential notation
7024 (ex: 1.234e+05) sort in numerical order.</li>
7025
7026 </ol></p>
7027 <a name="version_1_0_4"></a>
7028 <h3>2000-08-28 (1.0.4)</h3><p><ol class='lessindent'>
7029 <li>Added functions <b>length()</b> and <b>substr()</b>.</li>
7030 <li>Fix a bug in the <b>sqlite</b> shell program that was causing
7031 a coredump when the output mode was "column" and the first row
7032 of data contained a NULL.</li>
7033
7034 </ol></p>
7035 <a name="version_1_0_3"></a>
7036 <h3>2000-08-22 (1.0.3)</h3><p><ol class='lessindent'>
7037 <li>In the sqlite shell, print the "Database opened READ ONLY" message
7038 to stderr instead of stdout.</li>
7039 <li>In the sqlite shell, now print the version number on initial startup.</li>
7040 <li>Add the <b>sqlite_version&#91;&#93;</b> string constant to the library</li>
7041 <li>Makefile updates</li>
7042 <li>Bug fix: incorrect VDBE code was being generated for the following
7043 circumstance: a query on an indexed table containing a WHERE clause with
7044 an IN operator that had a subquery on its right-hand side.</li>
7045
7046 </ol></p>
7047 <a name="version_1_0_1"></a>
7048 <h3>2000-08-18 (1.0.1)</h3><p><ol class='lessindent'>
7049 <li>Fix a bug in the configure script.</li>
7050 <li>Minor revisions to the website.</li>
7051
7052 </ol></p>
7053 <a name="version_1_0"></a>
7054 <h3>2000-08-17 (1.0)</h3><p><ol class='lessindent'>
7055 <li>Change the <b>sqlite</b> program so that it can read
7056 databases for which it lacks write permission. (It used to
7057 refuse all access if it could not write.)</li>
7058
7059 </ol></p>
7060 <h3>2000-08-09</h3><p><ol class='lessindent'>
7061 <li>Treat carriage returns as white space.</li>
7062
7063 </ol></p>
7064 <h3>2000-08-08</h3><p><ol class='lessindent'>
7065 <li>Added pattern matching to the ".table" command in the "sqlite"
7066 command shell.</li>
7067
7068 </ol></p>
7069 <h3>2000-08-04</h3><p><ol class='lessindent'>
7070 <li>Documentation updates</li>
7071 <li>Added "busy" and "timeout" methods to the Tcl interface</li>
7072
7073 </ol></p>
7074 <h3>2000-08-03</h3><p><ol class='lessindent'>
7075 <li>File format version number was being stored in sqlite_master.tcl
7076 multiple times. This was harmless, but unnecessary. It is now fixed.</li>
7077
7078 </ol></p>
7079 <h3>2000-08-02</h3><p><ol class='lessindent'>
7080 <li>The file format for indices was changed slightly in order to work
7081 around an inefficiency that can sometimes come up with GDBM when
7082 there are large indices having many entries with the same key.
7083 <font color="red">** Incompatible Change **</font></li>
7084
7085 </ol></p>
7086 <h3>2000-08-01</h3><p><ol class='lessindent'>
7087 <li>The parser's stack was overflowing on a very long UPDATE statement.
7088 This is now fixed.</li>
7089
7090 </ol></p>
7091 <h3>2000-07-31</h3><p><ol class='lessindent'>
7092 <li>Finish the <a href="vdbe.html">VDBE tutorial</a>.</li>
7093 <li>Added documentation on compiling to WinNT.</li>
7094 <li>Fix a configuration program for WinNT.</li>
7095 <li>Fix a configuration problem for HPUX.</li>
7096
7097 </ol></p>
7098 <h3>2000-07-29</h3><p><ol class='lessindent'>
7099 <li>Better labels on column names of the result.</li>
7100
7101 </ol></p>
7102 <h3>2000-07-28</h3><p><ol class='lessindent'>
7103 <li>Added the <b>sqlite_busy_handler()</b>
7104 and <b>sqlite_busy_timeout()</b> interface.</li>
7105
7106 </ol></p>
7107 <h3>2000-06-23</h3><p><ol class='lessindent'>
7108 <li>Begin writing the <a href="vdbe.html">VDBE tutorial</a>.</li>
7109
7110 </ol></p>
7111 <h3>2000-06-21</h3><p><ol class='lessindent'>
7112 <li>Clean up comments and variable names. Changes to documentation.
7113 No functional changes to the code.</li>
7114
7115 </ol></p>
7116 <h3>2000-06-19</h3><p><ol class='lessindent'>
7117 <li>Column names in UPDATE statements were case sensitive.
7118 This mistake has now been fixed.</li>
7119
7120 </ol></p>
7121 <h3>2000-06-18</h3><p><ol class='lessindent'>
7122 <li>Added the concatenate string operator (||)</li>
7123
7124 </ol></p>
7125 <h3>2000-06-12</h3><p><ol class='lessindent'>
7126 <li>Added the fcnt() function to the SQL interpreter. The fcnt() function
7127 returns the number of database "Fetch" operations that have occurred.
7128 This function is designed for use in test scripts to verify that
7129 queries are efficient and appropriately optimized. Fcnt() has no other
7130 useful purpose, as far as I know.</li>
7131 <li>Added a bunch more tests that take advantage of the new fcnt() function.
7132 The new tests did not uncover any new problems.</li>
7133
7134 </ol></p>
7135 <h3>2000-06-08</h3><p><ol class='lessindent'>
7136 <li>Added lots of new test cases</li>
7137 <li>Fix a few bugs discovered while adding test cases</li>
7138 <li>Begin adding lots of new documentation</li>
7139
7140 </ol></p>
7141 <h3>2000-06-06</h3><p><ol class='lessindent'>
7142 <li>Added compound select operators: <B>UNION</b>, <b>UNION ALL</B>,
7143 <b>INTERSECT</b>, and <b>EXCEPT</b></li>
7144 <li>Added support for using <b>(SELECT ...)</b> within expressions</li>
7145 <li>Added support for <b>IN</b> and <b>BETWEEN</b> operators</li>
7146 <li>Added support for <b>GROUP BY</b> and <b>HAVING</b></li>
7147 <li>NULL values are now reported to the callback as a NULL pointer
7148 rather than an empty string.</li>
7149
7150 </ol></p>
7151 <h3>2000-06-03</h3><p><ol class='lessindent'>
7152 <li>Added support for default values on columns of a table.</li>
7153 <li>Improved test coverage. Fixed a few obscure bugs found by the
7154 improved tests.</li>
7155
7156 </ol></p>
7157 <h3>2000-06-02</h3><p><ol class='lessindent'>
7158 <li>All database files to be modified by an UPDATE, INSERT or DELETE are
7159 now locked before any changes are made to any files.
7160 This makes it safe (I think) to access
7161 the same database simultaneously from multiple processes.</li>
7162 <li>The code appears stable so we are now calling it "beta".</li>
7163
7164 </ol></p>
7165 <h3>2000-06-01</h3><p><ol class='lessindent'>
7166 <li>Better support for file locking so that two or more processes
7167 (or threads)
7168 can access the same database simultaneously. More work needed in
7169 this area, though.</li>
7170
7171 </ol></p>
7172 <h3>2000-05-31</h3><p><ol class='lessindent'>
7173 <li>Added support for aggregate functions (Ex: <b>COUNT(*)</b>, <b>MIN(...)</b>)
7174 to the SELECT statement.</li>
7175 <li>Added support for <B>SELECT DISTINCT ...</B></li>
7176
7177 </ol></p>
7178 <h3>2000-05-30</h3><p><ol class='lessindent'>
7179 <li>Added the <b>LIKE</b> operator.</li>
7180 <li>Added a <b>GLOB</b> operator: similar to <B>LIKE</B>
7181 but it uses Unix shell globbing wildcards instead of the '%'
7182 and '_' wildcards of SQL.</li>
7183 <li>Added the <B>COPY</b> command patterned after
7184 <a href="http://www.postgresql.org/">PostgreSQL</a> so that SQLite
7185 can now read the output of the <b>pg_dump</b> database dump utility
7186 of PostgreSQL.</li>
7187 <li>Added a <B>VACUUM</B> command that calls the
7188 <b>gdbm_reorganize()</b> function on the underlying database
7189 files.</li>
7190 <li>And many, many bug fixes...</li>
7191
7192 </ol></p>
7193 <h3>2000-05-29</h3><p><ol class='lessindent'>
7194 <li>Initial Public Release of Alpha code</li>
7195
7196 </ol></p>
7197
7198 </dl>
7199
7200