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.svg" 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://sqlite.org/src/timeline">
126 https://sqlite.org/src/timeline</a> and
127 <a href="https://sqlite.org/src/timeline?t=release">
128 https://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_53_2"></a>
133 <h3>2026-06-03 (3.53.2)</h3><p><ol class='lessindent'>
134 <li> Fixes for problems in 3.53.0 reported by users. See the
135 <a href="https://sqlite.org/src/timeline?from=version-3.53.0&to=version-3.53.2&to2=branch-3.53&y=ci">check-in timeline</a>
136 for details.
137 <p><b>Hashes:</b>
138 <li>SQLITE_SOURCE_ID: 2026-06-03 19:12:13 d6e03d8c777cfa2d35e3b60d8ec3e0187f3e9f99d8e2ee9cac695fd6fcdf1a24
139 <li>SHA3-256 for sqlite3.c: 44fd61b9f93b4155105cb2d80c957ae6c64a8b5bd6ed51a4992f0dbd438e4e11
140
141 </ol></p>
142 <a name="version_3_53_1"></a>
143 <h3>2026-05-05 (3.53.1)</h3><p><ol class='lessindent'>
144 <li> Fixes for problems in 3.53.1 reported by users. See the
145 <a href="https://sqlite.org/src/timeline?from=version-3.53.0&to=version-3.53.1&y=ci">check-in timeline</a>
146 for details.
147 <p><b>Hashes:</b>
148 <li>SQLITE_SOURCE_ID: 2026-05-05 10:34:17 c88b22011a54b4f6fbd149e9f8e4de77658ce58143a1af0e3785e4e6475127e9
149 <li>SHA3-256 for sqlite3.c: 414432ae5719f6cdc485f3927e12c7ad107e2b8c6b434e5df2eadb5312bfabb5
150
151 </ol></p>
152 <a name="version_3_53_0"></a>
153 <h3>2026-04-09 (3.53.0)</h3><p><ol class='lessindent'>
154 <li> Fix the <a href="wal.html#walresetbug">WAL-reset database corruption bug</a>.
155 <li> Add the <a href="https://sqlite.org/src/file/ext/qrf">Query Result Formatter (QRF)</a>
156 library for formatting the results of SQL queries for human readability
157 on a fixed-pitch font screen.
158 <ol type="a">
159 <li> Add the <a href="tclsqlite.html#format">format method</a> to the <a href="tclsqlite.html">TCL Interface</a> so that QRF is
160 accessible from TCL.
161 <li> QRF is used for result formatting in the <a href="cli.html">CLI</a>, resulting in improved
162 display capabilities.
163 </ol>
164 <li> New SQL language features:
165 <ol type="a">
166 <li> Enhance <a href="lang_altertable.html">ALTER TABLE</a> to permit adding and removing NOT NULL
167 and CHECK constraints.
168 <li> The <a href="lang_reindex.html">REINDEX EXPRESSIONS</a> statement rebuilds expression indexes.
169 (Useful to repair <a href="staleexpridx.html">stale expression indexes</a>.)
170 <li> The body of <a href="lang_createtrigger.html#temptrig">TEMP triggers</a> may now modify and/or query tables in
171 the main schema.
172 <li> Enhance <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> so that if a <a href="uri.html">URI filename</a> is used as the
173 target and that filename has a reserve=N query parameter with N
174 between 0 and 255, then the <a href="fileformat2.html#resbyte">reserve amount</a> for
175 the generated database copy is set to N.
176 </ol>
177 <li> New SQL functions:
178 <ol type="a">
179 <li> <a href="json1.html#jarrayins">json_array_insert()</a>
180 <li> <a href="json1.html#jarrayins">jsonb_array_insert()</a>
181 </ol>
182 <li> Renovations to the <a href="cli.html">CLI</a>:
183 <ol type="a">
184 <li> Major enhancements to the <a href="climode.html">.mode command</a>.
185 <li> Improved result formatting, due to the addition of the
186 <a href="https://sqlite.org/src/file/ext/qrf">QRF extension</a>.
187 For example, numeric values are now right-justified by default
188 in <a href="climode.html#clmnr">tabular output modes</a>.
189 <li> The default output mode for interactive CLI sessions now uses
190 QRF to display query results in boxes formed using Unicode
191 box-drawing characters, for improved legibility. Batch CLI
192 sessions use the legacy output format for compatibility.
193 <li> Bare (unquoted) semicolons at the end of <a href="cli.html#dotcmd">dot-commands</a> are
194 silently ignored. &emsp;&larr;&nbsp;Potential incompatibility!
195 <li> Fix the .testcase and .check commands so that they actually
196 work, and use those commands in scripts that are part of
197 the standard SQLite test suite included with the source tree.
198 <li> Command-line arguments that match *.sql or *.txt and are
199 the names of non-empty files are read and interpreted as scripts
200 of SQL statements and/or <a href="cli.html#dotcmd">dot-commands</a>.
201 <li> The argument to the ".timer" command can now be "once", to run
202 the timer on only the next SQL statement.
203 <li> The new "--timeout S" option to the ".progress" dot-command
204 causes SQL statements to interrupt after S seconds.
205 <li> The ".indexes" command was changed so that the PATTERN argument
206 matches the name of the index, not the name of the table
207 being indexed (thus making the PATTERN argument actually useful).
208 And, several new options were added to ".indexes".
209 </ol>
210 <li> New C-language interfaces:
211 <ol type="a">
212 <li> <a href="c3ref/str_append.html">sqlite3_str_truncate()</a>
213 <li> <a href="c3ref/str_finish.html">sqlite3_str_free()</a>
214 <li> <a href="c3ref/carray_bind.html">sqlite3_carray_bind_v2()</a>
215 <li> Add the <a href="c3ref/c_prepare_dont_log.html#sqlitepreparefromddl">SQLITE_PREPARE_FROM_DDL</a> option to <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> which
216 permits <a href="vtab.html">virtual table</a> implementations to safely prepare SQL statements
217 that are derived from the database schema.
218 <li> Added the <a href="c3ref/c_any.html#sqliteutf8zt">SQLITE_UTF8_ZT</a> constant which can be used as the encoding parameter to
219 <a href="c3ref/result_blob.html">sqlite3_result_text64()</a> or <a href="c3ref/bind_blob.html">sqlite3_bind_text64()</a> to indicate that the value
220 is UTF-8 encoded and zero terminated.
221 <li> The <a href="c3ref/c_limit_attached.html#sqlitelimitparserdepth">SQLITE_LIMIT_PARSER_DEPTH</a> option is added to <a href="c3ref/limit.html">sqlite3_limit()</a>.
222 <li> The <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigfpdigits">SQLITE_DBCONFIG_FP_DIGITS</a> option is added to <a href="c3ref/db_config.html">sqlite3_db_config()</a>.
223 See also item 9b below.
224 </ol>
225 <li> Query planner improvements:
226 <ol type="a">
227 <li> Always use a sort-and-merge algorithm for EXCEPT, INTERSECT, and
228 UNION, since this is almost always faster than using a hash table.
229 <li> Improvements to join order selection in large multi-way joins on
230 a star schema.
231 <li> Enhance the EXISTS-to-JOIN optimization so that the inserted JOIN
232 terms are not required to be on the inner-most loops, as long as
233 all dependencies for the EXISTS-to-JOIN loops are in outer loops.
234 <li> Enhance the omit-noop-join optimization so that it is able to omit
235 a chain of joins that do not affect the output.
236 <li> Allow queries that use "GROUP BY e1 ORDER BY e2" where e1 and e2
237 are identical apart from ASC/DESC sort-orders to be optimized using
238 a single index.
239 <li> Allow virtual tables to optimize DISTINCT in cases where the
240 result-set of a query does not exactly match the ORDER BY clause.
241 </ol>
242 <li> Add new interfaces to the <a href="sessionintro.html">session extension</a>
243 that enable an application to add changes one at
244 a time to the sqlite3_changegroup object:
245 <ol type="a">
246 <li> <a href="session/sqlite3changegroup_change_begin.html">sqlite3changegroup_change_begin()</a>
247 <li> <a href="session/sqlite3changegroup_change_blob.html">sqlite3changegroup_change_blob()</a>
248 <li> <a href="session/sqlite3changegroup_change_double.html">sqlite3changegroup_change_double()</a>
249 <li> <a href="session/sqlite3changegroup_change_int64.html">sqlite3changegroup_change_int64()</a>
250 <li> <a href="session/sqlite3changegroup_change_null.html">sqlite3changegroup_change_null()</a>
251 <li> <a href="session/sqlite3changegroup_change_text.html">sqlite3changegroup_change_text()</a>
252 <li> <a href="session/sqlite3changegroup_change_finish.html">sqlite3changegroup_change_finish()</a>
253 <li> <a href="session/sqlite3changegroup_config.html">sqlite3changegroup_config()</a>
254 </ol>
255 <li> Improvements to floating-point &harr; text conversions.
256 <ol type="a">
257 <li> Reimplemented to improve performance.
258 <li> Rounding is now done by <a href="floatingpoint.html#*fpdigits">default to 17 significant digits</a>,
259 instead of 15, as was the case for all prior versions.
260 The <a href="c3ref/db_config.html">sqlite3_db_config</a>(<a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigfpdigits">SQLITE_DBCONFIG_FP_DIGITS</a>) API (item 6g above)
261 can change this, if desired.
262 </ol>
263 <li> Added the <a href="staleexpridx.html#selfheal">self-healing index</a> feature to deal with the
264 <a href="staleexpridx.html">stale expression index</a> problem.
265 <li> Add the "-p|--port" option to <a href="rsync.html">sqlite3_rsync</a>.
266 <li> Discontinue support for <a href="https://en.wikipedia.org/wiki/Windows_RT">Windows RT</a>.
267 <li> JavaScript/WASM
268 <ol type="a">
269 <li> Add the "opfs-wl" VFS, functionally identical to the "opfs" VFS but
270 using Web Locks for locking, which can promise fairer lock sharing
271 than the "opfs" bespoke protocol can. "opfs-wl" requires
272 <code>Atomics.waitAsync()</code>, so requires newer browsers than "opfs"
273 does.
274 </ol>
275 </li>
276 <p><b>Hashes:</b>
277 <li>SQLITE_SOURCE_ID: 2026-04-09 11:41:38 4525003a53a7fc63ca75c59b22c79608659ca12f0131f52c18637f829977f20b
278 <li>SHA3-256 for sqlite3.c: bb317fbbd2b3bc53233ddd5894bf4d2dc6f533445f350d4235dbcc86f65af4ec
279
280 </ol></p>
281 <a name="version_3_51_3"></a>
282 <h3>2026-03-13 (3.51.3)</h3><p><ol class='lessindent'>
283 <li> Fix the <a href="wal.html#walresetbug">WAL-reset database corruption bug</a>.
284 <li> Other minor bug fixes.
285 <li>SQLITE_SOURCE_ID: 2026-03-13 10:38:09 737ae4a34738ffa0c3ff7f9bb18df914dd1cad163f28fd6b6e114a344fe6d618
286 <li>SHA3-256 for sqlite3.c: 32d5424f97e0a7fc5ed2f6335afbb58be4e0298bd7117a34e39d345ff13d859e
287
288 </ol></p>
289 <a name="version_3_52_0"></a>
290 <h3>2026-03-06 (3.52.0)</h3><p><ol class='lessindent'>
291 <i>Withdrawn</i>
292 <p>
293 <i>All of the features that were originally scheduled for the 3.52.0
294 release have been moved forward into <a href="#version_3_53_0">version 3.53.0</a>.</i>
295
296 </ol></p>
297 <a name="version_3_51_2"></a>
298 <h3>2026-01-09 (3.51.2)</h3><p><ol class='lessindent'>
299 <li> Fix an obscure deadlock in the new broken-posix-lock detection logic
300 in item 17 above.
301 <li> Fix multiple problems in the EXISTS-to-JOIN optimization that was added
302 as part of optimization item 6b above.
303 <li> Other minor bug fixes.
304 <li>SQLITE_SOURCE_ID: 2026-01-09 17:27:48 b270f8339eb13b504d0b2ba154ebca966b7dde08e40c3ed7d559749818cb2075
305 <li>SHA3-256 for sqlite3.c: 733b3fcc6cccb1e334424b9b91a9d68b618385b76ebfcbb106690bd3a9e61367
306
307 </ol></p>
308 <a name="version_3_51_1"></a>
309 <h3>2025-11-28 (3.51.1)</h3><p><ol class='lessindent'>
310 <li> Fix incorrect results from nested EXISTS queries caused by the
311 optimization in item 6b in the 3.51.0 release.
312 <li> Fix a latent bug in <a href="fts5.html#the_fts5vocab_virtual_table_module">fts5vocab</a> virtual table, exposed by
313 new optimizations in the 3.51.0 release
314 <p><b>Hashes:</b>
315 <li>SQLITE_SOURCE_ID: 2025-11-28 17:28:25 281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88
316 <li>SHA3-256 for sqlite3.c: 7cec3a104797bea93970408168197af37f178ab608ea55efd48d28daa87a8ce3
317
318 </ol></p>
319 <a name="version_3_51_0"></a>
320 <h3>2025-11-04 (3.51.0)</h3><p><ol class='lessindent'>
321 <li> New macros in <tt>sqlite3.h</tt>:
322 <ol type="a">
323 <li> <tt>SQLITE_SCM_BRANCH</tt> &rarr; the name of the branch from which the source code is taken.
324 <li> <tt>SQLITE_SCM_TAGS</tt> &rarr; space-separated list of tags on the source code check-in.
325 <li> <tt>SQLITE_SCM_DATETIME</tt> &rarr; ISO-8601 date and time of the source code check-in.
326 </ol>
327 <li>Two new JSON functions, <a href="json1.html#jbeach">jsonb_each()</a> and <a href="json1.html#jbtree">jsonb_tree()</a> work the same as the existing
328 json_each() and json_tree() functions except that they return <a href="json1.html#jsonbx">JSONB</a> for the "value" column
329 when the "type" is 'array' or 'object'.
330 <li>The <a href="carray.html">carray</a> and <a href="percentile.html">percentile</a> extensions are now built
331 into <a href="amalgamation.html">the amalgamation</a>, though they are disabled by default and must be activated
332 at compile-time using the
333 <a href="compile.html#enable_carray">-DSQLITE_ENABLE_CARRAY</a> and/or <a href="compile.html#enable_percentile">-DSQLITE_ENABLE_PERCENTILE</a> options, respectively.
334 <li>Enhancements to <a href="tclsqlite.html">TCL Interface</a>:
335 <ol type="a">
336 <li> Add the <code>-asdict</code> flag to the <code>eval</code> command
337 to have it set the row data as a dict instead of an array.
338 <li> User-defined functions may now <code>break</code> to return an
339 SQL NULL.
340 </ol>
341 <li><a href="cli.html">CLI</a> enhancements:
342 <ol type="a">
343 <li> Increase the precision of ".timer" to microseconds.
344 <li> Enhance the "box" and "column" formatting modes to deal
345 with double-wide characters.
346 <li> The ".imposter" command provides read-only <a href="imposter.html">imposter tables</a>
347 that work with <a href="lang_vacuum.html">VACUUM</a> and do not require the --unsafe-testing
348 option.
349 <li> Add the --ifexists option to the CLI command-line option and to
350 the <a href="cli.html#dotopen">.open command</a>.
351 <li> Limit columns widths set by the ".width" command to 30,000 or less,
352 as there is not good reason to have wider columns, but supporting
353 wider columns provides opportunity to malefactors.
354 </ol>
355 <li>Performance enhancements:
356 <ol type="a">
357 <li> Use fewer CPU cycles to commit a read transaction.
358 <li> Early detection of joins that return no rows due to one or more
359 of the tables containing no rows.
360 <li> Avoid evaluation of scalar subqueries if the result of the subquery
361 does not change the result of the overall expression.
362 <li> Faster window function queries when using
363 "<tt>BETWEEN :x FOLLOWING AND :y FOLLOWING</tt>" with a large :y.
364 </ol>
365 <li>Add the <a href="pragma.html#pragma_wal_checkpoint">PRAGMA wal_checkpoint=NOOP;</a> command and the
366 <a href="c3ref/c_checkpoint_full.html">SQLITE_CHECKPOINT_NOOP</a> argument for <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2()</a>.
367 <li>Add the <a href="c3ref/set_errmsg.html">sqlite3_set_errmsg()</a> API for use by extensions.
368 <li>Add the <a href="c3ref/db_status.html">sqlite3_db_status64()</a> API, which works just like the existing
369 <a href="c3ref/db_status.html">sqlite3_db_status()</a> API except that it returns 64-bit results.
370 <li>Add the <a href="c3ref/c_dbstatus_options.html">SQLITE_DBSTATUS_TEMPBUF_SPILL</a> option to the <a href="c3ref/db_status.html">sqlite3_db_status()</a>
371 and <a href="c3ref/db_status.html">sqlite3_db_status64()</a> interfaces.
372 <li>In the <a href="sessionintro.html">session extension</a> add the <a href="session/sqlite3changeset_apply.html">sqlite3changeset_apply_v3()</a> interface.
373 <li>For the <a href="printf.html">built-in printf()</a> and the <a href="lang_corefunc.html#format">format() SQL function</a>,
374 omit the leading '-' from negative floating point numbers if the
375 '+' flag is omitted and the "#" flag is present and all displayed digits are '0'.
376 Use '%#f' or similar to avoid outputs like '-0.00' and instead show just '0.00'.
377 <li>Improved error messages generated by <a href="fts5.html">FTS5</a>.
378 <li>Enforce STRICT typing on computed columns.
379 <li>Improved support for VxWorks
380 <li> JavaScript/WASM now supports 64-bit WASM. The canonical builds continue to be
381 32-bit but creating one's own 64-bit build is now as simple
382 as running "make".
383 <li>Improved resistance to database corruption caused by an application
384 <a href="howtocorrupt.html#posix_close_bug">breaking Posix advisory locks using close()</a>.
385 <p><b>Hashes:</b>
386 <li>SQLITE_SOURCE_ID: 2025-11-04 19:38:17 fb2c931ae597f8d00a37574ff67aeed3eced4e5547f9120744ae4bfa8e74527b
387 <li>SHA3-256 for sqlite3.c: e2add951748f73587cadd1b2684defb4f39fa58dca14b16162d4237e50af9afa
388
389 </ol></p>
390 <a name="version_3_50_4"></a>
391 <h3>2025-07-30 (3.50.4)</h3><p><ol class='lessindent'>
392 <li> Fix two long-standings cases of the use of uninitialized variables
393 in obscure circumstances.
394 <p><b>Hashes:</b>
395 <li>SQLITE_SOURCE_ID: 2025-07-30 19:33:53 4d8adfb30e03f9cf27f800a2c1ba3c48fb4ca1b08b0f5ed59a4d5ecbf45e20a3
396 <li>SHA3-256 for sqlite3.c: 9145255e83da6529e70121ee4d7a4c88fe83ca4511da0c9ed13d10842df36782
397
398 </ol></p>
399 <a name="version_3_50_3"></a>
400 <h3>2025-07-17 (3.50.3)</h3><p><ol class='lessindent'>
401 <li> Fix a possible memory error that can occur if a query is made against
402 against FTS5 index that has been deliberately corrupted in a very specific
403 way.
404 <li> Fix the parser so that it ignored SQL comments in all places of a
405 CREATE TRIGGER statement. This resolves a problem that was introduced
406 by the introduction of the SQLITE_DBCONFIG_ENABLE_COMMENTS feature
407 in version 3.49.0.
408 <li> Fix an incorrect answer due to over-optimization of an AND operator.
409 <a href="https://sqlite.org/forum/forumpost/f4878de3e7dd4764">Forum post f4878de3e</a>.
410 <li> Fix minor makefile issues and documentation typos.
411 <p><b>Hashes:</b>
412 <li>SQLITE_SOURCE_ID: 2025-07-17 13:25:10 3ce993b8657d6d9deda380a93cdd6404a8c8ba1b185b2bc423703e41ae5f2543
413 <li>SHA3-256 for sqlite3.c: 934fafe96caa7f4c16e82e0c2b674441a715c038acc9780bf15e09411daba70c
414
415 </ol></p>
416 <a name="version_3_50_2"></a>
417 <h3>2025-06-28 (3.50.2)</h3><p><ol class='lessindent'>
418 <li> Fix the <a href="lang_corefunc.html#concat_ws">concat_ws()</a> SQL function so that it includes empty strings
419 in the concatenation.
420 <a href="https://sqlite.org/forum/forumpost/52503ac21d">Forum post 52503ac21d</a>.
421 <li> Fix the file-io extension (used by the CLI) so that it can be built
422 using the MinGW compiler chain.
423 <li> Avoid writing frames with no checksums into the wal file if a savepoint
424 is rolled back after dirty pages have already been spilled into the
425 wal file.
426 <a href="https://sqlite.org/forum/forumpost/b490f726db">Forum post b490f726db</a>.
427 <li> Fix the Bitvec object to avoid stack overflow when the database is within
428 60 pages of its maximum size.
429 <li> Fix a problem with UPDATEs on fts5 tables that contain BLOB values.
430 <li> Fix an issue with transitive IS constraints on a RIGHT JOIN.
431 <li> Raise an error early if the number of aggregate terms in a query
432 exceeds the maximum number of columns, to avoid downstream assertion
433 faults.
434 <li> Ensure that sqlite3_setlk_timeout() holds the database mutex.
435 <li> Fix typos in API documentation.
436 <p><b>Hashes:</b>
437 <li>SQLITE_SOURCE_ID: 2025-06-28 14:00:48 2af157d77fb1304a74176eaee7fbc7c7e932d946bf25325e9c26c91db19e3079
438 <li>SHA3-256 for sqlite3.c: 889bf23942c52f38a6f182e71d3f0a03db490fd731f02147b1142c11153f3b3a
439
440 </ol></p>
441 <a name="version_3_50_1"></a>
442 <h3>2025-06-06 (3.50.1)</h3><p><ol class='lessindent'>
443 <li> Fix a long-standing bug in <a href="json1.html#jsetb">jsonb_set()</a> and similar that was exposed by
444 new optimizations added in version 3.50.0.
445 <li> Fix an apparently harmless ASAN warning that can occur on builds that
446 use <a href="compile.html#default_memstatus">-DSQLITE_DEFAULT_MEMSTATUS=0</a>.
447 <li> Fix an off-by-one bug in <a href="rsync.html">sqlite3_rsync</a> that can result in the last
448 page not being transferred for the replicate database.
449 <li> Query planner optimization: Allow the right-hand side of a LEFT JOIN
450 to be <a href="optoverview.html#flattening">flattened</a> even if it is a virtual table.
451 <li> Fix <a href="c3ref/setlk_timeout.html">sqlite3_setlk_timeout()</a> to use a blocking lock when opening a
452 snapshot transaction and when blocked by another process running recovery.
453 <li> Other minor fixes that were reported after the 3.50.0 release.
454 <p><b>Hashes:</b>
455 <li>SQLITE_SOURCE_ID: 2025-06-06 14:52:32 b77dc5e0f596d2140d9ac682b2893ff65d3a4140aa86067a3efebe29dc914c95
456 <li>SHA3-256 for sqlite3.c: c3bdffa01dab94be370bdcaeb819cda4a6e0c61f0c6e19a6f94ccba76fc9eeca
457
458 </ol></p>
459 <a name="version_3_50_0"></a>
460 <h3>2025-05-29 (3.50.0)</h3><p><ol class='lessindent'>
461 <li>Add the <a href="c3ref/setlk_timeout.html">sqlite3_setlk_timeout()</a> interface which sets a separate timeout,
462 distinct from the <a href="c3ref/busy_timeout.html">sqlite3_busy_timeout()</a>, for blocking locks on builds
463 that support blocking locks.
464 <li>The <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenablecomments">SQLITE_DBCONFIG_ENABLE_COMMENTS</a> constraint (added in the
465 <a href="#version_3_49_0">previous release</a>) is relaxed slightly so that comments are
466 always allowed when reading the schema out of a pre-existing <a href="schematab.html">sqlite_schema</a>
467 table. Comments are only blocked in new SQL.
468 <li>New SQL functions:
469 <ol type="a">
470 <li> <a href="lang_corefunc.html#unistr">unistr()</a>
471 <li> <a href="lang_corefunc.html#unistr_quote">unistr_quote()</a>
472 </ol>
473 <li>For the <a href="printf.html#percentq">%Q and %q conversions</a> in the <a href="printf.html">built-in printf()</a> (which covers
474 the <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> API and the <a href="lang_corefunc.html#format">format() SQL function</a> and similar)
475 the <a href="printf.html#alt1">alternate-form-1 flag</a> ("#") causes <a href="climode.html#ctrlchr">control characters</a>
476 to be converted into backslash-escapes suitable for <a href="lang_corefunc.html#unistr">unistr()</a>.
477 <li>CLI enhancements:
478 <ol type="a">
479 <li> Avoids direct output of most <a href="climode.html#ctrlchr">control characters</a>.
480 <li> The output of the <a href="cli.html#dump">.dump command</a> makes use of the new <a href="lang_corefunc.html#unistr">unistr()</a>
481 SQL function to encode special characters, unless the --escape mode
482 is set to off.
483 <li> Better formatting of complex partial indexes in the output
484 from the <a href="cli.html#dschema">".schema --indent" command</a>.
485 </ol>
486 <li>Enhancements to <a href="rsync.html">sqlite3_rsync</a>:
487 <ol type="a">
488 <li> The requirement that the database be in WAL mode has been removed.
489 <li> The sync protocol is enhanced to use less network bandwidth when both
490 sides start out being very similar to one another.
491 <li> The sqlite3_rsync program now works on Macs without having to specify
492 the full pathname of the sqlite3_rsync executable on the remote side
493 as long as you install the sqlite3_rsync executable in
494 one of these directories: $HOME/bin:/usr/local/bin:/opt/homebrew/bin
495 </ol>
496 <li>Changes to JSON functions:
497 <ol type="a">
498 <li> Bug fix: Enforce the JSON5 restriction that the
499 "&#92;0" escape must not be followed by a digit.
500 <li> Bug fix: When the LABEL argument to <a href="json1.html#jgroupobject">json_group_object(LABEL,VALUE)</a>
501 is NULL, that element of the resulting object is omitted.
502 <li> Optimization:
503 If the <a href="json1.html#jsetb">jsonb_set()</a> or <a href="json1.html#jreplb">jsonb_replace()</a> functions make a change in the
504 interior of a large <a href="json1.html#jsonbx">JSONB</a> object, they strive to keep the size of the
505 JSONB object unchanged and to modify as few bytes as possible on the interior
506 of the object. This helps reduce I/O as it allows SQLite to write only
507 the page that contains the changed bytes and not all the surrounding pages.
508 </ol>
509 <li>Improved support for building on Cygwin and MinGW and similar, as well
510 as Termux.
511 <li>Typo fixes in the documentation and in the source code comments.
512 <li>Miscellaneous performance improvements.
513 <li> JavaScript/WASM:
514 <ol type="a">
515 <li> Fix a long-standing filename digest calculation bug in the OPFS
516 SAHPool VFS. Databases created in that VFS by 3.50.0+ cannot
517 be read by older versions of the VFS, but 3.50.0 can
518 backwards-compatibly work with existing databases created
519 by older versions.</li>
520 </ol>
521 <p><b>Hashes:</b>
522 <li>SQLITE_SOURCE_ID: 2025-05-29 14:26:00 dfc790f998f450d9c35e3ba1c8c89c17466cb559f87b0239e4aab9d34e28f742
523 <li>SHA3-256 for sqlite3.c: b8a2bcdd2ec60f87c3bbe7a2c25eb65e476e40fe80cd066ab8aa98e5d516c1e4
524
525 </ol></p>
526 <a name="version_3_49_2"></a>
527 <h3>2025-05-07 (3.49.2)</h3><p><ol class='lessindent'>
528 <li> Fix a bug in the NOT NULL optimization of version 3.40.0
529 (item 3c in the <a href="#version_3_40_0">version 3.40.0 change log</a>) that can lead to
530 a memory error if abused.
531 <li> Fix the count-of-view optimization so that it does not give an incorrect
532 answer for a DISTINCT query.
533 <li> Fix a possible incorrect answer that can result if a UNIQUE constraint
534 of a table contains the PRIMARY KEY column and that UNIQUE constraint is
535 used by an IN operator.
536 <li> Fix obscure problems with the generate_series() extension function.
537 <li> Incremental improvements to the configure/make.
538 <p><b>Hashes:</b>
539 <li>SQLITE_SOURCE_ID: 2025-05-07 10:39:52 17144570b0d96ae63cd6f3edca39e27ebd74925252bbaf6723bcb2f6b4861fb1
540 <li>SHA3-256 for sqlite3.c: 17f4857fc6a0def2749d248d5365c59282c044270533c6c2b21287295f01eb23
541
542 </ol></p>
543 <a name="version_3_49_1"></a>
544 <h3>2025-02-18 (3.49.1)</h3><p><ol class='lessindent'>
545 <li> Improve portability of makefiles and configure scripts.
546 <li> Fix a bug in the <a href="lang_corefunc.html#concat_ws">concat_ws()</a> function, introduced in <a href="#version_3_44_0">version 3.44.0</a>,
547 that could lead to a memory error, specifically a write past the end of
548 allocated space, if the separator string is larger than two megabytes.
549 <li> Enhanced the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfiglookaside">SQLITE_DBCONFIG_LOOKASIDE</a> interface to make it more
550 robust against misuse.
551 <p><b>Hashes:</b>
552 <li>SQLITE_SOURCE_ID: 2025-02-18 13:38:58 873d4e274b4988d260ba8354a9718324a1c26187a4ab4c1cc0227c03d0f10e70
553 <li>SHA3-256 for sqlite3.c: 22eab05c842463a3705c63922f12f68531200185ced510ed6aed2065ca44e816
554
555 </ol></p>
556 <a name="version_3_49_0"></a>
557 <h3>2025-02-06 (3.49.0)</h3><p><ol class='lessindent'>
558 <li> Enhancements to the <a href="optoverview.html">query planner</a>:
559 <ol type="a">
560 <li> Improve the <a href="optoverview.html#autoindex">query-time index</a> optimization so that it works on
561 <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
562 <li> Better query plans for large <a href="queryplanner-ng.html#starq">star-query</a> joins. This fixes
563 three different performance regressions that were reported on
564 the SQLite Forum.
565 <li> When two or more queries have the same estimated cost, use
566 the one with the fewer bytes per row.
567 </ol>
568 <li> Enhance the <a href="lang_corefunc.html#iif">iif() SQL function</a> so that it can accept any number of
569 arguments greater than or equal to two.
570 <li> Enhance the <a href="sessionintro.html">session extension</a> so that it works on databases that
571 make use of <a href="gencol.html">generated columns</a>.
572 <li> Omit the SQLITE_USE_STDIO_FOR_CONSOLE compile-time option which was
573 not implemented correctly and never worked right. In its place add
574 the SQLITE_USE_W32_FOR_CONSOLE_IO compile-time option. This option
575 applies to command-line tools like the <a href="cli.html">CLI</a> only, not to the SQLite
576 core. It causes Win32 APIs to be used for console I/O instead of
577 stdio. This option affects Windows builds only.
578 <li> Three new options to <a href="c3ref/db_config.html">sqlite3_db_config()</a>. All default to "on".
579 <ol type="a">
580 <li> <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableattachcreate">SQLITE_DBCONFIG_ENABLE_ATTACH_CREATE</a>
581 <li> <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableattachwrite">SQLITE_DBCONFIG_ENABLE_ATTACH_WRITE</a>
582 <li> <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenablecomments">SQLITE_DBCONFIG_ENABLE_COMMENTS</a>
583 </ol>
584 <li> Replace <a href="https://en.wikipedia.org/wiki/GNU_Autotools">Autotools</a>
585 with <a href="https://msteveb.github.io/autosetup/">Autosetup</a> for the
586 configure script used in the <a href="amalgamation.html#amalgtarball">precompiled amalgamation tarball</a>.
587 The configure script for the <a href="amalg-v-canon.html#canon">canonical source code</a> was changed
588 to Autosetup in the previous (3.48.0) release.
589 Only the main SQLite configure script in the amalgamation tarball
590 is changed. The (deprecated) configuration script use by
591 <a href="https://www.tcl-lang.org/doc/tea/TEAOverview.html">TEA</a> subdirectory
592 of the amalgamation tarball still relies on Autotools.
593 <li> Various minor patches and fixes for problems seen in the 3.48.0 release.
594 <p><b>Hashes:</b>
595 <li>SQLITE_SOURCE_ID: 2025-02-06 11:55:18 4a7dd425dc2a0e5082a9049c9b4a9d4f199a71583d014c24b4cfe276c5a77cde
596 <li>SHA3-256 for sqlite3.c: 030c764eba64a3fa3bbf87447abd175bfef94851f970d62126a92877b30b611e
597
598 </ol></p>
599 <a name="version_3_48_0"></a>
600 <h3>2025-01-14 (3.48.0)</h3><p><ol class='lessindent'>
601 <li> Refactor the "configure" script used to help build SQLite from <a href="amalg-v-canon.html#canon">canonical sources</a>,
602 to fix bugs, improve performance, and make the code more maintainable.
603 <ul type="disc">
604 <li> This does not affect the "configure" script in the sqlite3-autoconf-NNNNNNN.tar.gz
605 "amalgamation tarball", only the <a href="amalg-v-canon.html#canon">canonical sources</a>. The build system for
606 the amalgamation tarball is unchanged. If you are using the amalgamation tarball,
607 nothing about this change log entry applies to you.
608 <li> The key innovation here is that
609 <a href="https://msteveb.github.io/autosetup/">Autosetup</a> is now used instead of
610 <a href="https://www.gnu.org/software/autoconf/">GNU Autoconf</a>. That seems like a big change,
611 but it is really just an implementation detail. The ./configure
612 script is coded very differently, but should work the same as before.
613 <li> One advantage of the new configure is that you no longer need
614 to install <a href="https://en.wikipedia.org/wiki/Tcl">TCL</a> in order to build most
615 SQLite targets. TCL is still required to run tests or to build accessory
616 programs (like <a href="sqlanalyze.html">sqlite3_analyzer</a>) that use TCL, but it is not required for
617 most common targets. Hence, as of this release, the only build dependencies
618 are a C compiler and "make" or "nmake".
619 </ul>
620 <li> Improved <a href="eqp.html">EXPLAIN QUERY PLAN</a> output for <a href="queryplanner.html#covidx">covering indexes</a>.
621 <li> Allow a two-argument version of the <a href="lang_corefunc.html#iif">iif() SQL function</a>. Also allow
622 <a href="lang_corefunc.html#iif">if()</a> as an alternative spelling for <a href="lang_corefunc.html#iif">iif()</a>.
623 <li> Add the ".dbtotxt" command to the <a href="cli.html">CLI</a>.
624 <li> Add the <a href="c3ref/c_iocap_atomic.html">SQLITE_IOCAP_SUBPAGE_READ</a> property to the xDeviceCharacteristics
625 method of the <a href="c3ref/io_methods.html">sqlite3_io_methods</a> object.
626 <li> Add the <a href="c3ref/c_prepare_dont_log.html#sqlitepreparedontlog">SQLITE_PREPARE_DONT_LOG</a> option to <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> that
627 prevents warning messages being sent to the <a href="errlog.html">error log</a> if the SQL is
628 ill-formed. This allows sqlite3_prepare_v3() to be used to do test compiles
629 of SQL to check for validity without polluting the error log with false
630 messages.
631 <li> Increase the minimum allowed value of <a href="c3ref/c_limit_attached.html#sqlitelimitlength">SQLITE_LIMIT_LENGTH</a> from 1 to 30.
632 <li> Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlnullio">SQLITE_FCNTL_NULL_IO</a> file control.
633 <li> Extend the FTS5 auxiliary API xInstToken() to work with prefix queries
634 via the <a href="fts5.html#the_insttoken_configuration_option">insttoken</a> configuration option and the
635 <a href="fts5.html#the_fts5_insttoken_function">fts5_insttoken()</a> SQL function.
636 <li> Increase the <a href="limits.html#max_function_arg">maximum number of arguments to an SQL function</a>
637 from 127 to 1000.
638 <li> Remove vestigial traces of SQLITE_USER_AUTHENTICATION.
639 <li> Various obscure bug fixes.
640 <p><b>Hashes:</b>
641 <li>SQLITE_SOURCE_ID: 2025-01-14 11:05:00 d2fe6b05f38d9d7cd78c5d252e99ac59f1aea071d669830c1ffe4e8966e84010
642 <li>SHA3-256 for sqlite3.c: 522bd9492526147d12fc8521028eb960557353d8f08c2035f15ac737d4b91e21
643
644 </ol></p>
645 <a name="version_3_47_2"></a>
646 <h3>2024-12-07 (3.47.2)</h3><p><ol class='lessindent'>
647 <li> Fix a problem in text-to-floating-point conversion for SQLite that can cause values
648 between '1.8446744073709550592eNNN' and '1.8446744073709551609eNNN' for any exponent NNN
649 to be rendered incorrectly. In other words, some numeric text values where the first 16
650 significant digits are '1844674407370955' might be converted into the wrong floating-point
651 value. See <a href="https://sqlite.org/forum/forumpost/569a7209179a7f5e">forum thread 569a7209179a7f5e</a>.
652 This problem only arises on x64 and i386 hardware. The problem was introduced in 3.47.0.
653 <li> Other minor bug fixes.
654 <p><b>Hashes:</b>
655 <li>SQLITE_SOURCE_ID: 2024-12-07 20:39:59 2aabe05e2e8cae4847a802ee2daddc1d7413d8fc560254d93ee3e72c14685b6c
656 <li>SHA3-256 for sqlite3.c: 586b5789453ee5c51e8d858cd836f20ce60df882323f2070547cbaf23a5898af
657
658 </ol></p>
659 <a name="version_3_47_1"></a>
660 <h3>2024-11-25 (3.47.1)</h3><p><ol class='lessindent'>
661 <li> Fix the makefiles so that they once again honored DESTDIR for the "install" target.
662 <li> Add the <a href="c3ref/c_iocap_atomic.html">SQLITE_IOCAP_SUBPAGE_READ</a> capability to the VFS, to work around issues
663 on some non-standard VFSes caused by making SQLITE_DIRECT_OVERFLOW_READ the default
664 in version 3.45.0.
665 <li> Fix problems with line endings in the new sqlite3_rsync.exe utility on Windows.
666 <li> Fix incorrect answers to certain obscure IN queries caused by new query optimizations
667 added in the 3.47.0 release.
668 <li> Other minor bug fixes.
669 <p><b>Hashes:</b>
670 <li>SQLITE_SOURCE_ID: 2024-11-25 12:07:48 b95d11e958643b969c47a8e5857f3793b9e69700b8f1469371386369a26e577e
671 <li>SHA3-256 for sqlite3.c: d91b8b5671a127bd41057bc758d6d59fb7aceda67934a1c0166ab2e133f2f902
672
673 </ol></p>
674 <a name="version_3_47_0"></a>
675 <h3>2024-10-21 (3.47.0)</h3><p><ol class='lessindent'>
676 <li> Allow arbitrary expressions in the second argument to the <a href="lang_createtrigger.html#raise">RAISE function</a>.
677 <li> If the RHS of <a href="json1.html#jptr">the ->> operator</a> is negative, then access array elements counting from the right.
678 <li> Fix a problem with rolling back hot journal files in the seldom-used
679 <a href="../vfs.html#standard_unix_vfses">unix-dotfile VFS</a>.
680 <li> FTS5 tables can now be dropped even if they use a non-standard tokenizer that
681 has not been registered.
682 <li> Fix the <a href="lang_aggfunc.html#group_concat">group_concat() aggregate function</a> so that it returns an empty string,
683 not a NULL, if it receives a single input value which is an empty string.
684 <li> Enhance the <a href="series.html">generate_series()</a> table-valued function so that it is able to
685 recognize and use constraints on its output value.
686 <li> Preupdate hooks now recognize when a column added by ALTER TABLE ADD COLUMN
687 has a non-null default value.
688 <li> Performance optimizations:
689 <ol type="a">
690 <li> Improved reuse of subqueries associated with the <a href="lang_expr.html#in_op">IN operator</a>, especially when
691 the IN operator has been duplicated due to <a href="optoverview.html#pushdown">predicate push-down</a>.
692 <li> Use a Bloom filter on subqueries on the right-hand side of the
693 <a href="lang_expr.html#in_op">IN operator</a>, in cases where that seems likely to improve performance.
694 <li> Ensure that queries like "<tt>SELECT func(a) FROM tab GROUP BY 1</tt>" only
695 invoke the func() function once per row.
696 <li> No attempt is made to create <a href="optoverview.html#autoindex">automatic indexes</a> on a column that is known
697 to be non-selective because of its use in other indexes that have been analyzed.
698 <li> Adjustments to the query planner so that it produces better plans for
699 star queries with a large number of dimension tables.
700 <li> Add the "order-by-subquery" optimization, that seeks to disable sort operations
701 in outer queries if the desired order is obtained naturally due to ORDER BY
702 clauses in subqueries.
703 <li> The "indexed-subtype-expr" optimization strives to use expressions that
704 are part of an index rather than recomputing the expression based on table values,
705 as long as the query planner can prove that the <a href="c3ref/value_subtype.html">subtype</a>
706 of the expression will never be used.
707 <li> Miscellaneous coding tweaks for faster runtimes.
708 </ol>
709 <li> Enhancements to SQLite-related command-line programs:
710 <ol type="a">
711 <li> Add the experimental <a href="rsync.html">sqlite3_rsync</a> program.
712 <li> Add extension functions <a href="lang_aggfunc.html#median">median()</a>, <a href="lang_aggfunc.html#percentile">percentile()</a>, <a href="lang_aggfunc.html#percentile_cont">percentile_cont()</a>,
713 and <a href="lang_aggfunc.html#percentile_disc">percentile_disc()</a> to the <a href="cli.html">CLI</a>.
714 <li> Add the <a href="cli.html#dotwww">.www dot-command</a> to the <a href="cli.html">CLI</a>.
715 <li> The <a href="sqlanalyze.html">sqlite3_analyzer</a> utility now provides a break-out of statistics
716 for WITHOUT ROWID tables.
717 <li> The <a href="sqldiff.html">sqldiff</a> utility avoids creating an empty database if its second argument
718 does not exist.
719 </ol>
720 <li> Enhance the <a href="dbpage.html">sqlite_dbpage</a> table-valued function such that <a href="lang_insert.html">INSERT</a> can be used
721 to increase or decrease the size of the database file.
722 <li> SQLite no longer makes any use of the "long double" data type, as hardware support
723 for long double is becoming less common and long double creates challenges for
724 some compiler tool chains. Instead, SQLite uses
725 <a href="https://csclub.uwaterloo.ca/~pbarfuss/dekker1971.pdf">Dekker's algorithm</a>
726 when extended precision is needed.
727 <li> The <a href="tclsqlite.html">TCL Interface</a> for SQLite supports TCL9. Everything probably still works for
728 TCL 8.5 and later, though this is not guaranteed. Users are encouraged to upgrade
729 to TCL9.
730 <li> JavaScript/WASM:
731 <ol type="a">
732 <li> Fix a corruption-causing bug in the JavaScript "opfs" VFS.
733 <li> Correct "mode=ro" handling for the "opfs" VFS.
734 <li> Work around a couple of browser-specific OPFS quirks.
735 </ol>
736 <li> FTS5 Changes:
737 <ol type="a">
738 <li> Add the fts5_tokenizer_v2 API and the locale=1 option, for creating custom
739 locale-aware tokenizers and fts5 tables that may take advantage of them.
740 <li> Add the contentless_unindexed=1 option, for creating contentless fts5 tables
741 that store the values of any UNINDEXED columns persistently in the database.
742 <li> Allow an FTS5 table to be dropped even if it uses a custom tokenizer whose
743 implementation is not available.
744 </ol>
745 <p><b>Hashes:</b>
746 <li>SQLITE_SOURCE_ID: 2024-10-21 16:30:22 03a9703e27c44437c39363d0baf82db4ebc94538a0f28411c85dda156f82636e
747 <li>SHA3-256 for sqlite3.c: bcec3a4fbc97e973547924677332996ef64e06a6d10d22e2c2344f447536cc29
748
749 </ol></p>
750 <a name="version_3_46_1"></a>
751 <h3>2024-08-13 (3.46.1)</h3><p><ol class='lessindent'>
752 <li> Improved robustness while parsing the <a href="fts5.html#tokenizers">tokenize= arguments</a> in <a href="fts5.html">FTS5</a>.
753 <a href="https://sqlite.org/forum/forumpost/171bcc2bcd">Forum post 171bcc2bcd</a>.
754 <li> Enhancements to <a href="queryplanner.html#covidx">covering index</a> prediction in the query planner.
755 Add early detection of over-prediction of covering indexes so that
756 <a href="c3ref/prepare.html">sqlite3_prepare()</a> will return an error rather than just generate bad bytecode.
757 <a href="https://sqlite.org/forum/forumpost/e60e4c295d22f8ce">Forum post e60e4c295d22f8ce</a>.
758 <li> Do not let the number of terms on a <a href="lang_select.html#values">VALUES clause</a> be limited by
759 <a href="c3ref/c_limit_attached.html#sqlitelimitcompoundselect">SQLITE_LIMIT_COMPOUND_SELECT</a>, even if the VALUES clause contains
760 elements that appear to be variables due to
761 <a href="quirks.html#dblquote">double-quoted string literals</a>.
762 <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
763 an empty string if it has one or more empty string inputs.
764 <li> In <a href="fts5.html#the_secure_delete_configuration_option">FTS5 secure-delete mode</a>, fix false-positive
765 integrity-check reports about corrupt indexes.
766 <li> Syntax errors in <a href="lang_altertable.html">ALTER TABLE</a> should always return <a href="rescode.html#error">SQLITE_ERROR</a>. In
767 some cases, they were formerly returning <a href="rescode.html#internal">SQLITE_INTERNAL</a>.
768 <li> JavaScript/WASM:
769 <ol type="a">
770 <li> Fix a corruption-causing bug in the JavaScript "opfs" VFS.
771 <li> Work around a couple of browser-specific OPFS quirks.
772 </ol>
773 <li> Other minor fixes.
774 <p><b>Hashes:</b>
775 <li>SQLITE_SOURCE_ID: 2024-08-13 09:16:08 c9c2ab54ba1f5f46360f1b4f35d849cd3f080e6fc2b6c60e91b16c63f69a1e33
776 <li>SHA3-256 for sqlite3.c: 186a1baa476b6d546de155160ca6d30ff7b7e6ee375f0bb6445e1a3d180a7dad
777
778 </ol></p>
779 <a name="version_3_46_0"></a>
780 <h3>2024-05-23 (3.46.0)</h3><p><ol class='lessindent'>
781 <li> Enhance <a href="pragma.html#pragma_optimize">PRAGMA optimize</a> in multiple ways, to make it
782 <a href="lang_analyze.html#pragopt">simpler to use</a>:
783 <ol type="a">
784 <li> PRAGMA optimize automatically implements a temporary
785 <a href="pragma.html#pragma_analysis_limit">analysis limit</a> to prevent excess runtime
786 on large databases.
787 <li> Added the new 0x10000 bitmask option to check for updates on all tables.
788 <li> Automatically re-analyze tables that do not have sqlite_stat1 entries.
789 </ol>
790 <li> Enhancements to the <a href="lang_datefunc.html">date and time functions</a>:
791 <ol type="a">
792 <li> The <a href="lang_datefunc.html#strftm">strftime() SQL function</a> now supports %G, %g, %U, and %V.
793 <li> New modifiers 'ceiling' and 'floor' control the algorithm used to
794 resolve <a href="lang_datefunc.html#dtambg">ambiguous dates</a> when shifting a date by an integer number
795 of months and/or years.
796 <li> The <a href="lang_datefunc.html#localtime">'utc' and 'localtime' modifiers</a> are now no-ops if SQLite knows
797 that the time is already in UTC or in the localtime, respectively.
798 </ol>
799 <li> Add support for underscore ("_") characters between digits in
800 <a href="lang_expr.html#litvalue">numeric literals</a>.
801 <li> Add the <a href="json1.html#jpretty">json_pretty()</a> SQL function.
802 <li> Query planner improvements:
803 <ol type="a">
804 <li> The "VALUES-as-coroutine" optimization enables INSERT statements with
805 thousands of rows in the VALUES clause to parse and run in about half
806 the time and using about half as much memory.
807 <li> Allow the use of an index for queries like "SELECT count(DISTINCT col) FROM ...",
808 even if the index records are not smaller than the table records.
809 <li> Improved recognition of cases where the value of an SQL function is
810 constant because all its arguments are constant.
811 <li> Enhance the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a> so that it is able to
812 push down WHERE clause terms containing uncorrelated subqueries.
813 </ol>
814 <li> Allocate additional memory from the heap for the SQL parser stack if
815 that stack overflows, rather than reporting a "parser stack overflow" error.
816 <li> JSON changes:
817 <ol type="a">
818 <li> Allow ASCII control characters within JSON5 string literals.
819 <li> Fix <a href="json1.html#jptr">the -> and ->> operators</a> so that when the right-hand side operand is a string
820 that looks like an integer it is still treated as a string, because that is what
821 PostgreSQL does.
822 </ol>
823 <li> Allow large hexadecimal literals to be used as the DEFAULT value to a table column.
824 <p><b>Hashes:</b>
825 <li>SQLITE_SOURCE_ID: 2024-05-23 13:25:27 96c92aba00c8375bc32fafcdf12429c58bd8aabfcadab6683e35bbb9cdebf19e
826 <li>SHA3-256 for sqlite3.c: 094429ea827fcd32275e767134bc6c7b9ea394a2c5a9e653dd0a0690b2c11358
827
828 </ol></p>
829 <a name="version_3_45_3"></a>
830 <h3>2024-04-15 (3.45.3)</h3><p><ol class='lessindent'>
831 <li> Fix a long-standing bug (going back to <a href="#version_3_24_0">version 3.24.0</a>)
832 that might (rarely) cause the "old.*" values of an <a href="lang_createtrigger.html">UPDATE trigger</a>
833 to be incorrect if that trigger fires in response to an <a href="lang_upsert.html">UPSERT</a>.
834 <a href="https://sqlite.org/forum/forumpost/284955a3cd454a15">Forum post 284955a3cd454a15</a>.
835 <li> Fix a bug in <a href="lang_aggfunc.html#sumunc">sum()</a> that could cause it to return NULL when it should return
836 Infinity. <a href="https://sqlite.org/forum/forumpost/23b8688ef4">Forum post 23b8688ef4</a>.
837 <li> Other trifling corrections and compiler warning fixes that have come up
838 since the previous patch release. See the
839 <a href="https://sqlite.org/src/timeline?from=version-3.45.2&to=version-3.45.3&to2=branch-3.45">timeline</a>
840 for details.
841 <p><b>Hashes:</b>
842 <li>SQLITE_SOURCE_ID: 2024-04-15 13:34:05 8653b758870e6ef0c98d46b3ace27849054af85da891eb121e9aaa537f1e8355
843 <li>SHA3-256 for sqlite3.c: 21dbe688a71b449d28e2a8ec6a43e7520e54df456e02b6d4f6a1d1c7a998c826
844
845 </ol></p>
846 <a name="version_3_45_2"></a>
847 <h3>2024-03-12 (3.45.2)</h3><p><ol class='lessindent'>
848 <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>
849 (2021-03-12), that could cause an index to get out-of-sync with its table.
850 <a href="https://sqlite.org/forum/forumpost/919c6579c8">Forum thread 919c6579c8</a>.
851 <li> Reduce the scope of the NOT NULL strength reduction optimization that was
852 added as item 8e in <a href="#version_3_35_0">version 3.35.0</a> (2021-03-12). The optimization
853 was being attempted in some contexts where it did not work, resulting in
854 incorrect query results.
855 <a href="https://sqlite.org/forum/forumpost/440f2a2f17">Forum thread 440f2a2f17</a>.
856 <li> Other trifling corrections and compiler warning fixes that have come up
857 since the previous patch release. See the
858 <a href="https://sqlite.org/src/timeline?from=version-3.45.1&to=version-3.45.2&to2=branch-3.45">timeline</a>
859 for details.
860 <p><b>Hashes:</b>
861 <li>SQLITE_SOURCE_ID: "2024-03-12 11:06:23 d8cd6d49b46a395b13955387d05e9e1a2a47e54fb99f3c9b59835bbefad6af77"
862 <li>SHA3-256 for sqlite3.c: bd76ad2dc9cde151e469e86627a7e8753aa8ef1a6f657c5a80ba48324b53226b
863
864 </ol></p>
865 <a name="version_3_45_1"></a>
866 <h3>2024-01-30 (3.45.1)</h3><p><ol class='lessindent'>
867 <li> Restore the <a href="json1.html#jblobbug">JSON BLOB input bug</a>, and promise to support the anomaly in
868 subsequent releases, for backward compatibility.
869 <li> Fix the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command so that it works on read-only
870 databases that contain FTS3 and FTS5 tables. This resolves an issue
871 introduced in <a href="#version_3_44_0">version 3.44.0</a> but was undiscovered until after the 3.45.0 release.
872 <li> Fix issues associated with processing corrupt <a href="json1.html#jsonbx">JSONB</a> inputs:
873 <ol type="a">
874 <li> Prevent exponential runtime when converting a corrupt JSONB into text.
875 <li> Fix a possible read of one byte past the end of the JSONB blob when converting
876 a corrupt JSONB into text.
877 <li> Enhanced testing using <a href="testing.html#dbsqlfuzz">jfuzz</a> to prevent any future JSONB problems such
878 as the above.
879 </ol>
880 <li> Fix a long-standing bug in which a read of a few bytes past the end of a
881 memory-mapped segment might occur when accessing a craftily corrupted database
882 using <a href="pragma.html#pragma_mmap_size">memory-mapped database</a>.
883 <li> Fix a long-standing bug in which a NULL pointer dereference might occur in
884 the <a href="opcode.html">bytecode engine</a> due to incorrect bytecode being generated for a class
885 of SQL statements that are deliberately designed to stress the query planner
886 but which are otherwise pointless.
887
888 <p><b>Hashes:</b>
889 <li>SQLITE_SOURCE_ID: 2024-01-30 16:01:20 e876e51a0ed5c5b3126f52e532044363a014bc594cfefa87ffb5b82257cc467a
890 <li>SHA3-256 for sqlite3.c: 0474604df9e1b69a5544295dd046aad954749279780d557da80f44b958100295
891
892 </ol></p>
893 <a name="version_3_45_0"></a>
894 <h3>2024-01-15 (3.45.0)</h3><p><ol class='lessindent'>
895 <li> Added the <a href="c3ref/c_deterministic.html#sqliteresultsubtype">SQLITE_RESULT_SUBTYPE</a> property for
896 <a href="appfunc.html">application-defined SQL functions</a>.
897 All application defined SQL functions that invokes
898 <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a> must be registered with this new property.
899 Failure to do so might cause the call to sqlite3_result_subtype() to
900 behave as a no-op. Compile with <a href="compile.html#strict_subtype">-DSQLITE_STRICT_SUBTYPE=1</a> to cause an
901 SQL error to be raised if a function that is not <a href="c3ref/c_deterministic.html#sqliteresultsubtype">SQLITE_RESULT_SUBTYPE</a>
902 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>
903 is a recommended compile-time option for every application that makes
904 use of subtypes.
905 <li> Enhancements to the <a href="json1.html">JSON SQL functions</a>:
906 <ol type="a">
907 <li> All JSON functions are rewritten to use a new internal parse tree
908 format called <a href="json1.html#jsonbx">JSONB</a>. The new parse-tree format is serializable
909 and hence can be stored in the database to avoid unnecessary re-parsing
910 whenever the JSON value is used.
911 <li> New versions of JSON-generating functions generate binary JSONB instead
912 of JSON text.
913 <li> The <a href="json1.html#jvalid">json_valid()</a> function adds an optional second argument that
914 specifies what it means for the first argument to be "well-formed".
915 </ol>
916 <li> Add the <a href="fts5.html#the_tokendata_option">FTS5 tokendata option</a> to the <a href="fts5.html">FTS5</a> virtual table.
917 <li> The <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> optimization is now enabled by default.
918 Disable it at compile-time using -DSQLITE_DIRECT_OVERFLOW_READ=0.
919 <li> Query planner improvements:
920 <ol type="a">
921 <li> Do not allow the transitive constraint optimization to trick the
922 query planner into using a range constraint when a better equality
923 constraint is available.
924 (<a href="https://sqlite.org/forum/forumpost/2568d1f6e6">Forum post 2568d1f6e6</a>.)
925 <li> The query planner now does a better job of disregarding
926 indexes that <a href="lang_analyze.html">ANALYZE</a> identifies as low-quality.
927 (<a href="https://sqlite.org/forum/forumpost/6f0958b03b">Forum post 6f0958b03b</a>.)
928 </ol>
929 <li> Increase the default value for <a href="limits.html#max_page_count">SQLITE_MAX_PAGE_COUNT</a> from 1073741824 to
930 4294967294.
931 <li> Enhancements to the <a href="cli.html">CLI</a>:
932 <ol type="a">
933 <li> Improvements to the display of UTF-8 content on Windows
934 <li> Automatically detect playback of ".dump" scripts and make appropriate
935 changes to settings such as ".dbconfig defensive off" and
936 ".dbconfig dqs_dll on".
937 </ol>
938 <p><b>Hashes:</b>
939 <li>SQLITE_SOURCE_ID: 2024-01-15 17:01:13 1066602b2b1976fe58b5150777cced894af17c803e068f5918390d6915b46e1d
940 <li>SHA3-256 for sqlite3.c: f56d8e5e8c61d87b957f1cc60b3042c134d7bc0ca3aba002e6999e8f0af310a3
941
942 </ol></p>
943 <a name="version_3_44_2"></a>
944 <h3>2023-11-24 (3.44.2)</h3><p><ol class='lessindent'>
945 <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.
946 <li> Fix a problem in FTS5 that was discovered during internal fuzz testing only
947 minutes after the 3.44.1 release was tagged.
948 <li> Fix incomplete assert() statements that the fuzzer discovered the day after
949 the previous release.
950 <li> Fix a couple of harmless compiler warnings that appeared in debug builds with GCC 16.
951 <p><b>Hashes:</b>
952 <li>SQLITE_SOURCE_ID: 2023-11-24 11:41:44 ebead0e7230cd33bcec9f95d2183069565b9e709bf745c9b5db65cc0cbf92c0f
953 <li>SHA3-256 for sqlite3.c: bd70b012e2d1b3efa132d905224cd0ab476a69b892f8c6b21135756ec7ffbb13
954
955 </ol></p>
956 <a name="version_3_44_1"></a>
957 <h3>2023-11-22 (3.44.1)</h3><p><ol class='lessindent'>
958 <li> Change the <a href="cli.html">CLI</a> so that it uses UTF-16 for console I/O on Windows. This
959 enables proper display of unicode text on old Windows7 machines.
960 <li> Other obscure bug fixes.
961 <p><b>Hashes:</b>
962 <li>SQLITE_SOURCE_ID: 2023-11-22 14:18:12 d295f48e8f367b066b881780c98bdf980a1d550397d5ba0b0e49842c95b3e8b4
963 <li>SHA3-256 for sqlite3.c: e359dc502a73f3a8ad8e976a51231134d25cb93ad557a724dd92fe0c5897113a
964
965 </ol></p>
966 <a name="version_3_44_0"></a>
967 <h3>2023-11-01 (3.44.0)</h3><p><ol class='lessindent'>
968 <li> <a href="lang_aggfunc.html">Aggregate functions</a> can now include an ORDER BY clause after their last
969 parameter. The arguments to the function are processed in the order
970 specified. This can be important for functions like
971 <a href="lang_aggfunc.html#group_concat">string_agg()</a> and <a href="json1.html#jgrouparray">json_group_array()</a>.
972 <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,
973 compatible with PostgreSQL, SQLServer, and MySQL.
974 <li> Add support for the <a href="lang_aggfunc.html#group_concat">string_agg()</a> aggregate SQL function, compatible
975 with PostgreSQL and SQLServer.
976 <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
977 <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>.
978 <li> Many errors associated with CREATE TABLE are now raised when the CREATE TABLE statement
979 itself is run, rather than being deferred until the first time the table is actually
980 used.
981 <li> The <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command now verifies the consistency of the
982 content in various built-in <a href="vtab.html">virtual tables</a> using the new <a href="vtab.html#xintegrity">xIntegrity method</a>.
983 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.
984 <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>
985 from being turned on. Previously writable_schema could be turned on, but would
986 not actually allow the schema to be writable. Now it simply cannot be turned on.
987 <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
988 <a href="c3ref/c_vtab_constraint_support.html#sqlitevtabinnocuous">SQLITE_VTAB_INNOCUOUS</a> so that they can be used inside of triggers in
989 high-security deployments.
990 <li> The <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> statement is deprecated, as its use when the
991 schema contains LIKE operators can lead to reports of database corruption
992 by <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>.
993 <li> <a href="compile.html#use_seh">SQLITE_USE_SEH</a> (Structured Exception Handling) is now enabled by default whenever
994 SQLite is built using the Microsoft C compiler. It can be disabled using
995 -D<a href="compile.html#omit_seh">SQLITE_OMIT_SEH</a>.
996 <li> Query planner optimizations:
997 <ol type="a">
998 <li> In partial index scans, if the WHERE clause implies a constant value for a table
999 column, replace occurrences of that table column with the constant. This
1000 increases the likelihood of the partial index being a covering index.
1001 <li> Disable the view-scan optimization (added in <a href="#version_3_40_0">version 3.40.0</a> - item 3d)
1002 as it was causing multiple performance regressions. In its place, reduce
1003 the estimated row count for DISTINCT subqueries by a factor of 8.
1004 </ol>
1005 <li> SQLite now performs run-time detection of whether or not the underlying hardware
1006 supports "long double" with precision greater than "double" and uses appropriate
1007 floating-point routines depending on what it discovered.
1008 <li> The <a href="cli.html">CLI</a> for Windows now defaults to using UTF-8 for both input
1009 and output on platforms that support it. The --no-utf8 option is available
1010 to disable UTF8 support.
1011 <p><b>Hashes:</b>
1012 <li>SQLITE_SOURCE_ID: 2023-11-01 11:23:50 17129ba1ff7f0daf37100ee82d507aef7827cf38de1866e2633096ae6ad8130
1013 <li>SHA3-256 for sqlite3.c: d9e6530096136067644b1cb2057b3b0fa51070df99ec61971f73c9ba6aa9a36e
1014
1015 </ol></p>
1016 <a name="version_3_43_2"></a>
1017 <h3>2023-10-10 (3.43.2)</h3><p><ol class='lessindent'>
1018 <li> Fix a couple of obscure UAF errors and an obscure memory leak.
1019 <li> Omit the use of the sprintf() function from the standard library
1020 in the <a href="cli.html">CLI</a>, as this now generates warnings on some platforms.
1021 <li> Avoid conversion of a double into unsigned long long integer, as
1022 some platforms do not do such conversions correctly.
1023 <p><b>Hashes:</b>
1024 <li>SQLITE_SOURCE_ID: 2023-10-10 12:14:04 4310099cce5a487035fa535dd3002c59ac7f1d1bec68d7cf317fd3e769484790
1025 <li>SHA3-256 for sqlite3.c: e17a3dc69330bd109256fb5a6e2b3ce8fbec48892a800389eb7c0f8856703161
1026
1027 </ol></p>
1028 <a name="version_3_43_1"></a>
1029 <h3>2023-09-11 (3.43.1)</h3><p><ol class='lessindent'>
1030 <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>
1031 aggregate functions handle infinities.
1032 <li> Fix a bug in the <a href="json1.html#jarraylen">json_array_length()</a> function that occurs when the
1033 argument comes directly from <a href="json1.html#jrm">json_remove()</a>.
1034 <li> Fix the omit-unused-subquery-columns optimization (introduced in
1035 in version 3.42.0) so that it works correctly if the subquery is a
1036 compound where one arm is DISTINCT and the other is not.
1037 <li> Other minor fixes.
1038 <p><b>Hashes:</b>
1039 <li>SQLITE_SOURCE_ID: 2023-09-11 12:01:27 2d3a40c05c49e1a49264912b1a05bc2143ac0e7c3df588276ce80a4cbc9bd1b0
1040 <li>SHA3-256 for sqlite3.c: 391af0a4755e31ae8b29776a4a060b678823ffe4c4db558567567c688a578589
1041
1042 </ol></p>
1043 <a name="version_3_43_0"></a>
1044 <h3>2023-08-24 (3.43.0)</h3><p><ol class='lessindent'>
1045 <li> Add support for <a href="fts5.html#clssdeltab">Contentless-Delete FTS5 Indexes</a>. This is a variety
1046 of <a href="fts5.html">FTS5</a> full-text search index that omits storing the content that is being indexed
1047 while also allowing records to be deleted.
1048 <li> Enhancements to the <a href="lang_datefunc.html">date and time functions</a>:
1049 <ol type="a">
1050 <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>.
1051 <li> Added the <a href="lang_datefunc.html#tmdif">timediff() SQL function</a>.
1052 </ol>
1053 <li> Added the <a href="lang_corefunc.html#octet_length">octet_length(X)</a> SQL function.
1054 <li> Added the <a href="c3ref/stmt_explain.html">sqlite3_stmt_explain()</a> API.
1055 <li> Query planner enhancements:
1056 <ol type="a">
1057 <li> Generalize the LEFT JOIN strength reduction optimization so that it works
1058 for RIGHT and FULL JOINs as well. Rename it to
1059 <a href="optoverview.html#leftjoinreduction">OUTER JOIN strength reduction</a>.
1060 <li> Enhance the theorem prover in the <a href="optoverview.html#leftjoinreduction">OUTER JOIN strength reduction</a> optimization
1061 so that it returns fewer false-negatives.
1062 </ol>
1063 <li> Enhancements to the <a href="floatingpoint.html#decext">decimal extension</a>:
1064 <ol type="a">
1065 <li> New function decimal_pow2(N) returns the N-th power of 2 for integer N
1066 between -20000 and +20000.
1067 <li> New function decimal_exp(X) works like decimal(X) except that it returns
1068 the result in exponential notation - with a "e+NN" at the end.
1069 <li> If X is a floating-point value, then the decimal(X) function now does a full
1070 expansion of that value into its exact decimal equivalent.
1071 </ol>
1072 <li> Performance enhancements to <a href="json1.html">JSON processing</a> results in a 2x performance
1073 improvement for some kinds of processing on large JSON strings.
1074 <li> New makefile target "verify-source" checks to ensure that there are no
1075 unintentional changes in the source tree. (Works for
1076 <a href="amalg-v-canon.html#canon">canonical source code</a> only -
1077 not for <a href="amalgamation.html#amalgtarball">precompiled amalgamation tarballs</a>.)
1078 <li> Added the <a href="compile.html#use_seh">SQLITE_USE_SEH</a> compile-time option that enables Structured
1079 Exception Handling on Windows while working with the memory-mapped
1080 <a href="walformat.html#shm">shm file</a> that is part of <a href="wal.html">WAL mode</a> processing. This option is enabled
1081 by default when building on Windows using Makefile.msc.
1082 <li> The <a href="vfs.html">VFS</a> for unix now assumes that the nanosleep() system call is
1083 available unless compiled with -DHAVE_NANOSLEEP=0.
1084 <p><b>Hashes:</b>
1085 <li>SQLITE_SOURCE_ID: 2023-08-24 12:36:59 0f80b798b3f4b81a7bb4233c58294edd0f1156f36b6ecf5ab8e83631d468778c
1086 <li>SHA3-256 for sqlite3.c: a6fc5379891d77b69a7d324cd24a437307af66cfdc3fef5dfceec3c82c8d4078
1087
1088 </ol></p>
1089 <a name="version_3_42_0"></a>
1090 <h3>2023-05-16 (3.42.0)</h3><p><ol class='lessindent'>
1091 <li> Add the <a href="fts5.html#the_secure_delete_configuration_option">FTS5 secure-delete command</a>. This option causes all forensic traces
1092 to be removed from the FTS5 inverted index when content is deleted.
1093 <li> Enhance the <a href="json1.html">JSON SQL functions</a> to support <a href="json1.html#json5">JSON5 extensions</a>.
1094 <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>
1095 are now allowed to occur <i>after</i> <a href="c3ref/initialize.html">sqlite3_initialize()</a>.
1096 <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
1097 <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigreversescanorder">SQLITE_DBCONFIG_REVERSE_SCANORDER</a>.
1098 <li> Query planner improvements:
1099 <ol type="a">
1100 <li> Enable the "count-of-view" optimization by default.
1101 <li> Avoid computing unused columns in subqueries.
1102 <li> Improvements to the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a>.
1103 </ol>
1104 <li> Enhancements to the <a href="cli.html">CLI</a>:
1105 <ol type="a">
1106 <li> Add the --unsafe-testing command-line option. Without this option, some
1107 dot-commands (ex: ".testctrl") are now disabled because those commands
1108 that are intended for testing only and can cause malfunctions if misused.
1109 <li> Allow commands ".log on" and ".log off", even in --safe mode.
1110 <li> "--" as a command-line argument means all subsequent arguments that
1111 start with "-" are interpreted as normal non-option argument.
1112 <li> Magic parameters ":inf" and ":nan" bind to floating point literals
1113 Infinity and NaN, respectively.
1114 <li> The --utf8 command-line option omits all translation to or from
1115 MBCS on the Windows console for interactive sessions, and sets
1116 the console code page for UTF-8 I/O during such sessions.
1117 The --utf8 option is a no-op on all other platforms.
1118 </ol>
1119 <li> Add the ability for <a href="appfunc.html">application-defined SQL functions</a> to have the same name
1120 as join keywords: CROSS, FULL, INNER, LEFT, NATURAL, OUTER, or RIGHT.
1121 <li> Enhancements to <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>:
1122 <ol type="a">
1123 <li> Detect and raise an error when a NaN value is stored in a NOT NULL column.
1124 <li> Improved error message output identifies the root page of a b-tree when
1125 an error is found within a b-tree.
1126 </ol>
1127 <li> Allow the <a href="sessionintro.html">session extension</a> to be configured to capture changes from
1128 tables that lack an explicit ROWID.
1129 <li> Added the <a href="lang_datefunc.html#subsec">subsecond modifier</a> to the <a href="lang_datefunc.html">date and time functions</a>.
1130 <li> Negative values passed into <a href="c3ref/sleep.html">sqlite3_sleep()</a> are henceforth interpreted as 0.
1131 <li> The maximum recursion depth for JSON arrays and objects is lowered from 2000
1132 to 1000.
1133 <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
1134 floating-point conversions in addition to integer conversions.
1135 <li> Miscellaneous bug fixes and performance optimizations
1136 <p><b>Hashes:</b>
1137 <li>SQLITE_SOURCE_ID: 2023-05-16 12:36:15 831d0fb2836b71c9bc51067c49fee4b8f18047814f2ff22d817d25195cf350b0
1138 <li>SHA3-256 for sqlite3.c: 6aa3fadf000000625353bbaa1e83af114c40c240a0aa5a2c1c2aabcfc28d4f92
1139
1140 </ol></p>
1141 <a name="version_3_41_2"></a>
1142 <h3>2023-03-22 (3.41.2)</h3><p><ol class='lessindent'>
1143 <li> Multiple fixes for reads past the end of memory buffers
1144 (NB: <i>reads</i> not <i>writes</i>) in the following circumstances:
1145 <ol type="a">
1146 <li> When processing a corrupt database file using the non-standard
1147 <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a> compile-time option.
1148 <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
1149 (see also the fix to sqlite3_error_offset() below).
1150 <li> In the <a href="recovery.html">recovery extension</a>.
1151 <li> In <a href="fts3.html">FTS3</a> when processing a corrupt database file.
1152 </ol>
1153 <li> Fix the <a href="c3ref/errcode.html">sqlite3_error_offset()</a> so that it does not return out-of-range values when
1154 reporting errors associated with <a href="gencol.html">generated columns</a>.
1155 <li> Multiple fixes in the query optimizer for problems that cause incorrect
1156 results for bizarre, fuzzer-generated queries.
1157 <li> Increase the size of the reference counter in the page cache object to 64 bits to
1158 ensure that the counter never overflows.
1159 <li> Fix a performance regression caused by a bug fix in patch release 3.41.1.
1160 <li> Fix a few incorrect assert() statements.
1161 <p><b>Hashes:</b>
1162 <li>SQLITE_SOURCE_ID: 2023-03-22 11:56:21 0d1fc92f94cb6b76bffe3ec34d69cffde2924203304e8ffc4155597af0c191da
1163 <li>SHA3-256 for sqlite3.c: c83f68b7aac1e7d3ed0fcdb9857742f024449e1300bfb3375131a6180b36cf7c
1164
1165 </ol></p>
1166 <a name="version_3_41_1"></a>
1167 <h3>2023-03-10 (3.41.1)</h3><p><ol class='lessindent'>
1168 <li> Provide compile-time options -DHAVE_LOG2=0 and -DHAVE_LOG10=0 to enable SQLite to be
1169 compiled on systems that omit the standard library functions log2() and log10(), repectively.
1170 <li> Ensure that the datatype for column t1.x in
1171 "<tt>CREATE TABLE t1 AS SELECT CAST(7 AS INT) AS x;</tt>" continues to be INT and is not NUM,
1172 for historical compatibility.
1173 <li> Enhance <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> to detect when extra bytes appear at the end of an
1174 index record.
1175 <li> Fix various obscure bugs reported by the user community. See the
1176 <a href="https://sqlite.org/src/timeline?from=version-3.41.0&to=version-3.41.1">timeline of changes</a>
1177 for details.
1178
1179 <p><b>Hashes:</b>
1180 <li>SQLITE_SOURCE_ID: 2023-03-10 12:13:52 20399f3eda5ec249d147ba9e48da6e87f969d7966a9a896764ca437ff7e737ff
1181 <li>SHA3-256 for sqlite3.c: d0d9db8425570f4a57def04fb8f4ac84f5c3e4e71d3d4d10472e3639c5fdf09f
1182
1183 </ol></p>
1184 <a name="version_3_41_0"></a>
1185 <h3>2023-02-21 (3.41.0)</h3><p><ol class='lessindent'>
1186 <li>Query planner improvements:
1187 <ol type="a">
1188 <li> Make use of <a href="expridx.html">indexed expressions</a> within an aggregate query that
1189 includes a GROUP BY clause.
1190 <li> The query planner has improved awareness of when an index is
1191 a <a href="queryplanner.html#covidx">covering index</a> and adjusts predicted runtimes accordingly.
1192 <li> The query planner is more aggressive about using <a href="optoverview.html#coroutines">co-routines</a> rather
1193 than materializing subqueries and views.
1194 <li> Queries against the built-in table-valued functions <a href="json1.html#jtree">json_tree()</a> and
1195 <a href="json1.html#jeach">json_each()</a> will now usually treat "ORDER BY rowid" as a no-op.
1196 <li> Enhance the ability of the query planner to use <a href="expridx.html">indexed expressions</a>
1197 even if the expression has been modified by the
1198 <a href="optoverview.html#constprop">constant-propagation optimization</a>.
1199 (See <a href="https://sqlite.org/forum/forumpost/0a539c76db3b9e29">forum thread 0a539c7</a>.)
1200 </ol>
1201 <li>Add the built-in <a href="lang_corefunc.html#unhex">unhex()</a> SQL function.
1202 <li>Add the base64 and base85 application-defined functions as an extension and
1203 include that extension in the <a href="cli.html">CLI</a>.
1204 <li>Add the <a href="c3ref/stmt_scanstatus.html">sqlite3_stmt_scanstatus_v2()</a> interface. (This interface is only
1205 available if SQLite is compiled using <a href="compile.html#enable_stmt_scanstatus">SQLITE_ENABLE_STMT_SCANSTATUS</a>.)
1206 <li>In-memory databases created using <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> now report their
1207 filename as an empty string, not as 'x'.
1208 <li>Changes to the <a href="cli.html">CLI</a>:
1209 <ol type="a">
1210 <li> Add the new base64() and base85() SQL functions
1211 <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>
1212 interface when compiled using <a href="compile.html#enable_stmt_scanstatus">SQLITE_ENABLE_STMT_SCANSTATUS</a>.
1213 <li> The "<tt>.scanstats est</tt>" command provides query planner estimates in profiles.
1214 <li> The continuation prompt indicates if the input is currently inside of a
1215 string literal, identifier literal, comment, trigger definition, etc.
1216 <li> Enhance the --safe command-line option to disallow dangerous SQL functions.
1217 <li> The <a href="quirks.html#dblquote">double-quoted string misfeature</a> is now disabled by default for CLI
1218 builds. Legacy use cases can reenable the misfeature at run-time using
1219 the "<tt>.dbconfig dqs_dml on</tt>" and "<tt>.dbconfig dqs_ddl on</tt>"
1220 commands.
1221 </ol>
1222 <li>Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command so that it detects when text strings in
1223 a table are equivalent to but not byte-for-byte identical to the same strings in the index.
1224 <li>Enhance the <a href="carray.html">carray table-valued function</a> so that it is able to bind an array of
1225 BLOB objects.
1226 <li>Added the <a href="c3ref/interrupt.html">sqlite3_is_interrupted()</a> interface.
1227 <li>Long-running calls to <a href="c3ref/prepare.html">sqlite3_prepare()</a> and similar now invoke the
1228 <a href="c3ref/progress_handler.html">progress handler callback</a> and react to <a href="c3ref/interrupt.html">sqlite3_interrupt()</a>.
1229 <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
1230 they reliably detect if they are invoked on a parameter that was not selected for
1231 multi-value IN processing using <a href="c3ref/vtab_in.html">sqlite3_vtab_in()</a>.
1232 They return SQLITE_ERROR instead of SQLITE_MISUSE in this case.
1233 <li>The parser now ignores excess parentheses around a subquery on the right-hand side
1234 of an IN operator, so that SQLite now works the same as PostgreSQL in this regard.
1235 Formerly, SQLite treated the subquery as an expression with an implied "LIMIT 1".
1236 <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.
1237 <li>Makefile improvements:
1238 <ol type="a">
1239 <li>The new makefile target "sqlite3r.c" builds an <a href="amalgamation.html">amalgamation</a> that includes
1240 the <a href="recovery.html">recovery extension</a>.
1241 <li>New makefile targets "devtest" and "releasetest" for running a
1242 quick developmental test prior to doing a check-in and for doing a full
1243 release test, respectively.
1244 </ol>
1245 <li>Miscellaneous performance enhancements.
1246 <p><b>Hashes:</b>
1247 <li>SQLITE_SOURCE_ID: 2023-02-21 18:09:37 05941c2a04037fc3ed2ffae11f5d2260706f89431f463518740f72ada350866d
1248 <li>SHA3-256 for sqlite3.c: 02bd9e678460946810801565667fdb8f0c29c78e51240512d2e5bb3dbdee7464
1249
1250 </ol></p>
1251 <a name="version_3_40_1"></a>
1252 <h3>2022-12-28 (3.40.1)</h3><p><ol class='lessindent'>
1253 <li> Fix the <a href="cli.html#safemode">--safe command-line option</a> to the <a href="cli.html">CLI</a>
1254 such that it correctly disallows the
1255 use of SQL functions like writefile() that can cause harmful side-effects.
1256 <li> Fix a potential infinite loop in the <a href="malloc.html#memsys5">memsys5</a> alternative memory allocator. This
1257 bug was introduced by a performance optimization in version 3.39.0.
1258 <li> Various other obscure fixes.
1259 <p><b>Hashes:</b>
1260 <li>SQLITE_SOURCE_ID: 2022-12-28 14:03:47 df5c253c0b3dd24916e4ec7cf77d3db5294cc9fd45ae7b9c5e82ad8197f38a24
1261 <li>SHA3-256 for sqlite3.c: 4d6800e9032ff349376fe612e422b49ba5eb4e378fac0b3e405235d09dd366ab
1262
1263 </ol></p>
1264 <a name="version_3_40_0"></a>
1265 <h3>2022-11-16 (3.40.0)</h3><p><ol class='lessindent'>
1266 <li> Add support for compiling <a href="https://sqlite.org/wasm">SQLite to WASM</a>
1267 and running it in web browsers. NB: The WASM build and its interfaces
1268 are considered "beta" and are subject to minor changes if the need
1269 arises. We anticipate finalizing the interface for the next release.
1270 <li> Add the <a href="recovery.html">recovery extension</a> that might be able to recover some content
1271 from a corrupt database file.
1272 <li> Query planner enhancements:
1273 <ol type="a">
1274 <li> Recognize <a href="queryplanner.html#covidx">covering indexes</a> on tables with more than 63 columns where
1275 columns beyond the 63rd column are used in the query and/or are
1276 referenced by the index.
1277 <li> Extract the values of expressions contained within <a href="expridx.html">expression indexes</a>
1278 where practical, rather than recomputing the expression.
1279 <li> The NOT NULL and IS NULL operators (and their equivalents) avoid
1280 loading the content of large strings and BLOB values from disk.
1281 <li> Avoid materializing a view on which a full scan is performed
1282 exactly once. Use and discard the rows of the view as they are computed.
1283 <li> Allow flattening of a subquery that is the right-hand operand of
1284 a LEFT JOIN in an aggregate query.
1285 </ol>
1286 <li> A new typedef named <a href="c3ref/filename.html">sqlite3_filename</a> is added and used to represent
1287 the name of a database file. Various interfaces are
1288 modified to use the new typedef instead of "char*". This interface
1289 change should be fully backwards compatible, though it might cause
1290 (harmless) compiler warnings when rebuilding some legacy applications.
1291 <li> Add the <a href="c3ref/value_encoding.html">sqlite3_value_encoding()</a> interface.
1292 <li> Security enhancement: <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a> is augmented to prohibit
1293 changing the <a href="pragma.html#pragma_schema_version">schema_version</a>. The schema_version
1294 becomes read-only in defensive mode.
1295 <li> Enhancements to the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> statement:
1296 <ol type="a">
1297 <li> Columns in non-STRICT tables with TEXT affinity should not contain numeric values.
1298 <li> Columns in non-STRICT tables with NUMERIC affinity should not
1299 contain TEXT values that could be converted into numbers.
1300 <li> Verify that the rows of a <a href="withoutrowid.html">WITHOUT ROWID</a> table are in the correct order.
1301 </ol>
1302 <li> Enhance the <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> statement so that it honors the
1303 <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> setting.
1304 <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
1305 to accept NULL pointers for their string parameters and still generate a sensible
1306 result.
1307 <li> Provide the new <a href="compile.html#max_allocation_size">SQLITE_MAX_ALLOCATION_SIZE</a> compile-time option for limiting
1308 the size of memory allocations.
1309 <li> Change the algorithm used by SQLite's built-in pseudo-random number generator (PRNG)
1310 from RC4 to Chacha20.
1311 <li> Allow two or more indexes to have the same name as long as they are all in
1312 separate schemas.
1313 <li> Miscellaneous performance optimizations result in about 1% fewer CPU cycles
1314 used on typical workloads.
1315 <p><b>Hashes:</b>
1316 <li>SQLITE_SOURCE_ID: 2022-11-16 12:10:08 89c459e766ea7e9165d0beeb124708b955a4950d0f4792f457465d71b158d318
1317 <li>SHA3-256 for sqlite3.c: ab8da6bc754642989e67d581f26683dc705b068cea671970f0a7d32cfacbad19
1318
1319 </ol></p>
1320 <a name="version_3_39_4"></a>
1321 <h3>2022-09-29 (3.39.4)</h3><p><ol class='lessindent'>
1322 <li> Fix the build on Windows so that it works with -DSQLITE_OMIT_AUTOINIT
1323 <li> Fix a long-standing problem in the btree balancer that might, in rare cases,
1324 cause database corruption if the application uses an
1325 <a href="c3ref/pcache_methods2.html">application-defined page cache</a>.
1326 <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>
1327 statements if one or more of the statements in the body of the trigger write
1328 into <a href="vtab.html#xshadowname">shadow tables</a>.
1329 <li> Fix a possible integer overflow in the size computation for a memory allocation
1330 in FTS3.
1331 <li> Fix a misuse of the <a href="c3ref/get_auxdata.html">sqlite3_set_auxdata()</a> interface in the
1332 <a href="https://sqlite.org/src/dir/ext/icu">ICU Extension</a>.
1333 <p><b>Hashes:</b>
1334 <li>SQLITE_SOURCE_ID: 2022-09-29 15:55:41 a29f9949895322123f7c38fbe94c649a9d6e6c9cd0c3b41c96d694552f26b309
1335 <li>SHA3-256 for sqlite3.c: f65082298127e2ddae6539beb94f5204b591df64ba2c7da83c7d0faffd6959d8
1336
1337 </ol></p>
1338 <a name="version_3_39_3"></a>
1339 <h3>2022-09-05 (3.39.3)</h3><p><ol class='lessindent'>
1340 <li> Use a statement journal on DML statement affecting two or more database
1341 rows if the statement makes use of a SQL functions that might abort. See
1342 <a href="https://sqlite.org/forum/forumpost/9b9e4716c0d7bbd1">forum thread 9b9e4716c0d7bbd1</a>.
1343 <li> Use a mutex to protect the <a href="pragma.html#pragma_temp_store_directory">PRAGMA temp_store_directory</a> and
1344 <a href="pragma.html#pragma_data_store_directory">PRAGMA data_store_directory</a> statements, even though they are deprecated and
1345 documented as not being threadsafe. See
1346 <a href="https://sqlite.org/forum/forumpost/719a11e1314d1c70">forum post 719a11e1314d1c70</a>.
1347 <li> Other bug and warning fixes. See the
1348 <a href="https://sqlite.org/src/timeline?p=version-3.39.3&bt=version-3.39.2">timeline</a>
1349 for details.
1350 <p><b>Hashes:</b>
1351 <li>SQLITE_SOURCE_ID: 2022-09-05 11:02:23 4635f4a69c8c2a8df242b384a992aea71224e39a2ccab42d8c0b0602f1e826e8
1352 <li>SHA3-256 for sqlite3.c: 2fc273cf8032b601c9e06207efa0ae80eb73d5a1d283eb91096c815fa9640257
1353
1354 </ol></p>
1355 <a name="version_3_39_2"></a>
1356 <h3>2022-07-21 (3.39.2)</h3><p><ol class='lessindent'>
1357 <li> Fix a performance regression in the query planner associated with rearranging
1358 the order of FROM clause terms in the presences of a LEFT JOIN.
1359 <li> Apply fixes for CVE-2022-35737, Chromium bugs 1343348 and 1345947,
1360 <a href="https://sqlite.org/forum/forumpost/3607259d3c">forum post 3607259d3c</a>, and
1361 other minor problems discovered by internal testing.
1362 <p><b>Hashes:</b>
1363 <li>SQLITE_SOURCE_ID: 2022-07-21 15:24:47 698edb77537b67c41adc68f9b892db56bcf9a55e00371a61420f3ddd668e6603
1364 <li>SHA3-256 for sqlite3.c: bffbaafa94706f0ed234f183af3eb46e6485e7e2c75983173ded76e0da805f11
1365
1366 </ol></p>
1367 <a name="version_3_39_1"></a>
1368 <h3>2022-07-13 (3.39.1)</h3><p><ol class='lessindent'>
1369 <li> Fix an incorrect result from a query that uses a view that contains a compound
1370 SELECT in which only one arm contains a RIGHT JOIN and where the view is not
1371 the first FROM clause term of the query that contains the view.
1372 <a href="https://sqlite.org/forum/forumpost/174afeae5734d42d">forum post 174afeae5734d42d</a>.
1373 <li> Fix some harmless compiler warnings.
1374 <li> Fix a long-standing problem with <a href="lang_altertable.html#altertabrename">ALTER TABLE RENAME</a> that can only arise
1375 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.
1376 <li> Fix a long-standing problem in <a href="fts3.html">FTS3</a> that can only arise when compiled with
1377 the <a href="compile.html#enable_fts3_parenthesis">SQLITE_ENABLE_FTS3_PARENTHESIS</a> compile-time option.
1378 <li> Fix the build so that is works when the <a href="compile.html#debug">SQLITE_DEBUG</a> and
1379 <a href="compile.html#omit_windowfunc">SQLITE_OMIT_WINDOWFUNC</a> compile-time options are both provided at the
1380 same time.
1381 <li> Fix the initial-prefix optimization for the <a href="lang_expr.html#regexp">REGEXP</a> extension so that it works
1382 correctly even if the prefix contains characters that require a 3-byte UTF8
1383 encoding.
1384 <li> Enhance the <a href="stmt.html">sqlite_stmt</a> virtual table so that it buffers all of its output.
1385 <p><b>Hashes:</b>
1386 <li>SQLITE_SOURCE_ID: 2022-07-13 19:41:41 7c16541a0efb3985578181171c9f2bb3fdc4bad6a2ec85c6e31ab96f3eff201f
1387 <li>SHA3-256 for sqlite3.c: 6d13fcf1c31133da541d1eb8a83552d746f39b81a0657bd4077fed0221749511
1388
1389 </ol></p>
1390 <a name="version_3_39_0"></a>
1391 <h3>2022-06-25 (3.39.0)</h3><p><ol class='lessindent'>
1392 <li> Add (long overdue) support for <a href="lang_select.html#rjoin">RIGHT and FULL OUTER JOIN</a>.
1393 <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>
1394 that are equivalent to IS and IS NOT, respective, for compatibility with
1395 PostgreSQL and SQL standards.
1396 <li> Add a new return code (value "3") from the <a href="c3ref/vtab_distinct.html">sqlite3_vtab_distinct()</a>
1397 interface that indicates a query that has both DISTINCT and ORDER BY
1398 clauses.
1399 <li> Added the <a href="c3ref/db_name.html">sqlite3_db_name()</a> interface.
1400 <li> The unix os interface resolves all symbolic links in database
1401 filenames to create a canonical name for the database before the
1402 file is opened.
1403 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>
1404 or similar, the open will fail if any element of the path is a
1405 symbolic link.
1406 <li> Defer materializing views until the materialization
1407 is actually needed, thus avoiding unnecessary work if the materialization turns
1408 out to never be used.
1409 <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,
1410 even queries that do not have a <a href="lang_select.html#resultset">GROUP BY clause</a>.
1411 <li> Many <a href="cpu.html#microopt">microoptimizations</a> collectively reduce CPU cycles by about 2.3%.
1412 <p><b>Hashes:</b>
1413 <li>SQLITE_SOURCE_ID: 2022-06-25 14:57:57 14e166f40dbfa6e055543f8301525f2ca2e96a02a57269818b9e69e162e98918
1414 <li>SHA3-256 for sqlite3.c: d9c439cacad5e4992d0d25989cfd27a4c4f59a3183c97873bc03f0ad1aa78b7a
1415
1416 </ol></p>
1417 <a name="version_3_38_5"></a>
1418 <h3>2022-05-06 (3.38.5)</h3><p><ol class='lessindent'>
1419 <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.
1420
1421 <p><b>Hashes:</b>
1422 <li>SQLITE_SOURCE_ID: 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe
1423 <li>SHA3-256 for sqlite3.c: b05ef42ed234009b4b3dfb36c5f5ccf6d728da80f25ee560291269cf6cfe635f
1424
1425 </ol></p>
1426 <a name="version_3_38_4"></a>
1427 <h3>2022-05-04 (3.38.4)</h3><p><ol class='lessindent'>
1428 <li> Fix a byte-code problem in the Bloom filter pull-down optimization added by release
1429 3.38.0 in which an error in the byte code causes the byte code engine to enter an
1430 infinite loop when the pull-down optimization encounters a NULL key.
1431 <a href='https://sqlite.org/forum/forumpost/2482b32700384a0f'>Forum thread 2482b32700384a0f</a>.
1432 <li> Other minor patches. See the
1433 <a href='https://sqlite.org/src/timeline?p=branch-3.38&bt=version-3.38.3'>timeline</a> for
1434 details.
1435
1436 <p><b>Hashes:</b>
1437 <li>SQLITE_SOURCE_ID: 2022-05-04 15:45:55 d402f49871152670a62f4f28cacb15d814f2c1644e9347ad7d258e562978e45e
1438 <li>SHA3-256 for sqlite3.c: e6a50effb021858c200e885664611ed3c5e949413ff2dca452ac7ee336b9de1d
1439
1440 </ol></p>
1441 <a name="version_3_38_3"></a>
1442 <h3>2022-04-27 (3.38.3)</h3><p><ol class='lessindent'>
1443 <li> Fix a case of the query planner be overly aggressive with optimizing automatic-index
1444 and Bloom-filter construction, using inappropriate ON clause terms to restrict the
1445 size of the automatic-index or Bloom filter, and resulting in missing rows in the
1446 output.
1447 <a href='https://sqlite.org/forum/forumpost/0d3200f4f3bcd3a3'>Forum thread 0d3200f4f3bcd3a3</a>.
1448 <li> Other minor patches. See the
1449 <a href='https://sqlite.org/src/timeline?p=version-3.38.3&bt=version-3.38.2'>timeline</a> for
1450 details.
1451
1452 <p><b>Hashes:</b>
1453 <li>SQLITE_SOURCE_ID: 2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4
1454 <li>SHA3-256 for sqlite3.c: d4d66feffad66ea82073fbb97ae9c84e3615887ebc5168226ccee28d82424517
1455
1456 </ol></p>
1457 <a name="version_3_38_2"></a>
1458 <h3>2022-03-26 (3.38.2)</h3><p><ol class='lessindent'>
1459 <li> Fix a user-discovered problem with the new Bloom filter optimization
1460 that might cause an incorrect answer when doing a LEFT JOIN with a WHERE
1461 clause constraint that says that one of the columns on the right table of
1462 the LEFT JOIN is NULL. See
1463 <a href='https://sqlite.org/forum/forumpost/031e262a89b6a9d2'>forum thread 031e262a89b6a9d2</a>.
1464 <li> Other minor patches. See the
1465 <a href='https://sqlite.org/src/timeline?p=version-3.38.2&bt=version-3.38.1'>timeline</a> for
1466 details.
1467
1468 <p><b>Hashes:</b>
1469 <li>SQLITE_SOURCE_ID: 2022-03-26 13:51:10 d33c709cc0af66bc5b6dc6216eba9f1f0b40960b9ae83694c986fbf4c1d6f08f
1470 <li>SHA3-256 for sqlite3.c: 0fbac6b6999f894184899431fb77b9792324c61246b2a010d736694ccaa6d613
1471
1472 </ol></p>
1473 <a name="version_3_38_1"></a>
1474 <h3>2022-03-12 (3.38.1)</h3><p><ol class='lessindent'>
1475 <li> Fix problems with the new Bloom filter optimization that might cause
1476 some obscure queries to get an incorrect answer.
1477 <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
1478 it preserves fractional seconds.
1479 <li> Fix the <a href="lang_corefunc.html#sqlite_offset">sqlite_offset SQL function</a> so that it works correctly even
1480 in corner cases such as when the argument is a virtual column or the
1481 column of a view.
1482 <li> Fix <a href="rowvalue.html#rvinop">row value IN operator</a> constraints on <a href="vtab.html">virtual tables</a> so that they
1483 work correctly even if the virtual table implementation relies on bytecode
1484 to filter rows that do not satisfy the constraint.
1485 <li> Other minor fixes to assert() statements, test cases, and documentation.
1486 See the <a href="https://sqlite.org/src/timeline?p=version-3.38.1&bt=version-3.38.0">source code timeline</a>
1487 for details.
1488
1489 <p><b>Hashes:</b>
1490 <li>SQLITE_SOURCE_ID: 2022-03-12 13:37:29 38c210fdd258658321c85ec9c01a072fda3ada94540e3239d29b34dc547a8cbc
1491 <li>SHA3-256 for sqlite3.c: 262ba071e960a8a0a6ce39307ae30244a2b0dc9fe1c4c09d0e1070d4353cd92c
1492
1493 </ol></p>
1494 <a name="version_3_38_0"></a>
1495 <h3>2022-02-22 (3.38.0)</h3><p><ol class='lessindent'>
1496 <li> Added <a href="json1.html#jptr">the -> and ->> operators</a> for easier processing of JSON.
1497 The new operators are compatible with MySQL and PostgreSQL.
1498 <li> The JSON functions are now built-ins. It is no longer necessary
1499 to use the <a href="compile.html#enable_json1">-DSQLITE_ENABLE_JSON1</a> compile-time option to enable JSON
1500 support. JSON is on by default. Disable the JSON interface using
1501 the new <a href="compile.html#omit_json">-DSQLITE_OMIT_JSON</a> compile-time option.
1502 <li> Enhancements to <a href="lang_datefunc.html">date and time functions</a>:
1503 <ol type="a">
1504 <li> Added the <a href="lang_datefunc.html#uepch">unixepoch() function</a>.
1505 <li> Added the <a href="lang_datefunc.html#automod">auto modifier</a> and the <a href="lang_datefunc.html#jdmod">julianday modifier</a>.
1506 </ol>
1507 <li> Rename the <a href="lang_corefunc.html#printf">printf() SQL function</a> to <a href="lang_corefunc.html#format">format()</a> for better
1508 compatibility. The original printf() name is retained as an alias
1509 for backwards compatibility.
1510 <li> Added the <a href="c3ref/errcode.html">sqlite3_error_offset()</a> interface, which can sometimes
1511 help to localize an SQL error to a specific character in the input
1512 SQL text, so that applications can provide better error messages.
1513 <li> Enhanced the interface to <a href="vtab.html">virtual tables</a> as follows:
1514 <ol type="a">
1515 <li> Added the <a href="c3ref/vtab_distinct.html">sqlite3_vtab_distinct()</a> interface.
1516 <li> Added the <a href="c3ref/vtab_rhs_value.html">sqlite3_vtab_rhs_value()</a> interface.
1517 <li> Added new operator types <a href="c3ref/c_index_constraint_eq.html">SQLITE_INDEX_CONSTRAINT_LIMIT</a>
1518 and <a href="c3ref/c_index_constraint_eq.html">SQLITE_INDEX_CONSTRAINT_OFFSET</a>.
1519 <li> Added the <a href="c3ref/vtab_in.html">sqlite3_vtab_in()</a> interface (and related) to enable
1520 a virtual table to process <a href="lang_expr.html#in_op">IN operator</a> constraints all at once,
1521 rather than processing each value of the right-hand side of the
1522 IN operator separately.
1523 </ol>
1524 <li> <a href="cli.html">CLI</a> enhancements:
1525 <ol type="a">
1526 <li> <a href="climode.html#clmnr">Columnar output modes</a> are enhanced to correctly handle tabs
1527 and newlines embedded in text.
1528 <li> Added options like "--wrap N", "--wordwrap on", and "--quote"
1529 to the <a href="climode.html#clmnr">columnar output modes</a>.
1530 <li> Added the <a href="climode.html#qbox">.mode qbox</a> alias.
1531 <li> The <a href="cli.html#csv">.import command</a> automatically disambiguates column names.
1532 <li> Use the new <a href="c3ref/errcode.html">sqlite3_error_offset()</a> interface to provide better
1533 error messages.
1534 </ol>
1535 <li> Query planner enhancements:
1536 <ol type="a">
1537 <li> Use a Bloom filter to speed up large analytic queries.
1538 <li> Use a balanced merge tree to evaluate UNION or UNION ALL
1539 compound SELECT statements that have an ORDER BY clause.
1540 </ol>
1541 <li> The <a href="lang_altertable.html">ALTER TABLE</a> statement is changed to silently ignores entries in the
1542 <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>.
1543 <p><b>Hashes:</b>
1544 <li>SQLITE_SOURCE_ID: 2022-02-22 18:58:40 40fa792d359f84c3b9e9d6623743e1a59826274e221df1bde8f47086968a1bab
1545
1546 <li>SHA3-256 for sqlite3.c: a69af0a88d59271a2dd3c846a3e93cbd29e7c499864f6c0462a3b4160bee1762
1547
1548 </ol></p>
1549 <a name="version_3_37_2"></a>
1550 <h3>2022-01-06 (3.37.2)</h3><p><ol class='lessindent'>
1551 <li> Fix <a href="https://sqlite.org/forum/forumpost/b03d86f9516cb3a2">a bug</a> introduced
1552 in <a href="#version_3_35_0">version 3.35.0</a> (2021-03-12) that
1553 <a href="howtocorrupt.html#svptbug">can cause database corruption</a>
1554 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,
1555 and other changes are made, and then the outer transaction commits.
1556 <a href="https://sqlite.org/src/info/73c2b50211d3ae26">Check-in 73c2b50211d3ae26</a>
1557 <li> Fix a long-standing problem with ON DELETE CASCADE and ON UPDATE CASCADE
1558 in which a cache of the <a href="opcode.html">bytecode</a> used to implement the cascading change
1559 was not being reset following a local DDL change.
1560 <a href="https://sqlite.org/src/info/5232c9777fe4fb13">Check-in 5232c9777fe4fb13</a>.
1561 <li> Other minor fixes that should not impact production builds.
1562
1563 <p><b>Hashes:</b>
1564 <li>SQLITE_SOURCE_ID: 2022-01-06 13:25:41 872ba256cbf61d9290b571c0e6d82a20c224ca3ad82971edc46b29818d5d17a0
1565 <li>SHA3-256 for sqlite3.c: 1bb01c382295cba85ec4685cedc52a7477cdae71cc37f1ad0f48719a17af1e1e
1566
1567 </ol></p>
1568 <a name="version_3_37_1"></a>
1569 <h3>2021-12-30 (3.37.1)</h3><p><ol class='lessindent'>
1570 <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
1571 can cause incorrect byte-code to be generated for some obscure but valid
1572 SQL, possibly resulting in a NULL-pointer dereference.
1573 <li> Fix an OOB read that can occur in <a href="fts5.html">FTS5</a> when reading corrupt database files.
1574 <li> Improved robustness of the --safe option in the <a href="cli.html">CLI</a>.
1575 <li> Other minor fixes to assert() statements and test cases.
1576
1577 <p><b>Hashes:</b>
1578 <li>SQLITE_SOURCE_ID: 2021-12-30 15:30:28 378629bf2ea546f73eee84063c5358439a12f7300e433f18c9e1bddd948dea62
1579 <li>SHA3-256 for sqlite3.c: 915afb3f29c2d217ea0c283326a9df7d505e6c73b40236f0b33ded91f812d174
1580
1581 </ol></p>
1582 <a name="version_3_37_0"></a>
1583 <h3>2021-11-27 (3.37.0)</h3><p><ol class='lessindent'>
1584 <li> <a href="stricttables.html">STRICT tables</a> provide a prescriptive style of data type management,
1585 for developers who prefer that kind of thing.
1586 <li> When adding columns that contain a
1587 <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>,
1588 the <a href="lang_altertable.html#altertabaddcol">ALTER TABLE ADD COLUMN</a> now checks new constraints against
1589 preexisting rows in the database and will only proceed if no constraints
1590 are violated.
1591 <li> Added the <a href="pragma.html#pragma_table_list">PRAGMA table_list</a> statement.
1592 <li> <a href="cli.html">CLI</a> enhancements:
1593 <ol type="a">
1594 <li> Add the <a href="cli.html#dotconn">.connection</a> command, allowing the CLI to keep multiple database
1595 connections open at the same time.
1596 <li> Add the <a href="cli.html#safemode">--safe command-line option</a> that disables
1597 <a href="cli.html#dotcmd">dot-commands</a> and SQL statements that might cause side-effects that extend
1598 beyond the single database file named on the command-line.
1599 <li> Performance improvements when reading SQL statements
1600 that span many lines.
1601 </ol>
1602 <li> Added the <a href="c3ref/autovacuum_pages.html">sqlite3_autovacuum_pages()</a> interface.
1603 <li> The <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> does not and has never worked for the TEMP
1604 database. That limitation is now noted in the documentation.
1605 <li> The query planner now omits ORDER BY clauses on subqueries and views
1606 if removing those clauses does not change the semantics of the query.
1607 <li> The <a href="series.html">generate_series</a> table-valued function extension is modified so that
1608 the first parameter ("START") is now required. This is done as a way to
1609 demonstrate how to write table-valued functions with required parameters.
1610 The legacy behavior is available using the -DZERO_ARGUMENT_GENERATE_SERIES
1611 compile-time option.
1612 <li> Added new <a href="c3ref/changes.html">sqlite3_changes64()</a> and <a href="c3ref/total_changes.html">sqlite3_total_changes64()</a> interfaces.
1613 <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>.
1614 <li> Use less memory to hold the database schema.
1615
1616 <p><b>Hashes:</b>
1617 <li>SQLITE_SOURCE_ID: 2021-11-27 14:13:22 bd41822c7424d393a30e92ff6cb254d25c26769889c1499a18a0b9339f5d6c8a
1618 <li>SHA3-256 for sqlite3.c: a202a950ab401cda052e81259e96d6e64ad91faaaaf5690d769f64c2ab962f27
1619
1620 </ol></p>
1621 <a name="version_3_36_0"></a>
1622 <h3>2021-06-18 (3.36.0)</h3><p><ol class='lessindent'>
1623 <li> Improvement to the <a href="eqp.html">EXPLAIN QUERY PLAN</a> output to make it easier to
1624 understand.
1625 <li> Byte-order marks at the start of a token are skipped as if they
1626 were whitespace.
1627 <li> An error is raised on any attempt to access the <a href="lang_createtable.html#rowid">rowid</a> of a VIEW or subquery.
1628 Formerly, the rowid of a VIEW would be indeterminate and often would be NULL.
1629 The -DSQLITE_ALLOW_ROWID_IN_VIEW compile-time option is available to restore
1630 the legacy behavior for applications that need it.
1631 <li> The <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> and <a href="c3ref/serialize.html">sqlite3_serialize()</a> interfaces are now
1632 enabled by default. The -DSQLITE_ENABLE_DESERIALIZE compile-time option is
1633 no longer required. Instead, there is a new <a href="compile.html#omit_deserialize">-DSQLITE_OMIT_DESERIALIZE</a>
1634 compile-time option to omit those interfaces.
1635 <li> The "memdb" VFS now allows the same in-memory database to be shared among
1636 multiple database connections in the same process as long as the
1637 database name begins with "/".
1638 <li> Back out the EXISTS-to-IN optimization (item 8b in the
1639 <a href="#version_3_35_0">SQLite 3.35.0 change log</a>)
1640 as it was found to slow down queries more often than speed them up.
1641 <li> Improve the <a href="optoverview.html#constprop">constant-propagation optimization</a> so that it works on
1642 non-join queries.
1643 <li> The <a href="https://sqlite.org/src/file/ext/misc/regexp.c">REGEXP extension</a> is
1644 now included in <a href="cli.html">CLI</a> builds.
1645
1646 <p><b>Hashes:</b>
1647 <li>SQLITE_SOURCE_ID: 2021-06-18 18:36:39 5c9a6c06871cb9fe42814af9c039eb6da5427a6ec28f187af7ebfb62eafa66e5
1648 <li>SHA3-256 for sqlite3.c: 2a8e87aaa414ac2d45ace8eb74e710935423607a8de0fafcb36bbde5b952d157
1649
1650 </ol></p>
1651 <a name="version_3_35_5"></a>
1652 <h3>2021-04-19 (3.35.5)</h3><p><ol class='lessindent'>
1653 <li> Fix defects in the new ALTER TABLE DROP COLUMN feature that could
1654 corrupt the database file.
1655 <li> Fix an obscure query optimizer problem that might cause an incorrect
1656 query result.
1657 <p><b>Hashes:</b>
1658 <li>SQLITE_SOURCE_ID: 2021-04-19 18:32:05 1b256d97b553a9611efca188a3d995a2fff712759044ba480f9a0c9e98fae886
1659 <li>SHA3-256 for sqlite3.c: e42291343e8f03940e57fffcf1631e7921013b94419c2f943e816d3edf4e1bbe
1660
1661 </ol></p>
1662 <a name="version_3_35_4"></a>
1663 <h3>2021-04-02 (3.35.4)</h3><p><ol class='lessindent'>
1664 <li> Fix a defect in the query planner optimization identified by
1665 item 8b above. Ticket
1666 <a href="https://sqlite.org/src/info/de7db14784a08053">de7db14784a08053</a>.
1667 <li> Fix a defect in the new <a href="lang_returning.html">RETURNING</a> syntax. Ticket
1668 <a href="https://sqlite.org/src/info/132994c8b1063bfb">132994c8b1063bfb</a>.
1669 <li> Fix the new <a href="lang_returning.html">RETURNING</a> feature so that it raises an error if one of
1670 the terms in the RETURNING clause references a unknown table, instead
1671 of silently ignoring that error.
1672 <li> Fix an assertion associated with aggregate function processing that
1673 was incorrectly triggered by the <a href="optoverview.html#pushdown">push-down optimization</a>.
1674 <p><b>Hashes:</b>
1675 <li>SQLITE_SOURCE_ID: 2021-04-02 15:20:15 5d4c65779dab868b285519b19e4cf9d451d50c6048f06f653aa701ec212df45e
1676 <li>SHA3-256 for sqlite3.c: 528b8a26bf5ffd4c7b4647b5b799f86e8fb1a075f715b87a414e94fba3d09dbe
1677
1678 </ol></p>
1679 <a name="version_3_35_3"></a>
1680 <h3>2021-03-26 (3.35.3)</h3><p><ol class='lessindent'>
1681 <li> Enhance the OP_OpenDup opcode of the <a href="opcode.html">bytecode engine</a> so that it works even if the
1682 cursor being duplicated itself came from OP_OpenDup. Fix for
1683 <a href="https://sqlite.org/src/info/bb8a9fd4a9b7fce5">ticket bb8a9fd4a9b7fce5</a>.
1684 This problem only came to light due to the recent MATERIALIZED hint enhancement.
1685 <li> When materializing correlated <a href="lang_with.html">common table expressions</a>, do so separately for each
1686 use case, as that is required for correctness. This fixes a problem that was
1687 introduced by the MATERIALIZED hint enhancement.
1688 <li> Fix a problem in the filename normalizer of the unix <a href="vfs.html">VFS</a>.
1689 <li> Fix the <a href="climode.html">"box" output mode</a> in the <a href="cli.html">CLI</a> so that it works with statements that
1690 returns one or more rows of zero columns (such as <a href="pragma.html#pragma_incremental_vacuum">PRAGMA incremental_vacuum</a>).
1691 <a href="https://sqlite.org/forum/forumpost/afbbcb5b72">Forum post afbbcb5b72</a>.
1692 <li> Improvements to error messages generated by faulty common table expressions.
1693 <a href="https://sqlite.org/forum/forumpost/aa5a0431c99e631">Forum post aa5a0431c99e</a>.
1694 <li> Fix some incorrect assert() statements.
1695 <li> Fix to the <a href="syntax/select-stmt.html">SELECT statement syntax diagram</a> so that the FROM clause
1696 syntax is shown correctly.
1697 <a href="https://sqlite.org/forum/forumpost/9ed02582fe">Forum post 9ed02582fe</a>.
1698 <li> Fix the EBCDIC character classifier so that it understands newlines as whitespace.
1699 <a href="https://sqlite.org/forum/forumpost/58540ce22dcd5fdcd">Forum post 58540ce22dcd</a>.
1700 <li> Improvements the <a href="vtab.html#xbestindex">xBestIndex</a> method in the implementation of the
1701 (unsupported) <a href="https://sqlite.org/src/file/ext/misc/wholenumber.c">wholenumber virtual table</a>
1702 extension so that it does a better job of convincing the query planner to
1703 avoid trying to materialize a table with an infinite number of rows.
1704 <a href="https://sqlite.org/forum/forumpost/b52a020ce4">Forum post b52a020ce4</a>.
1705 <p><b>Hashes:</b>
1706 <li>SQLITE_SOURCE_ID: 2021-03-26 12:12:52 4c5e6c200adc8afe0814936c67a971efc516d1bd739cb620235592f18f40be2a
1707 <li>SHA3-256 for sqlite3.c: 91ca6c0a30ebfdba4420bb35f4fd9149d13e45fc853d86ad7527db363e282683
1708
1709 </ol></p>
1710 <a name="version_3_35_2"></a>
1711 <h3>2021-03-17 (3.35.2)</h3><p><ol class='lessindent'>
1712 <li> Fix a problem in the
1713 <a href="https://sqlite.org/src/file/ext/misc/appendvfs.c">appendvfs.c</a>
1714 extension that was introduced into version 3.35.0.
1715 <li> Ensure that date/time functions with no arguments (which generate
1716 responses that depend on the current time) are treated as
1717 <a href="deterministic.html">non-deterministic functions</a>. Ticket
1718 <a href="https://sqlite.org/src/info/2c6c8689fb5f3d2f">2c6c8689fb5f3d2f</a>
1719 <li> Fix a problem in the <a href="sqldiff.html">sqldiff</a> utility program having to do with
1720 unusual whitespace characters in a <a href="vtab.html">virtual table</a> definition.
1721 <li> Limit the new UNION ALL optimization described by item 8c in the
1722 3.35.0 release so that it does not try to make too many new subqueries.
1723 See <a href="https://sqlite.org/forum/forumpost/140a67d3d2">forum thread 140a67d3d2</a>
1724 for details.
1725 <p><b>Hashes:</b>
1726 <li>SQLITE_SOURCE_ID: 2021-03-17 19:07:21 ea80f3002f4120f5dcee76e8779dfdc88e1e096c5cdd06904c20fd26d50c3827
1727 <li>SHA3-256 for sqlite3.c: e8edc7b1512a2e050d548d0840bec6eef83cc297af1426c34c0ee8720f378a11
1728
1729 </ol></p>
1730 <a name="version_3_35_1"></a>
1731 <h3>2021-03-15 (3.35.1)</h3><p><ol class='lessindent'>
1732 <li> Fix <a href="https://sqlite.org/src/info/1c24a659e6d7f3a1">a bug</a> in the new DROP COLUMN
1733 feature when used on columns that are indexed and that are quoted in the index
1734 definition.
1735 <li> Improve the built-in documentation for the <a href="cli.html#dump">.dump</a> command in the <a href="cli.html">CLI</a>.
1736 <p><b>Hashes:</b>
1737 <li>SQLITE_SOURCE_ID: 2021-03-15 16:53:57 aea12399bf1fdc76af43499d4624c3afa17c3e6c2459b71c195804bb98def66a
1738 <li>SHA3-256 for sqlite3.c: fc79e27fd030226c07691b7d7c23aa81c8d46bc3bef5af39060e1507c82b0523
1739
1740 </ol></p>
1741 <a name="version_3_35_0"></a>
1742 <h3>2021-03-12 (3.35.0)</h3><p><ol class='lessindent'>
1743 <li> Added <a href="lang_mathfunc.html">built-in SQL math functions()</a>. (Requires the
1744 <a href="compile.html#enable_math_functions">-DSQLITE_ENABLE_MATH_FUNCTIONS</a> compile-time option.)
1745 <li> Added support for <a href="lang_altertable.html#altertabdropcol">ALTER TABLE DROP COLUMN</a>.
1746 <li> Generalize <a href="lang_upsert.html">UPSERT</a>:
1747 <ol type="a">
1748 <li> Allow multiple ON CONFLICT clauses that are evaluated in order,
1749 <li> The final ON CONFLICT clause may omit the conflict target and
1750 yet still use DO UPDATE.
1751 </ol>
1752 <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
1753 <a href="lang_update.html">UPDATE</a> statements.
1754 <li> Use less memory when running <a href="lang_vacuum.html">VACUUM</a> on databases containing very large
1755 TEXT or BLOB values. It is no longer necessary to hold the entire TEXT
1756 or BLOB in memory all at once.
1757 <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
1758 specifying <a href="lang_with.html">common table expressions</a>. The default behavior was
1759 formerly NOT MATERIALIZED, but is now changed to MATERIALIZED for
1760 CTEs that are used more than once.
1761 <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>
1762 settings are modified so that they only control triggers and views
1763 in the main database schema or in attached database schemas and not in
1764 the TEMP schema. TEMP triggers and views are always allowed.
1765 <li> Query planner/optimizer improvements:
1766 <ol type="a">
1767 <li> Enhancements to the <a href="optoverview.html#minmax">min/max optimization</a> so that it works better
1768 with the IN operator and the OP_SeekScan optimization of the
1769 previous release.
1770 <li> Attempt to process EXISTS operators in the WHERE clause as if
1771 they were IN operators, in cases where this is a valid transformation
1772 and seems likely to improve performance.
1773 <li> Allow UNION ALL sub-queries to be <a href="optoverview.html#flattening">flattened</a> even if the parent query is a join.
1774 <li> Use an index, if appropriate, on IS NOT NULL expressions in the WHERE clause,
1775 even if STAT4 is disabled.
1776 <li> Expressions of the form "x IS NULL" or "x IS NOT NULL" might be converted to simply
1777 FALSE or TRUE, if "x" is a column that has a "NOT NULL" constraint and is not
1778 involved in an outer join.
1779 <li> Avoid checking foreign key constraints on an UPDATE statement if the UPDATE does
1780 not modify any columns associated with the foreign key.
1781 <li> Allow WHERE terms to be <a href="optoverview.html#pushdown">pushed down</a> into sub-queries
1782 that contain window functions,
1783 as long as the WHERE term is made up of entirely of constants and copies of expressions
1784 found in the PARTITION BY clauses of all window functions in the sub-query.
1785 </ol>
1786 <li> <a href="cli.html">CLI</a> enhancements:
1787 <ol type="a">
1788 <li> Enhance the ".stats" command to accept new arguments "stmt" and
1789 "vmstep", causing prepare statement statistics and only the
1790 virtual-machine step count to be shown, respectively.
1791 <li> Add the ".filectrl data_version" command.
1792 <li> Enhance the ".once" and ".output" commands so that if the destination argument
1793 begins with "|" (indicating that output is redirected into a pipe) then the
1794 argument does not need to be quoted.
1795 </ol>
1796 <li> Bug fixes:
1797 <ol type="a">
1798 <li> Fix a potential NULL pointer dereference when processing a
1799 syntactically incorrect SELECT statement with a correlated WHERE
1800 clause and a "HAVING 0" clause. (Also fixed in the 3.34.1 patch release.)
1801 <li> Fix a <a href="https://sqlite.org/src/info/ee51301f316c09e9">bug in the IN-operator optimization</a>
1802 of version 3.33.0 that can cause an incorrect answer.
1803 <li> Fix incorrect answers from the <a href="lang_expr.html#like">LIKE operator</a> if the pattern ends with "%" and there
1804 is an "ESCAPE '_'" clause.
1805 </ol>
1806 <p><b>Hashes:</b>
1807 <li>SQLITE_SOURCE_ID: 2021-03-12 15:10:09 acd63062eb06748bfe9e4886639e4f2b54ea6a496a83f10716abbaba4115500b
1808 <li>SHA3-256 for sqlite3.c: 73a740d881735bef9de7f7bce8c9e6b9e57fe3e77fa7d76a6e8fc5c262fbaedf
1809
1810 </ol></p>
1811 <a name="version_3_34_1"></a>
1812 <h3>2021-01-20 (3.34.1)</h3><p><ol class='lessindent'>
1813 <li> Fix a potential use-after-free bug when processing a a subquery with both
1814 a correlated WHERE clause and a "HAVING 0" clause and where the parent
1815 query is an aggregate.
1816 <li> Fix documentation typos
1817 <li> Fix minor problems in extensions.
1818 <p><b>Hashes:</b>
1819 <li>SQLITE_SOURCE_ID: 2021-01-20 14:10:07 10e20c0b43500cfb9bbc0eaa061c57514f715d87238f4d835880cd846b9ebd1f
1820 <li>SHA3-256 for sqlite3.c: 799a7be90651fc7296113b641a70b028c142d767b25af1d0a78f93dcf1a2bf20
1821
1822 </ol></p>
1823 <a name="version_3_34_0"></a>
1824 <h3>2020-12-01 (3.34.0)</h3><p><ol class='lessindent'>
1825 <li> Added the <a href="c3ref/txn_state.html">sqlite3_txn_state()</a> interface for reporting on the current
1826 transaction state of the database connection.
1827 <li> Enhance <a href="lang_with.html#recursivecte">recursive common table expressions</a> to support two or more
1828 recursive terms as is done by SQL Server, since this helps make
1829 <a href="lang_with.html#rcex3">queries against graphs</a> easier to write and faster to execute.
1830 <li> Improved error messages on <a href="lang_createtable.html#ckconst">CHECK constraint</a> failures.
1831 <li> <a href="cli.html">CLI</a> enhancements:
1832 <ol type="a">
1833 <li> The <a href="cli.html#dotread">.read</a> dot-command now accepts a pipeline in addition to
1834 a filename.
1835 <li> Added options --data-only and --nosys to the <a href="cli.html#dump">.dump</a> dot-command.
1836 <li> Added the --nosys option to the <a href="cli.html#dschema">.schema</a> dot-command.
1837 <li> Table name quoting works correctly for the <a href="cli.html#csv">.import</a> dot-command.
1838 <li> The <a href="series.html">generate_series(START,END,STEP)</a> table-valued function
1839 extension is now built into the CLI.
1840 <li> The <a href="cli.html#dotdatabases">.databases</a> dot-command now shows the status of each database
1841 file as determined by <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> and
1842 <a href="c3ref/txn_state.html">sqlite3_txn_state()</a>.
1843 <li> Added the --tabs command-line option that sets
1844 <a href="climode.html">.mode tabs</a>.
1845 <li> The --init option reports an error if the file named as its argument
1846 cannot be opened. The --init option also now honors the --bail option.
1847 </ol>
1848 <li> Query planner improvements:
1849 <ol type="a">
1850 <li> Improved estimates for the cost of running a DISTINCT operator.
1851 <li> When doing an UPDATE or DELETE using a multi-column index where
1852 only a few of the earlier columns of the index are useful for the
1853 index lookup, postpone doing the main table seek until after all
1854 WHERE clause constraints have been evaluated, in case those
1855 constraints can be covered by unused later terms of the index,
1856 thus avoiding unnecessary main table seeks.
1857 <li> The new OP_SeekScan opcode is used to improve performance of
1858 multi-column index look-ups when later columns are constrained
1859 by an IN operator.
1860 </ol>
1861 <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
1862 if one or more attached database files are read-only.
1863 <li> Enhanced <a href="fts5.html">FTS5</a> to support <a href="fts5.html#trigramidx">trigram indexes</a>.
1864 <li> Improved performance of <a href="wal.html">WAL mode</a> locking primitives in cases where
1865 there are hundreds of connections all accessing the same database file
1866 at once.
1867 <li> Enhanced the <a href="carray.html">carray() table-valued function</a> to include a single-argument
1868 form that is bound using the auxiliary <a href="c3ref/carray_bind.html">sqlite3_carray_bind()</a> interface.
1869 <li> The <a href="lang_corefunc.html#substr">substr() SQL function</a> can now also be called "substring()" for
1870 compatibility with SQL Server.
1871 <li> The <a href="syntaxdiagrams.html">syntax diagrams</a> are now implemented as
1872 <a href='https://pikchr.org/'>Pikchr</a> scripts and rendered
1873 as SVG for improved legibility and ease of maintenance.
1874 <p><b>Hashes:</b>
1875 <li>SQLITE_SOURCE_ID: 2020-12-01 16:14:00 a26b6597e3ae272231b96f9982c3bcc17ddec2f2b6eb4df06a224b91089fed5b
1876 <li>SHA3-256 for sqlite3.c: fbd895b0655a337b2cd657675f314188a4e9fe614444cc63dfeb3f066f674514
1877
1878
1879 </ol></p>
1880 <a name="version_3_33_0"></a>
1881 <h3>2020-08-14 (3.33.0)</h3><p><ol class='lessindent'>
1882 <li> Support for <a href="lang_update.html#upfrom">UPDATE FROM</a> following the PostgreSQL syntax.
1883 <li> Increase the maximum size of database files to 281 TB.
1884 <li> Extended the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> statement so that it can optionally be
1885 limited to verifying just a single table and its indexes, rather than the
1886 entire database file.
1887 <li> Added the <a href="floatingpoint.html#decext">decimal extension</a> for doing arbitrary-precision decimal arithmetic.
1888 <li> Enhancements to the <a href="floatingpoint.html#ieee754ext">ieee754 extension</a> for working with IEEE 754 binary64 numbers.
1889 <li> <a href="cli.html">CLI</a> enhancements:
1890 <ol type="a">
1891 <li> Added four new <a href="climode.html">output modes</a>: "box", "json", "markdown",
1892 and "table".
1893 <li> The "column" output mode automatically expands columns to
1894 contain the longest output row and automatically turns
1895 ".header" on if it has not been previously set.
1896 <li> The "quote" output mode honors ".separator"
1897 <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
1898 </ol>
1899 <li> Query planner improvements:
1900 <ol type="a">
1901 <li> Add the ability to find a
1902 full-index-scan query plan for queries using <a href="lang_indexedby.html">INDEXED BY</a>
1903 which previously would fail with "no query solution".
1904 <li> Do a better job of
1905 detecting missing, incomplete, and/or dodgy <a href="fileformat2.html#stat1tab">sqlite_stat1</a>
1906 data and generates good query plans in spite of the
1907 misinformation.
1908 <li> Improved performance of queries like "SELECT min(x) FROM t WHERE y IN (?,?,?)"
1909 assuming an index on t(x,y).
1910 </ol>
1911 <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
1912 state, subsequent transactions are now able to recover the shm file even if
1913 there are active read transactions. Before this enhancement, shm file recovery
1914 that scenario would result in an <a href="rescode.html#protocol">SQLITE_PROTOCOL</a> error.
1915 <p><b>Hashes:</b>
1916 <li>SQLITE_SOURCE_ID: 2020-08-14 13:23:32 fca8dc8b578f215a969cd899336378966156154710873e68b3d9ac5881b0ff3f
1917 <li>SHA3-256 for sqlite3.c: d00b7fffa6d33af2303430eaf394321da2960604d25a4471c7af566344f2abf9
1918
1919 </ol></p>
1920 <a name="version_3_32_3"></a>
1921 <h3>2020-06-18 (3.32.3)</h3><p><ol class='lessindent'>
1922 <li> Various minor bug fixes including fixes for tickets
1923 <a href="https://sqlite.org/src/info/8f157e8010b22af0">8f157e8010b22af0</a>,
1924 <a href="https://sqlite.org/src/info/9fb26d37cefaba40">9fb26d37cefaba40</a>,
1925 <a href="https://sqlite.org/src/info/e367f31901ea8700">e367f31901ea8700</a>,
1926 <a href="https://sqlite.org/src/info/b706351ce2ecf59a">b706351ce2ecf59a</a>,
1927 <a href="https://sqlite.org/src/info/7c6d876f84e6e7e2">7c6d876f84e6e7e2</a>, and
1928 <a href="https://sqlite.org/src/info/c8d3b9f0a750a529">c8d3b9f0a750a529</a>.
1929 <p><b>Hashes:</b>
1930 <li>SQLITE_SOURCE_ID: 2020-06-18 14:00:33 7ebdfa80be8e8e73324b8d66b3460222eb74c7e9dfd655b48d6ca7e1933cc8fd
1931 <li>SHA3-256 for sqlite3.c: b62b77ee1c561a69a71bb557694aaa5141f1714c1ff6cc1ba8aa8733c92d4f52
1932
1933 </ol></p>
1934 <a name="version_3_32_2"></a>
1935 <h3>2020-06-04 (3.32.2)</h3><p><ol class='lessindent'>
1936 <li> Fix a long-standing bug in the byte-code engine that can cause a
1937 <a href="lang_transaction.html">COMMIT</a> command report as success when in fact it failed
1938 to commit. Ticket
1939 <a href="https://sqlite.org/src/info/810dc8038872e212">810dc8038872e212</a>
1940 <p><b>Hashes:</b>
1941 <li>SQLITE_SOURCE_ID: 2020-06-04 12:58:43 ec02243ea6ce33b090870ae55ab8aa2534b54d216d45c4aa2fdbb00e86861e8c
1942 <li>SHA3-256 for sqlite3.c: f17a2a57f7eebc72d405f3b640b4a49bcd02364a9c36e04feeb145eccafa3f8d
1943
1944 </ol></p>
1945 <a name="version_3_32_1"></a>
1946 <h3>2020-05-25 (3.32.1)</h3><p><ol class='lessindent'>
1947 <li> Fix two long-standing bugs that allow malicious SQL statements
1948 to crash the process that is running SQLite. These bugs were announced
1949 by a third-party approximately 24 hours after the 3.32.0 release but are
1950 not specific to the 3.32.0 release.
1951 <li> Other minor compiler-warning fixes and whatnot.
1952 <p><b>Hashes:</b>
1953 <li>SQLITE_SOURCE_ID: 2020-05-25 16:19:56 0c1fcf4711a2e66c813aed38cf41cd3e2123ee8eb6db98118086764c4ba83350
1954 <li>SHA3-256 for sqlite3.c: f695ae21abf045e4ee77980a67ab2c6e03275009e593ee860a2eabf840482372
1955
1956 </ol></p>
1957 <a name="version_3_32_0"></a>
1958 <h3>2020-05-22 (3.32.0)</h3><p><ol class='lessindent'>
1959 <li> Added support for <a href="lang_analyze.html#approx">approximate ANALYZE</a> using the
1960 <a href="pragma.html#pragma_analysis_limit">PRAGMA analysis_limit</a> command.
1961 <li> Added the <a href="bytecodevtab.html">bytecode virtual table</a>.
1962 <li> Add the <a href="cksumvfs.html">checksum VFS shim</a> to the set of run-time loadable
1963 extensions included in the source tree.
1964 <li> Added the <a href="lang_corefunc.html#iif">iif() SQL function</a>.
1965 <li> INSERT and UPDATE statements now always apply <a href="datatype3.html#affinity">column affinity</a>
1966 before computing <a href="lang_createtable.html#ckconst">CHECK constraints</a>. This bug fix could, in
1967 theory, cause problems for legacy databases with unorthodox
1968 CHECK constraints the require the input type for an INSERT
1969 is different from the declared column type. See ticket
1970 <a href="https://sqlite.org/src/info/86ba67afafded936">86ba67afafded936</a>
1971 for more information.
1972 <li> Added the <a href="c3ref/create_filename.html">sqlite3_create_filename()</a>, <a href="c3ref/create_filename.html">sqlite3_free_filename()</a>,
1973 and <a href="c3ref/database_file_object.html">sqlite3_database_file_object()</a>
1974 interfaces to better support of <a href="vfs.html#shim">VFS shim</a> implementations.
1975 <li> Increase the <a href="limits.html#max_variable_number">default upper bound</a>
1976 on the number of <a href="lang_expr.html#varparam">parameters</a> from 999 to 32766.
1977 <li> Added code for the <a href="uintcseq.html">UINT collating sequence</a> as an optional
1978 <a href="loadext.html">loadable extension</a>.
1979 <li> Enhancements to the <a href="cli.html">CLI</a>:
1980 <ol type="a">
1981 <li> Add options to the <a href="cli.html#csv">.import</a> command: --csv, --ascii, --skip
1982 <li> The <a href="cli.html#dump">.dump</a> command now accepts multiple LIKE-pattern arguments
1983 and outputs the union of all matching tables.
1984 <li> Add the .oom command in debugging builds
1985 <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>
1986 commands.
1987 <li> Enhance the .filectrl command to support the --schema option.
1988 <li> The <a href="uintcseq.html">UINT collating sequence</a> extension is automatically loaded
1989 </ol>
1990 <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
1991 characters, so that the behavior matches what PostgreSQL does.
1992 <li>SQLITE_SOURCE_ID: 2020-05-22 17:46:16 5998789c9c744bce92e4cff7636bba800a75574243d6977e1fc8281e360f8d5a
1993 <li>SHA3-256 for sqlite3.c: 33ed868b21b62ce1d0352ed88bdbd9880a42f29046497a222df6459fc32a356f
1994
1995 </ol></p>
1996 <a name="version_3_31_1"></a>
1997 <h3>2020-01-27 (3.31.1)</h3><p><ol class='lessindent'>
1998 <li> Revert the data layout for an internal-use-only SQLite data structure.
1999 Applications that use SQLite should never reference internal SQLite
2000 data structures, but some do anyhow, and a change to one such
2001 data structure in 3.30.0 broke a popular and widely-deployed
2002 application. Reverting that change in SQLite, at least temporarily,
2003 gives developers of misbehaving applications time to fix their code.
2004 <li> Fix a typos in the sqlite3ext.h header file that prevented the
2005 <a href="c3ref/stmt_isexplain.html">sqlite3_stmt_isexplain()</a> and <a href="c3ref/value_blob.html">sqlite3_value_frombind()</a> interfaces
2006 from being called from <a href="loadext.html">run-time loadable extensions</a>.
2007 <p><b>Hashes:</b>
2008 <li>SQLITE_SOURCE_ID: 2020-01-27 19:55:54 3bfa9cc97da10598521b342961df8f5f68c7388fa117345eeb516eaa837bb4d6
2009 <li>SHA3-256 for sqlite3.c: de465c64f09529429a38cbdf637acce4dfda6897f93e3db3594009e0fed56d27
2010
2011 </ol></p>
2012 <a name="version_3_31_0"></a>
2013 <h3>2020-01-22 (3.31.0)</h3><p><ol class='lessindent'>
2014 <li>Add support for <a href="gencol.html">generated columns</a>.
2015 <li>Add the <a href="c3ref/hard_heap_limit64.html">sqlite3_hard_heap_limit64()</a> interface and the corresponding
2016 <a href="pragma.html#pragma_hard_heap_limit">PRAGMA hard_heap_limit</a> command.
2017 <li>Enhance the <a href="pragma.html#pragma_function_list">function_list pragma</a> to show the number of arguments on each
2018 function, the type of function (scalar, aggregate, window), and the function
2019 property flags <a href="c3ref/c_deterministic.html#sqlitedeterministic">SQLITE_DETERMINISTIC</a>, <a href="c3ref/c_deterministic.html#sqlitedirectonly">SQLITE_DIRECTONLY</a>,
2020 <a href="c3ref/c_deterministic.html#sqliteinnocuous">SQLITE_INNOCUOUS</a>, and/or <a href="c3ref/c_deterministic.html#sqlitesubtype">SQLITE_SUBTYPE</a>.
2021 <li>Add the <a href="dbstat.html#dbstatagg">aggregated mode</a> feature to the
2022 <a href="dbstat.html">DBSTAT virtual table</a>.
2023 <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
2024 prevents SQLite from opening symbolic links.
2025 <li>Added the "#-N" array notation for <a href="json1.html#jsonpath">JSON function path arguments</a>.
2026 <li>Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigtrustedschema">SQLITE_DBCONFIG_TRUSTED_SCHEMA</a> connection setting which is
2027 also controllable via the new <a href="pragma.html#pragma_trusted_schema">trusted_schema pragma</a> and at compile-time
2028 using the <a href="compile.html#trusted_schema">-DSQLITE_TRUSTED_SCHEMA</a> compile-time option.
2029 <li>Added APIs <a href="c3ref/filename_database.html">sqlite3_filename_database()</a>, <a href="c3ref/filename_database.html">sqlite3_filename_journal()</a>, and
2030 <a href="c3ref/filename_database.html">sqlite3_filename_wal()</a> which are useful for specialized extensions.
2031 <li>Add the <a href="c3ref/uri_boolean.html">sqlite3_uri_key()</a> interface.
2032 <li>Upgraded the <a href="c3ref/uri_boolean.html">sqlite3_uri_parameter()</a> function so that it works with the
2033 rollback journal or WAL filename in addition to the database filename.
2034 <li>Provide the ability to tag <a href="appfunc.html">application-defined SQL functions</a> with
2035 new properties <a href="c3ref/c_deterministic.html#sqliteinnocuous">SQLITE_INNOCUOUS</a> or <a href="c3ref/c_deterministic.html#sqlitedirectonly">SQLITE_DIRECTONLY</a>.
2036 <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
2037 of virtual tables can declare the virtual table as
2038 <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>.
2039 <li>Faster response to <a href="c3ref/interrupt.html">sqlite3_interrupt()</a>.
2040 <li>Added the <a href="https://sqlite.org/src/file/ext/misc/uuid.c">uuid.c</a> extension module
2041 implementing functions for processing RFC-4122 UUIDs.
2042 <li>The <a href="malloc.html#lookaside">lookaside memory allocator</a> is enhanced to support two separate memory
2043 pools with different sized allocations in each pool. This allows more memory
2044 allocations to be covered by lookaside while at the same time reducing the
2045 heap memory usage to 48KB per connection, down from 120KB.
2046 <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,
2047 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
2048 provided. The legacy_file_format pragma is deactivated because (1) it is
2049 rarely useful and (2) it is incompatible with <a href="lang_vacuum.html">VACUUM</a> in schemas that have
2050 tables with both generated columns and descending indexes.
2051 Ticket <a href="https://sqlite.org/src/info/6484e6ce678fffab">6484e6ce678fffab</a>
2052 <p><b>Hashes:</b>
2053 <li>SQLITE_SOURCE_ID: 2020-01-22 18:38:59 f6affdd41608946fcfcea914ece149038a8b25a62bbe719ed2561c649b86d824
2054 <li>SHA3-256 for sqlite3.c: a5fca0b9f8cbf80ac89b97193378c719d4af4b7d647729d8df9c0c0fca7b1388
2055
2056 </ol></p>
2057 <a name="version_3_30_1"></a>
2058 <h3>2019-10-10 (3.30.1)</h3><p><ol class='lessindent'>
2059 <li> Fix a bug in the <a href="optoverview.html#flattening">query flattener</a> that might cause a segfault
2060 for nested queries that use the new
2061 <a href="lang_aggfunc.html#aggfilter">FILTER clause on aggregate functions</a>.
2062 Ticket <a href="https://sqlite.org/src/info/1079ad19993d13fa">1079ad19993d13fa</a>
2063 <li> Cherrypick fixes for other obscure problems found since the 3.30.0
2064 release
2065 <p><b>Hashes:</b>
2066 <li>SQLITE_SOURCE_ID: 2019-10-10 20:19:45 18db032d058f1436ce3dea84081f4ee5a0f2259ad97301d43c426bc7f3df1b0b
2067 <li>SHA3-256 for sqlite3.c: f96fafe4c110ed7d77fc70a7d690e5edd1e64fefb84b3b5969a722d885de1f2d
2068
2069 </ol></p>
2070 <a name="version_3_30_0"></a>
2071 <h3>2019-10-04 (3.30.0)</h3><p><ol class='lessindent'>
2072 <li> Add support for the <a href="lang_aggfunc.html#aggfilter">FILTER clause on aggregate functions</a>.
2073 <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.
2074 <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
2075 information about the on-disk representation of <a href="withoutrowid.html">WITHOUT ROWID</a>
2076 tables.
2077 <li> Add the <a href="c3ref/drop_modules.html">sqlite3_drop_modules()</a> interface, allowing applications
2078 to disable automatically loaded virtual tables that they do not
2079 need.
2080 <li> Improvements to the <a href="cli.html#recover">.recover dot-command</a> in the <a href="cli.html">CLI</a> so that
2081 it recovers more content from corrupt database files.
2082 <li> Enhance the <a href="rbu.html">RBU</a> extension to support <a href="expridx.html">indexes on expressions</a>.
2083 <li> Change the schema parser so that it will error out if any of
2084 the type, name, and tbl_name columns of the <a href="schematab.html">sqlite_master table</a>
2085 have been corrupted and the database connection is not in
2086 <a href="pragma.html#pragma_writable_schema">writable_schema</a> mode.
2087 <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
2088 <a href="pragma.html#pragma_pragma_list">PRAGMA pragma_list</a> commands are now
2089 enabled in all builds by default. Disable them using
2090 <a href="compile.html#omit_introspection_pragmas">-DSQLITE_OMIT_INTROSPECTION_PRAGMAS</a>.
2091 <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>.
2092 <li> Added the <a href="tclsqlite.html">TCL Interface</a> <a href="tclsqlite.html#config">config method</a> in order to be able to
2093 disable <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableview">SQLITE_DBCONFIG_ENABLE_VIEW</a> as well as control other
2094 <a href="c3ref/db_config.html">sqlite3_db_config()</a> options from TCL.
2095 <li> Added the <a href="c3ref/c_deterministic.html#sqlitedirectonly">SQLITE_DIRECTONLY</a> flag for
2096 <a href="appfunc.html">application-defined SQL functions</a> to prevent those functions from
2097 being used inside triggers and views.
2098 <li> The legacy <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a> compile-time option is now a no-op.
2099 <p><b>Hashes:</b>
2100 <li>SQLITE_SOURCE_ID: 2019-10-04 15:03:17 c20a35336432025445f9f7e289d0cc3e4003fb17f45a4ce74c6269c407c6e09f
2101 <li>SHA3-256 for sqlite3.c: f04393dd47205a4ee2b98ff737dc51a3fdbcc14c055b88d58f5b27d0672158f5
2102
2103 </ol></p>
2104 <a name="version_3_29_0"></a>
2105 <h3>2019-07-10 (3.29.0)</h3><p><ol class='lessindent'>
2106 <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>
2107 actions to <a href="c3ref/db_config.html">sqlite3_db_config()</a> for activating and deactivating
2108 the <a href="quirks.html#dblquote">double-quoted string literal</a> misfeature. Both default to "on"
2109 for legacy compatibility, but developers are encouraged to turn them
2110 "off", perhaps using the <a href="compile.html#dqs">-DSQLITE_DQS=0</a> compile-time option.
2111 <li> <a href="compile.html#dqs">-DSQLITE_DQS=0</a> is now a <a href="compile.html#rcmd">recommended compile-time option</a>.
2112 <li> Improvements to the <a href="optoverview.html">query planner</a>:
2113 <ol type="a">
2114 <li> Improved optimization of AND and OR operators when one or the other
2115 operand is a constant.
2116 <li> Enhancements to the <a href="optoverview.html#like_opt">LIKE optimization</a> for cases when the left-hand
2117 side column has numeric affinity.
2118 </ol>
2119 <li> Added the "<a href="https://sqlite.org/src/file/ext/misc/dbdata.c">sqlite_dbdata</a>"
2120 virtual table for extracting raw low-level content from an SQLite database,
2121 even a database that is corrupt.
2122 <li> Improvements to rounding behavior, so that the results of rounding
2123 binary numbers using the <a href="lang_corefunc.html#round">round()</a> function are closer to what people
2124 who are used to thinking in decimal actually expect.
2125 <li> Enhancements to the <a href="cli.html">CLI</a>:
2126 <ol type="a">
2127 <li> Add the ".recover" command which tries to recover as much content
2128 as possible from a corrupt database file.
2129 <li> Add the ".filectrl" command useful for testing.
2130 <li> Add the long-standing ".testctrl" command to the ".help" menu.
2131 <li> Added the ".dbconfig" command
2132 </ol>
2133 <p><b>Hashes:</b>
2134 <li>SQLITE_SOURCE_ID: 2019-07-10 17:32:03 fc82b73eaac8b36950e527f12c4b5dc1e147e6f4ad2217ae43ad82882a88bfa6
2135 <li>SHA3-256 for sqlite3.c: d9a5daf7697a827f4b2638276ce639fa04e8e8bb5fd3a6b683cfad10f1c81b12
2136
2137 </ol></p>
2138 <a name="version_3_28_0"></a>
2139 <h3>2019-04-16 (3.28.0)</h3><p><ol class='lessindent'>
2140 <li> Enhanced <a href="windowfunctions.html">window functions</a>:
2141 <ol type="a">
2142 <li> Add support the <a href="windowfunctions.html#wexcls">EXCLUDE clause</a>.
2143 <li> Add support for <a href="windowfunctions.html#wchaining">window chaining</a>.
2144 <li> Add support for <a href="windowfunctions.html#grouptype">GROUPS frames</a>.
2145 <li> Add support for "<a href="windowfunctions.html#exprrange">&lt;expr&gt; PRECEDING</a>" and
2146 "<a href="windowfunctions.html#exprrange">&lt;expr&gt; FOLLOWING</a>" boundaries
2147 in RANGE <a href="windowfunctions.html#framespec">frames</a>.
2148 </ol>
2149 <li> Added the new <a href="c3ref/stmt_isexplain.html">sqlite3_stmt_isexplain(S)</a> interface for determining
2150 whether or not a <a href="c3ref/stmt.html">prepared statement</a> is an <a href="lang_explain.html">EXPLAIN</a>.
2151 <li> Enhanced <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> so that it works for read-only databases.
2152 <li> New query optimizations:
2153 <ol type="a">
2154 <li> Enable the <a href="optoverview.html#like_opt">LIKE optimization</a> for cases when the ESCAPE keyword
2155 is present and <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> is on.
2156 <li> In queries that are driven by a <a href="partialindex.html">partial index</a>, avoid unnecessary
2157 tests of the constraint named in the WHERE clause of the partial
2158 index, since we know that constraint must always be true.
2159 </ol>
2160 <li> Enhancements to the <a href="tclsqlite.html">TCL Interface</a>:
2161 <ol type="a">
2162 <li> Added the -returntype option to the <a href="tclsqlite.html#function">function method</a>.
2163 <li> Added the new <a href="tclsqlite.html#bind_fallback">bind_fallback method</a>.
2164 </ol>
2165 <li> Enhancements to the <a href="cli.html">CLI</a>:
2166 <ol type="a">
2167 <li> Added support for <a href="lang_expr.html#varparam">bound parameters</a> and the <a href="cli.html#param">.parameter command</a>.
2168 <li> Fix the <a href="cli.html#fileio">readfile()</a> function so that it returns
2169 an empty BLOB rather than throwing an out-of-memory error when
2170 reading an empty file.
2171 <li> Fix the <a href="cli.html#fileio">writefile()</a> function so that when it
2172 creates new directories along the path of a new file, it gives them
2173 umask permissions rather than the same permissions as the file.
2174 <li> Change <a href="cli.html#arinsup">--update option</a> in the <a href="cli.html#sqlar">.archive command</a> so that it skips
2175 files that are already in the archive and are unchanged. Add the
2176 new --insert option that works like --update used to work.
2177 </ol>
2178 <li> Added the <a href="https://sqlite.org/src/file/ext/misc/fossildelta.c">fossildelta.c</a>
2179 extension that can create, apply, and deconstruct the
2180 <a href="https://fossil-scm.org/fossil/doc/trunk/www/delta_format.wiki">Fossil DVCS file delta format</a>
2181 that is used by the <a href="rbu.html">RBU extension</a>.
2182 <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>
2183 interface, that does the same work as <a href="pragma.html#pragma_writable_schema">PRAGMA writable_schema</a> without using the
2184 SQL parser.
2185 <li> Added the <a href="c3ref/value_blob.html">sqlite3_value_frombind()</a> API for determining if the argument
2186 to an SQL function is from a <a href="lang_expr.html#varparam">bound parameter</a>.
2187 <li> Security and compatibilities enhancements to <a href="fts3.html#f3tknzr">fts3_tokenizer()</a>:
2188 <ol type="a">
2189 <li> The <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> function always returns NULL
2190 unless either the legacy application-defined FTS3 tokenizers interface
2191 are enabled using
2192 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>)
2193 setting, or unless the first argument to fts3_tokenizer() is a <a href="lang_expr.html#varparam">bound parameter</a>.
2194 <li> The two-argument version of <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> accepts a pointer to the
2195 tokenizer method object even without
2196 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
2197 if the second argument is a <a href="lang_expr.html#varparam">bound parameter</a>
2198 </ol>
2199 <li> Improved robustness against corrupt database files.
2200 <li> Miscellaneous performance enhancements
2201 <li> Established a Git mirror of the offical SQLite source tree.
2202 The canonical sources for SQLite are maintained using the
2203 <a href="https://fossil-scm.org/">Fossil DVCS</a> at <a href="https://sqlite.org/src">https://sqlite.org/src</a>.
2204 The Git mirror can be seen at <a href="https://github.com/sqlite/sqlite">https://github.com/sqlite/sqlite</a>.
2205 <p><b>Hashes:</b>
2206 <li>SQLITE_SOURCE_ID: 2019-04-16 19:49:53 884b4b7e502b4e991677b53971277adfaf0a04a284f8e483e2553d0f83156b50
2207 <li>SHA3-256 for sqlite3.c: 411efca996b65448d9798eb203d6ebe9627b7161a646f5d00911e2902a57b2e9
2208
2209 </ol></p>
2210 <a name="version_3_27_2"></a>
2211 <h3>2019-02-25 (3.27.2)</h3><p><ol class='lessindent'>
2212 <li> Fix a bug in the IN operator that was introduced by an
2213 attempted optimization in version 3.27.0. Ticket
2214 <a href="https://sqlite.org/src/info/df46dfb631f75694">df46dfb631f75694</a>
2215 <li> Fix a bug causing a crash when a <a href="windowfunctions.html">window function</a> is misused. Ticket
2216 <a href="https://sqlite.org/src/info/4feb3159c6bc3f7e33959">4feb3159c6bc3f7e33959</a>.
2217 <li> Fix various documentation typos
2218 <p><b>Hashes:</b>
2219 <li>SQLITE_SOURCE_ID: bd49a8271d650fa89e446b42e513b595a717b9212c91dd384aab871fc1d0f6d7
2220 <li>SHA3-256 for sqlite3.c: 1dbae33bff261f979d0042338f72c9e734b11a80720fb32498bae9150cc576e7
2221
2222 </ol></p>
2223 <a name="version_3_27_1"></a>
2224 <h3>2019-02-08 (3.27.1)</h3><p><ol class='lessindent'>
2225 <li> Fix a bug in the query optimizer: an adverse interaction between
2226 the <a href="optoverview.html#or_opt">OR optimization</a> and the optimization that tries to use values
2227 read directly from an <a href="expridx.html">expression index</a> instead of recomputing the
2228 expression.
2229 Ticket <a href="https://sqlite.org/src/info/4e8e4857d32d401f">4e8e4857d32d401f</a>
2230 <p><b>Hashes:</b>
2231 <li>SQLITE_SOURCE_ID: 2019-02-08 13:17:39 0eca3dd3d38b31c92b49ca2d311128b74584714d9e7de895b1a6286ef959a1dd
2232 <li>SHA3-256 for sqlite3.c: 11c14992660d5ac713ea8bea48dc5e6123f26bc8d3075fe5585d1a217d090233
2233
2234 </ol></p>
2235 <a name="version_3_27_0"></a>
2236 <h3>2019-02-07 (3.27.0)</h3><p><ol class='lessindent'>
2237 <li>Added the <a href="lang_vacuum.html#vacuuminto">VACUUM INTO</a> command
2238 <li>Issue an SQLITE_WARNING message on the <a href="errlog.html">error log</a> if a
2239 <a href="quirks.html#dblquote">double-quoted string literal</a> is used.
2240 <li>The <a href="c3ref/expanded_sql.html">sqlite3_normalized_sql()</a> interface works on any prepared statement
2241 created using <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> or <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a>. It is no
2242 longer necessary to use <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> with <a href="c3ref/c_prepare_dont_log.html#sqlitepreparenormalize">SQLITE_PREPARE_NORMALIZE</a>
2243 in order to use <a href="c3ref/expanded_sql.html">sqlite3_normalized_sql()</a>.
2244 <li>Added the remove_diacritics=2 option to <a href="fts3.html">FTS3</a> and <a href="fts5.html">FTS5</a>.
2245 <li>Added the <a href="c3ref/c_prepare_dont_log.html#sqlitepreparenovtab">SQLITE_PREPARE_NO_VTAB</a> option to <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a>.
2246 Use that option to prevent circular references to <a href="vtab.html#xshadowname">shadow tables</a> from
2247 causing resource leaks.
2248 <li>Enhancements to the <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> interface:
2249 <ol type="a">
2250 <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
2251 setting an upper bound on the size of the in-memory database created
2252 by sqlite3_deserialize. The default upper bound is 1GiB, or whatever
2253 alternative value is specified by
2254 <a href="c3ref/config.html">sqlite3_config</a>(<a href="c3ref/c_config_covering_index_scan.html#sqliteconfigmemdbmaxsize">SQLITE_CONFIG_MEMDB_MAXSIZE</a>)
2255 and/or <a href="compile.html#memdb_default_maxsize">SQLITE_MEMDB_DEFAULT_MAXSIZE</a>.
2256 <li> Honor the <a href="c3ref/c_deserialize_freeonclose.html">SQLITE_DESERIALIZE_READONLY</a> flag, which was previously described
2257 in the documentation, but was previously a no-op.
2258 <li> Enhance the "deserialize" command of the <a href="tclsqlite.html">TCL Interface</a> to give it
2259 new "--maxsize N" and "--readonly BOOLEAN" options.
2260 </ol>
2261 <li>Enhancements to the <a href="cli.html">CLI</a>, mostly to support testing and debugging
2262 of the SQLite library itself:
2263 <ol type="a">
2264 <li> Add support for ".open --hexdb". The
2265 "<a href="https://sqlite.org/src/doc/trunk/tool/dbtotxt.md">dbtotxt</a>" utility
2266 program used to generate the text for the "hexdb" is added to the
2267 source tree.
2268 <li> Add support for the "--maxsize N" option on ".open --deserialize".
2269 <li> Add the "--memtrace" command-line option, to show all memory allocations
2270 and deallocations.
2271 <li> Add the ".eqp trace" option on builds with SQLITE_DEBUG, to enable
2272 bytecode program listing with indentation and
2273 <a href="pragma.html#pragma_vdbe_trace">PRAGMA vdbe_trace</a> all in one step.
2274 <li> Add the ".progress" command for accessing
2275 the <a href="c3ref/progress_handler.html">sqlite3_progress_handler()</a> interface.
2276 <li> Add the "--async" option to the ".backup" command.
2277 <li> Add options "--expanded", "--normalized", "--plain", "--profile", "--row",
2278 "--stmt", and "--close" to the ".trace" command.
2279 </ol>
2280 <li> Increased robustness against malicious SQL that is run against a
2281 maliciously corrupted database.
2282 <p><b>Bug fixes:</b>
2283 <li>Do not use a partial index to do a table scan on an IN operator.
2284 Ticket <a href="https://sqlite.org/src/info/1d958d90596593a774">1d958d90596593a774</a>.
2285 <li>Fix the <a href="optoverview.html#flattening">query flattener</a> so that it works on queries that contain
2286 subqueries that use <a href="windowfunctions.html">window functions</a>.
2287 Ticket <a href="https://sqlite.org/src/info/f09fcd17810f65f717">709fcd17810f65f717</a>
2288 <li>Ensure that ALTER TABLE modifies table and column names embedded in WITH
2289 clauses that are part of views and triggers.
2290 <li>Fix a parser bug that prevented the use of parentheses around table-valued
2291 functions.
2292 <li>Fix a problem with the <a href="optoverview.html#or_opt">OR optimization</a> on <a href="expridx.html">indexes on expressions</a>.
2293 Ticket <a href="https://sqlite.org/src/info/d96eba87698a428c1d">d96eba87698a428c1d</a>.
2294 <li>Fix a problem with the
2295 <a href="optoverview.html#leftjoinreduction">LEFT JOIN strength reduction optimization</a> in which the optimization
2296 was being applied inappropriately due to an IS NOT NULL operator.
2297 Ticket <a href="https://sqlite.org/src/info/5948e09b8c415bc45d">5948e09b8c415bc45d</a>.
2298 <li>Fix the <a href="lang_replace.html">REPLACE</a> command so that it is no longer able to sneak a
2299 NULL value into a NOT NULL column even if the NOT NULL column has a default
2300 value of NULL.
2301 Ticket <a href="https://sqlite.org/src/info/e6f1f2e34dceeb1ed6">e6f1f2e34dceeb1ed6</a>
2302 <li>Fix a problem with the use of <a href="windowfunctions.html">window functions</a> used within
2303 <a href="lang_expr.html#cosub">correlated subqueries</a>.
2304 Ticket <a href="https://sqlite.org/src/info/d0866b26f83e9c55e3">d0866b26f83e9c55e3</a>
2305 <li>Fix the <a href="lang_altertable.html#altertabmvcol">ALTER TABLE RENAME COLUMN</a> command so that it works for tables
2306 that have redundant UNIQUE constraints.
2307 Ticket <a href="https://sqlite.org/src/info/bc8d94f0fbd633fd9a">bc8d94f0fbd633fd9a</a>
2308 <li>Fix a bug that caused <a href="lang_corefunc.html#zeroblob">zeroblob</a> values to be truncated when inserted into
2309 a table that uses an <a href="expridx.html">expression index</a>.
2310 Ticket <a href="https://sqlite.org/src/info/bb4bdb9f7f654b0bb9">bb4bdb9f7f654b0bb9</a>
2311 <p><b>Hashes:</b>
2312 <li>SQLITE_SOURCE_ID: "2019-02-07 17:02:52 97744701c3bd414e6c9d7182639d8c2ce7cf124c4fce625071ae65658ac61713
2313 "
2314 <li>SHA3-256 for sqlite3.c: ca011a10ee8515b33e5643444b98ee3d74dc45d3ac766c3700320def52bc6aba
2315
2316 </ol></p>
2317 <a name="version_3_26_0"></a>
2318 <h3>2018-12-01 (3.26.0)</h3><p><ol class='lessindent'>
2319 <li>Optimization: When doing an <a href="lang_update.html">UPDATE</a> on a table with <a href="expridx.html">indexes on expressions</a>,
2320 do not update the expression indexes if they do not refer to any of the columns
2321 of the table being updated.
2322 <li>Allow the <a href="vtab.html#xbestindex">xBestIndex()</a> method of <a href="vtab.html">virtual table</a> implementations to return
2323 <a href="rescode.html#constraint">SQLITE_CONSTRAINT</a> to indicate that the proposed query plan is unusable and
2324 should not be given further consideration.
2325 <li>Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigdefensive">SQLITE_DBCONFIG_DEFENSIVE</a> option which disables the ability to
2326 create corrupt database files using ordinary SQL.
2327 <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>
2328 option is enabled.
2329 <li>Added the <a href="pragma.html#pragma_legacy_alter_table">PRAGMA legacy_alter_table</a> command, which if enabled causes the
2330 <a href="lang_altertable.html">ALTER TABLE</a> command to behave like older version of SQLite (prior to
2331 version 3.25.0) for compatibility.
2332 <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>
2333 except that it also shows <a href="vtab.html#hiddencol">hidden columns</a> in virtual tables.
2334 <li>Added the <a href="https://sqlite.org/src/file/ext/misc/explain.c">explain virtual table</a>
2335 as a run-time loadable extension.
2336 <li>Add a limit counter to the query planner to prevent excessive
2337 <a href="c3ref/prepare.html">sqlite3_prepare()</a> times for certain pathological SQL inputs.
2338 <li>Added support for the <a href="c3ref/expanded_sql.html">sqlite3_normalized_sql()</a> interface, when compiling
2339 with SQLITE_ENABLE_NORMALIZE.
2340 <li>Enhanced triggers so that they can use <a href="vtab.html#tabfunc2">table-valued functions</a> that
2341 exist in schemas other than the schema where the trigger is defined.
2342 <li>Enhancements to the <a href="cli.html">CLI</a>:
2343 <ol type="a">
2344 <li>Improvements to the ".help" command.
2345 <li>The SQLITE_HISTORY environment variable, if it exists,
2346 specifies the name of the command-line editing history file
2347 <li>The --deserialize option associated with opening a new database cause the
2348 database file to be read into memory and accessed using the
2349 <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> API. This simplifies running tests on a database
2350 without modifying the file on disk.
2351 </ol>
2352 <li>Enhancements to the <a href="geopoly.html">geopoly</a> extension:
2353 <ol type="a">
2354 <li>Always stores polygons
2355 using the binary format, which is faster and uses less space.
2356 <li>Added the <a href="geopoly.html#regpoly">geopoly_regular()</a> function.
2357 <li>Added the <a href="geopoly.html#ccw">geopoly_ccw()</a> function.
2358 </ol>
2359 <li>Enhancements to the <a href="sessionintro.html">session</a> extension:
2360 <ol type="a">
2361 <li>Added the <a href="session/c_changesetapply_fknoaction.html">SQLITE_CHANGESETAPPLY_INVERT</a> flag
2362 <li>Added the <a href="session/sqlite3changeset_start.html">sqlite3changeset_start_v2()</a> interface and the
2363 <a href="session/c_changesetstart_invert.html">SQLITE_CHANGESETSTART_INVERT</a> flag.
2364 <li>Added the
2365 <a href="https://sqlite.org/src/file/ext/session/changesetfuzz.c">changesetfuzz.c</a>
2366 test-case generator utility.
2367 </ol>
2368 <p><b>Hashes:</b>
2369 <li>SQLITE_SOURCE_ID: "2018-12-01 12:34:55 bf8c1b2b7a5960c282e543b9c293686dccff272512d08865f4600fb58238b4f9"
2370 <li>SHA3-256 for sqlite3.c: 72c08830da9b5d1cb397c612c0e870d7f5eb41a323b41aa3d8aa5ae9ccedb2c4
2371
2372 </ol></p>
2373 <a name="version_3_25_3"></a>
2374 <h3>2018-11-05 (3.25.3)</h3><p><ol class='lessindent'>
2375 <li> Disallow the use of <a href="windowfunctions.html">window functions</a> in the recursive part of
2376 a CTE. Ticket <a href="https://sqlite.org/src/info/e8275b415a2f03bee">e8275b415a2f03bee</a>
2377 <li> Fix the behavior of typeof() and length() on virtual tables. Ticket
2378 <a href="https://sqlite.org/src/info/69d642332d25aa3b7315a6d385">69d642332d25aa3b7315a6d385</a>
2379 <li> Strengthen defenses against deliberately corrupted database files.
2380 <li> Fix a problem in the query planner that results when a row-value expression
2381 is used with a PRIMARY KEY with redundant columns. Ticket
2382 <a href="https://sqlite.org/src/info/1a84668dcfdebaf12415d">1a84668dcfdebaf12415d</a>
2383 <li> Fix the query planner so that it works correctly for IS NOT NULL operators
2384 in the ON clause of a LEFT JOIN with the SQLITE_ENABLE_STAT4 compile-time option.
2385 <a href="https://sqlite.org/src/info/65eb38f6e46de8c75e188a17ec">65eb38f6e46de8c75e188a17ec</a>
2386 <p><b>Hashes:</b>
2387 <li>SQLITE_SOURCE_ID: "2018-11-05 20:37:38 89e099fbe5e13c33e683bef07361231ca525b88f7907be7092058007b75036f2"
2388 <li>SHA3-256 for sqlite3.c: 45586e4df74de3a43f3a1f8c7a78c3c3f02edce01af7d10cafe68bb94476a5c5
2389
2390 </ol></p>
2391 <a name="version_3_25_2"></a>
2392 <h3>2018-09-25 (3.25.2)</h3><p><ol class='lessindent'>
2393 <li> Add the <a href="pragma.html#pragma_legacy_alter_table">PRAGMA legacy_alter_table=ON</a> command that causes the
2394 "ALTER TABLE RENAME" command to behave as it did in SQLite versions 3.24.0
2395 and earlier: references to the renamed table inside the bodies of triggers
2396 and views are not updated. This new pragma provides a compatibility
2397 work around for older programs that expected the older, wonky behavior
2398 of ALTER TABLE RENAME.
2399 <li> Fix a problem with the new <a href="windowfunctions.html">window functions</a> implementation that caused
2400 a malfunction when complicated expressions involving window functions were used
2401 inside of a view.
2402 <li> Fixes for various other compiler warnings and minor problems associated
2403 with obscure configurations.
2404 <p><b>Hashes:</b>
2405 <li>SQLITE_SOURCE_ID: "2018-09-25 19:08:10 fb90e7189ae6d62e77ba3a308ca5d683f90bbe633cf681865365b8e92792d1c7"
2406 <li>SHA3-256 for sqlite3.c: 34c23ff91631ae10354f8c9d62fd7d65732b3d7f3acfd0bbae31ff4a62fe28af
2407
2408 </ol></p>
2409 <a name="version_3_25_1"></a>
2410 <h3>2018-09-18 (3.25.1)</h3><p><ol class='lessindent'>
2411 <li> Extra sanity checking added to ALTER TABLE in the 3.25.0 release
2412 sometimes raises a false-positive
2413 when the table being modified has a trigger that
2414 updates a virtual table. The false-positive caused the ALTER
2415 TABLE to rollback, thus leaving the schema unchanged.
2416 Ticket <a href="https://sqlite.org/src/info/b41031ea2b537237">b41031ea2b537237</a>.
2417 <li> The fix in the 3.25.0 release for the endless-loop in the byte-code
2418 associated with the ORDER BY LIMIT optimization did not work for
2419 some queries involving window functions. An additional correction
2420 is required. Ticket
2421 <a href="https://sqlite.org/src/info/510cde277783b5fb">510cde277783b5fb</a>
2422 <p><b>Hashes:</b>
2423 <li>SQLITE_SOURCE_ID: "2018-09-18 20:20:44 2ac9003de44da7dafa3fbb1915ac5725a9275c86bf2f3b7aa19321bf1460b386"
2424 <li>SHA3-256 for sqlite3.c: 1b2302e7a54cc99c84ff699a299f61f069a28e1ed090b89e4430ca80ae2aab06
2425
2426 </ol></p>
2427 <a name="version_3_25_0"></a>
2428 <h3>2018-09-15 (3.25.0)</h3><p><ol class='lessindent'>
2429 <li> Add support for <a href="windowfunctions.html">window functions</a>
2430 <li> Enhancements the <a href="lang_altertable.html">ALTER TABLE</a> command:
2431 <ol type="a">
2432 <li> Add support for renaming columns within a table using
2433 ALTER TABLE <i>table</i> RENAME COLUMN <i>oldname</i> TO <i>newname</i>.
2434 <li> Fix table rename feature so that it also updates references
2435 to the renamed table in <a href="lang_createtrigger.html">triggers</a> and <a href="lang_createview.html">views</a>.
2436 </ol>
2437 <li> Query optimizer improvements:
2438 <ol type="a">
2439 <li> Avoid unnecessary loads of columns in an aggregate query that
2440 are not within an aggregate function and that are not part
2441 of the GROUP BY clause.
2442 <li> The IN-early-out optimization: When doing a look-up on a
2443 multi-column index and an IN operator is used on a column
2444 other than the left-most column, then if no rows match against
2445 the first IN value, check to make sure there exist rows that
2446 match the columns to the right before continuing with the
2447 next IN value.
2448 <li> Use the transitive property to try to propagate constant
2449 values within the WHERE clause. For example, convert
2450 "a=99 AND b=a" into "a=99 AND b=99".
2451 </ol>
2452 <li> Use a separate mutex on every inode in the unix <a href="vfs.html">VFS</a>, rather than
2453 a single mutex shared among them all, for slightly better concurrency
2454 in multi-threaded environments.
2455 <li> Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command for improved detection
2456 of problems on the page freelist.
2457 <li> Output infinity as 1e999 in the ".dump" command of the
2458 <a href="cli.html">command-line shell</a>.
2459 <li> Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntldataversion">SQLITE_FCNTL_DATA_VERSION</a> file-control.
2460 <li> Added the <a href="geopoly.html">Geopoly module</a>
2461 <p><b>Bug fixes:</b>
2462 <li> The ORDER BY LIMIT optimization might have caused an infinite loop
2463 in the byte code of the prepared statement under very obscure
2464 circumstances,
2465 due to a confluence of minor defects in the query optimizer.
2466 Fix for ticket
2467 <a href="https://sqlite.org/src/info/9936b2fa443fec03ff25">9936b2fa443fec03ff25</a>
2468 <li> On an UPSERT when the order of constraint checks is rearranged,
2469 ensure that the affinity transformations on the inserted content
2470 occur before any of the constraint checks. Fix for ticket
2471 <a href="https://sqlite.org/src/info/79cad5e4b2e219dd197242e9e">79cad5e4b2e219dd197242e9e</a>.
2472 <li> Avoid using a prepared statement for ".stats on" command of the
2473 <a href="cli.html">CLI</a> after it has been closed by the ".eqp full" logicc. Fix for ticket
2474 <a href="https://sqlite.org/src/info/7be932dfa60a8a6b3b26bcf76">7be932dfa60a8a6b3b26bcf76</a>.
2475 <li> The LIKE optimization was generating incorrect byte-code and hence
2476 getting the wrong answer
2477 if the left-hand operand has numeric affinity and the right-hand-side
2478 pattern is '/%' or if the pattern begins with the ESCAPE character.
2479 Fix for ticket
2480 <a href="https://sqlite.org/src/info/c94369cae9b561b1f996d0054b">c94369cae9b561b1f996d0054b</a>
2481 <p><b>Hashes:</b>
2482 <li>SQLITE_SOURCE_ID: "2018-09-15 04:01:47 b63af6c3bd33152742648d5d2e8dc5d5fcbcdd27df409272b6aea00a6f761760"
2483 <li>SHA3-256 for sqlite3.c: 989e3ff37f2b5eea8e42205f808ccf0ba86c6ea6aa928ad2c011f33a108ac45d
2484
2485 </ol></p>
2486 <a name="version_3_24_0"></a>
2487 <h3>2018-06-04 (3.24.0)</h3><p><ol class='lessindent'>
2488 <li> Add support for PostgreSQL-style <a href="lang_upsert.html">UPSERT</a>.
2489 <li> Add support for <a href="rtree.html#auxcol">auxiliary columns in r-tree tables</a>.
2490 <li> Add C-language APIs for discovering SQL keywords used by
2491 SQLite: <a href="c3ref/keyword_check.html">sqlite3_keyword_count()</a>, <a href="c3ref/keyword_check.html">sqlite3_keyword_name()</a>, and
2492 <a href="c3ref/keyword_check.html">sqlite3_keyword_check()</a>.
2493 <li> Add C-language APIs for dynamic strings based on the
2494 <a href="c3ref/str.html">sqlite3_str</a> object.
2495 <li> Enhance <a href="lang_altertable.html">ALTER TABLE</a> so that it recognizes "true" and "false" as
2496 valid arguments to DEFAULT.
2497 <li> Add the sorter-reference optimization as a compile-time option.
2498 Only available if compiled with SQLITE_ENABLE_SORTER_REFERENCES.
2499 <li> Improve the format of the <a href="eqp.html">EXPLAIN QUERY PLAN</a> raw output, so that
2500 it gives better information about the query plan and about the
2501 relationships between the various components of the plan.
2502 <li> Added the <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigresetdatabase">SQLITE_DBCONFIG_RESET_DATABASE</a> option to the
2503 <a href="c3ref/db_config.html">sqlite3_db_config()</a> API.
2504 <p><b><a href="cli.html">CLI</a> Enhancements:</b>
2505 <li> Automatically intercepts the raw <a href="eqp.html">EXPLAIN QUERY PLAN</a>
2506 output and reformats it into an ASCII-art graph.
2507 <li> Lines that begin with "#" and that are not in the middle of an
2508 SQL statement are interpreted as comments.
2509 <li> Added the --append option to the ".backup" command.
2510 <li> Added the ".dbconfig" command.
2511 <p><b>Performance:</b>
2512 <li> <a href="lang_update.html">UPDATE</a> avoids unnecessary low-level disk writes when the contents
2513 of the database file do not actually change.
2514 For example, "UPDATE t1 SET x=25 WHERE y=?" generates no extra
2515 disk I/O if the value in column x is already 25. Similarly,
2516 when doing <a href="lang_update.html">UPDATE</a> on records that span multiple pages, only
2517 the subset of pages that actually change are written to disk.
2518 This is a low-level performance optimization only and does not
2519 affect the behavior of TRIGGERs or other higher level SQL
2520 structures.
2521 <li> Queries that use ORDER BY and LIMIT now try to avoid computing
2522 rows that cannot possibly come in under the LIMIT. This can greatly
2523 improve performance of ORDER BY LIMIT queries, especially when the
2524 LIMIT is small relative to the number of unrestricted output rows.
2525 <li> The <a href="optoverview.html#or_opt">OR optimization</a> is allowed to proceed
2526 even if the OR expression has also been converted into an IN
2527 expression. Uses of the OR optimization are now also
2528 <a href="eqp.html#or-opt">more clearly shown</a> in the <a href="eqp.html">EXPLAIN QUERY PLAN</a> output.
2529 <li> The query planner is more aggressive about using
2530 <a href="optoverview.html#autoindex">automatic indexes</a> for views and subqueries for which it is
2531 not possible to create a persistent index.
2532 <li> Make use of the one-pass UPDATE and DELETE query plans in the
2533 <a href="rtree.html">R-Tree extension</a> where appropriate.
2534 <li> Performance improvements in the LEMON-generated parser.
2535 <p><b>Bug fixes:</b>
2536 <li> For the right-hand table of a LEFT JOIN, compute the values
2537 of expressions directly rather than loading precomputed values
2538 out of an <a href="expridx.html">expression index</a> as the expression index might
2539 not contain the correct value. Ticket
2540 <a href="https://sqlite.org/src/info/7fa8049685b50b5aeb0c2">7fa8049685b50b5aeb0c2</a>
2541 <li> Do not attempt to use terms from the WHERE clause to enable
2542 indexed lookup of the right-hand table of a LEFT JOIN. Ticket
2543 <a href="https://sqlite.org/src/info/4ba5abf65c5b0f9a96a7a">4ba5abf65c5b0f9a96a7a</a>
2544 <li> Fix a memory leak that can occur following a failure to open error
2545 in the <a href="csv.html">CSV virtual table</a>
2546 <li> Fix a long-standing problem wherein a corrupt schema on the
2547 <a href="fileformat2.html#seqtab">sqlite_sequence</a> table used by <a href="autoinc.html">AUTOINCREMENT</a> can lead to
2548 a crash. Ticket
2549 <a href="https://sqlite.org/src/info/d8dc2b3a58cd5dc29">d8dc2b3a58cd5dc2918a1</a>
2550 <li> Fix the <a href="json1.html#jeach">json_each()</a> function so that it returns
2551 valid results on its "fullkey" column when the input is a simple value
2552 rather than an array or object.
2553 <p><b>Hashes:</b>
2554 <li>SQLITE_SOURCE_ID: "2018-06-04 19:24:41 c7ee0833225bfd8c5ec2f9bf62b97c4e04d03bd9566366d5221ac8fb199a87ca"
2555 <li>SHA3-256 for sqlite3.c: 0d384704e1c66026228336d1e91771d295bf688c9c44c7a44f25a4c16c26ab3c
2556
2557 </ol></p>
2558 <a name="version_3_23_1"></a>
2559 <h3>2018-04-10 (3.23.1)</h3><p><ol class='lessindent'>
2560 <li> Fix two problems in the new <a href="optoverview.html#leftjoinreduction">LEFT JOIN strength reduction optimization</a>.
2561 Tickets <a href="https://sqlite.org/src/info/1e39b966ae9ee739">1e39b966ae9ee739</a>
2562 and <a href="https://sqlite.org/src/info/fac496b61722daf2">fac496b61722daf2</a>.
2563 <li> Fix misbehavior of the FTS5 xBestIndex method. Ticket
2564 <a href="https://sqlite.org/src/info/2b8aed9f7c9e61e8">2b8aed9f7c9e61e8</a>.
2565 <li> Fix a harmless reference to an uninitialized virtual machine register.
2566 Ticket <a href="https://sqlite.org/src/info/093420fc0eb7cba7">093420fc0eb7cba7</a>.
2567 <li> Fix the <a href="cli.html">CLI</a> so that it builds with -DSQLITE_UNTESTABLE
2568 <li> Fix the <a href="https://sqlite.org/src/file/ext/misc/eval.c">eval.c</a> extension
2569 so that it works with <a href="pragma.html#pragma_empty_result_callbacks">PRAGMA empty_result_callbacks=ON</a>.
2570 <li> Fix the <a href="series.html">generate_series</a> virtual table so that it correctly returns
2571 no rows if any of its constraints are NULL.
2572 <li> Performance enhancements in the parser.
2573 <p><b>Hashes:</b>
2574 <li>SQLITE_SOURCE_ID: "2018-04-10 17:39:29 4bb2294022060e61de7da5c227a69ccd846ba330e31626ebcd59a94efd148b3b"
2575 <li>SHA3-256 for sqlite3.c: 65750d1e506f416a0b0b9dd22d171379679c733e3460549754dc68c92705b5dc
2576
2577 </ol></p>
2578 <a name="version_3_23_0"></a>
2579 <h3>2018-04-02 (3.23.0)</h3><p><ol class='lessindent'>
2580 <li> Add the <a href="c3ref/serialize.html">sqlite3_serialize()</a> and <a href="c3ref/deserialize.html">sqlite3_deserialize()</a> interfaces when
2581 the <a href="compile.html#enable_deserialize">SQLITE_ENABLE_DESERIALIZE</a> compile-time option is used.
2582 <li> Recognize TRUE and FALSE as constants. (For compatibility, if there
2583 exist columns named "true" or "false", then the identifiers refer to the
2584 columns rather than Boolean constants.)
2585 <li> Support operators IS TRUE, IS FALSE, IS NOT TRUE, and IS NOT FALSE.
2586 <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
2587 reporting the number of cache spills that have occurred.
2588 <li> The "alternate-form-2" flag ("!") on the <a href="printf.html">built-in printf</a> implementation
2589 now causes string substitutions to measure the width and precision in
2590 characters instead of bytes.
2591 <li> If the <a href="vtab.html#xcolumn">xColumn</a> method in a <a href="vtab.html">virtual table</a> implementation returns
2592 an error message using <a href="c3ref/result_blob.html">sqlite3_result_error()</a> then give that error
2593 message preference over internally-generated messages.
2594 <li> Added the -A command-line option to the <a href="cli.html">CLI</a> to make it easier to manage
2595 <a href="sqlar.html">SQLite Archive files</a>.
2596 <li> Add support for INSERT OR REPLACE, INSERT OR IGNORE, and UPDATE OR REPLACE
2597 in the <a href="zipfile.html">Zipfile virtual table</a>.
2598 <li> Enhance the <a href="session/sqlite3changeset_apply.html">sqlite3changeset_apply()</a> interface so that it is hardened
2599 against attacks from deliberately corrupted <a href="sessionintro.html#changeset">changeset</a> objects.
2600 <li> Added the <a href="https://sqlite.org/src/file/ext/misc/normalize.c">sqlite3_normalize()</a>
2601 extension function.
2602 <li> Query optimizer enhancements:
2603 <ol type='a'>
2604 <li> Improve the <a href="optoverview.html#omitnoopjoin">omit-left-join optimization</a> so that it works in cases where
2605 the right-hand table is UNIQUE but not necessarily NOT NULL.
2606 <li> Improve the <a href="optoverview.html#pushdown">push-down optimization</a> so that it works for many LEFT JOINs.
2607 <li> Add the <a href="optoverview.html#leftjoinreduction">LEFT JOIN strength reduction optimization</a> that converts a LEFT
2608 JOIN into an ordinary JOIN if there exist terms in the WHERE clause
2609 that would prevent the extra all-NULL row of the LEFT JOIN from
2610 appearing in the output set.
2611 <li> Avoid unnecessary writes to the sqlite_sequence table when an
2612 <a href="autoinc.html">AUTOINCREMENT</a> table is updated with an rowid that is less than the
2613 maximum.
2614 </ol>
2615 <li> Bug fixes:
2616 <ol type='a'>
2617 <li> Fix the parser to accept valid <a href="rowvalue.html">row value</a> syntax.
2618 Ticket <a href="https://sqlite.org/src/info/7310e2fb3d046a5">7310e2fb3d046a5</a>
2619 <li> Fix the query planner so that it takes into account dependencies in
2620 the arguments to table-valued functions in subexpressions in
2621 the WHERE clause.
2622 Ticket <a href="https://sqlite.org/src/info/80177f0c226ff54">80177f0c226ff54</a>
2623 <li> Fix incorrect result with complex OR-connected WHERE and STAT4.
2624 Ticket <a href="https://sqlite.org/src/info/ec32177c99ccac2">ec32177c99ccac2</a>
2625 <li> Fix potential corruption in <a href="expridx.html">indexes on expressions</a> due to automatic
2626 datatype conversions.
2627 Ticket <a href="https://sqlite.org/src/info/343634942dd54ab">343634942dd54ab</a>
2628 <li> Assertion fault in FTS4.
2629 Ticket <a href="https://sqlite.org/src/info/d6ec09eccf68cfc">d6ec09eccf68cfc</a>
2630 <li> Incorrect result on the less-than operator in <a href="rowvalue.html">row values</a>.
2631 Ticket <a href="https://sqlite.org/src/info/f484b65f3d62305">f484b65f3d62305</a>
2632 <li> Always interpret non-zero floating-point values as TRUE, even if
2633 the integer part is zero.
2634 Ticket <a href="https://sqlite.org/src/info/36fae083b450e3a">36fae083b450e3a</a>
2635 <li> Fix an issue in the fsdir(PATH) <a href="vtab.html#tabfunc2">table-valued function</a> to the
2636 <a href="https://sqlite.org/src/file/ext/misc/fileio.c">fileio.c</a> extension,
2637 that caused a segfault if the fsdir() table was used as the inner table
2638 of a join. Problem reported on the mailing list and fixed by check-in
2639 <a href="https://sqlite.org/src/info/7ce4e71c1b7251be">7ce4e71c1b7251be</a>
2640 <li> Issue an error rather instead of an assertion-fault or null-pointer
2641 dereference when the sqlite_master table is corrupted so that the
2642 sqlite_sequence table root page is really a btree-index page. Check-in
2643 <a href="https://sqlite.org/src/info/525deb7a67fbd647">525deb7a67fbd647</a>
2644 <li> Fix the <a href="lang_analyze.html">ANALYZE</a> command so that it computes statistics on tables
2645 whose names begin with "sqlite". Check-in
2646 <a href="https://sqlite.org/src/info/0249d9aecf69948d">0249d9aecf69948d</a>
2647 </ol>
2648 <li> Additional fixes for issues detected by
2649 <a href="https://github.com/google/oss-fuzz">OSSFuzz</a>:
2650 <ol type='a'>
2651 <li> Fix a possible infinite loop on VACUUM for corrupt database files.
2652 Check-in <a href="https://sqlite.org/src/info/27754b74ddf64">27754b74ddf64</a>
2653 <li> Disallow <a href="lang_expr.html#varparam">parameters</a> in the <a href="lang_with.html">WITH clause</a> of triggers and views.
2654 Check-in <a href="https://sqlite.org/src/info/b918d4b4e546d">b918d4b4e546d</a>
2655 <li> Fix a potential memory leak in <a href="rowvalue.html">row value</a> processing.
2656 Check-in <a href="https://sqlite.org/src/info/2df6bbf1b8ca8">2df6bbf1b8ca8</a>
2657 <li> Improve the performance of the <a href="lang_corefunc.html#replace">replace() SQL function</a> for cases where
2658 there are many substitutions on megabyte-sized strings, in an attempt
2659 to avoid OSSFuzz timeouts during testing.
2660 Check-in <a href="https://sqlite.org/src/info/fab2c2b07b5d3">fab2c2b07b5d3</a>
2661 <li> Provide an appropriate error message when the sqlite_master table
2662 contains a CREATE TABLE AS statement. Formerly this caused either an
2663 assertion fault or null pointer dereference. Problem found by OSSFuzz
2664 on the GDAL project. Check-in
2665 <a href="https://sqlite.org/src/info/d75e67654aa96">d75e67654aa96</a>
2666 <li> Incorrect assert() statement removed. Check-in
2667 <a href="https://sqlite.org/src/info/823779d31eb09cda">823779d31eb09cda</a>.
2668 <li> Fix a problem with using the <a href="optoverview.html#like_opt">LIKE optimization</a> on an
2669 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a>. Check-in
2670 <a href="https://sqlite.org/src/info/b850dd159918af56">b850dd159918af56</a>.
2671 </ol>
2672 <p><b>Hashes:</b>
2673 <li>SQLITE_SOURCE_ID: "2018-04-02 11:04:16 736b53f57f70b23172c30880186dce7ad9baa3b74e3838cae5847cffb98f5cd2"
2674 <li>SHA3-256 for sqlite3.c: 4bed3dc2dc905ff55e2c21fd2725551fc0ca50912a9c96c6af712a4289cb24fa
2675
2676 </ol></p>
2677 <a name="version_3_22_0"></a>
2678 <h3>2018-01-22 (3.22.0)</h3><p><ol class='lessindent'>
2679 <li> The output of <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a> now shows each individual SQL statement
2680 run within a trigger.
2681 <li> Add the ability to read from <a href="wal.html">WAL mode</a> databases even if the application
2682 lacks write permission on the database and its containing directory, as long as
2683 the -shm and -wal files exist in that directory.
2684 <li> Added the <a href="rtree.html#rtreecheck">rtreecheck()</a> scalar SQL function to the <a href="rtree.html">R-Tree extension</a>.
2685 <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
2686 to help virtual table implementations optimize UPDATE operations.
2687 <li> Added the <a href="c3ref/vtab_collation.html">sqlite3_vtab_collation()</a> interface.
2688 <li> Added support for the <a href="fts5.html#carrotq">"&#94;" initial token syntax</a> in FTS5.
2689 <li> New extensions:
2690 <ol type='a'>
2691 <li> The <a href="zipfile.html">Zipfile virtual table</a> can read and write a
2692 <a href="https://en.wikipedia.org/wiki/Zip_(file_format)">ZIP Archive</a>.
2693 <li> Added the fsdir(PATH) <a href="vtab.html#tabfunc2">table-valued function</a> to the
2694 <a href="https://sqlite.org/src/file/ext/misc/fileio.c">fileio.c</a> extension,
2695 for listing the files in a directory.
2696 <li> The <a href="https://sqlite.org/src/file/ext/misc/btreeinfo.c">sqlite_btreeinfo</a>
2697 eponymous virtual table for introspecting and estimating the sizes of
2698 the btrees in a database.
2699 <li> The <a href="https://sqlite.org/src/file/ext/misc/appendvfs.c">Append VFS</a> is a
2700 <a href="vfs.html#shim">VFS shim</a> that allows an SQLite database to be appended to some other
2701 file. This allows (for example) a database to be appended to an
2702 executable that then opens and reads the database.
2703 </ol>
2704 <li> Query planner enhancements:
2705 <ol type='a'>
2706 <li> The optimization that uses an index to quickly compute an
2707 aggregate min() or max() is extended to work with
2708 <a href="expridx.html">indexes on expressions</a>.
2709 <li> The decision of whether to implement a FROM-clause subquery
2710 as a co-routine or using <a href="optoverview.html#flattening">query flattening</a>
2711 now considers whether
2712 the result set of the outer query is "complex" (if it
2713 contains functions or expression subqueries). A complex result
2714 set biases the decision toward the use of co-routines.
2715 <li> The planner avoids query plans that use indexes with unknown
2716 collating functions.
2717 <li> The planner omits unused LEFT JOINs even if they are not the
2718 right-most joins of a query.
2719 </ol>
2720 <li> Other performance optimizations:
2721 <ol type='a'>
2722 <li> A smaller and faster implementation of text to floating-point
2723 conversion subroutine: sqlite3AtoF().
2724 <li> The <a href="lemon.html">Lemon parser generator</a> creates a faster parser.
2725 <li> Use the strcspn() C-library routine to speed up the LIKE and
2726 GLOB operators.
2727 </ol>
2728 <li> Improvements to the <a href="cli.html">command-line shell</a>:
2729 <ol type='a'>
2730 <li> The ".schema" command shows the structure of virtual tables.
2731 <li> Added support for reading and writing
2732 <a href="sqlar.html">SQLite Archive</a> files using
2733 the <a href="cli.html#sqlar">.archive command</a>.
2734 <li> Added the experimental <a href="cli.html#expert">.expert command</a>
2735 <li> Added the ".eqp trigger" variant of the ".eqp" command
2736 <li> Enhance the ".lint fkey-indexes" command so that it works with
2737 <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
2738 <li> If the filename argument to the shell is a ZIP archive rather than
2739 an SQLite database, then the shell automatically opens that ZIP
2740 archive using the <a href="zipfile.html">Zipfile virtual table</a>.
2741 <li> Added the <a href="cli.html#editfunc">edit() SQL function</a>.
2742 <li> Added the <a href="cli.html#exexcel*">.excel command</a> to simplify exporting
2743 database content to a spreadsheet.
2744 <li> Databases are opened using
2745 <a href="https://sqlite.org/src/file/ext/misc/appendvfs.c">Append VFS</a> when
2746 the --append flag is used on the command line or with the
2747 .open command.
2748 </ol>
2749 <li> Enhance the <a href="compile.html#enable_update_delete_limit">SQLITE_ENABLE_UPDATE_DELETE_LIMIT</a> compile-time option so
2750 that it works for <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
2751 <li> Provide the <a href="lang_corefunc.html#sqlite_offset">sqlite_offset(X)</a> SQL function that returns
2752 the byte offset into the database file to the beginning of the record
2753 holding value X, when compiling with <a href="compile.html#enable_offset_sql_func">-DSQLITE_ENABLE_OFFSET_SQL_FUNC</a>.
2754 <li> Bug fixes:
2755 <ol type='a'>
2756 <li> Infinite loop on an UPDATE that uses an OR operator in the WHERE clause.
2757 Problem introduced with 3.17.0 and reported on the mailing list about
2758 one year later. Ticket
2759 <a href="https://sqlite.org/src/info/47b2581aa9bfecec">47b2581aa9bfecec</a>.
2760 <li> Incorrect query results when the skip-ahead-distinct optimization is
2761 used.
2762 Ticket <a href="https://sqlite.org/src/info/ef9318757b152e3a">ef9318757b152e3a</a>.
2763 <li> Incorrect query results on a join with a ORDER BY DESC. Ticket
2764 <a href="https://sqlite.org/src/info/123c9ba32130a6c9">123c9ba32130a6c9</a>.
2765 <li> Inconsistent result set column names between CREATE TABLE AS
2766 and a simple SELECT. Ticket
2767 <a href="https://sqlite.org/src/info/3b4450072511e621">3b4450072511e621</a>
2768 <li> Assertion fault when doing REPLACE on an index on an expression.
2769 Ticket <a href="https://sqlite.org/src/info/dc3f932f5a147771">dc3f932f5a147771</a>
2770 <li> Assertion fault when doing an IN operator on a constant index.
2771 Ticket <a href="https://sqlite.org/src/info/aa98619ad08ddcab">aa98619ad08ddcab</a>
2772 </ol>
2773 <p><b>Hashes:</b>
2774 <li>SQLITE_SOURCE_ID: "2018-01-22 18:45:57 0c55d179733b46d8d0ba4d88e01a25e10677046ee3da1d5b1581e86726f2171d"
2775 <li>SHA3-256 for sqlite3.c: 206df47ebc49cd1710ac0dd716ce5de5854826536993f4feab7a49d136b85069
2776
2777
2778 </ol></p>
2779 <a name="version_3_21_0"></a>
2780 <h3>2017-10-24 (3.21.0)</h3><p><ol class='lessindent'>
2781 <li> Take advantage of the atomic-write capabilities in the
2782 <a href="https://en.wikipedia.org/wiki/F2FS">F2FS filesystem</a> when available, for
2783 greatly reduced transaction overhead. This currently requires the
2784 <a href="compile.html#enable_batch_atomic_write">SQLITE_ENABLE_BATCH_ATOMIC_WRITE</a> compile-time option.
2785 <li> Allow <a href="lang_attach.html">ATTACH</a> and <a href="lang_detach.html">DETACH</a> commands to work inside of a transaction.
2786 <li> Allow <a href="vtab.html#worid">WITHOUT ROWID virtual tables</a> to be writable if the PRIMARY KEY
2787 contains exactly one column.
2788 <li> The "fsync()" that occurs after the header is written in a WAL reset
2789 now uses the sync settings for checkpoints. This means it will use a
2790 "fullfsync" on macs if <a href="pragma.html#pragma_checkpoint_fullfsync">PRAGMA checkpoint_fullfsync</a> set on.
2791 <li> The <a href="c3ref/libversion.html">sqlite3_sourceid()</a> function tries to detect if the source code has
2792 been modified from what is checked into version control and if there are
2793 modifications, the last four characters of the version hash are shown as
2794 "alt1" or "alt2". The objective is to detect accidental and/or careless
2795 edits. A forger can subvert this feature.
2796 <li> Improved de-quoting of column names for <a href="lang_createtable.html#createtabas">CREATE TABLE AS</a> statements with
2797 an aggregate query on the right-hand side.
2798 <li> Fewer "stat()" system calls issued by the unix VFS.
2799 <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.
2800 <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
2801 row corruption that they were formerly missing. Also update both pragmas
2802 so that they return error text rather than SQLITE_CORRUPT when encountering
2803 corruption in <a href="fileformat2.html#record_format">records</a>.
2804 <li> The query planner now prefers to implement FROM-clause subqueries using
2805 <a href="optoverview.html#coroutines">co-routines</a> rather using the <a href="optoverview.html#flattening">query flattener</a> optimization. Support for
2806 the use of co-routines for subqueries may no longer be disabled.
2807 <li> Pass information about !=, IS, IS NOT, NOT NULL, and IS NULL constraints
2808 into the <a href="vtab.html#xbestindex">xBestIndex</a> method of virtual tables.
2809 <li> Enhanced the <a href="csv.html">CSV virtual table</a> so that it accepts the last row of
2810 input if the final new-line character is missing.
2811 <li> Remove the rarely-used "scratch" memory allocator. Replace it with the
2812 <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigsmallmalloc">SQLITE_CONFIG_SMALL_MALLOC</a> configuration setting that gives SQLite
2813 a hint that large memory allocations should be avoided when possible.
2814 <li> Added the
2815 <a href="https://sqlite.org/src/file/ext/misc/unionvtab.c">swarm virtual table</a>
2816 to the existing union virtual table extension.
2817 <li> Added the
2818 <a href="https://sqlite.org/src/file/src/dbpage.c">sqlite_dbpage virtual table</a>
2819 for providing direct access to pages
2820 of the database file. The source code is built into the <a href="amalgamation.html">amalgamation</a> and
2821 is activated using the <a href="compile.html#enable_dbpage_vtab">-DSQLITE_ENABLE_DBPAGE_VTAB</a> compile-time option.
2822 <li> Add a new type of fts5vocab virtual table - "instance" - that provides
2823 direct access to an FTS5 full-text index at the lowest possible level.
2824 <li> Remove a call to rand_s() in the Windows VFS since it was causing problems
2825 in Firefox on some older laptops.
2826 <li> The <a href="https://sqlite.org/src/finfo?name=src/shell.c">src/shell.c</a> source code
2827 to the <a href="cli.html">command-line shell</a> is no longer under version control. That file
2828 is now generated as part of the build process.
2829 <li> Miscellaneous <a href="cpu.html#microopt">microoptimizations</a> reduce CPU usage by about 2.1%.
2830 <li> Bug fixes:
2831 <ol type="a">
2832 <li> Fix a faulty assert() statement discovered by OSSFuzz.
2833 Ticket <a href="https://sqlite.org/src/info/cb91bf4290c211d">cb91bf4290c211d</a>
2834 <li> Fix an obscure memory leak in <a href="c3ref/result_blob.html">sqlite3_result_pointer()</a>.
2835 Ticket <a href="https://sqlite.org/src/info/7486aa54b968e9b">7486aa54b968e9b</a>
2836 <li> Avoid a possible use-after-free error by deferring schema resets until
2837 after the query planner has finished running.
2838 Ticket <a href="https://sqlite.org/src/info/be436a7f4587ce5">be436a7f4587ce5</a>
2839 <li> Only use indexes-on-expressions to optimize ORDER BY or GROUP BY if
2840 the COLLATE is correct.
2841 Ticket <a href="https://sqlite.org/src/info/e20dd54ab0e4383">e20dd54ab0e4383</a>
2842 <li> Fix an assertion fault that was coming up when the expression in an
2843 index-on-expressions is really a constant.
2844 Ticket <a href="https://sqlite.org/src/info/aa98619ad08ddca">aa98619ad08ddca</a>
2845 <li> Fix an assertion fault that could occur following
2846 <a href="pragma.html#pragma_reverse_unordered_selects">PRAGMA reverse_unordered_selects</a>.
2847 Ticket <a href="https://sqlite.org/src/info/cb91bf4290c211d">cb91bf4290c211d</a>
2848 <li> Fix a segfault that can occur for queries that use table-valued functions
2849 in an IN or EXISTS subquery.
2850 Ticket <a href="https://sqlite.org/src/info/b899b6042f97f5">b899b6042f97f5</a>
2851 <li> Fix a potential integer overflow problem when compiling a particular
2852 horrendous common table expression. This was another problem discovered
2853 by OSSFuzz. Check-in <a href="https://sqlite.org/src/info/6ee8cb6ae5">6ee8cb6ae5</a>.
2854 <li> Fix a potential out-of-bound read when querying a corrupt database file,
2855 a problem detected by Natalie Silvanovich of Google Project Zero.
2856 Check-in <a href="https://sqlite.org/src/info/04925dee41a21f">04925dee41a21f</a>.
2857 </ol>
2858 <p><b>Hashes:</b>
2859 <li>SQLITE_SOURCE_ID: "2017-10-24 18:55:49 1a584e499906b5c87ec7d43d4abce641fdf017c42125b083109bc77c4de48827"
2860 <li>SHA3-256 for sqlite3.c: 84c181c0283d0320f488357fc8aab51898370c157601459ebee49d779036fe03
2861
2862 </ol></p>
2863 <a name="version_3_20_1"></a>
2864 <h3>2017-08-24 (3.20.1)</h3><p><ol class='lessindent'>
2865 <li> Fix a potential memory leak in the new <a href="c3ref/result_blob.html">sqlite3_result_pointer()</a> interface.
2866 Ticket <a href="https://sqlite.org/src/info/7486aa54b968e9b5">7486aa54b968e9b5</a>.
2867 <p><b>Hashes:</b>
2868 <li>SQLITE_SOURCE_ID: "2017-08-24 16:21:36 8d3a7ea6c5690d6b7c3767558f4f01b511c55463e3f9e64506801fe9b74dce34"
2869 <li>SHA3-256 for sqlite3.c: 93b1a6d69b48dc39697d1d3a1e4c30b55da0bdd2cad0c054462f91081832954a
2870
2871 </ol></p>
2872 <a name="version_3_20_0"></a>
2873 <h3>2017-08-01 (3.20.0)</h3><p><ol class='lessindent'>
2874 <li> Update the text of error messages returned by <a href="c3ref/errcode.html">sqlite3_errmsg()</a> for some
2875 error codes.
2876 <li> Add new <a href="bindptr.html">pointer passing interfaces</a>.
2877 <li> Backwards-incompatible changes to some extensions in order to take
2878 advantage of the improved security offered by the new
2879 <a href="bindptr.html">pointer passing interfaces</a>:
2880 <ol type='a'>
2881 <li> <a href="fts5.html#extending_fts5">Extending FTS5</a> &rarr; requires <a href="c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to find
2882 the fts5_api pointer.
2883 <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.
2884 <li> <a href="https://sqlite.org/src/file/ext/misc/remember.c">remember(V,PTR)</a>
2885 &rarr; requires <a href="c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to set the PTR parameter.
2886 </ol>
2887 <li> Added the <a href="stmt.html">SQLITE_STMT virtual table</a> extension.
2888 <li> Added the <a href="completion.html">COMPLETION extension</a> - designed to suggest
2889 tab-completions for interactive user interfaces. This is a work in progress.
2890 Expect further enhancements in future releases.
2891 <li> Added the <a href="unionvtab.html">UNION virtual table</a> extension.
2892 <li> The built-in <a href="lang_datefunc.html">date and time functions</a> have been enhanced so that they can be
2893 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
2894 of <a href="partialindex.html">partial indexes</a>, provided that they do not use the 'now', 'localtime', or
2895 'utc' keywords. <a href="deterministic.html#dtexception">More information</a>.
2896 <li> Added the <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> and <a href="c3ref/prepare.html">sqlite3_prepare16_v3()</a> interfaces
2897 with the extra "prepFlags" parameters.
2898 <li> Provide the <a href="c3ref/c_prepare_dont_log.html#sqlitepreparepersistent">SQLITE_PREPARE_PERSISTENT</a> flag for <a href="c3ref/prepare.html">sqlite3_prepare_v3()</a> and
2899 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
2900 <a href="rtree.html">R-Tree extension</a>.
2901 <li> Added the <a href="pragma.html#pragma_secure_delete">PRAGMA secure_delete=FAST</a> command. When secure_delete is
2902 set to FAST, old content is overwritten with zeros as long as that does
2903 not increase the amount of I/O. Deleted content might still persist on
2904 the <a href="fileformat2.html#freelist">free-page list</a> but will be purged from all b-tree pages.
2905 <li> Enhancements to the <a href="cli.html">command-line shell</a>:
2906 <ol type='a'>
2907 <li> Add support for tab-completion using the <a href="completion.html">COMPLETION extension</a>, for
2908 both readline and linenoise.
2909 <li> Add the ".cd" command.
2910 <li> Enhance the "<a href="cli.html#dschema">.schema</a>" command to show the schema of all attached
2911 databases.
2912 <li> Enhance "<a href="cli.html#dtables">.tables</a>" so that it shows the schema names for all attached
2913 if the name is anything other than "main".
2914 <li> The "<a href="cli.html#csv">.import</a>" command ignores an initial UTF-8 BOM.
2915 <li> Added the "--newlines" option to the "<a href="cli.html#dump">.dump</a>" command to cause U+000a and
2916 U+000d characters to be output literally rather than escaped using the
2917 <a href="lang_corefunc.html#replace">replace()</a> function.
2918 </ol>
2919 <li> Query planner enhancements:
2920 <ol type='a'>
2921 <li> When generating individual loops for each ORed term of an OR scan,
2922 move any constant WHERE expressions outside of the loop, as is
2923 done for top-level loops.
2924 <li> The query planner examines the values of bound parameters to help
2925 determine if a partial index is usable.
2926 <li> When deciding between two plans with the same estimated cost, bias
2927 the selection toward the one that does not use the sorter.
2928 <li> Evaluate WHERE clause constraints involving correlated subqueries
2929 last, in the hope that they never have be evaluated at all.
2930 <li> Do not use the <a href="optoverview.html#flattening">flattening optimization</a> for a sub-query on the RHS
2931 of a LEFT JOIN if that subquery reads data from a <a href="vtab.html">virtual table</a> as
2932 doing so prevents the query planner from creating <a href="optoverview.html#autoindex">automatic indexes</a>
2933 on the results of the sub-query, which can slow down the query.
2934 </ol>
2935 <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>,
2936 and <a href="c3ref/c_stmtstatus_counter.html#sqlitestmtstatusmemused">SQLITE_STMTSTATUS_MEMUSED</a> options for the
2937 <a href="c3ref/stmt_status.html">sqlite3_stmt_status()</a> interface.
2938 <li> Provide <a href="pragma.html#pragfunc">PRAGMA functions</a> for
2939 <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>, <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a>, and
2940 <a href="pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a>.
2941 <li> Add the -withoutnulls option to the <a href="tclsqlite.html#eval">TCL interface eval method</a>.
2942 <li> Enhance the <a href="sqlanalyze.html">sqlite3_analyzer.exe</a> utility program so that it shows
2943 the number of bytes of metadata on btree pages.
2944 <li> The <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableqpsg">SQLITE_DBCONFIG_ENABLE_QPSG</a> run-time option and the
2945 <a href="compile.html#enable_qpsg">SQLITE_ENABLE_QPSG</a> compile-time option enable the
2946 <a href="queryplanner-ng.html#qpstab">query planner stability guarantee</a>. See also ticket
2947 <a href="https://sqlite.org/src/info/892fc34f173e99d8">892fc34f173e99d8</a>
2948 <li> Miscellaneous optimizations result in a 2% reduction in <a href="cpu.html">CPU cycles used</a>.
2949 <p><b>Bug Fixes:</b>
2950 <li> Fix the behavior of <a href="c3ref/column_name.html">sqlite3_column_name()</a> for queries that use the
2951 <a href="optoverview.html#flattening">flattening optimization</a> so that the result is consistent with other
2952 queries that do not use that optimization, and with PostgreSQL, MySQL,
2953 and SQLServer. Ticket <a href="https://sqlite.org/src/info/de3403bf5ae">de3403bf5ae</a>.
2954 <li> Fix the query planner so that it knows not to use <a href="optoverview.html#autoindex">automatic indexes</a>
2955 on the right table of LEFT JOIN if the WHERE clause uses the <a href="lang_expr.html#isisnot">IS operator</a>.
2956 Fix for <a href="https://sqlite.org/src/info/ce68383bf6aba">ce68383bf6aba</a>.
2957 <li> Ensure that the query planner knows that any column of a
2958 <a href="optoverview.html#flattening">flattened</a> LEFT JOIN can be NULL even
2959 if that column is labeled with "NOT NULL". Fix for ticket
2960 <a href="https://sqlite.org/src/info/892fc34f173e99d8">892fc34f173e99d8</a>.
2961 <li> Fix rare false-positives in <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> when run on a database connection
2962 with <a href="lang_attach.html">attached databases</a>. Ticket
2963 <a href="https://sqlite.org/src/info/a4e06e75a9ab61a12">a4e06e75a9ab61a12</a>
2964 <li> Fix a bug (discovered by OSSFuzz) that causes an assertion fault if certain
2965 dodgy CREATE TABLE declarations are used. Ticket
2966 <a href="https://sqlite.org/src/info/bc115541132dad136">bc115541132dad136</a>
2967 <p><b>Hashes:</b>
2968 <li>SQLITE_SOURCE_ID: "2017-08-01 13:24:15 9501e22dfeebdcefa783575e47c60b514d7c2e0cad73b2a496c0bc4b680900a8"
2969 <li>SHA3-256 for sqlite3.c: 79b7f3b977360456350219cba0ba0e5eb55910565eab68ea83edda2f968ebe95
2970
2971 </ol></p>
2972 <a name="version_3_18_2"></a>
2973 <h3>2017-06-17 (3.18.2)</h3><p><ol class='lessindent'>
2974 <li>Fix a bug that might cause duplicate output rows when an IN operator is
2975 used in the WHERE clause.
2976 Ticket <a href="https://sqlite.org/src/info/61fe9745">61fe9745</a>.
2977 <p><b>Hashes:</b>
2978 <li>SQLITE_SOURCE_ID: "2017-06-17 09:59:36 036ebf729e4b21035d7f4f8e35a6f705e6bf99887889e2dc14ebf2242e7930dd"
2979 <li>SHA3-256 for sqlite3.c: b0bd014f2776b9f9508a3fc6432f70e2436bf54475369f88f0aeef75b0eec93e
2980
2981 </ol></p>
2982 <a name="version_3_18_1"></a>
2983 <h3>2017-06-16 (3.18.1)</h3><p><ol class='lessindent'>
2984 <li>Fix a bug associated with <a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> that can lead to database
2985 corruption. The bug was introduced in <a href="#version_3_16_0">version 3.16.0</a> (2017-01-02).
2986 Ticket <a href="https://sqlite.org/src/info/fda22108">fda22108</a>.
2987 <p><b>Hashes:</b>
2988 <li>SQLITE_SOURCE_ID: "2017-06-16 13:41:15 77bb46233db03a3338bacf7e56f439be3dfd1926ea0c44d252eeafa7a7b31c06"
2989 <li>SHA3-256 for sqlite3.c: 334eaf776db9d09a4e69d6012c266bc837107edc2c981739ef82081cb11c5723
2990
2991 </ol></p>
2992 <a name="version_3_19_3"></a>
2993 <h3>2017-06-08 (3.19.3)</h3><p><ol class='lessindent'>
2994 <li>Fix a bug associated with <a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> that can lead to database
2995 corruption. The bug was introduced in <a href="#version_3_16_0">version 3.16.0</a> (2017-01-02).
2996 Ticket <a href="https://sqlite.org/src/info/fda22108">fda22108</a>.
2997 <p><b>Hashes:</b>
2998 <li>SQLITE_SOURCE_ID: "2017-06-08 14:26:16 0ee482a1e0eae22e08edc8978c9733a96603d4509645f348ebf55b579e89636b"
2999 <li>SHA3-256 for sqlite3.c: 368f1d31272b1739f804bcfa5485e5de62678015c4adbe575003ded85c164bb8
3000
3001 </ol></p>
3002 <a name="version_3_19_2"></a>
3003 <h3>2017-05-25 (3.19.2)</h3><p><ol class='lessindent'>
3004 <li>Fix more bugs in the LEFT JOIN <a href="optoverview.html#flattening">flattening optimization</a>. Ticket
3005 <a href="https://sqlite.org/src/info/7fde638e94287d2c">7fde638e94287d2c</a>.
3006 <p><b>Hashes:</b>
3007 <li>SQLITE_SOURCE_ID: "2017-05-25 16:50:27 edb4e819b0c058c7d74d27ebd14cc5ceb2bad6a6144a486a970182b7afe3f8b9"
3008 <li>SHA3-256 for sqlite3.c: 1be0c457869c1f7eba58c3b5097b9ec307a15be338308bee8e5be8570bcf5d1e
3009
3010 </ol></p>
3011 <a name="version_3_19_1"></a>
3012 <h3>2017-05-24 (3.19.1)</h3><p><ol class='lessindent'>
3013 <li>Fix a bug in the LEFT JOIN <a href="optoverview.html#flattening">flattening optimization</a>. Ticket
3014 <a href="https://sqlite.org/src/info/cad1ab4cb7b0fc">cad1ab4cb7b0fc</a>.
3015 <li>Remove a surplus semicolon that was causing problems for older versions of MSVC.
3016 <p><b>Hashes:</b>
3017 <li>SQLITE_SOURCE_ID: "2017-05-24 13:08:33 f6d7b988f40217821a382bc298180e9e6794f3ed79a83c6ef5cae048989b3f86"
3018 <li>SHA3-256 for sqlite3.c: 996b2aff37b6e0c6663d0312cd921bbdf6826c989cbbb07dadde5e9672889bca
3019
3020 </ol></p>
3021 <a name="version_3_19_0"></a>
3022 <h3>2017-05-22 (3.19.0)</h3><p><ol class='lessindent'>
3023 <li> The <a href="c3ref/c_alter_table.html">SQLITE_READ</a> <a href="c3ref/set_authorizer.html">authorizer callback</a> is invoked once
3024 with a column name that is an empty string
3025 for every table referenced in a query from which no columns are extracted.
3026 <li> When using an index on an expression, try to use expression values already
3027 available in the index, rather than loading the original columns and recomputing
3028 the expression.
3029 <li> Enhance the <a href="optoverview.html#flattening">flattening optimization</a> so that it is able to flatten views
3030 on the right-hand side of a LEFT JOIN.
3031 <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
3032 characters embedded in strings in the .dump output from the <a href="cli.html">command-line shell</a>.
3033 <li> Avoid unnecessary foreign key processing in UPDATE statements that do not
3034 touch the columns that are constrained by the foreign keys.
3035 <li> On a DISTINCT query that uses an index, try to skip ahead to the next distinct
3036 entry using the index rather than stepping through rows, when an appropriate
3037 index is available.
3038 <li> Avoid unnecessary invalidation of <a href="c3ref/blob.html">sqlite3_blob</a> handles when making
3039 changes to unrelated tables.
3040 <li> Transfer any terms of the HAVING clause that use only columns mentioned in
3041 the GROUP BY clause over to the WHERE clause for faster processing.
3042 <li> Reuse the same materialization of a VIEW if that VIEW appears more than
3043 once in the same query.
3044 <li> Enhance <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> so that it identifies tables that have two
3045 or more rows with the same <a href="lang_createtable.html#rowid">rowid</a>.
3046 <li> Enhance the <a href="fts5.html">FTS5</a> query syntax so that <a href="fts5.html#fts5_column_filters">column filters</a>
3047 may be applied to arbitrary expressions.
3048 <li> Enhance the <a href="json1.html#jex">json_extract()</a> function to cache and reuse parses of JSON
3049 input text.
3050 <li> Added the <a href="https://sqlite.org/src/file/ext/misc/anycollseq.c">anycollseq.c</a>
3051 <a href="loadext.html">loadable extension</a> that allows a generic SQLite database connection to
3052 read a schema that contains unknown and/or
3053 application-specific <a href="datatype3.html#collation">collating sequences</a>.
3054 <p><b>Bug Fixes:</b>
3055 <li> Fix a problem in <a href="lang_replace.html">REPLACE</a> that can result in a corrupt database containing
3056 two or more rows with the same <a href="lang_createtable.html#rowid">rowid</a>. Fix for ticket
3057 <a href="https://sqlite.org/src/info/f68dc596c4e6018d">f68dc596c4e6018d</a>.
3058 <li> Fix a problem in <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> that was causing a subsequent
3059 <a href="lang_vacuum.html">VACUUM</a> to behave suboptimally.
3060 <li> Fix the <a href="pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a> command so that it works correctly with
3061 foreign keys on <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
3062 <li> Fix a bug in the b-tree logic that can result in incorrect duplicate answers
3063 for IN operator queries. Ticket
3064 <a href="https://sqlite.org/src/info/61fe9745">61fe9745</a>
3065 <li> Disallow leading zeros in numeric constants in JSON. Fix for ticket
3066 <a href="https://sqlite.org/src/info/b93be8729a895a528e2">b93be8729a895a528e2</a>.
3067 <li> Disallow control characters inside of strings in JSON. Fix for ticket
3068 <a href="https://sqlite.org/src/info/6c9b5514077fed34551">6c9b5514077fed34551</a>.
3069 <li> Limit the depth of recursion for JSON objects and arrays in order to avoid
3070 excess stack usage in the recursive descent parser. Fix for ticket
3071 <a href="https://sqlite.org/src/info/981329adeef51011052">981329adeef51011052</a>.
3072 <p><b>Hashes:</b>
3073 <li>SQLITE_SOURCE_ID: "2017-05-22 13:58:13 28a94eb282822cad1d1420f2dad6bf65e4b8b9062eda4a0b9ee8270b2c608e40"
3074 <li>SHA3-256 for sqlite3.c: c30326aa1a9cc342061b755725eac9270109acf878bc59200dd4b1cea6bc2908
3075
3076 </ol></p>
3077 <a name="version_3_18_0"></a>
3078 <h3>2017-03-30 (3.18.0)</h3><p><ol class='lessindent'>
3079 <li>Added the <a href="pragma.html#pragma_optimize">PRAGMA optimize</a> command
3080 <li>The SQLite version identifier returned by the <a href="lang_corefunc.html#sqlite_source_id">sqlite_source_id()</a> SQL function
3081 and the <a href="c3ref/libversion.html">sqlite3_sourceid()</a> C API and found in the <a href="c3ref/c_scm_branch.html">SQLITE_SOURCE_ID</a> macro is
3082 now a 64-digit SHA3-256 hash instead of a 40-digit SHA1 hash.
3083 <li>Added the <a href="json1.html#jpatch">json_patch()</a> SQL function to the <a href="json1.html">JSON1 extension</a>.
3084 <li>Enhance the <a href="optoverview.html#like_opt">LIKE optimization</a> so that it works for arbitrary expressions on
3085 the left-hand side as long as the LIKE pattern on the right-hand side does not
3086 begin with a digit or minus sign.
3087 <li>Added the <a href="c3ref/set_last_insert_rowid.html">sqlite3_set_last_insert_rowid()</a> interface and use the new interface in
3088 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>
3089 interface always returns reasonable values.
3090 <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
3091 <a href="lang_createtable.html#ckconst">CHECK constraints</a>.
3092 <li>Enhance the query plans for joins to detect empty tables early and
3093 halt without doing unnecessary work.
3094 <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>
3095 to put comma separators at the thousands marks for integers, if the "," format modifier
3096 is used in between the "%" and the "d" (example: "%,d").
3097 <li>Added the -D<a href="compile.html#max_memory">SQLITE_MAX_MEMORY</a>=<i>N</i> compile-time option.
3098 <li>Added the <a href="cli.html#sha3sum">.sha3sum dot-command</a> and the <a href="cli.html#selftest">.selftest dot-command</a>
3099 to the <a href="cli.html">command-line shell</a>
3100 <li>Begin enforcing <a href="c3ref/c_limit_attached.html#sqlitelimitvdbeop">SQLITE_LIMIT_VDBE_OP</a>. This can be used, for example, to prevent
3101 excessively large prepared statements in systems that accept SQL queries from
3102 untrusted users.
3103 <li>Various performance improvements.
3104 <p><b>Bug Fixes:</b>
3105 <li>Ensure that indexed expressions with collating sequences are handled correctly.
3106 Fix for ticket <a href="https://sqlite.org/src/info/eb703ba7b50c1a5">eb703ba7b50c1a5</a>.
3107 <li>Fix a bug in the 'start of ...' modifiers for the <a href="lang_datefunc.html">date and time functions</a>.
3108 Ticket <a href="https://sqlite.org/src/info/6097cb92745327a1">6097cb92745327a1</a>
3109 <li>Fix a potential segfault in complex recursive triggers, resulting from a
3110 bug in the OP_Once opcode introduced as part of a performance optimization in
3111 version 3.15.0.
3112 Ticket <a href="https://sqlite.org/src/info/06796225f59c057c">06796225f59c057c</a>
3113 <li>In the <a href="rbu.html">RBU extension</a>, add extra sync operations to avoid the possibility of
3114 corruption following a power failure.
3115 <li>The <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a> output for nested SQL statements should always begin
3116 with a "--" comment marker.
3117 <p><b>Hashes:</b>
3118 <li>SQLITE_SOURCE_ID: "2017-03-28 18:48:43 424a0d380332858ee55bdebc4af3789f74e70a2b3ba1cf29d84b9b4bcf3e2e37"
3119 <li>SHA3-256 for sqlite3.c: cbf322df1f76be57fb3be84f3da1fc71d1d3dfdb7e7c2757fb0ff630b3bc2e5d
3120
3121 </ol></p>
3122 <a name="version_3_17_0"></a>
3123 <h3>2017-02-13 (3.17.0)</h3><p><ol class='lessindent'>
3124 <li>Approximately 25% better performance from the <a href="rtree.html">R-Tree extension</a>.
3125 <ol type='a'>
3126 <li> Uses compiler built-ins (ex: __builtin_bswap32() or _byteswap_ulong())
3127 for byteswapping when available.
3128 <li> Uses the <a href="c3ref/blob.html">sqlite3_blob</a> key/value access object instead of SQL
3129 for pulling content out of R-Tree nodes
3130 <li> Other miscellaneous enhancements such as loop unrolling.
3131 </ol>
3132 <li>Add the <a href="compile.html#default_lookaside">SQLITE_DEFAULT_LOOKASIDE</a> compile-time option.
3133 <li>Increase the default <a href="malloc.html#lookaside">lookaside</a>
3134 size from 512,125 to 1200,100
3135 as this provides better performance while only adding 56KB
3136 of extra memory per connection. Memory-sensitive
3137 applications can restore the old
3138 default at compile-time, start-time, or run-time.
3139 <li>Use compiler built-ins __builtin_sub_overflow(), __builtin_add_overflow(),
3140 and __builtin_mul_overflow() when available. (All compiler
3141 built-ins can be omitted with the <a href="compile.html#disable_intrinsic">SQLITE_DISABLE_INTRINSIC</a> compile-time
3142 option.)
3143 <li>Added the <a href="compile.html#enable_null_trim">SQLITE_ENABLE_NULL_TRIM</a> compile-time option, which
3144 can result in significantly smaller database files for some
3145 applications, at the risk of being incompatible with older
3146 versions of SQLite.
3147 <li>Change <a href="compile.html#default_pcache_initsz">SQLITE_DEFAULT_PCACHE_INITSZ</a> from 100 to 20, for
3148 improved performance.
3149 <li>Added the SQLITE_UINT64_TYPE compile-time option as an
3150 analog to SQLITE_INT64_TYPE.
3151 <li>Perform some <a href="lang_update.html">UPDATE</a> operations in a single pass instead of
3152 in two passes.
3153 <li>Enhance the <a href="sessionintro.html">session extension</a> to support <a href="withoutrowid.html">WITHOUT ROWID</a>
3154 tables.
3155 <li>Fixed performance problems and potential stack overflows
3156 when creating <a href="lang_createview.html">views</a> from multi-row VALUES clauses with
3157 hundreds of thousands of rows.
3158 <li>Added the <a href="https://sqlite.org/src/file/ext/misc/sha1.c">sha1.c</a>
3159 extension.
3160 <li>In the <a href="cli.html">command-line shell</a>, enhance the ".mode" command so that it
3161 restores the default column and row separators for modes "line",
3162 "list", "column", and "tcl".
3163 <li>Enhance the <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> option so that it works
3164 in <a href="wal.html">WAL mode</a> as long as the pages being read are not in the WAL file.
3165 <li>Enhance the
3166 <a href="lemon.html">Lemon parser generator</a>
3167 so that it can store the parser object as a stack variable rather than
3168 allocating space from the heap and make use of that enhancement in
3169 the <a href="amalgamation.html">amalgamation</a>.
3170 <li>Other performance improvements. Uses about <a href="cpu.html">6.5% fewer CPU cycles</a>.
3171 <p><b>Bug Fixes:</b>
3172 <li>Throw an error if the ON clause of a LEFT JOIN references tables
3173 to the right of the ON clause. This is the same behavior as
3174 PostgreSQL. Formerly, SQLite silently converted the LEFT JOIN
3175 into an INNER JOIN. Fix for ticket
3176 <a href="https://sqlite.org/src/info/25e335f802dd">25e335f802dd</a>.
3177 <li>Use the correct affinity for columns of automatic indexes. Ticket
3178 <a href="https://sqlite.org/src/info/7ffd1ca1d2ad4ec">7ffd1ca1d2ad4ec</a>.
3179 <li>Ensure that the <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface can correctly
3180 handle short rows. Fix for ticket
3181 <a href="https://sqlite.org/src/info/e6e962d6b0f06f46e">e6e962d6b0f06f46e</a>.
3182 <p><b>Hashes:</b>
3183 <li>SQLITE_SOURCE_ID: "2017-02-13 16:02:40 ada05cfa86ad7f5645450ac7a2a21c9aa6e57d2c"
3184 <li>SHA1 for sqlite3.c: cc7d708bb073c44102a59ed63ce6142da1f174d1
3185
3186
3187 </ol></p>
3188 <a name="version_3_16_2"></a>
3189 <h3>2017-01-06 (3.16.2)</h3><p><ol class='lessindent'>
3190 <li>Fix the <a href="lang_replace.html">REPLACE</a> statement for
3191 <a href="withoutrowid.html">WITHOUT ROWID</a> tables that lack secondary indexes so that
3192 it works correctly with triggers and foreign keys. This was a new bug
3193 caused by performance optimizations added in version 3.16.0.
3194 Ticket <a href="https://sqlite.org/src/info/30027b613b4">30027b613b4</a>
3195 <li>Fix the <a href="c3ref/value_blob.html">sqlite3_value_text()</a> interface so that it correctly
3196 translates content generated by <a href="lang_corefunc.html#zeroblob">zeroblob()</a> into a string of all
3197 0x00 characters. This is a long-standing issue discovered after the
3198 3.16.1 release by <a href="https://github.com/google/oss-fuzz">OSS-Fuzz</a>
3199 <li>Fix the bytecode generator to deal with a subquery in the FROM clause
3200 that is itself a UNION ALL where one side of the UNION ALL is a view
3201 that contains an ORDER BY. This is a long-standing issue that was
3202 discovered after the release of 3.16.1. See ticket
3203 <a href="https://sqlite.org/src/info/190c2507">190c2507</a>.
3204 <li>Adjust the <a href="c3ref/column_count.html">sqlite3_column_count()</a> API so it more often returns the same
3205 values for <a href="pragma.html#syntax">PRAGMA</a> statements as it did in prior releases, to
3206 minimize disruption to applications that might be using that
3207 interface in unexpected ways.
3208 <p><b>Hashes:</b>
3209 <li>SQLITE_SOURCE_ID: "2017-01-06 16:32:41 a65a62893ca8319e89e48b8a38cf8a59c69a8209"
3210 <li>SHA1 for sqlite3.c: 2bebdc3f24911c0d12b6d6c0123c3f84d6946b08
3211
3212 </ol></p>
3213 <a name="version_3_16_1"></a>
3214 <h3>2017-01-03 (3.16.1)</h3><p><ol class='lessindent'>
3215 <li>Fix a bug concerning the use of <a href="rowvalue.html">row values</a> within <a href="lang_createtrigger.html">triggers</a>
3216 (see ticket <a href="https://sqlite.org/src/info/8c9458e7">8c9458e7</a>)
3217 that was in version 3.15.0 but was not reported until moments after the 3.16.0
3218 release was published.
3219 <p><b>Hashes:</b>
3220 <li>SQLITE_SOURCE_ID: "2017-01-03 18:27:03 979f04392853b8053817a3eea2fc679947b437fd"
3221 <li>SHA1 for sqlite3.c: 354f6223490b30fd5320b4066b1535e4ce33988d
3222
3223 </ol></p>
3224 <a name="version_3_16_0"></a>
3225 <h3>2017-01-02 (3.16.0)</h3><p><ol class='lessindent'>
3226 <li>Uses 9% fewer CPU cycles. (See the <a href="cpu.html">CPU performance measurement</a> report for
3227 details on how this performance increase was computed.)
3228 <li>Added experimental support for <a href="pragma.html#pragfunc">PRAGMA functions</a>.
3229 <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>.
3230 <li>Enhance the <a href="lang_datefunc.html">date and time functions</a> so that the 'unixepoch' modifier works
3231 for the full span of supported dates.
3232 <li>Changed the default configuration of the <a href="malloc.html#lookaside">lookaside memory allocator</a> from
3233 500 slots of 128 bytes each into 125 slots of 512 bytes each.
3234 <li>Enhanced "WHERE x NOT NULL" <a href="partialindex.html">partial indexes</a> so that they are usable if
3235 the "x" column appears in a LIKE or GLOB operator.
3236 <li>Enhanced <a href="c3ref/interrupt.html">sqlite3_interrupt()</a> so that it interrupts <a href="wal.html#ckpt">checkpoint</a> operations that
3237 are in process.
3238 <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
3239 for cases when the pattern contains multiple wildcards.
3240 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlwin32gethandle">SQLITE_FCNTL_WIN32_GET_HANDLE</a> file control opcode.
3241 <li>Added ".mode quote" to the <a href="cli.html">command-line shell</a>.
3242 <li>Added ".lint fkey-indexes" to the <a href="cli.html">command-line shell</a>.
3243 <li>Added the <a href="imposter.html#dotimposter">.imposter dot-command</a> to the <a href="cli.html">command-line shell</a>.
3244 <li>Added the <a href="https://sqlite.org/src/file/ext/misc/remember.c">remember(V,PTR)</a>
3245 SQL function as a <a href="loadext.html">loadable extension</a>.
3246 <li>Rename the <a href="compile.html#omit_builtin_test">SQLITE_OMIT_BUILTIN_TEST</a> compile-time option to
3247 <a href="compile.html#untestable">SQLITE_UNTESTABLE</a> to better reflect the implications of using it.
3248 <p><b>Bug Fixes:</b>
3249 <li>Fix a long-standing bug in the query planner that caused incorrect results
3250 on a LEFT JOIN where the left-hand table is a subquery and the join constraint
3251 is a bare column name coming from the left-hand subquery. Ticket
3252 <a href="https://sqlite.org/src/info/2df0107b">2df0107b</a>.
3253 <li>Correctly handle the integer literal -0x8000000000000000 in the query planner.
3254 <p><b>Hashes:</b>
3255 <li>SQLITE_SOURCE_ID: "2017-01-02 11:57:58 04ac0b75b1716541b2b97704f4809cb7ef19cccf"
3256 <li>SHA1 for sqlite3.c: e2920fb885569d14197c9b7958e6f1db573ee669
3257
3258 </ol></p>
3259 <a name="version_3_15_2"></a>
3260 <h3>2016-11-28 (3.15.2)</h3><p><ol class='lessindent'>
3261 <li> Multiple bug fixes to the <a href="rowvalue.html">row value</a> logic that was introduced in version 3.15.0.
3262 <li> Fix a NULL pointer dereference in ATTACH/DETACH following a maliciously constructed
3263 syntax error. Ticket
3264 <a href="https://sqlite.org/src/info/2f1b168ab4d4844">2f1b168ab4d4844</a>.
3265 <li> Fix a crash that can occur following an out-of-memory condition
3266 in the built-in <a href="lang_corefunc.html#instr">instr()</a> function.
3267 <li> In the <a href="json1.html">JSON extension</a>, fix the JSON validator so that it correctly rejects
3268 invalid backslash escapes within strings.
3269 <p><b>Hashes:</b>
3270 <li>SQLITE_SOURCE_ID: "2016-11-28 19:13:37 bbd85d235f7037c6a033a9690534391ffeacecc8"
3271 <li>SHA1 for sqlite3.c: 06d77b42a3e70609f8d4bbb97caf53652f1082cb
3272
3273 </ol></p>
3274 <a name="version_3_15_1"></a>
3275 <h3>2016-11-04 (3.15.1)</h3><p><ol class='lessindent'>
3276 <li> Added <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlwin32gethandle">SQLITE_FCNTL_WIN32_GET_HANDLE</a> file control opcode.
3277 <li> Fix the <a href="lang_vacuum.html">VACUUM</a> command so that it spills excess content to disk rather
3278 than holding everything in memory, and possible causing an out-of-memory
3279 error for larger database files. This fixes an issue introduced by
3280 version 3.15.0.
3281 <li> Fix a case (present since 3.8.0 - 2013-08-26)
3282 where OR-connected terms in the ON clause of a LEFT JOIN
3283 might cause incorrect results. Ticket
3284 <a href="https://sqlite.org/src/info/34a579141b2c5ac">34a579141b2c5ac</a>.
3285 <li> Fix a case where the use of <a href="rowvalue.html">row values</a> in the ON clause of a LEFT JOIN
3286 might cause incorrect results. Ticket
3287 <a href="https://sqlite.org/src/info/fef4bb4bd9185ec8f">fef4bb4bd9185ec8f</a>.
3288 <p><b>Hashes:</b>
3289 <li>SQLITE_SOURCE_ID: "2016-11-04 12:08:49 1136863c76576110e710dd5d69ab6bf347c65e36"
3290 <li>SHA1 for sqlite3.c: e7c26a7be3e431dd06898f8d262c4ef240c07366
3291
3292 </ol></p>
3293 <a name="version_3_15_0"></a>
3294 <h3>2016-10-14 (3.15.0)</h3><p><ol class='lessindent'>
3295 <li> Added support for <a href="rowvalue.html">row values</a>.
3296 <li> Allow <a href="deterministic.html">deterministic SQL functions</a> in the WHERE clause of a <a href="partialindex.html">partial index</a>.
3297 <li> Added the "<a href="uri.html#urimodeof">modeof=<i>filename</i></a>" URI parameter on the unix VFS
3298 <li> Added support for <a href="c3ref/c_dbconfig_defensive.html#sqlitedbconfigmaindbname">SQLITE_DBCONFIG_MAINDBNAME</a>.
3299 <li> Added the ability to <a href="lang_vacuum.html">VACUUM</a> an <a href="lang_attach.html">ATTACH-ed</a> database.
3300 <li> Enhancements to the <a href="cli.html">command-line shell</a>:
3301 <ol type='a'>
3302 <li> Add the ".testcase" and ".check" <a href="cli.html#dotcmd">dot-commands</a>.
3303 <li> Added the --new option to the ".open" dot-command, causing
3304 any prior content in the database to be purged prior to
3305 opening.
3306 </ol>
3307 <li> Enhance the <a href="fts5.html#the_fts5vocab_virtual_table_module">fts5vocab</a> virtual table to handle "ORDER BY term" efficiently.
3308 <li> Miscellaneous micro-optimizations reduce CPU usage by more than 7%
3309 on common workloads. Most optimization in this release has been on the
3310 front-end (<a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>).
3311 <p><b>Bug Fixes:</b>
3312 <li> The multiply operator now correctly detects 64-bit integer overflow
3313 and promotes to floating point in all corner-cases. Fix for ticket
3314 <a href="https://sqlite.org/src/info/1ec41379c9c1e400">1ec41379c9c1e400</a>.
3315 <li> Correct handling of columns with redundant unique indexes when those
3316 columns are used on the LHS of an <a href="lang_expr.html#in_op">IN operator</a>. Fix for ticket
3317 <a href="https://sqlite.org/src/info/0eab1ac759">0eab1ac759</a>.
3318 <li> Skip NULL entries on range queries in <a href="expridx.html">indexes on expressions</a>.
3319 Fix for ticket
3320 <a href="https://sqlite.org/src/tktview/4baa46491212947">4baa46491212947</a>.
3321 <li> Ensure that the <a href="autoinc.html">AUTOINCREMENT</a> counters in the sqlite_sequence
3322 table are initialized doing "Xfer Optimization" on "INSERT ... SELECT"
3323 statements. Fix for ticket
3324 <a href="https://sqlite.org/src/info/7b3328086a5c116c">7b3328086a5c116c</a>.
3325 <li> Make sure the ORDER BY LIMIT optimization
3326 (from check-in <a href="https://sqlite.org/src/info/559733b09e9630fa">559733b09e</a>)
3327 works with IN operators on INTEGER PRIMARY KEYs. Fix for ticket
3328 <a href="https://sqlite.org/src/info/96c1454cbfd9509">96c1454c</a>
3329 <p><b>Hashes:</b>
3330 <li>SQLITE_SOURCE_ID: "2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8"
3331 <li>SHA1 for sqlite3.c: fba106f8f6493c66eeed08a2dfff0907de54ae76
3332
3333 </ol></p>
3334 <a name="version_3_14_2"></a>
3335 <h3>2016-09-12 (3.14.2)</h3><p><ol class='lessindent'>
3336 <li> Improved support for using the STDCALL calling convention in winsqlite3.dll.
3337 <li> Fix the <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a> interface so that it is disabled if either the
3338 callback or the mask arguments are zero, in accordance with the documentation.
3339 <li> Fix commenting errors and improve the comments generated on <a href="lang_explain.html">EXPLAIN</a> listings
3340 when the <a href="compile.html#enable_explain_comments">-DSQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option is used.
3341 <li> Fix the ".read" command in the <a href="cli.html">command-line shell</a> so that it understands
3342 that its input is not interactive.
3343 <li> Correct affinity computations for a SELECT on the RHS of an IN operator.
3344 Fix for ticket <a href="https://sqlite.org/src/info/199df4168c">199df4168c</a>.
3345 <li> The ORDER BY LIMIT optimization is not valid unless the inner-most IN operator
3346 loop is actually used by the query plan. Fix for
3347 ticket <a href="https://sqlite.org/src/info/0c4df46116e90f92">0c4df46116e90f92</a>.
3348 <li> Fix an internal code generator problem that was causing some <a href="lang_delete.html">DELETE</a> operations
3349 to no-op. Ticket <a href="https://sqlite.org/src/info/ef360601">ef360601</a>
3350 <p><b>Hashes:</b>
3351 <li>SQLITE_SOURCE_ID: "2016-09-12 18:50:49 29dbef4b8585f753861a36d6dd102ca634197bd6"
3352 <li>SHA1 for sqlite3.c: bcc4a1989db45e7f223191f2d0f66c1c28946383
3353
3354 </ol></p>
3355 <a name="version_3_14_1"></a>
3356 <h3>2016-08-11 (3.14.1)</h3><p><ol class='lessindent'>
3357 <li>A performance enhancement to the page-cache "truncate" operation
3358 reduces <a href="lang_transaction.html">COMMIT</a> time by dozens of milliseconds on systems with a
3359 large <a href="pragma.html#pragma_cache_size">page cache</a>.
3360 <li>Fix to the --rbu option of <a href="sqldiff.html">sqldiff</a>.
3361 <p><b>Hashes:</b>
3362 <li>SQLITE_SOURCE_ID: "2016-08-11 18:53:32 a12d8059770df4bca59e321c266410344242bf7b"
3363 <li>SHA1 for sqlite3.c: d545b24892278272ce4e40e0567d69c8babf12ea
3364
3365 </ol></p>
3366 <a name="version_3_14"></a>
3367 <h3>2016-08-08 (3.14)</h3><p><ol class='lessindent'>
3368 <div style="width:280px;float:right;padding:10px;margin:0px 10px;">
3369 <img src='images/sqlitepie.jpg' width=280 height=250></img><br>
3370 <center>Celebrating the SQLite "<big>&pi;</big> release"
3371 with a home-baked pie.</center>
3372 </div>
3373 <li>Added support for <a href="vtab.html#worid">WITHOUT ROWID virtual tables</a>.
3374 <li>Improved the query planner so that the <a href="optoverview.html#or_opt">OR optimization</a> can
3375 be used on <a href="vtab.html">virtual tables</a> even if one or more of the disjuncts
3376 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.
3377 <li>Added the <a href="csv.html">CSV virtual table</a> for reading
3378 <a href="https://www.ietf.org/rfc/rfc4180.txt">RFC 4180</a> formatted comma-separated
3379 value files.
3380 <li>Added the <a href="carray.html">carray() table-valued function</a> extension.
3381 <li>Enabled <a href="loadext.html#persist">persistent loadable extensions</a> using the new
3382 <a href="rescode.html#ok_load_permanently">SQLITE_OK_LOAD_PERMANENTLY</a> return code from the extension
3383 entry point.
3384 <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>.
3385 <li>Add the
3386 <a href="https://sqlite.org/src/artifact?ci=trunk&filename=ext/misc/vfsstat.c">vfsstat.c</a>
3387 loadable extension - a VFS shim that measures I/O
3388 together with an <a href="vtab.html#epovtab">eponymous virtual table</a> that provides access to the measurements.
3389 <li>Improved algorithm for running queries with both an ORDER BY and a LIMIT where
3390 only the inner-most loop naturally generates rows in the correct order.
3391 <li>Enhancements to <a href="lemon.html">Lemon parser generator</a>, so that it generates a
3392 faster parser.
3393 <li>The <a href="pragma.html#pragma_compile_options">PRAGMA compile_options</a> command now attempts to show the version number
3394 of the compiler that generated the library.
3395 <li>Enhance <a href="pragma.html#pragma_table_info">PRAGMA table_info</a> so that it provides information about
3396 <a href="vtab.html#epovtab">eponymous virtual tables</a>.
3397 <li>Added the "win32-none" VFS, analogous to the "unix-none" VFS, that works like
3398 the default "win32" VFS except that it ignores all file locks.
3399 <li>The query planner uses a full scan of a <a href="partialindex.html">partial index</a> instead of a
3400 full scan of the main table, in cases where that makes sense.
3401 <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>.
3402 <li>Created the <a href="dbhash.html">dbhash.exe</a> command-line utility.
3403 <li>Added two new C-language interfaces: <a href="c3ref/expanded_sql.html">sqlite3_expanded_sql()</a> and
3404 <a href="c3ref/trace_v2.html">sqlite3_trace_v2()</a>. These new interfaces subsume the functions of
3405 <a href="c3ref/profile.html">sqlite3_trace()</a> and <a href="c3ref/profile.html">sqlite3_profile()</a> which are now deprecated.
3406 <li>Added the <a href="json1.html#jquote">json_quote()</a> SQL function to <a href="json1.html">the json1 extension</a>.
3407 <li>Disable the <a href="c3ref/set_authorizer.html">authorizer callback</a> while reparsing the schema.
3408 <li>Added the <a href="compile.html#enable_unknown_sql_function">SQLITE_ENABLE_UNKNOWN_SQL_FUNCTION</a> compile-time option and turned that
3409 option on by default when building the <a href="cli.html">command-line shell</a>.
3410 <p><b>Bug Fixes:</b>
3411 <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>
3412 when adding a column to a <a href="pragma.html#pragma_legacy_file_format">legacy file format</a> database. Ticket
3413 <a href="https://sqlite.org/src/info/f68bf68513a1c15f">f68bf68513a1c15f</a>
3414 <li>Fix a NULL-pointer dereference/crash that could occurs when a transitive WHERE
3415 clause references a non-existent collating sequence. Ticket
3416 <a href="https://sqlite.org/src/info/e8d439c77685eca6">e8d439c77685eca6</a>.
3417 <li>Improved the cost estimation for an index scan which includes a WHERE clause
3418 that can be partially or fully evaluated using columns in the index and without
3419 having to do a table lookup. This fixes a performance regression that occurred
3420 for some obscure queries following the ORDER BY LIMIT optimization introduced
3421 in <a href="#version_3_12_0">version 3.12.0</a>.
3422 <p><b>Hashes:</b>
3423 <li>SQLITE_SOURCE_ID: "2016-08-08 13:40:27 d5e98057028abcf7217d0d2b2e29bbbcdf09d6de"
3424 <li>SHA1 for sqlite3.c: 234a3275d03a287434ace3ccdf1afb208e6b0e92
3425
3426 </ol></p>
3427 <a name="version_3_13_0"></a>
3428 <h3>2016-05-18 (3.13.0)</h3><p><ol class='lessindent'>
3429 <li>Postpone I/O associated with TEMP files for as long as possible, with the hope
3430 that the I/O can ultimately be avoided completely.
3431 <li>Merged the <a href="sessionintro.html">session</a> extension into trunk.
3432 <li>Added the ".auth ON|OFF" command to the <a href="cli.html">command-line shell</a>.
3433 <li>Added the "--indent" option to the ".schema" and ".fullschema" commands of
3434 the <a href="cli.html">command-line shell</a>, to turn on pretty-printing.
3435 <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>
3436 and <a href="eqp.html">EXPLAIN QUERY PLAN</a> on each statement that is evaluated.
3437 <li>Improved unicode filename handling in the <a href="cli.html">command-line shell</a> on Windows.
3438 <li>Improved resistance against goofy query planner decisions caused by
3439 incomplete or incorrect modifications to the <a href="fileformat2.html#stat1tab">sqlite_stat1</a>
3440 table by the application.
3441 <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
3442 which allows the <a href="c3ref/load_extension.html">sqlite3_load_extension()</a> C-API to be enabled while keeping the
3443 <a href="lang_corefunc.html#load_extension">load_extension()</a> SQL function disabled for security.
3444 <li>Change the <a href="tempfiles.html#tempdir">temporary directory search algorithm</a> on Unix to allow directories with
3445 write and execute permission, but without read permission, to serve as temporary
3446 directories. Apply this same standard to the "." fallback directory.
3447 <p><b>Bug Fixes:</b>
3448 <li>Fix a problem with the multi-row one-pass DELETE optimization that was
3449 causing it to compute incorrect answers with a self-referential subquery in
3450 the WHERE clause. Fix for ticket
3451 <a href="https://sqlite.org/src/info/dc6ebeda9396087">dc6ebeda9396087</a>
3452 <li>Fix a possible segfault with DELETE when table is a <a href="rowidtable.html">rowid table</a> with an
3453 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a> and the WHERE clause contains a OR and
3454 the table has one or more indexes that are able to trigger the OR optimization,
3455 but none of the indexes reference any table columns other than the INTEGER PRIMARY KEY.
3456 Ticket <a href="https://sqlite.org/src/info/16c9801ceba49">16c9801ceba49</a>.
3457 <li>When checking for the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a>, verify that all terms
3458 of the compound inner SELECT are non-aggregate, not just the last term. Fix for ticket
3459 <a href="https://sqlite.org/src/info/f7f8c97e97597">f7f8c97e97597</a>.
3460 <li>Fix a locking race condition in Windows that can occur when two or more processes
3461 attempt to recover the same <a href="fileformat2.html#hotjrnl">hot journal</a> at the same time.
3462 <p><b>Hashes:</b>
3463 <li>SQLITE_SOURCE_ID: "2016-05-18 10:57:30 fc49f556e48970561d7ab6a2f24fdd7d9eb81ff2"
3464 <li>SHA1 for sqlite3.c: 9b9171b1e6ce7a980e6b714e9c0d9112657ad552
3465
3466 <p><b>Bug fixes backported into patch release 3.12.2 (2016-04-18):</b></p>
3467
3468 <li>Fix a backwards compatibility problem in version 3.12.0 and 3.12.1:
3469 Columns declared as <tt>"INTEGER" PRIMARY KEY</tt> (with quotes around
3470 the datatype keyword) were not being recognized as an
3471 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a>, which resulted in an incompatible database file.
3472 Ticket <a href="https://sqlite.org/src/info/7d7525cb01b68">7d7525cb01b68</a>
3473 <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>
3474 operation to miss rows if <a href="pragma.html#pragma_reverse_unordered_selects">PRAGMA reverse_unordered_selects</a> is turned on.
3475 Ticket <a href="https://sqlite.org/src/info/a306e56ff68b8fa5">a306e56ff68b8fa5</a>
3476 <li>Fix a bug in the code generator that can cause incorrect results if
3477 two or more <a href="vtab.html">virtual tables</a> are joined and the virtual table used in
3478 outer loop of the join has an <a href="lang_expr.html#in_op">IN operator</a> constraint.
3479 <li>Correctly interpret negative "PRAGMA cache_size" values when determining
3480 the cache size used for sorting large amounts of data.
3481
3482 <p><b>Bug fixes backported into patch release 3.12.1 (2016-04-08):</b></p>
3483
3484 <li>Fix a boundary condition error introduced by version 3.12.0
3485 that can result in a crash during heavy <a href="lang_savepoint.html">SAVEPOINT</a> usage.
3486 Ticket <a href="https://sqlite.org/src/info/7f7f8026eda38">7f7f8026eda38</a>.
3487 <li>Fix <a href="lang_createview.html">views</a> so that they inherit column datatypes from the
3488 table that they are defined against, when possible.
3489 <li>Fix the query planner so that IS and IS NULL operators are able
3490 to drive an index on a LEFT OUTER JOIN.
3491
3492 </ol></p>
3493 <a name="version_3_12_2"></a>
3494 <h3>2016-04-18 (3.12.2)</h3><p><ol class='lessindent'>
3495 <li>Fix a backwards compatibility problem in version 3.12.0 and 3.12.1:
3496 Columns declared as <tt>"INTEGER" PRIMARY KEY</tt> (with quotes around
3497 the datatype keyword) were not being recognized as an
3498 <a href="lang_createtable.html#rowid">INTEGER PRIMARY KEY</a>, which resulted in an incompatible database file.
3499 Ticket <a href="https://sqlite.org/src/info/7d7525cb01b68">7d7525cb01b68</a>
3500 <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>
3501 operation to miss rows if <a href="pragma.html#pragma_reverse_unordered_selects">PRAGMA reverse_unordered_selects</a> is turned on.
3502 Ticket <a href="https://sqlite.org/src/info/a306e56ff68b8fa5">a306e56ff68b8fa5</a>
3503 <li>Fix a bug in the code generator that can cause incorrect results if
3504 two or more <a href="vtab.html">virtual tables</a> are joined and the virtual table used in
3505 outer loop of the join has an <a href="lang_expr.html#in_op">IN operator</a> constraint.
3506 <li>Correctly interpret negative "PRAGMA cache_size" values when determining
3507 the cache size used for sorting large amounts of data.
3508 <p><b>Hashes:</b>
3509 <li>SQLITE_SOURCE_ID: "2016-04-18 17:30:31 92dc59fd5ad66f646666042eb04195e3a61a9e8e"
3510 <li>SHA1 for sqlite3.c: de5a5898ebd3a3477d4652db143746d008b24c83
3511
3512 </ol></p>
3513 <a name="version_3_12_1"></a>
3514 <h3>2016-04-08 (3.12.1)</h3><p><ol class='lessindent'>
3515 <li>Fix a boundary condition error introduced by version 3.12.0
3516 that can result in a crash during heavy <a href="lang_savepoint.html">SAVEPOINT</a> usage.
3517 Ticket <a href="https://sqlite.org/src/info/7f7f8026eda38">7f7f8026eda38</a>.
3518 <li>Fix <a href="lang_createview.html">views</a> so that they inherit column datatypes from the
3519 table that they are defined against, when possible.
3520 <li>Fix the query planner so that IS and IS NULL operators are able
3521 to drive an index on a LEFT OUTER JOIN.
3522 <p><b>Hashes:</b>
3523 <li>SQLITE_SOURCE_ID: "2016-04-08 15:09:49 fe7d3b75fe1bde41511b323925af8ae1b910bc4d"
3524 <li>SHA1 for sqlite3.c: ebb18593350779850e3e1a930eb84a70fca8c1d1
3525
3526 </ol></p>
3527 <a name="version_3_9_3"></a>
3528 <h3>2016-04-01 (3.9.3)</h3><p><ol class='lessindent'>
3529 <li>Backport a
3530 <a href="https://sqlite.org/src/info/c648539b52ca28c0">simple query planner optimization</a>
3531 that allows the IS operator
3532 to drive an index on a LEFT OUTER JOIN. No other changes from the
3533 <a href="#version_3_9_2">version 3.9.2</a> baseline.
3534
3535 </ol></p>
3536 <a name="version_3_12_0"></a>
3537 <h3>2016-03-29 (3.12.0)</h3><p><ol class='lessindent'>
3538 <p><b>Potentially Disruptive Change:</b>
3539 <li>The <a href="compile.html#default_page_size">SQLITE_DEFAULT_PAGE_SIZE</a> is increased from 1024 to 4096.
3540 The <a href="compile.html#default_cache_size">SQLITE_DEFAULT_CACHE_SIZE</a> is changed from 2000 to -2000 so
3541 the same amount of cache memory is used by default.
3542 See the application note on the
3543 <a href="pgszchng2016.html">version 3.12.0 page size change</a> for further information.
3544 <p><b>Performance enhancements:</b>
3545 <li>Enhancements to the <a href="lemon.html">Lemon parser generator</a>
3546 so that it creates a smaller and faster SQL parser.
3547 <li>Only create <a href="tempfiles.html#superjrnl">master journal</a> files if two or more attached databases are all
3548 modified, do not have <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> set to OFF, and
3549 do not have the <a href="pragma.html#pragma_journal_mode">journal_mode</a> set to OFF, MEMORY, or WAL.
3550 <li>Only create <a href="tempfiles.html#stmtjrnl">statement journal</a> files when their size exceeds a threshold.
3551 Otherwise the journal is held in memory and no I/O occurs. The threshold
3552 can be configured at compile-time using <a href="compile.html#stmtjrnl_spill">SQLITE_STMTJRNL_SPILL</a> or at
3553 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>).
3554 <li>The query planner is able to optimize IN operators on <a href="vtab.html">virtual tables</a>
3555 even if the <a href="vtab.html#xbestindex">xBestIndex</a> method does not set the
3556 sqlite3_index_constraint_usage.omit flag of the
3557 virtual table column to the left of the IN operator.
3558 <li>The query planner now does a better job of optimizing <a href="vtab.html">virtual table</a>
3559 accesses in a 3-way or higher join where constraints on the virtual
3560 table are split across two or more other tables of the join.
3561 <li>More efficient handling of <a href="appfunc.html">application-defined SQL functions</a>, especially
3562 in cases where the application defines hundreds or thousands of
3563 custom functions.
3564 <li>The query planner considers the LIMIT clause when estimating the cost
3565 of ORDER BY.
3566 <li>The configure script (on unix) automatically detects
3567 pread() and pwrite() and sets compile-time options to use those OS
3568 interfaces if they are available.
3569 <li>Reduce the amount of memory needed to hold the schema.
3570 <li>Other miscellaneous micro-optimizations for improved performance and reduced
3571 memory usage.
3572 <p><b>New Features:</b>
3573 <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>
3574 which allows the two-argument version of the <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> SQL function to
3575 be enabled or disabled at run-time.
3576 <li>Added the <a href="https://sqlite.org/src/artifact/d7cc99350?ln=403-443">sqlite3rbu_bp_progress()</a>
3577 interface to the <a href="rbu.html">RBU</a> extension.
3578 <li>The <a href="pragma.html#pragma_defer_foreign_keys">PRAGMA defer_foreign_keys=ON</a> statement now also disables
3579 <a href="foreignkeys.html#fk_actions">RESTRICT actions</a> on foreign key.
3580 <li>Added the <a href="c3ref/system_errno.html">sqlite3_system_errno()</a> interface.
3581 <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>
3582 compile-time options. The <a href="compile.html#default_synchronous">SQLITE_DEFAULT_SYNCHRONOUS</a> compile-time option
3583 replaces the <a href="compile.html#extra_durable">SQLITE_EXTRA_DURABLE</a> option, which is no longer supported.
3584 <li>Enhanced the ".stats" command in the <a href="cli.html">command-line shell</a> to show more
3585 information about I/O performance obtained from /proc, when available.
3586 <p><b>Bug fixes:</b>
3587 <li>Make sure the <a href="c3ref/get_auxdata.html">sqlite3_set_auxdata()</a> values from multiple triggers
3588 within a single statement do not interfere with one another.
3589 Ticket <a href="https://sqlite.org/src/info/dc9b1c91">dc9b1c91</a>.
3590 <li>Fix the code generator for expressions of the form "x IN (SELECT...)" where
3591 the SELECT statement on the RHS is a correlated subquery.
3592 Ticket <a href="https://sqlite.org/src/info/5e3c886796e5512e">5e3c886796e5512e</a>.
3593 <li>Fix a harmless TSAN warning associated with the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface.
3594 <p><b>Hashes:</b>
3595 <li>SQLITE_SOURCE_ID: "2016-03-29 10:14:15 e9bb4cf40f4971974a74468ef922bdee481c988b"
3596 <li>SHA1 for sqlite3.c: cba2be96d27cb51978cd4a200397a4ad178986eb
3597
3598 </ol></p>
3599 <a name="version_3_11_1"></a>
3600 <h3>2016-03-03 (3.11.1)</h3><p><ol class='lessindent'>
3601 <li>Improvements to the Makefiles and build scripts used by VisualStudio.
3602 <li>Fix an <a href="fts5.html">FTS5</a> issue in which the 'optimize' command could cause index corruption.
3603 <li>Fix a buffer overread that might occur if <a href="fts5.html">FTS5</a> is used to query a corrupt
3604 database file.
3605 <li>Increase the maximum "scope" value for the <a href="spellfix1.html">spellfix1</a> extension from 6 to 30.
3606 <li>SQLITE_SOURCE_ID: "2016-03-03 16:17:53 f047920ce16971e573bc6ec9a48b118c9de2b3a7"
3607 <li>SHA1 for sqlite3.c: 3da832fd2af36eaedb05d61a8f4c2bb9f3d54265
3608
3609 </ol></p>
3610 <a name="version_3_11_0"></a>
3611 <h3>2016-02-15 (3.11.0)</h3><p><ol class='lessindent'>
3612 <p><b>General improvements:</b>
3613 <li>Enhanced <a href="wal.html">WAL mode</a> so that it works efficiently with transactions that are
3614 larger than the <a href="pragma.html#pragma_cache_size">cache_size</a>.
3615 <li>Added the <a href="fts5.html#the_detail_option">FTS5 detail option</a>.
3616 <li>Added the "EXTRA" option to <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> that does a sync of the
3617 containing directory when a rollback journal is unlinked in DELETE mode,
3618 for better durability. The <a href="compile.html#extra_durable">SQLITE_EXTRA_DURABLE</a> compile-time option enables
3619 <a href="pragma.html#pragma_synchronous">PRAGMA synchronous=EXTRA</a> by default.
3620 <li>Enhanced the <a href="optoverview.html">query planner</a> so that it is able to use
3621 a <a href="queryplanner.html#covidx">covering index</a> as part of the <a href="optoverview.html#or_opt">OR optimization</a>.
3622 <li>Avoid recomputing <a href="lang_createtable.html#notnullconst">NOT NULL</a> and <a href="lang_createtable.html#ckconst">CHECK constraints</a> on unchanged
3623 columns in <a href="lang_update.html">UPDATE</a> statement.
3624 <li>Many micro-optimizations, resulting in a library that is
3625 faster than the previous release.
3626 <p><b>Enhancements to the <a href="cli.html">command-line shell</a>:</b>
3627 <li>By default, the shell is now in "auto-explain" mode. The output of
3628 <a href="lang_explain.html">EXPLAIN</a> commands is automatically formatted.
3629 <li>Added the ".vfslist" <a href="cli.html#dotcmd">dot-command</a>.
3630 <li>The <a href="compile.html#enable_explain_comments">SQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option is now turned
3631 on by default in the standard builds.
3632 <p><b>Enhancements to the <a href="tclsqlite.html">TCL Interface</a>:</b>
3633 <li>If a database connection is opened with the "-uri 1" option, then
3634 <a href="uri.html">URI filenames</a> are honored by the "backup" and "restore" commands.
3635 <li>Added the "-sourceid" option to the "sqlite3" command.
3636 <p><b>Makefile improvements:</b>
3637 <li>Improved pthreads detection in configure scripts.
3638 <li>Add the ability to do MSVC Windows builds from the <a href="download.html">amalgamation tarball</a>.
3639 <p><b>Bug fixes</b>
3640 <li>Fix an issue with incorrect sharing of VDBE temporary registers between
3641 co-routines that could cause incorrect query results in obscure cases. Ticket
3642 <a href="https://sqlite.org/src/info/d06a25c84454a">d06a25c84454a</a>.
3643 <li>Fix a problem in the <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a> interface that could
3644 cause problems for the <a href="json1.html">json1</a> extension under obscure circumstances.
3645 Fix for ticket
3646 <a href="https://sqlite.org/src/info/f45ac567eaa9f9">f45ac567eaa9f9</a>.
3647 <li>Escape control characters in JSON strings. Fix for ticket
3648 <a href="https://sqlite.org/src/info/ad2559db380abf8">ad2559db380abf8</a>.
3649 <li>Reenable the xCurrentTime and xGetLastError methods in the built-in
3650 unix <a href="vfs.html">VFSes</a> as long as <a href="compile.html#omit_deprecated">SQLITE_OMIT_DEPRECATED</a> is not defined.
3651 <p><b>Backwards Compatibility:</b>
3652 <li>Because of continuing security concerns, the two-argument version
3653 of the seldom-used and little-known <a href="fts3.html#f3tknzr">fts3_tokenizer()</a> function is
3654 disabled unless SQLite is compiled with the <a href="compile.html#enable_fts3_tokenizer">SQLITE_ENABLE_FTS3_TOKENIZER</a>.
3655 <p><b>Hashes:</b>
3656 <li>SQLITE_SOURCE_ID: "2016-02-15 17:29:24 3d862f207e3adc00f78066799ac5a8c282430a5f"
3657 <li>SHA1 for sqlite3.c: df01436c5fcfe72d1a95bc172158219796e1a90b
3658
3659
3660 </ol></p>
3661 <a name="version_3_10_2"></a>
3662 <h3>2016-01-20 (3.10.2)</h3><p><ol class='lessindent'>
3663 <p><b>Critical bug fix:</b>
3664 <li>Version 3.10.0 introduced a case-folding bug in the <a href="lang_expr.html#like">LIKE</a> operator which is fixed
3665 by this patch release. Ticket
3666 <a href="https://sqlite.org/src/info/80369eddd5c94">80369eddd5c94</a>.
3667 <p><b>Other miscellaneous bug fixes:</b>
3668 <li>Fix a use-after-free that can occur when SQLite is compiled with -DSQLITE_HAS_CODEC.
3669 <li>Fix the build so that it works with -DSQLITE_OMIT_WAL.
3670 <li>Fix the configure script for the amalgamation so that the --readline option works again
3671 on Raspberry PIs.
3672 <p><b>Hashes:</b>
3673 <li>SQLITE_SOURCE_ID: "2016-01-20 15:27:19 17efb4209f97fb4971656086b138599a91a75ff9"
3674 <li>SHA1 for sqlite3.c: f7088b19d97cd7a1c805ee95c696abd54f01de4f
3675
3676 </ol></p>
3677 <a name="version_3_10_1"></a>
3678 <h3>2016-01-14 (3.10.1)</h3><p><ol class='lessindent'>
3679 <p><b>New feature:</b>
3680 <li>Add the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntljournalpointer">SQLITE_FCNTL_JOURNAL_POINTER</a> file control.
3681 <p><b>Bug fix:</b>
3682 <li>Fix a 16-month-old bug in the query planner that could generate incorrect results
3683 when a scalar subquery attempts to use the <a href="queryplanner.html#partialsort">block sorting</a> optimization. Ticket
3684 <a href="https://sqlite.org/src/info/cb3aa0641d9a4">cb3aa0641d9a4</a>.
3685 <p><b>Hashes:</b>
3686 <li>SQLITE_SOURCE_ID: "2016-01-13 21:41:56 254419c36766225ca542ae873ed38255e3fb8588"
3687 <li>SHA1 for sqlite3.c: 1398ba8e4043550a533cdd0834bfdad1c9eab0f4
3688
3689 </ol></p>
3690 <a name="version_3_10_0"></a>
3691 <h3>2016-01-06 (3.10.0)</h3><p><ol class='lessindent'>
3692 <p><b>General improvements:</b>
3693 <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>.
3694 <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
3695 the <a href="vtab.html#xbestindex">sqlite3_module.xBestIndex</a> method.
3696 <li>Enhance the <a href="pragma.html#pragma_cache_spill">PRAGMA cache_spill</a> statement to accept a 32-bit integer
3697 parameter which is the threshold below which cache spilling is prohibited.
3698 <li>On unix, if a symlink to a database file is opened, then the corresponding
3699 journal files are based on the actual filename, not the symlink name.
3700 <li>Added the "--transaction" option to <a href="sqldiff.html">sqldiff</a>.
3701 <li>Added the <a href="c3ref/db_cacheflush.html">sqlite3_db_cacheflush()</a> interface.
3702 <li>Added the <a href="c3ref/strlike.html">sqlite3_strlike()</a> interface.
3703 <li>When using <a href="mmap.html">memory-mapped I/O</a> map the database file read-only so that stray pointers
3704 and/or array overruns in the application cannot accidentally modify the database file.
3705 <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>,
3706 and <a href="c3ref/snapshot_free.html">sqlite3_snapshot_free()</a> interfaces. These are subject to change or removal in
3707 a subsequent release.
3708 <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
3709 the date/time is known to already be in UTC. (This is not a compatibility break since
3710 the behavior has long been documented as "undefined" in that case.)
3711 <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
3712 <a href="json1.html#jmini">json</a> extension.
3713 <li>Added the <a href="compile.html#like_doesnt_match_blobs">SQLITE_LIKE_DOESNT_MATCH_BLOBS</a> compile-time option.
3714 <li>Many small performance optimizations.
3715 <p><b>Portability enhancements:</b>
3716 <li>Work around a sign-extension bug in the optimizer of the HP C compiler on HP/UX.
3717 <a href="https://sqlite.org/src/fdiff?sbs=1&v1=869c95b0fc73026d&v2=232c242a0ccb3d67">(details)</a>
3718 <p><b>Enhancements to the <a href="cli.html">command-line shell</a>:</b>
3719 <li>Added the ".changes ON|OFF" and ".vfsinfo" <a href="cli.html#dotcmd">dot-commands</a>.
3720 <li>Translate between MBCS and UTF8 when
3721 running in <a href="https://en.wikipedia.org/wiki/Cmd.exe">cmd.exe</a> on Windows.
3722 <p><b>Enhancements to makefiles:</b>
3723 <li>Added the --enable-editline and --enable-static-shell options
3724 to the various autoconf-generated configure scripts.
3725 <li>Omit all use of "awk" in the makefiles, to make building easier for MSVC users.
3726 <p><b>Important fixes:</b>
3727 <li>Fix inconsistent integer to floating-point comparison operations that
3728 could result in a corrupt index if the index is created on a table
3729 column that contains both large integers and floating point values
3730 of similar magnitude. Ticket
3731 <a href="https://sqlite.org/src/tktview?name=38a97a87a6">38a97a87a6</a>.
3732 <li>Fix an infinite-loop in the query planner that could occur on
3733 malformed <a href="lang_with.html">common table expressions</a>.
3734 <li>Various bug fixes in the <a href="sqldiff.html">sqldiff</a> tool.
3735 <p><b>Hashes:</b>
3736 <li>SQLITE_SOURCE_ID: "2016-01-06 11:01:07 fd0a50f0797d154fefff724624f00548b5320566"
3737 <li>SHA1 for sqlite3.c: b92ca988ebb6df02ac0c8f866dbf3256740408ac
3738
3739
3740 </ol></p>
3741 <a name="version_3_9_2"></a>
3742 <h3>2015-11-02 (3.9.2)</h3><p><ol class='lessindent'>
3743 <li>Fix the schema parser so that it interprets certain
3744 (obscure and ill-formed)
3745 CREATE TABLE statements the same as legacy. Fix for ticket
3746 <a href="https://sqlite.org/src/info/ac661962a2aeab3c331">ac661962a2aeab3c331</a>
3747 <li>Fix a query planner problem that could result in an incorrect
3748 answer due to the use of <a href="optoverview.html#autoindex">automatic indexing</a> in subqueries in
3749 the FROM clause of a correlated scalar subqueries. Fix for ticket
3750 <a href="https://sqlite.org/src/info/8a2adec1">8a2adec1</a>.
3751
3752 <li>SQLITE_SOURCE_ID: "2015-11-02 18:31:45 bda77dda9697c463c3d0704014d51627fceee328"
3753 <li>SHA1 for sqlite3.c: 1c4013876f50bbaa3e6f0f98e0147c76287684c1
3754
3755 </ol></p>
3756 <a name="version_3_9_1"></a>
3757 <h3>2015-10-16 (3.9.1)</h3><p><ol class='lessindent'>
3758 <li>Fix <a href="json1.html">the json1 extension</a> so that it does <u>not</u> recognize ASCII form-feed as a
3759 whitespace character, in order to comply with RFC-7159. Fix for ticket
3760 <a href="https://sqlite.org/src/info/57eec374ae1d0a1d">57eec374ae1d0a1d</a>
3761 <li>Add a few #ifdef and build script changes to address compilation issues that
3762 appeared after the 3.9.0 release.
3763
3764 <li>SQLITE_SOURCE_ID: ""2015-10-16 17:31:12 767c1727fec4ce11b83f25b3f1bfcfe68a2c8b02"
3765 <li>SHA1 for sqlite3.c: 5e6d1873a32d82c2cf8581f143649940cac8ae49
3766
3767 </ol></p>
3768 <a name="version_3_9_0"></a>
3769 <h3>2015-10-14 (3.9.0)</h3><p><ol class='lessindent'>
3770 <p><b>Policy Changes:</b>
3771 <li>The <a href="versionnumbers.html">version numbering conventions</a> for SQLite are revised to use the
3772 emerging standard of <a href="http://semver.org/">semantic versioning</a>.
3773 <p><b>New Features And Enhancements:</b>
3774 <li>Added <a href="json1.html">the json1 extension</a> module in the source tree, and in the <a href="amalgamation.html">amalgamation</a>.
3775 Enable support using the <a href="compile.html#enable_json1">SQLITE_ENABLE_JSON1</a> compile-time option.
3776 <li>Added <a href="fts5.html">Full Text Search version 5 (FTS5)</a> to the <a href="amalgamation.html">amalgamation</a>, enabled
3777 using <a href="compile.html#enable_fts5">SQLITE_ENABLE_FTS5</a>. FTS5 will be considered "experimental" (subject
3778 to incompatible changes) for at least one more release cycle.
3779 <li>The <a href="lang_createview.html">CREATE VIEW</a> statement now accepts an optional list of
3780 column names following the view name.
3781 <li>Added support for <a href="expridx.html">indexes on expressions</a>.
3782 <li>Added support for <a href="vtab.html#tabfunc2">table-valued functions</a> in the FROM clause of a
3783 <a href="lang_select.html">SELECT</a> statement.
3784 <li>Added support for <a href="vtab.html#epovtab">eponymous virtual tables</a>.
3785 <li>A <a href="lang_createview.html">VIEW</a> may now reference undefined tables and functions when
3786 initially created. Missing tables and functions are reported when
3787 the VIEW is used in a query.
3788 <li>Added the <a href="c3ref/value_subtype.html">sqlite3_value_subtype()</a> and <a href="c3ref/result_subtype.html">sqlite3_result_subtype()</a>
3789 interfaced (used by <a href="json1.html">the json1 extension</a>).
3790 <li>The query planner is now able to use <a href="partialindex.html">partial indexes</a> that contain
3791 AND-connected terms in the WHERE clause.
3792 <li>The sqlite3_analyzer.exe utility is updated to report the depth of
3793 each btree and to show the average fanout for indexes and
3794 WITHOUT ROWID tables.
3795 <li>Enhanced the <a href="dbstat.html">dbstat virtual table</a> so that it can be used as a
3796 <a href="vtab.html#tabfunc2">table-valued function</a> where the argument is the schema to be
3797 analyzed.
3798 <p><b>Other changes:</b>
3799 <li>The <a href="c3ref/aggregate_count.html">sqlite3_memory_alarm()</a> interface, which has been deprecated and
3800 undocumented for 8 years, is changed into a no-op.
3801 <p><b>Important fixes:</b>
3802 <li>Fixed a critical bug in the
3803 <a href="https://sqlite.org/see/doc/trunk/www/readme.wiki">SQLite Encryption Extension</a> that
3804 could cause the database to become unreadable and unrecoverable if a <a href="lang_vacuum.html">VACUUM</a> command
3805 changed the size of the encryption nonce.
3806 <li>Added a memory barrier in the implementation of
3807 <a href="c3ref/initialize.html">sqlite3_initialize()</a> to help ensure that it is thread-safe.
3808 <li>Fix the <a href="optoverview.html#or_opt">OR optimization</a> so that it always ignores subplans that
3809 do not use an index.
3810 <li>Do not apply the <a href="optoverview.html#pushdown">WHERE-clause push-down optimization</a> on terms that originate
3811 in the ON or USING clause of a LEFT JOIN. Fix for ticket
3812 <a href="https://sqlite.org/src/info/c2a19d81652f40568c">c2a19d81652f40568c</a>.
3813
3814 <li>SQLITE_SOURCE_ID: "2015-10-14 12:29:53 a721fc0d89495518fe5612e2e3bbc60befd2e90d"
3815 <li>SHA1 for sqlite3.c: c03e47e152ddb9c342b84ffb39448bf4a2bd4288
3816
3817 </ol></p>
3818 <a name="version_3_8_11_1"></a>
3819 <h3>2015-07-29 (3.8.11.1)</h3><p><ol class='lessindent'>
3820 <li>Restore an undocumented side-effect of <a href="pragma.html#pragma_cache_size">PRAGMA cache_size</a>: force
3821 the database schema to be parsed if the database has not been previously accessed.
3822 <li>Fix a long-standing problem in <a href="c3ref/changes.html">sqlite3_changes()</a> for <a href="withoutrowid.html">WITHOUT ROWID</a>
3823 tables that was reported a few hours after the 3.8.11 release.
3824 <li>SQLITE_SOURCE_ID: "2015-07-29 20:00:57 cf538e2783e468bbc25e7cb2a9ee64d3e0e80b2f"
3825 <li>SHA1 for sqlite3.c: 3be71d99121fe5b17f057011025bcf84e7cc6c84
3826
3827 </ol></p>
3828 <a name="version_3_8_11"></a>
3829 <h3>2015-07-27 (3.8.11)</h3><p><ol class='lessindent'>
3830 <li>Added the experimental <a href="rbu.html">RBU</a> extension. Note that this extension is experimental
3831 and subject to change in incompatible ways.
3832 <li>Added the experimental <a href="fts5.html">FTS5</a> extension. Note that this extension is experimental
3833 and subject to change in incompatible ways.
3834 <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.
3835 <li>Enhance the <a href="spellfix1.html">spellfix1</a> extension to support <a href="lang_conflict.html">ON CONFLICT</a> clauses.
3836 <li>The <a href="lang_expr.html#isisnot">IS operator</a> is now able to drive indexes.
3837 <li>Enhance the query planner to permit <a href="optoverview.html#autoindex">automatic indexing</a> on FROM-clause
3838 subqueries that are implemented by co-routine.
3839 <li>Disallow the use of "rowid" in <a href="lang_with.html">common table expressions</a>.
3840 <li>Added the <a href="pragma.html#pragma_cell_size_check">PRAGMA cell_size_check</a> command for better and earlier
3841 detection of database file corruption.
3842 <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>.
3843 <li>Improved fuzz-testing of database files, with fixes for problems found.
3844 <li>Add the fuzzcheck test program and automatically run this program
3845 using both SQL and database test cases on "make test".
3846 <li>Added the <a href="c3ref/c_mutex_fast.html">SQLITE_MUTEX_STATIC_VFS1</a> static mutex and use it in the
3847 Windows <a href="vfs.html">VFS</a>.
3848 <li>The <a href="c3ref/profile.html">sqlite3_profile()</a> callback is invoked (by <a href="c3ref/reset.html">sqlite3_reset()</a> or
3849 <a href="c3ref/finalize.html">sqlite3_finalize()</a>) for statements that did not run to completion.
3850 <li>Enhance the page cache so that it can preallocate a block of memory to
3851 use for the initial set page cache lines. Set the default preallocation
3852 to 100 pages. Yields about a 5% performance increase on common workloads.
3853 <li>Miscellaneous micro-optimizations result in 22.3% more work for the same
3854 number of CPU cycles relative to the previous release.
3855 SQLite now runs twice as fast as <a href="#version_3_8_0">version 3.8.0</a> and three times as
3856 fast as <a href="#version_3_3_9">version 3.3.9</a>.
3857 (Measured using
3858 <a href="http://valgrind.org/docs/manual/cg-manual.html">cachegrind</a> on the
3859 <a href="https://sqlite.org/src/artifact/83f6b3318f7ee">speedtest1.c</a> workload on
3860 Ubuntu 14.04 x64 with gcc 4.8.2 and -Os. Your performance may vary.)
3861 <li>Added the <a href="c3ref/result_blob.html">sqlite3_result_zeroblob64()</a> and <a href="c3ref/bind_blob.html">sqlite3_bind_zeroblob64()</a>
3862 interfaces.
3863 <p><b>Important bug fixes:</b>
3864 <li>Fix <a href="lang_createtable.html#createtabas">CREATE TABLE AS</a> so that columns of type TEXT never end up
3865 holding an INT value. Ticket
3866 <a href="https://sqlite.org/src/info/f2ad7de056ab1dc9200">f2ad7de056ab1dc9200</a>
3867 <li>Fix <a href="lang_createtable.html#createtabas">CREATE TABLE AS</a> so that it does not leave NULL entries in the
3868 <a href="schematab.html">sqlite_master table</a> if the SELECT statement on the right-hand side
3869 aborts with an error. Ticket
3870 <a href="https://sqlite.org/src/info/873cae2b6e25b">873cae2b6e25b</a>
3871 <li>Fix the <a href="optoverview.html#skipscan">skip-scan optimization</a> so that it works correctly when
3872 the <a href="optoverview.html#or_opt">OR optimization</a> is used on <a href="withoutrowid.html">WITHOUT ROWID</a> tables. Ticket
3873 <a href="https://sqlite.org/src/info/8fd39115d8f46">8fd39115d8f46</a>
3874 <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
3875 so that they actually do provide a 64-bit answer.
3876
3877 <p><b>Hashes:</b>
3878 <li>SQLITE_SOURCE_ID: "2015-07-27 13:49:41 b8e92227a469de677a66da62e4361f099c0b79d0"
3879 <li>SHA1 for sqlite3.c: 719f6891abcd9c459b5460b191d731cd12a3643e
3880
3881 </ol></p>
3882 <a name="version_3_8_10_2"></a>
3883 <h3>2015-05-20 (3.8.10.2)</h3><p><ol class='lessindent'>
3884 <li>Fix an index corruption issue introduced by <a href="#version_3_8_7">version 3.8.7</a>. An index
3885 with a TEXT key can be corrupted by an <a href="lang_insert.html">INSERT</a> into the corresponding
3886 table if the table has two nested triggers that convert the key value to INTEGER
3887 and back to TEXT again.
3888 Ticket <a href="https://sqlite.org/src/info/34cd55d68e0e6e7c9a0711aab81a2ee3c354b4c0">34cd55d68e0</a>
3889
3890 <li>SQLITE_SOURCE_ID: "2015-05-20 18:17:19 2ef4f3a5b1d1d0c4338f8243d40a2452cc1f7fe4"
3891 <li>SHA1 for sqlite3.c: 638abb77965332c956dbbd2c8e4248e84da4eb63
3892
3893 </ol></p>
3894 <a name="version_3_8_10_1"></a>
3895 <h3>2015-05-09 (3.8.10.1)</h3><p><ol class='lessindent'>
3896 <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>
3897 compile-time option.
3898 <li>Fix a harmless warning in the <a href="cli.html">command-line shell</a> on some versions of MSVC.
3899 <li>Fix minor issues with the <a href="dbstat.html">dbstat virtual table</a>.
3900
3901 <li>SQLITE_SOURCE_ID: "2015-05-09 12:14:55 05b4b1f2a937c06c90db70c09890038f6c98ec40"
3902 <li>SHA1 for sqlite3.c: 85e4e1c08c7df28ef61bb9759a0d466e0eefbaa2
3903
3904 </ol></p>
3905 <a name="version_3_8_10"></a>
3906 <h3>2015-05-07 (3.8.10)</h3><p><ol class='lessindent'>
3907 <li>Added the <a href="sqldiff.html">sqldiff.exe</a> utility program for computing the differences between two
3908 SQLite database files.
3909 <li>Added the <a href="fts3.html#matchinfo-y">matchinfo y flag</a> to the
3910 <a href="fts3.html#matchinfo">matchinfo()</a> function of <a href="fts3.html">FTS3</a>.
3911 <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>,
3912 <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>, and <a href="pragma.html#pragma_quick_check">PRAGMA quick_check</a>.
3913 <li>Fix many obscure problems discovered while <a href="testing.html#fuzztesting">SQL fuzzing</a>.
3914 <li>Identify all methods for important objects in the interface documentation.
3915 (<a href="c3ref/context.html">example</a>)
3916 <li>Made the <a href="testing.html#aflfuzz">American Fuzzy Lop fuzzer</a>
3917 a standard part of SQLite's <a href="testing.html">testing strategy</a>.
3918 <li>Add the ".binary" and ".limits" commands to the <a href="cli.html">command-line shell</a>.
3919 <li>Make the <a href="dbstat.html">dbstat virtual table</a> part of standard builds when
3920 compiled with the <a href="compile.html#enable_dbstat_vtab">SQLITE_ENABLE_DBSTAT_VTAB</a> option.
3921
3922 <li>SQLITE_SOURCE_ID: "2015-05-07 11:53:08 cf975957b9ae671f34bb65f049acf351e650d437"
3923 <li>SHA1 for sqlite3.c: 0b34f0de356a3f21b9dfc761f3b7821b6353c570
3924
3925 </ol></p>
3926 <a name="version_3_8_9"></a>
3927 <h3>2015-04-08 (3.8.9)</h3><p><ol class='lessindent'>
3928 <li>Add VxWorks-7 as an officially supported and tested platform.
3929 <li>Added the <a href="c3ref/status.html">sqlite3_status64()</a> interface.
3930 <li>Fix memory size tracking so that it works even if SQLite uses more
3931 than 2GiB of memory.
3932 <li>Added the <a href="pragma.html#pragma_index_xinfo">PRAGMA index_xinfo</a> command.
3933 <li>Fix a potential 32-bit integer overflow problem in the
3934 <a href="c3ref/blob_read.html">sqlite3_blob_read()</a> and <a href="c3ref/blob_write.html">sqlite3_blob_write()</a> interfaces.
3935 <li>Ensure that prepared statements automatically reset on extended
3936 error codes of SQLITE_BUSY and SQLITE_LOCKED even when compiled
3937 using <a href="compile.html#omit_autoreset">SQLITE_OMIT_AUTORESET</a>.
3938 <li>Correct miscounts in the sqlite3_analyzer.exe utility related
3939 to WITHOUT ROWID tables.
3940 <li>Added the ".dbinfo" command to the <a href="cli.html">command-line shell</a>.
3941 <li>Improve the performance of fts3/4 queries that use the OR operator
3942 and at least one auxiliary fts function.
3943 <li>Fix a bug in the fts3 snippet() function causing it to omit
3944 leading separator characters from snippets that begin with the
3945 first token in a column.
3946 <li>SQLITE_SOURCE_ID: "2015-04-08 12:16:33 8a8ffc862e96f57aa698f93de10dee28e69f6e09"
3947 <li>SHA1 for sqlite3.c: 49f1c3ae347e1327b5aaa6c7f76126bdf09c6f42
3948
3949 </ol></p>
3950 <a name="version_3_8_8_3"></a>
3951 <h3>2015-02-25 (3.8.8.3)</h3><p><ol class='lessindent'>
3952 <li>Fix a bug (ticket
3953 <a href="https://sqlite.org/src/info/2326c258d02ead33">2326c258d02ead33</a>) that can lead
3954 to incorrect results if the qualifying constraint of a <a href="partialindex.html">partial index</a> appears in the
3955 ON clause of a LEFT JOIN.
3956 <li>Added the ability to link against the
3957 "<a href="https://github.com/antirez/linenoise">linenoise</a>"
3958 command-line editing library in unix builds of the <a href="cli.html">command-line shell</a>.
3959
3960 <li>SQLITE_SOURCE_ID: "2015-02-25 13:29:11 9d6c1880fb75660bbabd693175579529785f8a6b"
3961 <li>SHA1 for sqlite3.c: 74ee38c8c6fd175ec85a47276dfcefe8a262827a
3962
3963 </ol></p>
3964 <a name="version_3_8_8_2"></a>
3965 <h3>2015-01-30 (3.8.8.2)</h3><p><ol class='lessindent'>
3966 <li>Enhance <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2(TRUNCATE)</a> interface so that it truncates the
3967 WAL file even if there is no checkpoint work to be done.
3968
3969 <li>SQLITE_SOURCE_ID: "2015-01-30 14:30:45 7757fc721220e136620a89c9d28247f28bbbc098"
3970 <li>SHA1 for sqlite3.c: 85ce79948116aa9a087ec345c9d2ce2c1d3cd8af
3971
3972
3973 </ol></p>
3974 <a name="version_3_8_8_1"></a>
3975 <h3>2015-01-20 (3.8.8.1)</h3><p><ol class='lessindent'>
3976 <li>Fix a bug in the sorting logic, present since version 3.8.4, that can cause
3977 output to appear in the wrong order on queries that contains an ORDER BY clause,
3978 a LIMIT clause, and that have approximately 60 or more columns in the result set.
3979 Ticket <a href="https://sqlite.org/src/tktview?name=f97c4637102a3ae72b79">f97c4637102a3ae72b79</a>.
3980
3981 <li>SQLITE_SOURCE_ID: "2015-01-20 16:51:25 f73337e3e289915a76ca96e7a05a1a8d4e890d55"
3982 <li>SHA1 for sqlite3.c: 33987fb50dcc09f1429a653d6b47672f5a96f19e
3983
3984 </ol></p>
3985 <a name="version_3_8_8"></a>
3986 <h3>2015-01-16 (3.8.8)</h3><p><ol class='lessindent'>
3987 <p><b>New Features:</b>
3988 <li>Added the <a href="pragma.html#pragma_data_version">PRAGMA data_version</a> command that can be used to determine if
3989 a database file has been modified by another process.
3990 <li>Added the <a href="c3ref/c_checkpoint_full.html">SQLITE_CHECKPOINT_TRUNCATE</a> option to the
3991 <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2()</a> interface, with corresponding enhancements
3992 to <a href="pragma.html#pragma_wal_checkpoint">PRAGMA wal_checkpoint</a>.
3993 <li>Added the <a href="c3ref/stmt_scanstatus.html">sqlite3_stmt_scanstatus()</a> interface, available only when
3994 compiled with <a href="compile.html#enable_stmt_scanstatus">SQLITE_ENABLE_STMT_SCANSTATUS</a>.
3995 <li>The <a href="c3ref/table_column_metadata.html">sqlite3_table_column_metadata()</a> is enhanced to work correctly on
3996 <a href="withoutrowid.html">WITHOUT ROWID</a> tables and to check for the existence of a
3997 a table if the column name parameter is NULL. The interface is now
3998 also included in the build by default, without requiring
3999 the <a href="compile.html#enable_column_metadata">SQLITE_ENABLE_COLUMN_METADATA</a> compile-time option.
4000 <li>Added the <a href="compile.html#enable_api_armor">SQLITE_ENABLE_API_ARMOR</a> compile-time option.
4001 <li>Added the <a href="compile.html#reverse_unordered_selects">SQLITE_REVERSE_UNORDERED_SELECTS</a> compile-time option.
4002 <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>
4003 start-time option.
4004 <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>
4005 which makes it easier for applications to determine the appropriate
4006 amount of memory for use with <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a>.
4007 <li>The number of rows in a <a href="lang_select.html#values">VALUES clause</a> is no longer limited by
4008 <a href="c3ref/c_limit_attached.html#sqlitelimitcompoundselect">SQLITE_LIMIT_COMPOUND_SELECT</a>.
4009 <li>Added the <a href="https://sqlite.org/src/artifact/f971962e92ebb8b0">eval.c</a>
4010 <a href="loadext.html">loadable extension</a> that implements an eval() SQL function that will recursively
4011 evaluate SQL.
4012 <p><b>Performance Enhancements:</b>
4013 <li>Reduce the number of memcpy() operations involved in balancing a b-tree,
4014 for 3.2% overall performance boost.
4015 <li>Improvements to cost estimates for the <a href="optoverview.html#skipscan">skip-scan optimization</a>.
4016 <li>The <a href="optoverview.html#autoindex">automatic indexing</a> optimization is now capable of generating
4017 a <a href="partialindex.html">partial index</a> if that is appropriate.
4018 <p><b>Bug fixes:</b>
4019 <li>Ensure durability following a power loss with
4020 "PRAGMA journal_mode=TRUNCATE" by calling fsync() right after truncating
4021 the journal file.
4022 <li>The query planner now recognizes that any column in the right-hand
4023 table of a LEFT JOIN can be NULL, even if that column has a NOT NULL
4024 constraint. Avoid trying to optimize out NULL tests in those cases.
4025 Fix for ticket
4026 <a href="https://sqlite.org/src/info/6f2222d550f5b0ee7ed">6f2222d550f5b0ee7ed</a>.
4027 <li>Make sure ORDER BY puts rows in ascending order even if the DISTINCT
4028 operator is implemented using a descending index. Fix for ticket
4029 <a href="https://sqlite.org/src/info/c5ea805691bfc4204b1cb9e">c5ea805691bfc4204b1cb9e</a>.
4030 <li>Fix data races that might occur under stress when running with many threads
4031 in <a href="sharedcache.html">shared cache mode</a> where some of the threads are opening and
4032 closing connections.
4033 <li>Fix obscure crash bugs found by
4034 <a href="http://lcamtuf.coredump.cx/afl/">american fuzzy lop</a>. Ticket
4035 <a href="https://sqlite.org/src/info/a59ae93ee990a55">a59ae93ee990a55</a>.
4036 <li>Work around a GCC optimizer bug (for gcc 4.2.1 on MacOS 10.7) that caused the
4037 <a href="rtree.html">R-Tree extension</a> to compute incorrect results when compiled with -O3.
4038 <p><b>Other changes:</b>
4039 <li>Disable the use of the strchrnul() C-library routine unless it is
4040 specifically enabled using the -DHAVE_STRCHRNULL compile-time option.
4041 <li>Improvements to the effectiveness and accuracy of the
4042 <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.
4043
4044 <li>SQLITE_SOURCE_ID: "2015-01-16 12:08:06 7d68a42face3ab14ed88407d4331872f5b243fdf"
4045 <li>SHA1 for sqlite3.c: 91aea4cc722371d58aae3d22e94d2a4165276905
4046
4047 </ol></p>
4048 <a name="version_3_8_7_4"></a>
4049 <h3>2014-12-09 (3.8.7.4)</h3><p><ol class='lessindent'>
4050 <li>Bug fix: Add in a mutex that was omitted from the previous release.
4051 <li>SQLITE_SOURCE_ID: "2014-12-09 01:34:36 f66f7a17b78ba617acde90fc810107f34f1a1f2e"
4052 <li>SHA1 for sqlite3.c: 0a56693a3c24aa3217098afab1b6fecccdedfd23
4053
4054 </ol></p>
4055 <a name="version_3_8_7_3"></a>
4056 <h3>2014-12-05 (3.8.7.3)</h3><p><ol class='lessindent'>
4057 <li>Bug fix: Ensure the cached KeyInfo objects (an internal abstraction not visible to the
4058 application) do not go stale when operating in <a href="sharedcache.html">shared cache mode</a> and frequently closing
4059 and reopening some database connections while leaving other database connections on the
4060 same shared cache open continuously. Ticket
4061 <a href="https://sqlite.org/src/info/e4a18565a36884b00edf">e4a18565a36884b00edf</a>.
4062 <li>Bug fix: Recognize that any column in the right-hand table of a LEFT JOIN can be
4063 NULL even if the column has a NOT NULL constraint. Do not apply optimizations that
4064 assume the column is never NULL. Ticket
4065 <a href="https://sqlite.org/src/info/6f2222d550f5b0ee7ed">6f2222d550f5b0ee7ed</a>.
4066
4067 <li>SQLITE_SOURCE_ID: "2014-12-05 22:29:24 647e77e853e81a5effeb4c33477910400a67ba86"
4068 <li>SHA1 for sqlite3.c: 3ad2f5ba3a4a3e3e51a1dac9fda9224b359f0261
4069
4070 </ol></p>
4071 <a name="version_3_8_7_2"></a>
4072 <h3>2014-11-18 (3.8.7.2)</h3><p><ol class='lessindent'>
4073 <li>Enhance the <a href="lang_transaction.html">ROLLBACK</a> command so that pending queries are allowed to continue as long
4074 as the schema is unchanged. Formerly, a ROLLBACK would cause all pending queries to
4075 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
4076 if the ROLLBACK modifies the schema.
4077 <li>Bug fix: Make sure that NULL results from OP_Column are fully and completely NULL and
4078 do not have the MEM_Ephem bit set.
4079 Ticket <a href="https://sqlite.org/src/info/094d39a4c95ee4">094d39a4c95ee4</a>.
4080 <li>Bug fix: The %c format in sqlite3_mprintf() is able to handle precisions greater than 70.
4081 <li>Bug fix: Do not automatically remove the DISTINCT keyword from a SELECT that forms
4082 the right-hand side of an IN operator since it is necessary if the SELECT also
4083 contains a LIMIT.
4084 Ticket <a href="https://sqlite.org/src/info/db87229497">db87229497</a>.
4085
4086 <li>SQLITE_SOURCE_ID: "2014-11-18 20:57:56 2ab564bf9655b7c7b97ab85cafc8a48329b27f93"
4087 <li>SHA1 for sqlite3.c: b2a68d5783f48dba6a8cb50d8bf69b238c5ec53a
4088
4089 </ol></p>
4090 <a name="version_3_8_7_1"></a>
4091 <h3>2014-10-29 (3.8.7.1)</h3><p><ol class='lessindent'>
4092 <li>In <a href="pragma.html#pragma_journal_mode">PRAGMA journal_mode=TRUNCATE</a> mode, call fsync() immediately after truncating
4093 the journal file to ensure that the transaction is durable across a power loss.
4094 <li>Fix an assertion fault that can occur when updating the NULL value of a field
4095 at the end of a table that was added using <a href="lang_altertable.html">ALTER TABLE ADD COLUMN</a>.
4096 <li>Do not attempt to use the strchrnul() function from the standard C library unless
4097 the HAVE_STRCHRNULL compile-time option is set.
4098 <li>Fix a couple of problems associated with running an UPDATE or DELETE on a
4099 <a href="lang_createview.html">VIEW</a> with a <a href="lang_createtable.html#rowid">rowid</a> in the WHERE clause.
4100
4101 <li>SQLITE_SOURCE_ID: "2014-10-29 13:59:56 3b7b72c4685aa5cf5e675c2c47ebec10d9704221"
4102 <li>SHA1 for sqlite3.c: 2d25bd1a73dc40f538f3a81c28e6efa5999bdf0c
4103
4104 </ol></p>
4105 <a name="version_3_8_7"></a>
4106 <h3>2014-10-17 (3.8.7)</h3><p><ol class='lessindent'>
4107 <p><b>Performance Enhancements:</b>
4108 <li>Many micro-optimizations result in 20.3% more work for the same number
4109 of CPU cycles relative to the previous release.
4110 The cumulative performance increase since <a href="#version_3_8_0">version 3.8.0</a> is 61%.
4111 (Measured using
4112 <a href="http://valgrind.org/docs/manual/cg-manual.html">cachegrind</a> on the
4113 <a href="https://sqlite.org/src/artifact/83f6b3318f7ee">speedtest1.c</a> workload on
4114 Ubuntu 13.10 x64 with gcc 4.8.1 and -Os. Your performance may vary.)
4115 <li>The sorter can use auxiliary helper threads to increase real-time response.
4116 This feature is off by default and may be
4117 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>
4118 compile-time option.
4119 <li>Enhance the <a href="optoverview.html#skipscan">skip-scan</a> optimization so that it is able to skip index terms that
4120 occur in the middle of the index, not just as the left-hand side of the index.
4121 <li>Improved optimization of <a href="lang_expr.html#castexpr">CAST</a> operators.
4122 <li>Various improvements in how the query planner uses <a href="fileformat2.html#stat4tab">sqlite_stat4</a>
4123 information to estimate plan costs.
4124 <p><b>New Features:</b>
4125 <li>Added new interfaces with 64-bit length parameters:
4126 <a href="c3ref/free.html">sqlite3_malloc64()</a>,
4127 <a href="c3ref/free.html">sqlite3_realloc64()</a>,
4128 <a href="c3ref/bind_blob.html">sqlite3_bind_blob64()</a>,
4129 <a href="c3ref/result_blob.html">sqlite3_result_blob64()</a>,
4130 <a href="c3ref/bind_blob.html">sqlite3_bind_text64()</a>, and
4131 <a href="c3ref/result_blob.html">sqlite3_result_text64()</a>.
4132 <li>Added the new interface <a href="c3ref/free.html">sqlite3_msize()</a> that returns the size of a memory allocation
4133 obtained from <a href="c3ref/free.html">sqlite3_malloc64()</a> and its variants.
4134 <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
4135 <a href="pragma.html#pragma_threads">PRAGMA threads</a> command for configuring the number of available worker threads.
4136 <li>The <a href="spellfix1.html">spellfix1</a> extension allows the application to optionally specify the rowid for
4137 each INSERT.
4138 <li>Added the <a href="https://sqlite.org/src/doc/trunk/ext/userauth/user-auth.txt">User Authentication</a>
4139 extension.
4140 <p><b>Bug Fixes:</b>
4141 <li>Fix a bug in the <a href="partialindex.html">partial index</a> implementation that might result in an incorrect
4142 answer if a partial index is used in a subquery or in a <a href="lang_createview.html">view</a>.
4143 Ticket <a href="https://sqlite.org/src/info/98d973b8f5">98d973b8f5</a>.
4144 <li>Fix a query planner bug that might cause a table to be scanned in the wrong direction
4145 (thus reversing the order of output) when a DESC index is used to implement the ORDER BY
4146 clause on a query that has an identical GROUP BY clause.
4147 Ticket <a href="https://sqlite.org/src/info/ba7cbfaedc7e6">ba7cbfaedc7e6</a>.
4148 <li>Fix a bug in <a href="c3ref/profile.html">sqlite3_trace()</a> that was causing it to sometimes fail to print
4149 an SQL statement if that statement needed to be re-prepared.
4150 Ticket <a href="https://sqlite.org/src/info/11d5aa455e0d98f3c1e6a08">11d5aa455e0d98f3c1e6a08</a>
4151 <li>Fix a faulty assert() statement.
4152 Ticket <a href="https://sqlite.org/src/info/369d57fb8e5ccdff06f1">369d57fb8e5ccdff06f1</a>
4153 <p><b>Test, Debug, and Analysis Changes:</b>
4154 <li>Show ASCII-art abstract syntax tree diagrams using the ".selecttrace"
4155 and ".wheretrace" commands in the
4156 <a href="cli.html">command-line shell</a> when compiled with <a href="compile.html#debug">SQLITE_DEBUG</a>, SQLITE_ENABLE_SELECTTRACE,
4157 and SQLITE_ENABLE_WHERETRACE. Also provide the sqlite3TreeViewExpr() and
4158 sqlite3TreeViewSelect() entry points that can be invoked from with the
4159 debugger to show the parse tree when stopped at a breakpoint.
4160 <li>Drop support for SQLITE_ENABLE_TREE_EXPLAIN. The SELECTTRACE mechanism provides
4161 more useful diagnostics information.
4162 <li>New options to the <a href="cli.html">command-line shell</a> for configuring auxiliary
4163 memory usage: --pagecache, --lookaside, and --scratch.
4164 <li>SQLITE_SOURCE_ID: "2014-10-17 11:24:17 e4ab094f8afce0817f4074e823fabe59fc29ebb4"
4165 <li>SHA1 for sqlite3.c: 56dcf5e931a9e1fa12fc2d600cd91d3bf9b639cd
4166
4167
4168 </ol></p>
4169 <a name="version_3_8_6"></a>
4170 <h3>2014-08-15 (3.8.6)</h3><p><ol class='lessindent'>
4171 <li>Added support for <a href="lang_expr.html#hexint">hexadecimal integer literals</a> in the SQL parser.
4172 (Ex: 0x123abc)
4173 <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
4174 <a href="lang_createtable.html#notnullconst">NOT NULL</a> constraint violations.
4175 <li>Increase the maximum value of <a href="limits.html#max_attached">SQLITE_MAX_ATTACHED</a> from 62 to 125.
4176 <li>Increase the timeout in <a href="wal.html">WAL mode</a> before issuing an <a href="rescode.html#protocol">SQLITE_PROTOCOL</a>
4177 error from 1 second to 10 seconds.
4178 <li>Added the <a href="lang_corefunc.html#likely">likely(X)</a> SQL function.
4179 <li>The <a href="fts3.html#unicode61">unicode61</a> tokenizer is now included in <a href="fts3.html#fts4">FTS4</a> by default.
4180 <li>Trigger automatic reprepares on all prepared statements when <a href="lang_analyze.html">ANALYZE</a> is
4181 run.
4182 <li>Added a new
4183 <a href="loadext.html">loadable extension</a> source code file to the source tree:
4184 <a href="https://sqlite.org/src/finfo?name=ext/misc/fileio.c">fileio.c</a>
4185 <li>Add extension functions <a href="cli.html#fileio">readfile(X) and writefile(X,Y)</a>
4186 (using code copy/pasted from fileio.c in the previous bullet) to the
4187 <a href="cli.html">command-line shell</a>.
4188 <li>Added the <a href="cli.html#fullschema">.fullschema</a> dot-command to the <a href="cli.html">command-line shell</a>.
4189 <p><b>Performance Enhancements:</b>
4190 <li>Deactivate the <a href="lang_select.html#distinct">DISTINCT</a> keyword on subqueries on the
4191 right-hand side of the <a href="lang_expr.html#in_op">IN operator</a>.
4192 <li>Add the capability of evaluating an <a href="lang_expr.html#in_op">IN operator</a> as a sequence
4193 of comparisons as an alternative to using a table lookup. Use the sequence
4194 of comparisons implementation in circumstances where it is likely to be
4195 faster, such as when the right-hand side of the IN operator
4196 is small and/or changes frequently.
4197 <li>The query planner now uses <a href="fileformat2.html#stat4tab">sqlite_stat4</a> information (created by <a href="lang_analyze.html">ANALYZE</a>)
4198 to help determine if the <a href="optoverview.html#skipscan">skip-scan optimization</a> is appropriate.
4199 <li>Ensure that the query planner never tries to use a self-made transient
4200 index in place of a schema-defined index.
4201 <li>Other minor tweaks to improve the quality of <a href="opcode.html">VDBE</a> code.
4202 <p><b>Bug Fixes:</b>
4203 <li>Fix a bug in <a href="lang_createindex.html">CREATE UNIQUE INDEX</a>, introduced when <a href="withoutrowid.html">WITHOUT ROWID</a>
4204 support added in version 3.8.2, that allows a non-unique NOT NULL column to be
4205 given a UNIQUE index.
4206 Ticket <a href="https://sqlite.org/src/info/9a6daf340df99ba93c">9a6daf340df99ba93c</a>
4207 <li>Fix a bug in <a href="rtree.html">R-Tree extension</a>, introduced in the previous release,
4208 that can cause an
4209 incorrect results for queries that use the rowid of the R-Tree on the
4210 left-hand side of an <a href="lang_expr.html#in_op">IN operator</a>.
4211 Ticket <a href="https://sqlite.org/src/info/d2889096e7bdeac6">d2889096e7bdeac6</a>.
4212 <li>Fix the <a href="c3ref/stmt_busy.html">sqlite3_stmt_busy()</a> interface so that it gives the correct answer
4213 for <a href="lang_transaction.html">ROLLBACK</a> statements that have been stepped but never reset.
4214 <li>Fix a bug in that would cause a null pointer to be dereferenced
4215 if a column with a DEFAULT that is an aggregate function tried to usee its
4216 DEFAULT.
4217 Ticket <a href="https://sqlite.org/src/info/3a88d85f36704eebe1">3a88d85f36704eebe1</a>
4218 <li>CSV output from the <a href="cli.html">command-line shell</a> now always uses CRLF for the
4219 row separator and avoids inserting CR in front of NLs contained in
4220 data.
4221 <li>Fix a <a href="datatype3.html#affinity">column affinity</a> problem with the <a href="lang_expr.html#in_op">IN operator</a>.
4222 Ticket <a href="https://sqlite.org/src/info/9a8b09f8e6">9a8b09f8e6</a>.
4223 <li>Fix the <a href="lang_analyze.html">ANALYZE</a> command so that it adds correct samples for
4224 <a href="withoutrowid.html">WITHOUT ROWID</a> tables in the <a href="fileformat2.html#stat4tab">sqlite_stat4</a> table.
4225 Ticket <a href="https://sqlite.org/src/info/b2fa5424e6fcb15">b2fa5424e6fcb15</a>.
4226
4227 <li>SQLITE_SOURCE_ID: "2014-08-15 11:46:33 9491ba7d738528f168657adb43a198238abde19e"
4228 <li>SHA1 for sqlite3.c: 72c64f05cd9babb9c0f9b3c82536d83be7804b1c
4229
4230 </ol></p>
4231 <a name="version_3_8_5"></a>
4232 <h3>2014-06-04 (3.8.5)</h3><p><ol class='lessindent'>
4233 <li>Added support for <a href="queryplanner.html#partialsort">partial sorting by index</a>.
4234 <li>Enhance the query planner so that it always prefers an index that uses a superset of
4235 WHERE clause terms relative to some other index.
4236 <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
4237 for a full-text index that is subject to a large number of updates.
4238 <li>Added the <a href="rtree.html#xquery">sqlite3_rtree_query_callback()</a> interface to <a href="rtree.html">R-Tree extension</a>
4239 <li>Added new <a href="uri.html#coreqp">URI query parameters</a> "nolock" and "immutable".
4240 <li>Use less memory by not remembering CHECK constraints on read-only
4241 database connections.
4242 <li>Enable the <a href="queryplanner.html#or_in_where">OR optimization</a> for <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
4243 <li>Render expressions of the form "x IN (?)" (with a single value in
4244 the list on the right-hand side of the IN operator) as if they where "x==?",
4245 Similarly optimize "x NOT IN (?)"
4246 <li>Add the ".system" and ".once" commands to the <a href="cli.html">command-line shell</a>.
4247 <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
4248 the xDeviceCharacteristics method of a <a href="vfs.html">VFS</a>.
4249 <li>Added the <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_BYTEORDER</a> test control.
4250 <p><b>Bug Fixes:</b>
4251 <li>OFFSET clause ignored on queries without a FROM clause.
4252 Ticket <a href="https://sqlite.org/src/info/07d6a0453d">07d6a0453d</a>
4253 <li>Assertion fault on queries involving expressions of the form
4254 "x IN (?)". Ticket <a href="https://sqlite.org/src/info/e39d032577">e39d032577</a>.
4255 <li>Incorrect column datatype reported.
4256 Ticket <a href="https://sqlite.org/src/info/a8a0d2996a">a8a0d2996a</a>
4257 <li>Duplicate row returned on a query against a table with more than
4258 16 indices, each on a separate column, and all used via OR-connected constraints.
4259 Ticket <a href="https://sqlite.org/src/info/10fb063b11">10fb063b11</a>
4260 <li>Partial index causes assertion fault on UPDATE OR REPLACE.
4261 Ticket <a href="https://sqlite.org/src/info/2ea3e9fe63">2ea3e9fe63</a>
4262 <li>Crash when calling undocumented SQL function sqlite_rename_parent()
4263 with NULL parameters.
4264 Ticket <a href="https://sqlite.org/src/info/264b970c4379fd">264b970c43</a>
4265 <li>ORDER BY ignored if the query has an identical GROUP BY.
4266 Ticket <a href="https://sqlite.org/src/info/b75a9ca6b0499">b75a9ca6b0</a>
4267 <li>The group_concat(x,'') SQL function returns NULL instead of an empty string
4268 when all inputs are empty strings.
4269 Ticket <a href="https://sqlite.org/src/info/55746f9e65f85">55746f9e65</a>
4270 <li>Fix a bug in the VDBE code generator that caused crashes when
4271 doing an INSERT INTO ... SELECT statement where the number of columns
4272 being inserted is larger than the number of columns in the destination
4273 table.
4274 Ticket <a href="https://sqlite.org/src/info/e9654505cfda9">e9654505cfd</a>
4275 <li>Fix a problem in CSV import in the <a href="cli.html">command-line shell</a>
4276 where if the leftmost field of the first row
4277 in the CSV file was both zero bytes in size and unquoted no data would
4278 be imported.
4279 <li>Fix a problem in FTS4 where the left-most column that contained
4280 the <a href="fts3.html#fts4notindexed">notindexed column</a> name as a prefix
4281 was not indexed rather than the column whose name matched exactly.
4282 <li>Fix the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface so that it returns true if
4283 the database is read-only due to the file format write version number
4284 being too large.
4285
4286 <li>SQLITE_SOURCE_ID: "2014-06-04 14:06:34 b1ed4f2a34ba66c29b130f8d13e9092758019212"
4287 <li>SHA1 for sqlite3.c: 7bc194957238c61b1a47f301270286be5bc5208c
4288
4289 </ol></p>
4290 <a name="version_3_8_4_3"></a>
4291 <h3>2014-04-03 (3.8.4.3)</h3><p><ol class='lessindent'>
4292 <li>Add a
4293 <a href="https://sqlite.org/src/fdiff?sbs=1&v1=7d539cedb1c&v2=ebad891b7494d&smhdr">one-character fix</a>
4294 for a problem that might cause incorrect query results on a query that mixes
4295 DISTINCT, GROUP BY in a subquery, and ORDER BY.
4296 <a href="https://sqlite.org/src/info/98825a79ce1456863">Ticket 98825a79ce14</a>.
4297 <li>SQLITE_SOURCE_ID: "2014-04-03 16:53:12 a611fa96c4a848614efe899130359c9f6fb889c3"
4298 <li>SHA1 for sqlite3.c: 310a1faeb9332a3cd8d1f53b4a2e055abf537bdc
4299
4300 </ol></p>
4301 <a name="version_3_8_4_2"></a>
4302 <h3>2014-03-26 (3.8.4.2)</h3><p><ol class='lessindent'>
4303 <li>Fix a potential buffer overread that could result when trying to search a
4304 corrupt database file.
4305 <li>SQLITE_SOURCE_ID: "2014-03-26 18:51:19 02ea166372bdb2ef9d8dfbb05e78a97609673a8e"
4306 <li>SHA1 for sqlite3.c: 4685ca86c2ea0649ed9f59a500013e90b3fe6d03
4307
4308 </ol></p>
4309 <a name="version_3_8_4_1"></a>
4310 <h3>2014-03-11 (3.8.4.1)</h3><p><ol class='lessindent'>
4311 <li>Work around a C-preprocessor macro conflict that breaks the build for some
4312 configurations with Microsoft Visual Studio.
4313 <li>When computing the cost of the <a href="optoverview.html#skipscan">skip-scan optimization</a>, take into account the
4314 fact that multiple seeks are required.
4315 <li>SQLITE_SOURCE_ID: "2014-03-11 15:27:36 018d317b1257ce68a92908b05c9c7cf1494050d0"
4316 <li>SHA1 for sqlite3.c: d5cd1535053a50aa8633725e3595740b33709ac5
4317
4318 </ol></p>
4319 <a name="version_3_8_4"></a>
4320 <h3>2014-03-10 (3.8.4)</h3><p><ol class='lessindent'>
4321 <li>Code optimization and refactoring for improved performance.
4322 <li>Add the ".clone" and ".save" commands to the command-line shell.
4323 <li>Update the banner on the command-line shell to alert novice users when they
4324 are using an ephemeral in-memory database.
4325 <li>Fix editline support in the command-line shell.
4326 <li>Add support for coverage testing of VDBE programs using the
4327 <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_VDBE_COVERAGE</a> verb of <a href="c3ref/test_control.html">sqlite3_test_control()</a>.
4328 <li>Update the _FILE_OFFSET_BITS macro so that builds work again on QNX.
4329 <li>Change the datatype of SrcList.nSrc from type u8 to type int to work around
4330 an issue in the C compiler on AIX.
4331 <li>Get extension loading working on Cygwin.
4332 <li>Bug fix: Fix the <a href="lang_corefunc.html#char">char()</a> SQL function so that it returns an empty string
4333 rather than an "out of memory" error when called with zero arguments.
4334 <li>Bug fix: DISTINCT now recognizes that a <a href="lang_corefunc.html#zeroblob">zeroblob</a> and a blob of all
4335 0x00 bytes are the same thing.
4336 <a href="https://sqlite.org/src/info/fccbde530a">Ticket &#91;fccbde530a&#93;</a>
4337 <li>Bug fix: Compute the correct answer for queries that contain an IS NOT NULL
4338 term in the WHERE clause and also contain an OR term in the WHERE clause and
4339 are compiled with <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a>.
4340 <a href="https://sqlite.org/src/info/4c86b126f2">Ticket &#91;4c86b126f2&#93;</a>
4341 <li>Bug fix: Make sure "rowid" columns are correctly resolved in joins between
4342 normal tables and WITHOUT ROWID tables.
4343 <a href="https://sqlite.org/src/info/c34d0557f7">Ticket &#91;c34d0557f7&#93;</a>
4344 <li>Bug fix: Make sure the same temporary registers are not used in concurrent
4345 co-routines used to implement compound SELECT statements containing ORDER
4346 BY clauses, as such use can lead to incorrect answers.
4347 <a href="https://sqlite.org/src/info/8c63ff0eca">Ticket &#91;8c63ff0eca&#93;</a>
4348 <li>Bug fix: Ensure that "ORDER BY random()" clauses do not get optimized out.
4349 <a href="https://sqlite.org/src/info/65bdeb9739">Ticket &#91;65bdeb9739&#93;</a>
4350 <li>Bug fix: Repair a name-resolution error that can occur in sub-select statements
4351 contained within a TRIGGER.
4352 <a href="https://sqlite.org/src/info/4ef7e3cfca">Ticket &#91;4ef7e3cfca&#93;</a>
4353 <li>Bug fix: Fix column default values expressions of the form
4354 "DEFAULT(-(-9223372036854775808))" so that they work correctly, initializing
4355 the column to a floating point value approximately equal to
4356 +9223372036854775808.0.
4357 <li>SQLITE_SOURCE_ID: "2014-03-10 12:20:37 530a1ee7dc2435f80960ce4710a3c2d2bfaaccc5"
4358 <li>SHA1 for sqlite3.c: b0c22e5f15f5ba2afd017ecd990ea507918afe1c
4359
4360 </ol></p>
4361 <a name="version_3_8_3_1"></a>
4362 <h3>2014-02-11 (3.8.3.1)</h3><p><ol class='lessindent'>
4363 <li>Fix a bug (ticket <a href="https://sqlite.org/src/info/4c86b126f2">4c86b126f2</a>)
4364 that causes rows to go missing on some queries with OR clauses and
4365 IS NOT NULL operators in the WHERE clause, when the <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a>
4366 or <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a> compile-time options are used.
4367 <li>Fix a harmless compiler warning that was causing problems for VS2013.
4368 <li>SQLITE_SOURCE_ID: "2014-02-11 14:52:19 ea3317a4803d71d88183b29f1d3086f46d68a00e"
4369 <li>SHA1 for sqlite3.c: 990004ef2d0eec6a339e4caa562423897fe02bf0
4370
4371 </ol></p>
4372 <a name="version_3_8_3"></a>
4373 <h3>2014-02-03 (3.8.3)</h3><p><ol class='lessindent'>
4374 <li>Added support for <a href="lang_with.html">common table expressions</a> and the <a href="lang_with.html">WITH clause</a>.
4375 <li>Added the <a href="lang_corefunc.html#printf">printf()</a> SQL function.
4376 <li>Added <a href="c3ref/c_deterministic.html#sqlitedeterministic">SQLITE_DETERMINISTIC</a> as an optional bit in the 4th argument to the
4377 <a href="c3ref/create_function.html">sqlite3_create_function()</a> and related interfaces, providing applications with
4378 the ability to create new functions that can be factored out of inner loops when
4379 they have constant arguments.
4380 <li>Add <a href="rescode.html#readonly_dbmoved">SQLITE_READONLY_DBMOVED</a> error code, returned at the beginning of a
4381 transaction, to indicate that the underlying database file has been renamed
4382 or moved out from under SQLite.
4383 <li>Allow arbitrary expressions, including function calls and subqueries, in
4384 the filename argument to <a href="lang_attach.html">ATTACH</a>.
4385 <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.
4386 <li>Reseed the PRNG used by <a href="c3ref/randomness.html">sqlite3_randomness(N,P)</a> when invoked with N==0.
4387 Automatically reseed after a fork() on unix.
4388 <li>Enhance the <a href="spellfix1.html">spellfix1</a> virtual table so that it can search efficiently by rowid.
4389 <li>Performance enhancements.
4390 <li>Improvements to the comments in the VDBE byte-code display when running <a href="lang_explain.html">EXPLAIN</a>.
4391 <li>Add the "%token_class" directive to <a href="lemon.html">Lemon parser generator</a> and use it to simplify
4392 the grammar.
4393 <li>Change the <a href="lemon.html">Lemon</a> source code to avoid calling C-library functions that OpenBSD
4394 considers dangerous. (Ex: sprintf).
4395 <li>Bug fix: In the <a href="cli.html">command-line shell</a> CSV import feature, do not end a field
4396 when an escaped double-quote occurs at the end of a CRLN line.
4397 <li>SQLITE_SOURCE_ID:
4398 "2014-02-03 13:52:03 e816dd924619db5f766de6df74ea2194f3e3b538"
4399 <li>SHA1 for sqlite3.c: 98a07da78f71b0275e8d9c510486877adc31dbee
4400
4401 </ol></p>
4402 <a name="version_3_8_2"></a>
4403 <h3>2013-12-06 (3.8.2)</h3><p><ol class='lessindent'>
4404 <li>Changed the defined behavior for the <a href="lang_expr.html#castexpr">CAST expression</a> when floating point values
4405 greater than +9223372036854775807 are cast into integers so that the
4406 result is the largest possible integer, +9223372036854775807, instead of
4407 the smallest possible integer, -9223372036854775808. After this change,
4408 CAST(9223372036854775809.0 as INT) yields +9223372036854775807 instead
4409 of -9223372036854775808.
4410 <b><big>&larr;</big>&nbsp;Potentially Incompatible Change!</b>
4411 <li>Added support for <a href="withoutrowid.html">WITHOUT ROWID</a> tables.
4412 <li>Added the <a href="optoverview.html#skipscan">skip-scan optimization</a> to the query planner.
4413 <li>Extended the <a href="vtab.html">virtual table</a> interface, and in particular the
4414 <a href="c3ref/index_info.html">sqlite3_index_info</a> object to allow a virtual table to report its estimate
4415 on the number of rows that will be returned by a query.
4416 <li>Update the <a href="rtree.html">R-Tree extension</a> to make use of the enhanced virtual table
4417 interface.
4418 <li>Add the <a href="compile.html#enable_explain_comments">SQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option.
4419 <li>Enhanced the comments that are inserted into <a href="lang_explain.html">EXPLAIN</a> output when the
4420 <a href="compile.html#enable_explain_comments">SQLITE_ENABLE_EXPLAIN_COMMENTS</a> compile-time option is enabled.
4421 <li>Performance enhancements in the VDBE, especially to the OP_Column opcode.
4422 <li>Factor constant subexpressions in inner loops out to the initialization code
4423 in prepared statements.
4424 <li>Enhanced the ".explain" output formatting of the <a href="cli.html">command-line shell</a>
4425 so that loops are indented to better show the structure of the program.
4426 <li>Enhanced the ".timer" feature of the <a href="cli.html">command-line shell</a> so that it
4427 shows wall-clock time in addition to system and user times.
4428
4429 <li>SQLITE_SOURCE_ID:
4430 "2013-12-06 14:53:30 27392118af4c38c5203a04b8013e1afdb1cebd0d"
4431 <li>SHA1 for sqlite3.c: 6422c7d69866f5ea3db0968f67ee596e7114544e
4432
4433 </ol></p>
4434 <a name="version_3_8_1"></a>
4435 <h3>2013-10-17 (3.8.1)</h3><p><ol class='lessindent'>
4436 <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
4437 as hints to the query planner.
4438 <li>Enhancements to the query planner:
4439 <ol type='a'>
4440 <li>Take into account the fact WHERE clause terms that cannot be used with indices
4441 still probably reduce the number of output rows.
4442 <li>Estimate the sizes of table and index rows and use the smallest applicable B-Tree
4443 for full scans and "count(*)" operations.
4444 </ol>
4445 <li>Added the <a href="pragma.html#pragma_soft_heap_limit">soft_heap_limit pragma</a>.
4446 <li>Added support for <a href="compile.html#enable_stat4">SQLITE_ENABLE_STAT4</a>
4447 <li>Added support for "sz=NNN" parameters at the end of
4448 <a href="fileformat2.html#stat1tab">sqlite_stat1.stat</a> fields
4449 used to specify the average length in bytes for table and index rows.
4450 <li>Avoid running foreign-key constraint checks on an UPDATE if none of the
4451 modified columns are associated with foreign keys.
4452 <li>Added the <a href="compile.html#minimum_file_descriptor">SQLITE_MINIMUM_FILE_DESCRIPTOR</a> compile-time option
4453 <li>Added the win32-longpath VFS on windows, permitting filenames up to 32K
4454 characters in length.
4455 <li>The <a href="lang_datefunc.html">Date And Time Functions</a> are enhanced so that the current time
4456 (ex: julianday('now')) is always the same for multiple function invocations
4457 within the same <a href="c3ref/step.html">sqlite3_step()</a> call.
4458 <li>Add the "totype.c" extension, implementing the tointeger() and toreal()
4459 SQL functions.
4460 <li><a href="fts3.html#fts4">FTS4</a> queries are better able to make use of docid<$limit constraints to
4461 limit the amount of I/O required.
4462 <li>Added the hidden <a href="fts3.html#f4alid">fts4aux languageid column</a> to the <a href="fts3.html#fts4aux">fts4aux</a> virtual table.
4463 <li>The <a href="lang_vacuum.html">VACUUM</a> command packs the database about 1% tighter.
4464 <li>The sqlite3_analyzer utility program is updated to provide better descriptions
4465 and to compute a more accurate estimate for "Non-sequential pages"
4466 <li>Refactor the implementation of PRAGMA statements to improve parsing performance.
4467 <li>The directory used to hold temporary files on unix can now be set using
4468 the SQLITE_TMPDIR environment variable, which takes precedence over the
4469 TMPDIR environment variable. The <a href="c3ref/temp_directory.html">sqlite3_temp_directory</a> global variable
4470 still has higher precedence than both environment variables, however.
4471 <li>Added the <a href="pragma.html#pragma_stats">PRAGMA stats</a> statement.
4472 <li><b>Bug fix:</b> Return the correct answer for "SELECT count(*) FROM table" even if
4473 there is a <a href="partialindex.html">partial index</a> on the table. Ticket
4474 <a href="https://sqlite.org/src/info/a5c8ed66ca">a5c8ed66ca</a>.
4475
4476 <li>SQLITE_SOURCE_ID:
4477 "2013-10-17 12:57:35 c78be6d786c19073b3a6730dfe3fb1be54f5657a"
4478 <li>SHA1 for sqlite3.c: 0a54d76566728c2ba96292a49b138e4f69a7c391
4479
4480 </ol></p>
4481 <a name="version_3_8_0_2"></a>
4482 <h3>2013-09-03 (3.8.0.2)</h3><p><ol class='lessindent'>
4483 <li>Fix a bug in the optimization that attempts to omit unused LEFT JOINs
4484
4485 <li>SQLITE_SOURCE_ID:
4486 "2013-09-03 17:11:13 7dd4968f235d6e1ca9547cda9cf3bd570e1609ef"
4487 <li>SHA1 for sqlite3.c: 6cf0c7b46975a87a0dc3fba69c229a7de61b0c21
4488
4489 </ol></p>
4490 <a name="version_3_8_0_1"></a>
4491 <h3>2013-08-29 (3.8.0.1)</h3><p><ol class='lessindent'>
4492 <li>Fix an off-by-one error that caused quoted empty string at the end of a
4493 CRLF-terminated line of CSV input to be misread by the command-line shell.
4494 <li>Fix a query planner bug involving a LEFT JOIN with a BETWEEN or LIKE/GLOB
4495 constraint and then another INNER JOIN to the right that involves an OR constraint.
4496 <li>Fix a query planner bug that could result in a segfault when querying tables
4497 with a UNIQUE or PRIMARY KEY constraint with more than four columns.
4498
4499 <li>SQLITE_SOURCE_ID:
4500 "2013-08-29 17:35:01 352362bc01660edfbda08179d60f09e2038a2f49"
4501 <li>SHA1 for sqlite3.c: 99906bf63e6cef63d6f3d7f8526ac4a70e76559e
4502
4503 </ol></p>
4504 <a name="version_3_8_0"></a>
4505 <h3>2013-08-26 (3.8.0)</h3><p><ol class='lessindent'>
4506 <li>Add support for <a href="partialindex.html">partial indexes</a></li>
4507 <li>Cut-over to the <a href="queryplanner-ng.html">next generation query planner</a> for faster and better query plans.
4508 <li>The <a href="eqp.html">EXPLAIN QUERY PLAN</a> output no longer shows an estimate of the number of
4509 rows generated by each loop in a join.
4510 <li>Added the <a href="fts3.html#fts4notindexed">FTS4 notindexed option</a>, allowing non-indexed columns in an FTS4 table.
4511 <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>.
4512 <li>Added the <a href="pragma.html#pragma_cache_spill">cache_spill pragma</a>.
4513 <li>Added the <a href="pragma.html#pragma_query_only">query_only pragma</a>.
4514 <li>Added the <a href="pragma.html#pragma_defer_foreign_keys">defer_foreign_keys pragma</a> and the
4515 <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.
4516 <li>Added the "percentile()" function as a <a href="loadext.html">loadable extension</a> in the ext/misc
4517 subdirectory of the source tree.
4518 <li>Added the <a href="compile.html#allow_uri_authority">SQLITE_ALLOW_URI_AUTHORITY</a> compile-time option.
4519 <li>Add the <a href="c3ref/cancel_auto_extension.html">sqlite3_cancel_auto_extension(X)</a> interface.
4520 <li>A running SELECT statement that lacks a FROM clause (or any other statement that
4521 never reads or writes from any database file) will not prevent a read
4522 transaction from closing.
4523 <li>Add the <a href="compile.html#default_automatic_index">SQLITE_DEFAULT_AUTOMATIC_INDEX</a> compile-time option. Setting this option
4524 to 0 disables automatic indices by default.
4525 <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
4526 the query planner uses an automatic index.
4527 <li>Added the <a href="compile.html#fts3_max_expr_depth">SQLITE_FTS3_MAX_EXPR_DEPTH</a> compile-time option.
4528 <li>Added an optional 5th parameter defining the collating sequence to the
4529 next_char() extension SQL function.
4530 <li>The <a href="rescode.html#busy_snapshot">SQLITE_BUSY_SNAPSHOT</a> extended error code is returned in WAL mode when
4531 a read transaction cannot be upgraded to a write transaction because the read is
4532 on an older snapshot.
4533 <li>Enhancements to the sqlite3_analyzer utility program to provide size
4534 information separately for each individual index of a table, in addition to
4535 the aggregate size.
4536 <li>Allow read transactions to be freely opened and closed by SQL statements run
4537 from within the implementation of <a href="appfunc.html">application-defined SQL functions</a> if the
4538 function is called by a SELECT statement that does not access any database table.
4539 <li>Disable the use of posix_fallocate() on all (unix) systems unless the
4540 HAVE_POSIX_FALLOCATE compile-time option is used.
4541 <li>Update the ".import" command in the <a href="cli.html">command-line shell</a> to support multi-line
4542 fields and correct RFC-4180 quoting and to issue warning and/or error messages
4543 if the input text is not strictly RFC-4180 compliant.
4544 <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
4545 as identifier symbols.
4546 <li>Bug fix: Bare identifiers in ORDER BY clauses bind more tightly to output column
4547 names, but identifiers in expressions bind more tightly to input column names.
4548 Identifiers in GROUP BY clauses always prefer output column names, however.
4549 <li>Bug fixes: Multiple problems in the legacy query optimizer were fixed by the
4550 move to <a href="queryplanner-ng.html">NGQP</a>.
4551
4552 <li>SQLITE_SOURCE_ID:
4553 "2013-08-26 04:50:08 f64cd21e2e23ed7cff48f7dafa5e76adde9321c2"
4554 <li>SHA1 for sqlite3.c: b7347f4b4c2a840e6ba12040093d606bd16ea21e
4555
4556 </ol></p>
4557 <a name="version_3_7_17"></a>
4558 <h3>2013-05-20 (3.7.17)</h3><p><ol class='lessindent'>
4559 <li>Add support for <a href="mmap.html">memory-mapped I/O</a>.
4560 <li>Add the <a href="c3ref/strglob.html">sqlite3_strglob()</a> convenience interface.
4561 <li>Assigned the integer at offset 68 in the <a href="fileformat2.html#database_header">database header</a> as the
4562 <a href="fileformat2.html#appid">Application ID</a> for when SQLite is used as an <a href="appfileformat.html">application file-format</a>.
4563 Added the <a href="pragma.html#pragma_application_id">PRAGMA application_id</a> command to query and set the Application ID.
4564 <li>Report rollback recovery in the <a href="errlog.html">error log</a> as SQLITE_NOTICE_RECOVER_ROLLBACK.
4565 Change the error log code for WAL recover from
4566 SQLITE_OK to SQLITE_NOTICE_RECOVER_WAL.
4567 <li>Report the risky uses of <a href="howtocorrupt.html#unlink">unlinked database files</a> and
4568 <a href="howtocorrupt.html#alias">database filename aliasing</a> as SQLITE_WARNING messages in the <a href="errlog.html">error log</a>.
4569 <li>Added the <a href="compile.html#trace_size_limit">SQLITE_TRACE_SIZE_LIMIT</a> compile-time option.
4570 <li>Increase the default value of <a href="compile.html#max_schema_retry">SQLITE_MAX_SCHEMA_RETRY</a> to 50 and make sure
4571 that it is honored in every place that a schema change might force a statement
4572 retry.
4573 <li>Add a new test harness called "mptester" used to verify correct operation
4574 when multiple processes are using the same database file at the same time.
4575 <li>Enhance the <a href="loadext.html">extension loading</a> mechanism to be more flexible (while
4576 still maintaining backwards compatibility) in two ways:
4577 <ol>
4578 <li>If the default entry point "sqlite3_extension_init" is not present in
4579 the loadable extension, also try an entry point "sqlite3_X_init" where
4580 "X" is based on the shared library filename. This allows every extension
4581 to have a different entry point, which allows them to be statically linked
4582 with no code changes.
4583 <li>The shared library filename passed to <a href="c3ref/load_extension.html">sqlite3_load_extension()</a> may
4584 omit the filename suffix, and an appropriate architecture-dependent
4585 suffix (".so", ".dylib", or ".dll") will be added automatically.
4586 </ol>
4587 <li>Added many new loadable extensions to the source tree, including
4588 amatch, closure, fuzzer, ieee754, nextchar, regexp, spellfix,
4589 and wholenumber. See header comments on each extension source file
4590 for further information about what that extension does.
4591 <li>Enhance <a href="fts3.html">FTS3</a> to avoid using excess stack space when there are a huge
4592 number of terms on the right-hand side of the MATCH operator. A side-effect
4593 of this change is that the MATCH operator can only accommodate 12 NEAR
4594 operators at a time.
4595 <li>Enhance the <a href="fts3.html#fts4aux">fts4aux</a> virtual table so that it can be a TEMP table.
4596 <li>Added the <a href="fts3.html#fts3tok">fts3tokenize virtual table</a> to the <a href="fts3.html">full-text search</a> logic.
4597 <li>Query planner enhancement: Use the transitive property of constraints
4598 to move constraints into the outer loops of a join whenever possible,
4599 thereby reducing the amount of work that needs to occur in inner loops.
4600 <li>Discontinue the use of posix_fallocate() on unix, as it does not work on all
4601 filesystems.
4602 <li>Improved tracing and debugging facilities in the Windows <a href="vfs.html">VFS</a>.
4603 <li>Bug fix: Fix a potential <b>database corruption bug</b>
4604 in <a href="sharedcache.html">shared cache mode</a> when one
4605 <a href="c3ref/sqlite3.html">database connection</a> is closed while another is in the middle of a write
4606 transaction.
4607 Ticket <a href="https://sqlite.org/src/info/e636a050b7">e636a050b7</a>
4608 <li>Bug fix:
4609 Only consider AS names from the result set as candidates for resolving
4610 identifiers in the WHERE clause if there are no other matches. In the
4611 ORDER BY clause, AS names take priority over any column names.
4612 Ticket <a href="https://sqlite.org/src/info/2500cdb9be05">2500cdb9be05</a>
4613 <li>Bug fix: Do not allow a virtual table to cancel the ORDER BY clause unless
4614 all outer loops are guaranteed to return no more than one row result.
4615 Ticket <a href="https://sqlite.org/src/info/ba82a4a41eac1">ba82a4a41eac1</a>.
4616 <li>Bug fix: Do not suppress the ORDER BY clause on a virtual table query if
4617 an IN constraint is used.
4618 Ticket <a href="https://sqlite.org/src/info/f69b96e3076e">f69b96e3076e</a>.
4619 <li>Bug fix: The <a href="cli.html">command-line shell</a> gives an exit code of 0 when terminated
4620 using the ".quit" command.
4621 <li>Bug fix: Make sure <a href="pragma.html#syntax">PRAGMA</a> statements appear in <a href="c3ref/profile.html">sqlite3_trace()</a> output.
4622 <li>Bug fix: When a <a href="lang_select.html#compound">compound query</a> that uses an ORDER BY clause
4623 with a <a href="lang_expr.html#collateop">COLLATE operator</a>, make sure that the sorting occurs
4624 according to the specified collation and that the comparisons associate with
4625 the compound query use the native collation. Ticket
4626 <a href="https://sqlite.org/src/info/6709574d2a8d8">6709574d2a8d8</a>.
4627 <li>Bug fix: Makes sure the <a href="c3ref/set_authorizer.html">authorizer</a> callback gets
4628 a valid pointer to the string "ROWID" for the column-name parameter when
4629 doing an <a href="lang_update.html">UPDATE</a> that changes the rowid. Ticket
4630 <a href="https://sqlite.org/src/info/0eb70d77cb05bb2272">0eb70d77cb05bb2272</a>
4631 <li>Bug fix: Do not move WHERE clause terms inside OR expressions that are
4632 contained within an ON clause of a LEFT JOIN. Ticket
4633 <a href="https://sqlite.org/src/info/f2369304e4">f2369304e4</a>
4634 <li>Bug fix: Make sure an error is always reported when attempting to preform
4635 an operation that requires a <a href="datatype3.html#collation">collating sequence</a> that is missing.
4636 Ticket <a href="https://sqlite.org/src/info/0fc59f908b">0fc59f908b</a>
4637
4638 <li>SQLITE_SOURCE_ID:
4639 "2013-05-20 00:56:22 118a3b35693b134d56ebd780123b7fd6f1497668"
4640 <li>SHA1 for sqlite3.c: 246987605d0503c700a08b9ee99a6b5d67454aab
4641
4642 </ol></p>
4643 <a name="version_3_7_16_2"></a>
4644 <h3>2013-04-12 (3.7.16.2)</h3><p><ol class='lessindent'>
4645 <li>Fix a bug (present since version 3.7.13) that could result in database corruption
4646 on windows if two or more processes try to access the same database file at the
4647 same time and immediately after third process crashed in the middle of committing
4648 to that same file. See ticket
4649 <a href="https://sqlite.org/src/info/7ff3120e4f">7ff3120e4f</a> for further
4650 information.
4651
4652 <li>SQLITE_SOURCE_ID:
4653 "2013-04-12 11:52:43 cbea02d93865ce0e06789db95fd9168ebac970c7"
4654 <li>SHA1 for sqlite3.c: d466b54789dff4fb0238b9232e74896deaefab94
4655
4656 </ol></p>
4657 <a name="version_3_7_16_1"></a>
4658 <h3>2013-03-29 (3.7.16.1)</h3><p><ol class='lessindent'>
4659 <li>Fix for a bug in the ORDER BY optimizer that was introduced in
4660 <a href="#version_3_7_15">version 3.7.15</a> which would sometimes optimize out the sorting step
4661 when in fact the sort was required.
4662 Ticket <a href="https://sqlite.org/src/info/a179fe7465">a179fe7465</a>
4663 <li>Fix a long-standing bug in the <a href="lang_expr.html#castexpr">CAST expression</a> that would recognize UTF16
4664 characters as digits even if their most-significant-byte was not zero.
4665 Ticket <a href="https://sqlite.org/src/info/689137afb6da41">689137afb6da41</a>.
4666 <li>Fix a bug in the NEAR operator of <a href="fts3.html">FTS3</a> when applied to subfields.
4667 Ticket <a href="https://sqlite.org/src/info/38b1ae018f">38b1ae018f</a>.
4668 <li>Fix a long-standing bug in the storage engine that would (very rarely)
4669 cause a spurious report of an SQLITE_CORRUPT error but which was otherwise
4670 harmless.
4671 Ticket <a href="https://sqlite.org/src/info/6bfb98dfc0c">6bfb98dfc0c</a>.
4672 <li>The SQLITE_OMIT_MERGE_SORT option has been removed. The merge sorter is
4673 now a required component of SQLite.
4674 <li>Fixed lots of spelling errors in the source-code comments
4675 <li>SQLITE_SOURCE_ID:
4676 "2013-03-29 13:44:34 527231bc67285f01fb18d4451b28f61da3c4e39d"
4677 <li>SHA1 for sqlite3.c: 7a91ceceac9bcf47ceb8219126276e5518f7ff5a
4678
4679 </ol></p>
4680 <a name="version_3_7_16"></a>
4681 <h3>2013-03-18 (3.7.16)</h3><p><ol class='lessindent'>
4682 <li>Added the <a href="pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a> command.
4683 <li>Added new extended error codes for all SQLITE_CONSTRAINT errors
4684 <li>Added the SQLITE_READONLY_ROLLBACK extended error code for when a database
4685 cannot be opened because it needs rollback recovery but is read-only.
4686 <li>Added SQL functions <a href="lang_corefunc.html#unicode">unicode(A)</a> and <a href="lang_corefunc.html#char">char(X1,...,XN)</a>.
4687 <li>Performance improvements for <a href="pragma.html#pragma_incremental_vacuum">PRAGMA incremental_vacuum</a>, especially in
4688 cases where the number of free pages is greater than what will fit on a
4689 single trunk page of the freelist.
4690 <li>Improved optimization of queries containing aggregate min() or max().
4691 <li>Enhance virtual tables so that they can potentially use an index when
4692 the WHERE clause contains the IN operator.
4693 <li>Allow indices to be used for sorting even if prior terms of the index
4694 are constrained by IN operators in the WHERE clause.
4695 <li>Enhance the <a href="pragma.html#pragma_table_info">PRAGMA table_info</a> command so that the "pk" column is an
4696 increasing integer to show the order of columns in the primary key.
4697 <li>Enhance the query optimizer to exploit transitive join constraints.
4698 <li>Performance improvements in the query optimizer.
4699 <li>Allow the error message from <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> to be longer than
4700 20000 bytes.
4701 <li>Improved name resolution for deeply nested queries.
4702 <li>Added the test_regexp.c module as a demonstration of how to implement
4703 the REGEXP operator.
4704 <li>Improved error messages in the <a href="rtree.html">RTREE</a> extension.
4705 <li>Enhance the <a href="cli.html">command-line shell</a> so that a non-zero argument to the
4706 ".exit" command causes the shell to exit immediately without cleanly
4707 shutting down the database connection.
4708 <li>Improved error messages for invalid boolean arguments to dot-commands
4709 in the <a href="cli.html">command-line shell</a>.
4710 <li>Improved error messages for "foreign key mismatch" showing the names of
4711 the two tables involved.
4712 <li>Remove all uses of umask() in the unix VFS.
4713 <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.
4714 <li>Change to use strncmp() or the equivalent instead of memcmp() when
4715 comparing non-zero-terminated strings.
4716 <li>Update cygwin interfaces to omit deprecated API calls.
4717 <li>Enhance the <a href="spellfix1.html">spellfix1</a> extension so that the edit distance cost table can
4718 be changed at runtime by inserting a string like 'edit_cost_table=TABLE'
4719 into the "command" field.
4720
4721 <li>Bug fix: repair a long-standing problem that could cause incorrect query
4722 results in a 3-way or larger join that compared INTEGER fields against TEXT
4723 fields in two or more places.
4724 Ticket <a href="https://sqlite.org/src/info/fc7bd6358f">fc7bd6358f</a>
4725 <li>Bug fix: Issue an error message if the 16-bit reference counter on a
4726 view overflows due to an overly complex query.
4727 <li>Bug fix: Avoid leaking memory on LIMIT and OFFSET clauses in deeply
4728 nested UNION ALL queries.
4729 <li>Bug fix: Make sure the schema is up-to-date prior to running pragmas
4730 table_info, index_list, index_info, and foreign_key_list.
4731
4732 <li>SQLITE_SOURCE_ID:
4733 "2013-03-18 11:39:23 66d5f2b76750f3520eb7a495f6247206758f5b90"
4734 <li>SHA1 for sqlite3.c: 7308ab891ca1b2ebc596025cfe4dc36f1ee89cf6
4735
4736 </ol></p>
4737 <a name="version_3_7_15_2"></a>
4738 <h3>2013-01-09 (3.7.15.2)</h3><p><ol class='lessindent'>
4739 <li>Fix a bug, introduced in <a href="#version_3_7_15">version 3.7.15</a>, that causes an ORDER BY clause
4740 to be optimized out of a three-way join when the ORDER BY is actually
4741 required.
4742 Ticket <a href="https://sqlite.org/src/info/598f5f7596b055">598f5f7596b055</a>
4743
4744 <li>SQLITE_SOURCE_ID:
4745 "2013-01-09 11:53:05 c0e09560d26f0a6456be9dd3447f5311eb4f238f"
4746 <li>SHA1 for sqlite3.c: 5741f47d1bc38aa0a8c38f09e60a5fe0031f272d
4747
4748 </ol></p>
4749 <a name="version_3_7_15_1"></a>
4750 <h3>2012-12-19 (3.7.15.1)</h3><p><ol class='lessindent'>
4751 <li>Fix a bug, introduced in <a href="#version_3_7_15">version 3.7.15</a>, that causes a segfault if
4752 the AS name of a result column of a SELECT statement is used as a logical
4753 term in the WHERE clause. Ticket
4754 <a href="https://sqlite.org/src/info/a7b7803e8d1e869">a7b7803e8d1e869</a>.
4755
4756 <li>SQLITE_SOURCE_ID:
4757 "2012-12-19 20:39:10 6b85b767d0ff7975146156a99ad673f2c1a23318"
4758 <li>SHA1 for sqlite3.c: bbbaa68061e925bd4d7d18d7e1270935c5f7e39a
4759
4760 </ol></p>
4761 <a name="version_3_7_15"></a>
4762 <h3>2012-12-12 (3.7.15)</h3><p><ol class='lessindent'>
4763 <li>Added the <a href="c3ref/errcode.html">sqlite3_errstr()</a> interface.
4764 <li>Avoid invoking the <a href="c3ref/profile.html">sqlite3_trace()</a> callback multiple times when a
4765 statement is automatically reprepared due to <a href="rescode.html#schema">SQLITE_SCHEMA</a> errors.
4766 <li>Added support for Windows Phone 8 platforms
4767 <li>Enhance IN operator processing to make use of indices with numeric
4768 affinities.
4769 <li>Do full-table scans using covering indices when possible, under the
4770 theory that an index will be smaller and hence can be scanned with
4771 less I/O.
4772 <li>Enhance the query optimizer so that ORDER BY clauses are more aggressively
4773 optimized, especially in joins where various terms of the ORDER BY clause
4774 come from separate tables of the join.
4775 <li>Add the ability to implement FROM clause subqueries as coroutines rather
4776 that manifesting the subquery into a temporary table.
4777 <li>Enhancements the command-line shell:
4778 <ol type='a'>
4779 <li>Added the ".print" command
4780 <li>Negative numbers in the ".width" command cause right-alignment
4781 <li>Add the ".wheretrace" command when compiled with SQLITE_DEBUG
4782 </ol>
4783 <li>Added the <a href="pragma.html#pragma_busy_timeout">busy_timeout pragma</a>.
4784 <li>Added the <a href="lang_corefunc.html#instr">instr()</a> SQL function.
4785 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlbusyhandler">SQLITE_FCNTL_BUSYHANDLER</a> file control, used to allow VFS
4786 implementations to get access to the busy handler callback.
4787 <li>The xDelete method in the built-in <a href="vfs.html">VFSes</a> now return
4788 SQLITE_IOERR_DELETE_NOENT if the file to be deleted does not exist.
4789 <li>Enhanced support for QNX.
4790 <li>Work around an optimizer bug in the MSVC compiler when targeting ARM.
4791 <li>Bug fix: Avoid various concurrency problems in <a href="sharedcache.html">shared cache mode</a>.
4792 <li>Bug fix: Avoid a deadlock or crash if the <a href="backup.html">backup API</a>, <a href="sharedcache.html">shared cache</a>,
4793 and the SQLite Encryption Extension are all used at once.
4794 <li>Bug fix: SQL functions created using the TCL interface honor the
4795 "nullvalue" setting.
4796 <li>Bug fix: Fix a 32-bit overflow problem on CREATE INDEX for databases
4797 larger than 16GB.
4798 <li>Bug fix: Avoid segfault when using the <a href="lang_expr.html#collateop">COLLATE operator</a> inside of a
4799 <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>.
4800
4801 <li>SQLITE_SOURCE_ID:
4802 "2012-12-12 13:36:53 cd0b37c52658bfdf992b1e3dc467bae1835a94ae"
4803 <li>SHA1 for sqlite3.c: 2b413611f5e3e3b6ef5f618f2a9209cdf25cbcff"
4804
4805 </ol></p>
4806 <a name="version_3_7_14_1"></a>
4807 <h3>2012-10-04 (3.7.14.1)</h3><p><ol class='lessindent'>
4808 <li>Fix a bug (ticket
4809 <a href="https://sqlite.org/src/tktview/d02e1406a58ea02d">&#91;d02e1406a58ea02d]&#93;</a>)
4810 that causes a segfault on a LEFT JOIN that includes an OR in the ON clause.
4811 <li>Work around a bug in the optimizer in the VisualStudio-2012 compiler that
4812 causes invalid code to be generated when compiling SQLite on ARM.
4813 <li>Fix the TCL interface so that the "nullvalue" setting is honored for
4814 TCL implementations of SQL functions.
4815 <li>SQLITE_SOURCE_ID:
4816 "2012-10-04 19:37:12 091570e46d04e84b67228e0bdbcd6e1fb60c6bdb"
4817 <li>SHA1 for sqlite3.c: 62aaecaacab3a4bf4a8fe4aec1cfdc1571fe9a44
4818
4819 </ol></p>
4820 <a name="version_3_7_14"></a>
4821 <h3>2012-09-03 (3.7.14)</h3><p><ol class='lessindent'>
4822 <li>Drop built-in support for OS/2. If you need to upgrade an OS/2
4823 application to use this or a later version of SQLite,
4824 then add an application-defined <a href="vfs.html">VFS</a> using the
4825 <a href="c3ref/vfs_find.html">sqlite3_vfs_register()</a> interface. The code removed in this release can
4826 serve as a baseline for the application-defined VFS.
4827 <li>Ensure that floating point values are preserved exactly when reconstructing
4828 a database from the output of the ".dump" command of the
4829 <a href="cli.html">command-line shell</a>.
4830 <li>Added the <a href="c3ref/close.html">sqlite3_close_v2()</a> interface.
4831 <li>Updated the <a href="cli.html">command-line shell</a> so that it can be built using
4832 <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a> and <a href="compile.html#omit_autoinit">SQLITE_OMIT_AUTOINIT</a>.
4833 <li>Improvements to the windows makefiles and build processes.
4834 <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
4835 they can optionally check just a single attached database instead of all
4836 attached databases.
4837 <li>Enhancements to <a href="wal.html">WAL mode</a> processing that ensure that at least one
4838 valid read-mark is available at all times, so that read-only processes
4839 can always read the database.
4840 <li>Performance enhancements in the sorter used by ORDER BY and CREATE INDEX.
4841 <li>Added the <a href="compile.html#disable_fts4_deferred">SQLITE_DISABLE_FTS4_DEFERRED</a> compile-time option.
4842 <li>Better handling of aggregate queries where the aggregate functions are
4843 contained within subqueries.
4844 <li>Enhance the query planner so that it will try to use a <a href="queryplanner.html#covidx">covering index</a>
4845 on queries that make use of <a href="optoverview.html#or_opt">or optimization</a>.
4846 <li>SQLITE_SOURCE_ID:
4847 "2012-09-03 15:42:36 c0d89d4a9752922f9e367362366efde4f1b06f2a"
4848 <li>SHA1 for sqlite3.c: 5fdf596b29bb426001f28b488ff356ae14d5a5a6
4849
4850 </ol></p>
4851 <a name="version_3_7_13"></a>
4852 <h3>2012-06-11 (3.7.13)</h3><p><ol class='lessindent'>
4853 <li><a href="inmemorydb.html">In-memory databases</a> that are specified using
4854 <a href="uri.html">URI filenames</a> are allowed to use <a href="sharedcache.html#inmemsharedcache">shared cache</a>,
4855 so that the same
4856 in-memory database can be accessed from multiple database connections.
4857 <li>Recognize and use the <a href="uri.html#coreqp">mode=memory</a> query parameter in
4858 <a href="uri.html">URI filenames</a>.
4859 <li>Avoid resetting the schema of <a href="sharedcache.html">shared cache</a> connections when any one
4860 connection closes. Instead, wait for the last connection to close before
4861 resetting the schema.
4862 <li>In the <a href="rtree.html">RTREE</a> extension, when rounding 64-bit floating point numbers
4863 to 32-bit for storage, always round in a direction that causes the
4864 bounding box to get larger.
4865 <li>Adjust the unix driver to avoid unnecessary calls to fchown().
4866 <li>Add interfaces sqlite3_quota_ferror() and sqlite3_quota_file_available()
4867 to the test_quota.c module.
4868 <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
4869 return SQLITE_MISUSE on any attempt to overload or replace a <a href="vtab.html">virtual table</a>
4870 module. The destructor is always called in this case, in accordance with
4871 historical and current documentation.
4872 <li>SQLITE_SOURCE_ID:
4873 "2012-06-11 02:05:22 f5b5a13f7394dc143aa136f1d4faba6839eaa6dc"
4874 <li>SHA1 for sqlite3.c: ff0a771d6252545740ba9685e312b0e3bb6a641b
4875
4876 </ol></p>
4877 <a name="version_3_7_12_1"></a>
4878 <h3>2012-05-22 (3.7.12.1)</h3><p><ol class='lessindent'>
4879 <li>Fix a bug
4880 <a href="https://sqlite.org/src/info/c2ad16f997ee9c">(ticket c2ad16f997)</a>
4881 in the 3.7.12 release that can cause a segfault for certain
4882 obscure nested aggregate queries.
4883 <li>Fix various other minor test script problems.
4884 <li>SQLITE_SOURCE_ID:
4885 "2012-05-22 02:45:53 6d326d44fd1d626aae0e8456e5fa2049f1ce0789"
4886 <li>SHA1 for sqlite3.c: d494e8d81607f0515d4f386156fb0fd86d5ba7df
4887
4888 </ol></p>
4889 <a name="version_3_7_12"></a>
4890 <h3>2012-05-14 (3.7.12)</h3><p><ol class='lessindent'>
4891 <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>.
4892 <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
4893 unnecessary reading of database content from disk.
4894 <li>Add the <a href="fts3.html#*fts4mergecmd">FTS4 "merge" command</a>, the <a href="fts3.html#*fts4automergecmd">FTS4 "automerge" command</a>, and
4895 the <a href="fts3.html#*fts4ickcmd">FTS4 "integrity-check" command</a>.
4896 <li>Report the name of specific <a href="lang_createtable.html#ckconst">CHECK</a> constraints that fail.
4897 <li>In the command-line shell, use popen() instead of fopen() if the first
4898 character of the argument to the ".output" command is "|".
4899 <li>Make use of OVERLAPPED in the windows <a href="vfs.html">VFS</a> to avoid some system calls
4900 and thereby obtain a performance improvement.
4901 <li>More aggressive optimization of the AND operator when one side or the
4902 other is always false.
4903 <li>Improved performance of queries with many OR-connected terms in the
4904 WHERE clause that can all be indexed.
4905 <li>Add the <a href="compile.html#rtree_int_only">SQLITE_RTREE_INT_ONLY</a> compile-time option to force the
4906 <a href="rtree.html">R*Tree Extension Module</a> to use integer instead of
4907 floating point values for both storage and computation.
4908 <li>Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command to use much less memory when
4909 processing multi-gigabyte databases.
4910 <li>New interfaces added to the test_quota.c add-on module.
4911 <li>Added the ".trace" dot-command to the command-line shell.
4912 <li>Allow virtual table constructors to be invoked recursively.
4913 <li>Improved optimization of ORDER BY clauses on compound queries.
4914 <li>Improved optimization of aggregate subqueries contained within an
4915 aggregate query.
4916 <li>Bug fix: Fix the <a href="lang_savepoint.html">RELEASE</a> command so that it does not cancel pending
4917 queries. This repairs a problem introduced in 3.7.11.
4918 <li>Bug fix: Do not discard the DISTINCT as superfluous unless a subset of
4919 the result set is subject to a UNIQUE constraint <em>and</em> it none
4920 of the columns in that subset can be NULL.
4921 Ticket <a href="https://sqlite.org/src/info/385a5b56b9">385a5b56b9</a>.
4922 <li>Bug fix: Do not optimize away an ORDER BY clause that has the same terms
4923 as a UNIQUE index unless those terms are also NOT NULL.
4924 Ticket <a href="https://sqlite.org/src/info/2a5629202f">2a5629202f</a>.
4925 <li>SQLITE_SOURCE_ID:
4926 "2012-05-14 01:41:23 8654aa9540fe9fd210899d83d17f3f407096c004"
4927 <li>SHA1 for sqlite3.c: 57e2104a0f7b3f528e7f6b7a8e553e2357ccd2e1
4928
4929
4930 </ol></p>
4931 <a name="version_3_7_11"></a>
4932 <h3>2012-03-20 (3.7.11)</h3><p><ol class='lessindent'>
4933 <li>Enhance the <a href="lang_insert.html">INSERT</a> syntax to allow multiple rows to be inserted
4934 via the VALUES clause.
4935 <li>Enhance the <a href="lang_createvtab.html">CREATE VIRTUAL TABLE</a> command to support the
4936 IF NOT EXISTS clause.
4937 <li>Added the <a href="c3ref/stricmp.html">sqlite3_stricmp()</a> interface as a counterpart to
4938 <a href="c3ref/stricmp.html">sqlite3_strnicmp()</a>.
4939 <li>Added the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface.
4940 <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
4941 the ability to add new <a href="pragma.html#syntax">PRAGMA</a> statements or to override built-in
4942 PRAGMAs.
4943 <li>Queries of the form: "SELECT max(x), y FROM table" returns the
4944 value of y on the same row that contains the maximum x value.
4945 <li>Added support for the <a href="fts3.html#*fts4languageid">FTS4 languageid option</a>.
4946 <li>Documented support for the <a href="fts3.html#*fts4content">FTS4 content option</a>. This feature has
4947 actually been in the code since <a href="#version_3_7_9">version 3.7.9</a> but is only now considered
4948 to be officially supported.
4949 <li>Pending statements no longer block <a href="lang_transaction.html">ROLLBACK</a>. Instead, the pending
4950 statement will return SQLITE_ABORT upon next access after the ROLLBACK.
4951 <li>Improvements to the handling of CSV inputs in the <a href="cli.html">command-line shell</a>
4952 <li>Fix a <a href="https://sqlite.org/src/info/b7c8682cc1">bug</a> introduced
4953 in <a href="#version_3_7_10">version 3.7.10</a> that might cause a LEFT JOIN
4954 to be incorrectly converted into an INNER JOIN if the WHERE clause
4955 indexable terms connected by OR.
4956
4957 <li>SQLITE_SOURCE_ID:
4958 "2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669"
4959 <li>SHA1 for sqlite3.c: d460d7eda3a9dccd291aed2a9fda868b9b120a10
4960
4961 </ol></p>
4962 <a name="version_3_7_10"></a>
4963 <h3>2012-01-16 (3.7.10)</h3><p><ol class='lessindent'>
4964 <li>The default <a href="fileformat2.html#schemaformat">schema format number</a> is changed from 1 to 4.
4965 This means that, unless
4966 the <a href="pragma.html#pragma_legacy_file_format">PRAGMA legacy_file_format=ON</a> statement is
4967 run, newly created database files will be unreadable by version of SQLite
4968 prior to 3.3.0 (2006-01-10). It also means that the <a href="lang_createindex.html#descidx">descending indices</a>
4969 are enabled by default.
4970 <li>The sqlite3_pcache_methods structure and the <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpcache">SQLITE_CONFIG_PCACHE</a>
4971 and <a href="c3ref/c_config_covering_index_scan.html#sqliteconfiggetpcache">SQLITE_CONFIG_GETPCACHE</a> configuration parameters are deprecated.
4972 They are replaced by a new <a href="c3ref/pcache_methods2.html">sqlite3_pcache_methods2</a> structure and
4973 <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
4974 parameters.
4975 <li>Added the <a href="psow.html">powersafe overwrite</a> property to the VFS interface. Provide
4976 the <a href="c3ref/c_iocap_atomic.html">SQLITE_IOCAP_POWERSAFE_OVERWRITE</a> I/O capability, the
4977 <a href="compile.html#powersafe_overwrite">SQLITE_POWERSAFE_OVERWRITE</a> compile-time option, and the
4978 "psow=BOOLEAN" query parameter for <a href="uri.html">URI filenames</a>.
4979 <li>Added the <a href="c3ref/db_release_memory.html">sqlite3_db_release_memory()</a> interface and the
4980 <a href="pragma.html#pragma_shrink_memory">shrink_memory pragma</a>.
4981 <li>Added the <a href="c3ref/db_filename.html">sqlite3_db_filename()</a> interface.
4982 <li>Added the <a href="c3ref/stmt_busy.html">sqlite3_stmt_busy()</a> interface.
4983 <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.
4984 <li>If the argument to <a href="pragma.html#pragma_cache_size">PRAGMA cache_size</a> is negative N, that means to use
4985 approximately -1024*N bytes of memory for the page cache regardless of
4986 the page size.
4987 <li>Enhanced the default memory allocator to make use of _msize() on windows,
4988 malloc_size() on Mac, and malloc_usable_size() on Linux.
4989 <li>Enhanced the query planner to support index queries with range constraints
4990 on the rowid.
4991 <li>Enhanced the query planner flattening logic to allow UNION ALL compounds
4992 to be promoted upwards to replace a simple wrapper SELECT even if the
4993 compounds are joins.
4994 <li>Enhanced the query planner so that the xfer optimization can be used with
4995 INTEGER PRIMARY KEY ON CONFLICT as long as the destination table is
4996 initially empty.
4997 <li>Enhanced the windows <a href="vfs.html">VFS</a> so that all system calls can be overridden
4998 using the xSetSystemCall interface.
4999 <li>Updated the "unix-dotfile" <a href="vfs.html">VFS</a> to use locking directories with mkdir()
5000 and rmdir() instead of locking files with open() and unlink().
5001 <li>Enhancements to the test_quota.c extension to support stdio-like interfaces
5002 with quotas.
5003 <li>Change the unix <a href="vfs.html">VFS</a> to be tolerant of read() system calls that return
5004 less then the full number of requested bytes.
5005 <li>Change both unix and windows <a href="vfs.html">VFSes</a> to report a sector size of 4096
5006 instead of the old default of 512.
5007 <li>In the <a href="tclsqlite.html">TCL Interface</a>, add the -uri option to the "sqlite3" TCL command
5008 used for creating new database connection objects.
5009 <li>Added the <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_EXPLAIN_STMT</a> test-control option with the
5010 <a href="compile.html#enable_tree_explain">SQLITE_ENABLE_TREE_EXPLAIN</a> compile-time option to enable the
5011 <a href="cli.html">command-line shell</a> to display ASCII-art parse trees of SQL statements
5012 that it processes, for debugging and analysis.
5013 <li><b>Bug fix:</b>
5014 Add an additional xSync when restarting a WAL in order to prevent an
5015 exceedingly unlikely but theoretically possible
5016 database corruption following power-loss.
5017 Ticket <a href="https://sqlite.org/src/info/ff5be73dee">ff5be73dee</a>.
5018 <li><b>Bug fix:</b>
5019 Change the VDBE so that all registers are initialized to Invalid
5020 instead of NULL.
5021 Ticket <a href="https://sqlite.org/src/info/7bbfb7d442">7bbfb7d442</a>
5022 <li><b>Bug fix:</b>
5023 Fix problems that can result from 32-bit integer overflow.
5024 Ticket <a href="https://sqlite.org/src/info/ac0ff496b7e2">ac00f496b7e2</a>
5025 <li>SQLITE_SOURCE_ID:
5026 "2012-01-16 13:28:40 ebd01a8deffb5024a5d7494eef800d2366d97204"
5027 <li>SHA1 for sqlite3.c: 6497cbbaad47220bd41e2e4216c54706e7ae95d4
5028
5029 </ol></p>
5030 <a name="version_3_7_9"></a>
5031 <h3>2011-11-01 (3.7.9)</h3><p><ol class='lessindent'>
5032 <li>If a search token (on the right-hand side of the MATCH operator) in
5033 <a href="fts3.html#fts4">FTS4</a> begins with "&#94;" then that token must be the first in its field
5034 of the document. <b>** Potentially Incompatible Change **</b>
5035 <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>
5036 to the <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface.
5037 <li>Removed support for <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a>, replacing it with the much
5038 more capable <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a> option.
5039 <li>Enhancements to the sqlite3_analyzer utility program, including the
5040 --pageinfo and --stats options and support for multiplexed databases.
5041 <li>Enhance the <a href="c3ref/data_count.html">sqlite3_data_count()</a> interface so that it can be used to
5042 determine if SQLITE_DONE has been seen on the prepared statement.
5043 <li>Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntloverwrite">SQLITE_FCNTL_OVERWRITE</a> file-control by which the SQLite core
5044 indicates to the VFS that the current transaction will overwrite the
5045 entire database file.
5046 <li>Increase the default <a href="malloc.html#lookaside">lookaside memory allocator</a> allocation size from
5047 100 to 128 bytes.
5048 <li>Enhanced the query planner so that it can factor terms in and out of
5049 OR expressions in the WHERE clause in an effort to find better indices.
5050 <li>Added the <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> compile-time option, causing
5051 <a href="fileformat2.html#ovflpgs">overflow pages</a> to be read directly from the database file,
5052 bypassing the <a href="c3ref/pcache_methods2.html">page cache</a>.
5053 <li>Remove limits on the magnitude of precision and width value in the
5054 format specifiers of the <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> family of string rendering
5055 routines.
5056 <li>Fix a bug that prevent <a href="lang_altertable.html">ALTER TABLE ... RENAME</a> from working
5057 on some virtual tables in a database with a UTF16 encoding.
5058 <li>Fix a bug in ASCII-to-float conversion that causes slow performance and
5059 incorrect results when converting numbers with ridiculously large exponents.
5060 <li>Fix a bug that causes incorrect results in aggregate queries that use
5061 multiple aggregate functions whose arguments contain complicated expressions
5062 that differ only in the case of string literals contained within those
5063 expressions.
5064 <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
5065 working correctly if their names were capitalized.
5066 <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
5067 engaged.
5068 <li>Fix a bug in <a href="vtab.html">virtual table</a> implementation that causes a crash if
5069 an <a href="fts3.html#fts4">FTS4</a> table is <a href="lang_droptable.html">dropped</a> inside a transaction and
5070 a <a href="lang_savepoint.html">SAVEPOINT</a> occurs afterwards.
5071 <li>SQLITE_SOURCE_ID:
5072 "2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e"
5073 <li>SHA1 for sqlite3.c: becd16877f4f9b281b91c97e106089497d71bb47
5074
5075 </ol></p>
5076 <a name="version_3_7_8"></a>
5077 <h3>2011-09-19 (3.7.8)</h3><p><ol class='lessindent'>
5078 <li> Orders of magnitude performance improvement for <a href="lang_createindex.html">CREATE INDEX</a> on
5079 very large tables.
5080 <li> Improved the windows VFS to better defend against interference
5081 from anti-virus software.
5082 <li> Improved query plan optimization when the DISTINCT keyword is present.
5083 <li> Allow more system calls to be overridden in the unix VFS - to provide
5084 better support for chromium sandboxes.
5085 <li> Increase the default size of a lookahead cache line from 100 to 128 bytes.
5086 <li> Enhancements to the test_quota.c module so that it can track
5087 preexisting files.
5088 <li> Bug fix: Virtual tables now handle IS NOT NULL constraints correctly.
5089 <li> Bug fixes: Correctly handle nested correlated subqueries used with
5090 indices in a WHERE clause.
5091 <li> SQLITE_SOURCE_ID:
5092 "2011-09-19 14:49:19 3e0da808d2f5b4d12046e05980ca04578f581177"
5093 <li> SHA1 for sqlite3.c: bfcd74a655636b592c5dba6d0d5729c0f8e3b4de
5094
5095 </ol></p>
5096 <a name="version_3_7_7_1"></a>
5097 <h3>2011-06-28 (3.7.7.1)</h3><p><ol class='lessindent'>
5098 <li> Fix <a href="https://sqlite.org/src/info/25ee812710">a bug</a> causing
5099 <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> statements compiled using sqlite3_prepare()
5100 to fail with an <a href="rescode.html#schema">SQLITE_SCHEMA</a> error.
5101 <li> SQLITE_SOURCE_ID:
5102 "2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f"
5103 <li> SHA1 for sqlite3.c: d47594b8a02f6cf58e91fb673e96cb1b397aace0
5104
5105 </ol></p>
5106 <a name="version_3_7_7"></a>
5107 <h3>2011-06-23 (3.7.7)</h3><p><ol class='lessindent'>
5108 <li> Add support for <a href="uri.html">URI filenames</a>
5109 <li> Add the <a href="c3ref/vtab_config.html">sqlite3_vtab_config()</a> interface in
5110 support of <a href="lang_conflict.html">ON CONFLICT</a> clauses with <a href="vtab.html">virtual tables</a>.
5111 <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
5112 <a href="vtab.html">virtual tables</a> in support of <a href="lang_savepoint.html">SAVEPOINT</a> for virtual tables.
5113 <li> Update the built-in <a href="fts3.html">FTS3/FTS4</a> and <a href="rtree.html">RTREE</a> virtual tables to support
5114 <a href="lang_conflict.html">ON CONFLICT</a> clauses and <a href="lang_replace.html">REPLACE</a>.
5115 <li> Avoid unnecessary reparsing of the database schema.
5116 <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>.
5117 <li> Allow <a href="wal.html">WAL-mode</a> databases to be opened read-only as long as
5118 there is an existing read/write connection.
5119 <li> Added support for <a href="shortnames.html">short filenames</a>.
5120 <li> SQLITE_SOURCE_ID:
5121 "2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2"
5122 <li> SHA1 for sqlite3.c: 5bbe79e206ae5ffeeca760dbd0d66862228db551
5123
5124 </ol></p>
5125 <a name="version_3_7_6_3"></a>
5126 <h3>2011-05-19 (3.7.6.3)</h3><p><ol class='lessindent'>
5127 <li> Fix a problem with <a href="wal.html">WAL mode</a> which could cause transactions to
5128 silently rollback if the <a href="pragma.html#pragma_cache_size">cache_size</a> is set very small (less than 10)
5129 and SQLite comes under memory pressure.
5130
5131 </ol></p>
5132 <a name="version_3_7_6_2"></a>
5133 <h3>2011-04-17 (3.7.6.2)</h3><p><ol class='lessindent'>
5134 <li> Fix the function prototype for the open(2) system call to agree with
5135 POSIX. Without this fix, pthreads does not work correctly on NetBSD.
5136 <li> SQLITE_SOURCE_ID:
5137 "2011-04-17 17:25:17 154ddbc17120be2915eb03edc52af1225eb7cb5e"
5138 <li> SHA1 for sqlite3.c: 806577fd524dd5f3bfd8d4d27392ed2752bc9701
5139
5140
5141 </ol></p>
5142 <a name="version_3_7_6_1"></a>
5143 <h3>2011-04-13 (3.7.6.1)</h3><p><ol class='lessindent'>
5144 <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>
5145 file control is used with a build of SQLite that makes use of the
5146 HAVE_POSIX_FALLOCATE compile-time option and which has
5147 SQLITE_ENABLE_LOCKING_MODE turned off.
5148 <li> SQLITE_SOURCE_ID:
5149 "2011-04-13 14:40:25 a35e83eac7b185f4d363d7fa51677f2fdfa27695"
5150 <li> SHA1 for sqlite3.c: b81bfa27d3e09caf3251475863b1ce6dd9f6ab66
5151
5152 </ol></p>
5153 <a name="version_3_7_6"></a>
5154 <h3>2011-04-12 (3.7.6)</h3><p><ol class='lessindent'>
5155 <li> Added the <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2()</a> interface and enhanced the
5156 <a href="pragma.html#pragma_wal_checkpoint">wal_checkpoint pragma</a> to support blocking checkpoints.
5157 <li> Improvements to the query planner so that it makes better estimates of
5158 plan costs and hence does a better job of choosing the right plan,
5159 especially when <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a> is used.
5160 <li> Fix a bug which prevented deferred foreign key constraints from being
5161 enforced when <a href="c3ref/finalize.html">sqlite3_finalize()</a> was not
5162 called by one statement with a failed foreign key constraint prior to
5163 another statement with foreign key constraints running.
5164 <li> Integer arithmetic operations that would have resulted in overflow
5165 are now performed using floating-point instead.
5166 <li> Increased the version number on the <a href="c3ref/vfs.html">VFS object</a> to
5167 3 and added new methods xSetSysCall, xGetSysCall, and xNextSysCall
5168 used for doing full-coverage testing.
5169 <li> Increase the maximum value of <a href="limits.html#max_attached">SQLITE_MAX_ATTACHED</a> from 30 to 62
5170 (though the default value remains at 10).
5171 <li> Enhancements to FTS4:
5172 <ol type="a">
5173 <li> Added the <a href="fts3.html#fts4aux">fts4aux</a> table
5174 <li> Added support for <a href="fts3.html#*fts4compression">compressed FTS4 content</a>
5175 </ol>
5176 <li> Enhance the <a href="lang_analyze.html">ANALYZE</a> command to support the name of an index
5177 as its argument, in order to analyze just that one index.
5178 <li> Added the "unix-excl" built-in VFS on unix and unix-like platforms.
5179 <li> SQLITE_SOURCE_ID:
5180 "2011-04-12 01:58:40 f9d43fa363d54beab6f45db005abac0a7c0c47a7"
5181 <li> SHA1 for sqlite3.c: f38df08547efae0ff4343da607b723f588bbd66b
5182
5183 </ol></p>
5184 <a name="version_3_7_5"></a>
5185 <h3>2011-02-01 (3.7.5)</h3><p><ol class='lessindent'>
5186 <li> Added the <a href="c3ref/mprintf.html">sqlite3_vsnprintf()</a> interface.
5187 <li> Added the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidehit">SQLITE_DBSTATUS_LOOKASIDE_HIT</a>,
5188 <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidemisssize">SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</a>, and
5189 <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidemissfull">SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</a> options for the
5190 <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface.
5191 <li> Added the <a href="compile.html#omit_autoreset">SQLITE_OMIT_AUTORESET</a> compile-time option.
5192 <li> Added the <a href="compile.html#default_foreign_keys">SQLITE_DEFAULT_FOREIGN_KEYS</a> compile-time option.
5193 <li> Updates to <a href="c3ref/stmt_readonly.html">sqlite3_stmt_readonly()</a> so that its result is well-defined
5194 for all prepared statements and so that it works with <a href="lang_vacuum.html">VACUUM</a>.
5195 <li> Added the "-heap" option to the <a href="cli.html">command-line shell</a>
5196 <li> Fix <a href="https://sqlite.org/src/info/5d863f876e">a bug</a> involving
5197 frequent changes in and out of WAL mode and
5198 VACUUM that could (in theory) cause database corruption.
5199 <li> Enhance the <a href="c3ref/profile.html">sqlite3_trace()</a> mechanism so that nested SQL statements
5200 such as might be generated by virtual tables are shown but are shown
5201 in comments and without parameter expansion. This
5202 greatly improves tracing output when using the FTS3/4 and/or RTREE
5203 virtual tables.
5204 <li> Change the xFileControl() methods on all built-in VFSes to return
5205 <a href="rescode.html#notfound">SQLITE_NOTFOUND</a> instead of <a href="rescode.html#error">SQLITE_ERROR</a> for an unrecognized
5206 operation code.
5207 <li> The SQLite core invokes the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlsyncomitted">SQLITE_FCNTL_SYNC_OMITTED</a>
5208 <a href="c3ref/file_control.html">file control</a>
5209 to the VFS in place of a call to xSync if the database has
5210 <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> set to OFF.
5211
5212 </ol></p>
5213 <a name="version_3_7_4"></a>
5214 <h3>2010-12-07 (3.7.4)</h3><p><ol class='lessindent'>
5215 <li> Added the <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface to allow an existing
5216 <a href="c3ref/blob.html">sqlite3_blob</a> object to be rebound to a new row.
5217 <li> Use the new <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface to improve the performance
5218 of FTS.
5219 <li> <a href="c3ref/vfs.html">VFSes</a> that do not support shared memory are allowed
5220 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.
5221 <li> Enhancements to <a href="eqp.html">EXPLAIN QUERY PLAN</a>.
5222 <li> Added the <a href="c3ref/stmt_readonly.html">sqlite3_stmt_readonly()</a> interface.
5223 <li> Added <a href="pragma.html#pragma_checkpoint_fullfsync">PRAGMA checkpoint_fullfsync</a>.
5224 <li> Added the <a href="c3ref/c_fcntl_begin_atomic_write.html#sqlitefcntlfilepointer">SQLITE_FCNTL_FILE_POINTER</a> option
5225 to <a href="c3ref/file_control.html">sqlite3_file_control()</a>.
5226 <li> Added support for <a href="fts3.html#fts4">FTS4</a> and enhancements
5227 to the FTS <a href="fts3.html#matchinfo">matchinfo()</a> function.
5228 <li> Added the test_superlock.c module which provides example
5229 code for obtaining an exclusive lock to a rollback or WAL database.
5230 <li> Added the test_multiplex.c module which provides
5231 an example VFS that provides multiplexing (sharding)
5232 of a DB, splitting it over multiple files of fixed size.
5233 <li> A <a href="https://sqlite.org/src/info/80ba201079">very obscure bug</a>
5234 associated with the <a href="optoverview.html#or_opt">or optimization</a> was fixed.
5235
5236 </ol></p>
5237 <a name="version_3_7_3"></a>
5238 <h3>2010-10-08 (3.7.3)</h3><p><ol class='lessindent'>
5239 <li> Added the <a href="c3ref/create_function.html">sqlite3_create_function_v2()</a> interface that includes a
5240 destructor callback.
5241 <li> Added support for <a href="rtree.html#customquery">custom r-tree queries</a> using application-supplied
5242 callback routines to define the boundary of the query region.
5243 <li> The default page cache strives more diligently to avoid using memory
5244 beyond what is allocated to it by <a href="c3ref/c_config_covering_index_scan.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a>. Or if
5245 using page cache is allocating from the heap, it strives to avoid
5246 going over the <a href="c3ref/hard_heap_limit64.html">sqlite3_soft_heap_limit64()</a>, even if
5247 <a href="compile.html#enable_memory_management">SQLITE_ENABLE_MEMORY_MANAGEMENT</a> is not set.
5248 <li> Added the <a href="c3ref/hard_heap_limit64.html">sqlite3_soft_heap_limit64()</a> interface as a replacement for
5249 <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit()</a>.
5250 <li> The <a href="lang_analyze.html">ANALYZE</a> command now gathers statistics on tables even if they
5251 have no indices.
5252 <li> Tweaks to the query planner to help it do a better job of finding the
5253 most efficient query plan for each query.
5254 <li> Enhanced the internal text-to-numeric conversion routines so that they
5255 work with UTF8 or UTF16, thereby avoiding some UTF16-to-UTF8 text
5256 conversions.
5257 <li> Fix a problem that was causing excess memory usage with large <a href="wal.html">WAL</a>
5258 transactions in win32 systems.
5259 <li> The interface between the VDBE and B-Tree layer is enhanced such that
5260 the VDBE provides hints to the B-Tree layer letting the B-Tree layer
5261 know when it is safe to use hashing instead of B-Trees for transient
5262 tables.
5263 <li> Miscellaneous documentation enhancements.
5264
5265 </ol></p>
5266 <a name="version_3_7_2"></a>
5267 <h3>2010-08-24 (3.7.2)</h3><p><ol class='lessindent'>
5268 <li> Fix an <a href="https://sqlite.org/src/info/5e10420e8d">
5269 old and very obscure bug</a> that can lead to corruption of the
5270 database <a href="fileformat2.html#freelist">free-page list</a> when <a href="pragma.html#pragma_incremental_vacuum">incremental_vacuum</a> is used.
5271
5272 </ol></p>
5273 <a name="version_3_7_1"></a>
5274 <h3>2010-08-23 (3.7.1)</h3><p><ol class='lessindent'>
5275 <li> Added new commands <a href="c3ref/c_dbstatus_options.html#sqlitedbstatusschemaused">SQLITE_DBSTATUS_SCHEMA_USED</a> and
5276 <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
5277 order to report out the amount of memory used to hold the schema and
5278 prepared statements of a connection.
5279 <li> Increase the maximum size of a database pages from 32KiB to 64KiB.
5280 <li> Use the <a href="optoverview.html#like_opt">LIKE optimization</a> even if the right-hand side string contains
5281 no wildcards.
5282 <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>
5283 interface for both unix and windows, to cause database files to grow in
5284 large chunks in order to reduce disk fragmentation.
5285 <li> Fixed a bug in the query planner that caused performance regressions
5286 relative to 3.6.23.1 on some complex joins.
5287 <li> Fixed a typo in the OS/2 backend.
5288 <li> Refactored the pager module.
5289 <li> The SQLITE_MAX_PAGE_SIZE compile-time option is now silently ignored.
5290 The maximum page size is hard-coded at 65536 bytes.
5291
5292 </ol></p>
5293 <a name="version_3_7_0_1"></a>
5294 <h3>2010-08-04 (3.7.0.1)</h3><p><ol class='lessindent'>
5295 <li> Fix a potential database corruption bug that can occur if version 3.7.0
5296 and version 3.6.23.1 alternately write to the same database file.
5297 <a href="https://sqlite.org/src/info/51ae9cad317a1">
5298 Ticket &#91;51ae9cad317a1&#93;</a>
5299 <li> Fix a performance regression related to the query planner enhancements
5300 of version 3.7.0.
5301
5302 </ol></p>
5303 <a name="version_3_7_0"></a>
5304 <h3>2010-07-21 (3.7.0)</h3><p><ol class='lessindent'>
5305 <li> Added support for <a href="wal.html">write-ahead logging</a>.
5306 <li> Query planner enhancement - automatic transient indices are created
5307 when doing so reduces the estimated query time.
5308 <li> Query planner enhancement - the ORDER BY becomes a no-op if the query
5309 also contains a GROUP BY clause that forces the correct output order.
5310 <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>.
5311 <li> The logical database size is now stored in the database header so that
5312 bytes can be appended to the end of the database file without corrupting
5313 it and so that SQLite will work correctly on systems that lack support
5314 for ftruncate().
5315
5316 </ol></p>
5317 <a name="version_3_6_23_1"></a>
5318 <h3>2010-03-26 (3.6.23.1)</h3><p><ol class='lessindent'>
5319 <li> Fix a bug in the offsets() function of <a href="fts3.html">FTS3</a>
5320 <li> Fix a missing "sync" that when omitted could lead to database
5321 corruption if a power failure or OS crash occurred just as a
5322 ROLLBACK operation was finishing.
5323
5324 </ol></p>
5325 <a name="version_3_6_23"></a>
5326 <h3>2010-03-09 (3.6.23)</h3><p><ol class='lessindent'>
5327 <li> Added the <a href="pragma.html#pragma_secure_delete">secure_delete pragma</a>.
5328 <li> Added the <a href="c3ref/compileoption_get.html">sqlite3_compileoption_used()</a> and
5329 <a href="c3ref/compileoption_get.html">sqlite3_compileoption_get()</a> interfaces as well as the
5330 <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
5331 <a href="lang_corefunc.html#sqlite_compileoption_get">sqlite_compileoption_get()</a> SQL functions.
5332 <li> Added the <a href="c3ref/log.html">sqlite3_log()</a> interface together with the
5333 <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
5334 is added to the <a href="cli.html">Command Line Interface</a>.
5335 <li> Improvements to <a href="fts3.html">FTS3</a>.
5336 <li> Improvements and bug-fixes in support for <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a>.
5337 <li> The <a href="pragma.html#pragma_integrity_check">integrity_check pragma</a> is enhanced to detect out-of-order rowids.
5338 <li> The ".genfkey" operator has been removed from the
5339 <a href="cli.html">Command Line Interface</a>.
5340 <li> Updates to the co-hosted <a href="lemon.html">Lemon LALR(1) parser generator</a>. (These
5341 updates did not affect SQLite.)
5342 <li> Various minor bug fixes and performance enhancements.
5343
5344 </ol></p>
5345 <a name="version_3_6_22"></a>
5346 <h3>2010-01-06 (3.6.22)</h3><p><ol class='lessindent'>
5347 <li>Fix bugs that can (rarely) lead to incorrect query results when
5348 the CAST or OR operators are used in the WHERE clause of a query.
5349 <li>Continuing enhancements and improvements to <a href="fts3.html">FTS3</a>.
5350 <li>Other miscellaneous bug fixes.
5351
5352 </ol></p>
5353 <a name="version_3_6_21"></a>
5354 <h3>2009-12-07 (3.6.21)</h3><p><ol class='lessindent'>
5355 <li>The SQL output resulting from <a href="c3ref/profile.html">sqlite3_trace()</a> is now modified to include
5356 the values of <a href="lang_expr.html#varparam">bound parameters</a>.
5357 <li>Performance optimizations targeting a specific use case from
5358 a single high-profile user of SQLite. A 12% reduction in the number of
5359 CPU operations is achieved (as measured by Valgrind). Actual performance
5360 improvements in practice may vary depending on workload. Changes
5361 include:
5362 <ol type='a'>
5363 <li>The <a href="lang_corefunc.html#ifnull">ifnull()</a> and <a href="lang_corefunc.html#coalesce">coalesce()</a> SQL functions are now implemented
5364 using in-line VDBE code rather than calling external functions, so that
5365 unused arguments need never be evaluated.
5366 <li>The <a href="lang_corefunc.html#substr">substr()</a> SQL function does not bother to measure the length
5367 its entire input string if it is only computing a prefix
5368 <li>Unnecessary OP_IsNull, OP_Affinity, and OP_MustBeInt VDBE opcodes
5369 are suppressed
5370 <li>Various code refactorizations for performance
5371 </ol>
5372 <li>The FTS3 extension has undergone a major rework and cleanup.
5373 New <a href="fts3.html">FTS3 documentation</a> is now available.
5374 <li>The <a href="compile.html#secure_delete">SQLITE_SECURE_DELETE</a> compile-time option fixed to make sure that
5375 content is deleted even when the <a href="lang_delete.html#truncateopt">truncate optimization</a> applies.
5376 <li>Improvements to "dot-command" handling in the
5377 <a href="cli.html">Command Line Interface</a>.
5378 <li>Other minor bug fixes and documentation enhancements.
5379
5380 </ol></p>
5381 <a name="version_3_6_20"></a>
5382 <h3>2009-11-04 (3.6.20)</h3><p><ol class='lessindent'>
5383 <li>Optimizer enhancement: <a href="c3ref/stmt.html">prepared statements</a> are automatically
5384 re-compiled when a binding on the RHS of a LIKE operator changes or
5385 when any range constraint changes under <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a>.
5386 <li>Various minor bug fixes and documentation enhancements.
5387
5388 </ol></p>
5389 <a name="version_3_6_16_1"></a>
5390 <h3>2009-10-30 (3.6.16.1)</h3><p><ol class='lessindent'>
5391 <li>A small patch to version 3.6.16 to fix
5392 <a href="https://sqlite.org/src/info/6b00e0a34c">the OP_If bug</a>.
5393
5394 </ol></p>
5395 <a name="version_3_6_19"></a>
5396 <h3>2009-10-14 (3.6.19)</h3><p><ol class='lessindent'>
5397 <li>Added support for <a href="foreignkeys.html">foreign key constraints</a>. Foreign key constraints
5398 are disabled by default. Use the <a href="pragma.html#pragma_foreign_keys">foreign_keys pragma</a> to turn them on.
5399 <li>Generalized the IS and IS NOT operators to take arbitrary expressions
5400 on their right-hand side.
5401 <li>The <a href="tclsqlite.html">TCL Interface</a> has been enhanced to use the
5402 <a href="http://www.tcl-lang.org/cgi-bin/tct/tip/322.html">Non-Recursive Engine (NRE)</a>
5403 interface to the TCL interpreter when linked against TCL 8.6 or later.
5404 <li>Fix a bug introduced in 3.6.18 that can lead to a segfault when an
5405 attempt is made to write on a read-only database.
5406
5407 </ol></p>
5408 <a name="version_3_6_18"></a>
5409 <h3>2009-09-11 (3.6.18)</h3><p><ol class='lessindent'>
5410 <li>Versioning of the SQLite source code has transitioned from CVS to
5411 <a href="http://www.fossil-scm.org/">Fossil</a>.
5412 <li>Query planner enhancements.
5413 <li>The <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a> compile-time option causes the <a href="lang_analyze.html">ANALYZE</a>
5414 command to collect a small histogram of each index, to help SQLite better
5415 select among competing range query indices.
5416 <li>Recursive triggers can be enabled using the <a href="pragma.html#pragma_recursive_triggers">PRAGMA recursive_triggers</a>
5417 statement.
5418 <li>Delete triggers fire when rows are removed due to a
5419 <a href="lang_conflict.html">REPLACE conflict resolution</a>. This feature is only
5420 enabled when recursive triggers are enabled.
5421 <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>
5422 flags for <a href="c3ref/open.html">sqlite3_open_v2()</a> used to override the global
5423 <a href="sharedcache.html">shared cache mode</a> settings for individual database connections.
5424 <li>Added improved version identification features:
5425 C-Preprocessor macro <a href="c3ref/c_scm_branch.html">SQLITE_SOURCE_ID</a>,
5426 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>.
5427 <li>Obscure bug fix on triggers
5428 (<a href="https://sqlite.org/src/info/efc02f9779">&#91;efc02f9779&#93;</a>).
5429
5430 </ol></p>
5431 <a name="version_3_6_17"></a>
5432 <h3>2009-08-10 (3.6.17)</h3><p><ol class='lessindent'>
5433 <li>Expose the <a href="c3ref/stricmp.html">sqlite3_strnicmp()</a> interface for use by extensions and
5434 applications.
5435 <li>Remove the restriction on <a href="vtab.html">virtual tables</a> and <a href="sharedcache.html">shared cache mode</a>.
5436 Virtual tables and shared cache can now be used at the same time.
5437 <li>Many code simplifications and obscure bug fixes in support of
5438 providing <a href="testing.html#coverage">100% branch test coverage</a>.
5439
5440 </ol></p>
5441 <a name="version_3_6_16"></a>
5442 <h3>2009-06-27 (3.6.16)</h3><p><ol class='lessindent'>
5443 <li>Fix a bug (ticket #3929) that occasionally causes INSERT or UPDATE
5444 operations to fail on an indexed table that has a self-modifying trigger.
5445 <li>Other minor bug fixes and performance optimizations.
5446
5447 </ol></p>
5448 <a name="version_3_6_15"></a>
5449 <h3>2009-06-15 (3.6.15)</h3><p><ol class='lessindent'>
5450 <li>Refactor the internal representation of SQL expressions so that they
5451 use less memory on embedded platforms.
5452 <li>Reduce the amount of stack space used
5453 <li>Fix an 64-bit alignment bug on HP/UX and Sparc
5454 <li>The <a href="c3ref/create_function.html">sqlite3_create_function()</a> family of interfaces now return
5455 <a href="rescode.html#misuse">SQLITE_MISUSE</a> instead of <a href="rescode.html#error">SQLITE_ERROR</a> when passed invalid
5456 parameter combinations.
5457 <li>When new tables are created using CREATE TABLE ... AS SELECT ... the
5458 datatype of the columns is the simplified SQLite datatype (TEXT, INT,
5459 REAL, NUMERIC, or BLOB) instead of a copy of the original datatype from
5460 the source table.
5461 <li>Resolve race conditions when checking for a hot rollback journal.
5462 <li>The <a href="c3ref/initialize.html">sqlite3_shutdown()</a> interface frees all mutexes under windows.
5463 <li>Enhanced robustness against corrupt database files
5464 <li>Continuing improvements to the test suite and fixes to obscure
5465 bugs and inconsistencies that the test suite improvements are
5466 uncovering.
5467
5468 </ol></p>
5469 <a name="version_3_6_14_2"></a>
5470 <h3>2009-05-25 (3.6.14.2)</h3><p><ol class='lessindent'>
5471 <li>Fix a code generator bug introduced in <a href="#version_3_6_14">version 3.6.14</a>. This bug
5472 can cause incorrect query results under obscure circumstances.
5473 Ticket #3879.
5474
5475 </ol></p>
5476 <a name="version_3_6_14_1"></a>
5477 <h3>2009-05-19 (3.6.14.1)</h3><p><ol class='lessindent'>
5478 <li>Fix a bug in <a href="lang_aggfunc.html#group_concat">group_concat()</a>, ticket #3841
5479 <li>Fix a performance bug in the pager cache, ticket #3844
5480 <li>Fix a bug in the <a href="c3ref/backup.html">sqlite3_backup</a> implementation that can lead
5481 to a corrupt backup database. Ticket #3858.
5482
5483 </ol></p>
5484 <a name="version_3_6_14"></a>
5485 <h3>2009-05-07 (3.6.14)</h3><p><ol class='lessindent'>
5486 <li>Added the optional asynchronous VFS module.</li>
5487 <li>Enhanced the query optimizer so that <a href="vtab.html">virtual tables</a> are able to
5488 make use of OR and IN operators in the WHERE clause.</li>
5489 <li>Speed improvements in the btree and pager layers.</li>
5490 <li>Added the <a href="compile.html#have_isnan">SQLITE_HAVE_ISNAN</a> compile-time option which will cause
5491 the isnan() function from the standard math library to be used instead
5492 of SQLite's own home-brew NaN checker.</li>
5493 <li>Countless minor bug fixes, documentation improvements, new and
5494 improved test cases, and code simplifications and cleanups.</p>
5495
5496 </ol></p>
5497 <a name="version_3_6_13"></a>
5498 <h3>2009-04-13 (3.6.13)</h3><p><ol class='lessindent'>
5499 <li>Fix a bug in <a href="#version_3_6_12">version 3.6.12</a> that causes a segfault when running
5500 a count(*) on the sqlite_master table of an empty database. Ticket #3774.
5501 <li>Fix a bug in <a href="#version_3_6_12">version 3.6.12</a> that causes a segfault that when
5502 inserting into a table using a DEFAULT value where there is a
5503 function as part of the DEFAULT value expression. Ticket #3791.
5504 <li>Fix data structure alignment issues on Sparc. Ticket #3777.
5505 <li>Other minor bug fixes.
5506
5507 </ol></p>
5508 <a name="version_3_6_12"></a>
5509 <h3>2009-03-31 (3.6.12)</h3><p><ol class='lessindent'>
5510 <li>Fixed a bug that caused database corruption when an <a href="pragma.html#pragma_incremental_vacuum">incremental_vacuum</a> is
5511 rolled back in an in-memory database. Ticket #3761.
5512 <li>Added the <a href="c3ref/unlock_notify.html">sqlite3_unlock_notify()</a> interface.
5513 <li>Added the <a href="pragma.html#pragma_reverse_unordered_selects">reverse_unordered_selects pragma</a>.
5514 <li>The default page size on windows is automatically adjusted to match the
5515 capabilities of the underlying filesystem.
5516 <li>Add the new ".genfkey" command in the <a href="cli.html">CLI</a> for generating triggers to
5517 implement foreign key constraints.
5518 <li>Performance improvements for "count(*)" queries.
5519 <li>Reduce the amount of heap memory used, especially by TRIGGERs.
5520 <li>
5521
5522 </ol></p>
5523 <a name="version_3_6_11"></a>
5524 <h3>2009-02-18 (3.6.11)</h3><p><ol class='lessindent'>
5525 <li>Added the <a href="c3ref/backup_finish.html#sqlite3backupinit">hot-backup interface</a>.
5526 <li>Added new commands ".backup" and ".restore" to the <a href="cli.html">CLI</a>.
5527 <li>Added new methods <a href="tclsqlite.html#backup">backup</a> and
5528 <a href="tclsqlite.html#restore">restore</a> to the TCL interface.
5529 <li>Improvements to the <a href="syntaxdiagrams.html">syntax bubble
5530 diagrams</a>
5531 <li>Various minor bug fixes
5532
5533 </ol></p>
5534 <a name="version_3_6_10"></a>
5535 <h3>2009-01-15 (3.6.10)</h3><p><ol class='lessindent'>
5536 <li>Fix a cache coherency problem that could lead to database corruption.
5537 Ticket #3584.
5538
5539 </ol></p>
5540 <a name="version_3_6_9"></a>
5541 <h3>2009-01-14 (3.6.9)</h3><p><ol class='lessindent'>
5542 <li>Fix two bugs, which when combined might result in incorrect
5543 query results. Both bugs were harmless by themselves; only when
5544 they team up do they cause problems. Ticket #3581.
5545
5546 </ol></p>
5547 <a name="version_3_6_8"></a>
5548 <h3>2009-01-12 (3.6.8)</h3><p><ol class='lessindent'>
5549 <li>Added support for <a href="lang_savepoint.html">nested transactions</a></li>
5550 <li>Enhanced the query optimizer so that it is able to use
5551 multiple indices to efficiently process
5552 <a href="optoverview.html#or_opt">OR-connected constraints</a>
5553 in a WHERE clause.</li>
5554 <li>Added support for parentheses in FTS3 query patterns using the
5555 <a href="compile.html#enable_fts3_parenthesis">SQLITE_ENABLE_FTS3_PARENTHESIS</a> compile-time option.</li>
5556
5557 </ol></p>
5558 <a name="version_3_6_7"></a>
5559 <h3>2008-12-16 (3.6.7)</h3><p><ol class='lessindent'>
5560 <li>Reorganize the Unix interface in os_unix.c</li>
5561 <li>Added support for "Proxy Locking" on Mac OS X.</li>
5562 <li>Changed the prototype of the <a href="c3ref/auto_extension.html">sqlite3_auto_extension()</a> interface in a
5563 way that is backwards compatible but which might cause warnings in new
5564 builds of applications that use that interface.</li>
5565 <li>Changed the signature of the xDlSym method of the <a href="c3ref/vfs.html">sqlite3_vfs</a> object
5566 in a way that is backwards compatible but which might cause
5567 compiler warnings.</li>
5568 <li>Added superfluous casts and variable initializations in order
5569 to suppress nuisance compiler warnings.</li>
5570 <li>Fixes for various minor bugs.</li>
5571
5572 </ol></p>
5573 <a name="version_3_6_6_2"></a>
5574 <h3>2008-11-26 (3.6.6.2)</h3><p><ol class='lessindent'>
5575 <li>Fix a bug in the b-tree delete algorithm that seems like it might be
5576 able to cause database corruption. The bug was first introduced in
5577 <a href="#version_3_6_6">version 3.6.6</a> by check-in &#91;5899&#93; on 2008-11-13.</li>
5578 <li>Fix a memory leak that can occur following a disk I/O error.</li>
5579
5580 </ol></p>
5581 <a name="version_3_6_6_1"></a>
5582 <h3>2008-11-22 (3.6.6.1)</h3><p><ol class='lessindent'>
5583 <li>Fix a bug in the page cache that can lead database corruption following
5584 a rollback. This bug was first introduced in <a href="#version_3_6_4">version 3.6.4</a>.</li>
5585 <li>Two other very minor bug fixes</li>
5586
5587 </ol></p>
5588 <a name="version_3_6_6"></a>
5589 <h3>2008-11-19 (3.6.6)</h3><p><ol class='lessindent'>
5590 <li>Fix a #define that prevented <a href="malloc.html#memsys5">memsys5</a> from compiling</li>
5591 <li>Fix a problem in the virtual table commit mechanism that was causing
5592 a crash in FTS3. Ticket #3497.</li>
5593 <li>Add the <a href="c3ref/pcache_methods2.html">application-defined page cache</a></li>
5594 <li>Added built-in support for VxWorks</li>
5595
5596 </ol></p>
5597 <a name="version_3_6_5"></a>
5598 <h3>2008-11-12 (3.6.5)</h3><p><ol class='lessindent'>
5599 <li>Add the MEMORY option to the <a href="pragma.html#pragma_journal_mode">journal_mode pragma</a>.</li>
5600 <li>Added the <a href="c3ref/db_mutex.html">sqlite3_db_mutex()</a> interface.</li>
5601 <li>Added the <a href="compile.html#omit_truncate_optimization">SQLITE_OMIT_TRUNCATE_OPTIMIZATION</a> compile-time option.</li>
5602 <li>Fixed the <a href="lang_delete.html#truncateopt">truncate optimization</a> so that <a href="c3ref/changes.html">sqlite3_changes()</a> and
5603 <a href="c3ref/total_changes.html">sqlite3_total_changes()</a> interfaces and the <a href="pragma.html#pragma_count_changes">count_changes pragma</a>
5604 return the correct values.</li>
5605 <li>Added the <a href="c3ref/errcode.html">sqlite3_extended_errcode()</a> interface.</li>
5606 <li>The <a href="lang_transaction.html">COMMIT</a> command now succeeds even if there are pending queries.
5607 It returns <a href="rescode.html#busy">SQLITE_BUSY</a> if there are pending incremental BLOB I/O requests.
5608 <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>)
5609 when an attempt is made to <a href="lang_transaction.html">ROLLBACK</a> while one or more queries are
5610 still pending.</li>
5611 <li>Drop all support for the <a href="malloc.html#memsysx">experimental memory allocators</a> memsys4 and
5612 memsys6.</li>
5613 <li>Added the <a href="compile.html#zero_malloc">SQLITE_ZERO_MALLOC</a> compile-time option.</li>
5614
5615 </ol></p>
5616 <a name="version_3_6_4"></a>
5617 <h3>2008-10-15 (3.6.4)</h3><p><ol class='lessindent'>
5618 <li>Add option support for LIMIT and ORDER BY clauses on <a href="lang_delete.html">DELETE</a> and
5619 <a href="lang_update.html">UPDATE</a> statements. Only works if SQLite is compiled with
5620 <a href="compile.html#enable_update_delete_limit">SQLITE_ENABLE_UPDATE_DELETE_LIMIT</a>.
5621 <li>Added the <a href="c3ref/stmt_status.html">sqlite3_stmt_status()</a> interface for performance monitoring.</li>
5622 <li>Add the <a href="lang_indexedby.html">INDEXED BY</a> clause.</li>
5623 <li>The LOCKING_STYLE extension is now enabled by default on Mac OS X</li>
5624 <li>Added the TRUNCATE option to <a href="pragma.html#pragma_journal_mode">PRAGMA journal_mode</a></li>
5625 <li>Performance enhancements to tree balancing logic in the B-Tree layer.</li>
5626 <li>Added the
5627 <a href="https://sqlite.org/src/finfo?name=tool/genfkey.c">
5628 source code</a> and
5629 <a href="https://sqlite.org/src/finfo?name=tool/genfkey.README">
5630 documentation</a> for the <b>genfkey</b> program for automatically generating
5631 triggers to enforce foreign key constraints.</li>
5632 <li>Added the <a href="compile.html#omit_truncate_optimization">SQLITE_OMIT_TRUNCATE_OPTIMIZATION</a> compile-time option.</li>
5633 <li>The <a href="lang.html">SQL language documentation</a> is converted to use
5634 <a href="syntaxdiagrams.html">syntax diagrams</a> instead of BNF.</li>
5635 <li>Other minor bug fixes</li>
5636
5637 </ol></p>
5638 <a name="version_3_6_3"></a>
5639 <h3>2008-09-22 (3.6.3)</h3><p><ol class='lessindent'>
5640 <li>Fix for a bug in the SELECT DISTINCT logic that was introduced by the
5641 prior version.</li>
5642 <li>Other minor bug fixes</li>
5643
5644 </ol></p>
5645 <a name="version_3_6_2"></a>
5646 <h3>2008-08-30 (3.6.2)</h3><p><ol class='lessindent'>
5647 <li>Split the pager subsystem into separate pager and pcache subsystems.</li>
5648 <li>Factor out identifier resolution procedures into separate files.</li>
5649 <li>Bug fixes</li>
5650
5651 </ol></p>
5652 <a name="version_3_6_1"></a>
5653 <h3>2008-08-06 (3.6.1)</h3><p><ol class='lessindent'>
5654 <li>Added the <a href="malloc.html#lookaside">lookaside memory allocator</a> for a speed improvement in excess
5655 of 15% on some workloads. (Your mileage may vary.)</li>
5656 <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
5657 the default lookaside configuration.</li>
5658 <li>Added verbs <a href="c3ref/c_status_malloc_count.html#sqlitestatuspagecachesize">SQLITE_STATUS_PAGECACHE_SIZE</a> and
5659 <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.
5660 <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
5661 the "+4" magic number in the buffer size computation.
5662 <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
5663 controlling and monitoring the lookaside allocator separately on each
5664 <a href="c3ref/sqlite3.html">database connection</a>.</li>
5665 <li>Numerous other performance enhancements</li>
5666 <li>Miscellaneous minor bug fixes</li>
5667
5668 </ol></p>
5669 <h3>2008-07-16 (3.6.0 beta)</h3><p><ol class='lessindent'>
5670 <li>Modifications to the <a href="c3ref/vfs.html">virtual file system</a> interface
5671 to support a wider range of embedded systems.
5672 See <a href="35to36.html">35to36.html</a> for additional information.
5673 <font color="red">*** Potentially incompatible change ***</font></li>
5674 <li>All C-preprocessor macros used to control compile-time options
5675 now begin with the prefix "SQLITE_". This may require changes to
5676 applications that compile SQLite using their own makefiles and with
5677 custom compile-time options, hence we mark this as a
5678 <font color="red">*** Potentially incompatible change ***</font></li>
5679 <li>The SQLITE_MUTEX_APPDEF compile-time option is no longer supported.
5680 Alternative mutex implementations can now be added at run-time using
5681 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.
5682 <font color="red">*** Potentially incompatible change ***</font></li>
5683 <li>The handling of IN and NOT IN operators that contain a NULL on their
5684 right-hand side expression is brought into compliance with the SQL
5685 standard and with other SQL database engines. This is a bug fix,
5686 but as it has the potential to break legacy applications that depend
5687 on the older buggy behavior, we mark that as a
5688 <font color="red">*** Potentially incompatible change ***</font></li>
5689 <li>The result column names generated for compound subqueries have been
5690 simplified to show only the name of the column of the original table and
5691 omit the table name. This makes SQLite operate more like other SQL
5692 database engines.</li>
5693 <li>Added the <a href="c3ref/config.html">sqlite3_config()</a> interface for doing run-time configuration
5694 of the entire SQLite library.</li>
5695 <li>Added the <a href="c3ref/status.html">sqlite3_status()</a> interface used for querying run-time status
5696 information about the overall SQLite library and its subsystems.</li>
5697 <li>Added the <a href="c3ref/initialize.html">sqlite3_initialize()</a> and <a href="c3ref/initialize.html">sqlite3_shutdown()</a> interfaces.</li>
5698 <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>
5699 <li>Added the <a href="pragma.html#pragma_page_count">PRAGMA page_count</a> command.</li>
5700 <li>Added the <a href="c3ref/next_stmt.html">sqlite3_next_stmt()</a> interface.</li>
5701 <li>Added a new <a href="rtree.html">R*Tree virtual table</a></li>
5702
5703 </ol></p>
5704 <a name="version_3_5_9"></a>
5705 <h3>2008-05-14 (3.5.9)</h3><p><ol class='lessindent'>
5706 <li>Added <em>experimental</em>
5707 support for the <a href="pragma.html#pragma_journal_mode">journal_mode</a> PRAGMA and persistent journal.</li>
5708 <li><a href="pragma.html#pragma_journal_mode">Journal mode PERSIST</a> is the default behavior in
5709 <a href="pragma.html#pragma_locking_mode">exclusive locking mode</a>.</li>
5710 <li>Fix a performance regression on LEFT JOIN (see ticket #3015)
5711 that was mistakenly introduced in <a href="#version_3_5_8">version 3.5.8</a>.</li>
5712 <li>Performance enhancement: Reengineer the internal routines used
5713 to interpret and render variable-length integers.</li>
5714 <li>Fix a buffer-overrun problem in <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> which occurs
5715 when a string without a zero-terminator is passed to "%.*s".</li>
5716 <li>Always convert IEEE floating point NaN values into NULL during
5717 processing. (Ticket #3060)</li>
5718 <li>Make sure that when a connection blocks on a RESERVED lock that
5719 it is able to continue after the lock is released. (Ticket #3093)</li>
5720 <li>The "configure" scripts should now automatically configure Unix
5721 systems for large file support. Improved error messages for
5722 when large files are encountered and large file support is disabled.</li>
5723 <li>Avoid cache pages leaks following disk-full or I/O errors</li>
5724 <li>And, many more minor bug fixes and performance enhancements....</li>
5725
5726 </ol></p>
5727 <a name="version_3_5_8"></a>
5728 <h3>2008-04-16 (3.5.8)</h3><p><ol class='lessindent'>
5729 <li>Expose SQLite's internal pseudo-random number generator (PRNG)
5730 via the <a href="c3ref/randomness.html">sqlite3_randomness()</a> interface</li>
5731 <li>New interface <a href="c3ref/context_db_handle.html">sqlite3_context_db_handle()</a> that returns the
5732 <a href="c3ref/sqlite3.html">database connection</a> handle that has invoked an application-defined
5733 SQL function.</li>
5734 <li>New interface <a href="c3ref/limit.html">sqlite3_limit()</a> allows size and length limits to be
5735 set on a per-connection basis and at run-time.</li>
5736 <li>Improved crash-robustness: write the database page size into the rollback
5737 journal header.</li>
5738 <li>Allow the <a href="lang_vacuum.html">VACUUM</a> command to change the page size of a database file.</li>
5739 <li>The xAccess() method of the VFS is allowed to return -1 to signal
5740 a memory allocation error.</li>
5741 <li>Performance improvement: The OP_IdxDelete opcode uses unpacked records,
5742 obviating the need for one OP_MakeRecord opcode call for each index
5743 record deleted.</li>
5744 <li>Performance improvement: Constant subexpressions are factored out of
5745 loops.</li>
5746 <li>Performance improvement: Results of OP_Column are reused rather than
5747 issuing multiple OP_Column opcodes.</li>
5748 <li>Fix a bug in the RTRIM collating sequence.</li>
5749 <li>Fix a bug in the SQLITE_SECURE_DELETE option that was causing
5750 Firefox crashes. Make arrangements to always test SQLITE_SECURE_DELETE
5751 prior to each release.</li>
5752 <li>Other miscellaneous performance enhancements.</li>
5753 <li>Other miscellaneous minor bug fixes.</li>
5754
5755 </ol></p>
5756 <a name="version_3_5_7"></a>
5757 <h3>2008-03-17 (3.5.7)</h3><p><ol class='lessindent'>
5758 <li>Fix a bug (ticket #2927) in the register allocation for
5759 compound selects - introduced by the new VM code in version 3.5.5.</li>
5760 <li>ALTER TABLE uses double-quotes instead of single-quotes for quoting
5761 filenames.</li>
5762 <li>Use the WHERE clause to reduce the size of a materialized VIEW in
5763 an UPDATE or DELETE statement. (Optimization)</li>
5764 <li>Do not apply the flattening optimization if the outer query is an
5765 aggregate and the inner query contains ORDER BY. (Ticket #2943)</li>
5766 <li>Additional OS/2 updates</li>
5767 <li>Added an experimental power-of-two, first-fit memory allocator.</li>
5768 <li>Remove all instances of sprintf() from the code</li>
5769 <li>Accept "Z" as the zulu timezone at the end of date strings</li>
5770 <li>Fix a bug in the LIKE optimizer that occurs when the last character
5771 before the first wildcard is an upper-case "Z"</li>
5772 <li>Added the "bitvec" object for keeping track of which pages have
5773 been journalled. Improves speed and reduces memory consumption, especially
5774 for large database files.</li>
5775 <li>Get the SQLITE_ENABLE_LOCKING_STYLE macro working again on Mac OS X.</li>
5776 <li>Store the statement journal in the temporary file directory instead of
5777 collocated with the database file.</li>
5778 <li>Many improvements and cleanups to the configure script</li>
5779
5780 </ol></p>
5781 <a name="version_3_5_6"></a>
5782 <h3>2008-02-06 (3.5.6)</h3><p><ol class='lessindent'>
5783 <li>Fix a bug (ticket #2913)
5784 that prevented virtual tables from working in a LEFT JOIN.
5785 The problem was introduced into shortly before the 3.5.5 release.</li>
5786 <li>Bring the OS/2 porting layer up-to-date.</li>
5787 <li>Add the new <a href="c3ref/result_blob.html">sqlite3_result_error_code()</a> API and use it in the
5788 implementation of <a href="lang_attach.html">ATTACH</a> so that proper error codes are returned
5789 when an <a href="lang_attach.html">ATTACH</a> fails.</li>
5790
5791 </ol></p>
5792 <a name="version_3_5_5"></a>
5793 <h3>2008-01-31 (3.5.5)</h3><p><ol class='lessindent'>
5794 <li>Convert the underlying virtual machine to be a register-based machine
5795 rather than a stack-based machine. The only user-visible change
5796 is in the output of EXPLAIN.</li>
5797 <li>Add the build-in RTRIM collating sequence.</li>
5798
5799 </ol></p>
5800 <a name="version_3_5_4"></a>
5801 <h3>2007-12-14 (3.5.4)</h3><p><ol class='lessindent'>
5802 <li>Fix a critical bug in UPDATE or DELETE that occurs when an
5803 OR REPLACE clause or a trigger causes rows in the same table to
5804 be deleted as side effects. (See ticket #2832.) The most likely
5805 result of this bug is a segmentation fault, though database
5806 corruption is a possibility.</li>
5807 <li>Bring the processing of ORDER BY into compliance with the
5808 SQL standard for case where a result alias and a table column name
5809 are in conflict. Correct behavior is to prefer the result alias.
5810 Older versions of SQLite incorrectly picked the table column.
5811 (See ticket #2822.)</li>
5812 <li>The <a href="lang_vacuum.html">VACUUM</a> command preserves
5813 the setting of the
5814 <a href="pragma.html#pragma_legacy_file_format">legacy_file_format pragma</a>.
5815 (Ticket #2804.)</li>
5816 <li>Productize and officially support the group_concat() SQL function.</li>
5817 <li>Better optimization of some IN operator expressions.</li>
5818 <li>Add the ability to change the
5819 <a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> status of a
5820 database by setting the auto_vaccum pragma and VACUUMing the database.</li>
5821 <li>Prefix search in FTS3 is much more efficient.</li>
5822 <li>Relax the SQL statement length restriction in the CLI so that
5823 the ".dump" output of databases with very large BLOBs and strings can
5824 be played back to recreate the database.</li>
5825 <li>Other small bug fixes and optimizations.</li>
5826
5827 </ol></p>
5828 <a name="version_3_5_3"></a>
5829 <h3>2007-11-27 (3.5.3)</h3><p><ol class='lessindent'>
5830 <li>Move website and documentation files out of the source tree into
5831 a <a href="https://sqlite.org/docsrc/">separate CM system</a>.
5832 <li>Fix a long-standing bug in INSERT INTO ... SELECT ... statements
5833 where the SELECT is compound.
5834 <li>Fix a long-standing bug in RAISE(IGNORE) as used in BEFORE triggers.
5835 <li>Fixed the operator precedence for the ~ operator.
5836 <li>On Win32, do not return an error when attempting to delete a file
5837 that does not exist.
5838 <li>Allow collating sequence names to be quoted.
5839 <li>Modify the TCL interface to use <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>.
5840 <li>Fix multiple bugs that can occur following a malloc() failure.
5841 <li><a href="c3ref/step.html">sqlite3_step()</a> returns <a href="rescode.html#misuse">SQLITE_MISUSE</a> instead of crashing when
5842 called with a NULL parameter.
5843 <li>FTS3 now uses the SQLite memory allocator exclusively. The
5844 FTS3 amalgamation can now be appended to the SQLite amalgamation to
5845 generate a super-amalgamation containing both.
5846 <li>The DISTINCT keyword now will sometimes use an INDEX if an
5847 appropriate index is available and the optimizer thinks its use
5848 might be advantageous.
5849
5850 </ol></p>
5851 <a name="version_3_5_2"></a>
5852 <h3>2007-11-05 (3.5.2)</h3><p><ol class='lessindent'>
5853 <li>Dropped support for the <a href="compile.html#omitfeatures">SQLITE_OMIT_MEMORY_ALLOCATION</a> compile-time
5854 option.
5855 <li>Always open files using FILE_FLAG_RANDOM_ACCESS under Windows.
5856 <li>The 3rd parameter of the built-in SUBSTR() function is now optional.
5857 <li>Bug fix: do not invoke the authorizer when reparsing the schema after
5858 a schema change.
5859 <li>Added the experimental malloc-free memory allocator in mem3.c.
5860 <li>Virtual machine stores 64-bit integer and floating point constants
5861 in binary instead of text for a performance boost.
5862 <li>Fix a race condition in test_async.c.
5863 <li>Added the ".timer" command to the CLI
5864
5865 </ol></p>
5866 <a name="version_3_5_1"></a>
5867 <h3>2007-10-04 (3.5.1)</h3><p><ol class='lessindent'>
5868 <li><i><b>Nota Bene:</b> We are not using terms "alpha" or "beta" on this
5869 release because the code is stable and because if we use those terms,
5870 nobody will upgrade. However, we still reserve the right to make
5871 incompatible changes to the new VFS interface in future releases.</i></li>
5872
5873 <li>Fix a bug in the handling of <a href="rescode.html#full">SQLITE_FULL</a> errors that could lead
5874 to database corruption. Ticket #2686.
5875 <li>The test_async.c drive now does full file locking and works correctly
5876 when used simultaneously by multiple processes on the same database.
5877 <li>The CLI ignores whitespace (including comments) at the end of lines
5878 <li>Make sure the query optimizer checks dependencies on all terms of
5879 a compound SELECT statement. Ticket #2640.
5880 <li>Add demonstration code showing how to build a VFS for a raw
5881 mass storage without a filesystem.
5882 <li>Added an output buffer size parameter to the xGetTempname() method
5883 of the VFS layer.
5884 <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
5885 when a new transaction is started.
5886
5887 </ol></p>
5888 <a name="version_3_5_0"></a>
5889 <h3>2007-09-04 (3.5.0) alpha</h3><p><ol class='lessindent'>
5890 <li>Redesign the OS interface layer. See
5891 <a href="34to35.html">34to35.html</a> for details.
5892 <font color="red">*** Potentially incompatible change ***</font>
5893 <li>The <a href="c3ref/release_memory.html">sqlite3_release_memory()</a>, <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit()</a>,
5894 and <a href="c3ref/enable_shared_cache.html">sqlite3_enable_shared_cache()</a> interfaces now work cross all
5895 threads in the process, not just the single thread in which they
5896 are invoked.
5897 <font color="red">*** Potentially incompatible change ***</font>
5898 <li>Added the <a href="c3ref/open.html">sqlite3_open_v2()</a> interface.
5899 <li>Reimplemented the memory allocation subsystem and made it
5900 replaceable at compile-time.
5901 <li>Created a new mutex subsystem and made it replicable at
5902 compile-time.
5903 <li>The same database connection may now be used simultaneously by
5904 separate threads.
5905
5906 </ol></p>
5907 <a name="version_3_4_2"></a>
5908 <h3>2007-08-13 (3.4.2)</h3><p><ol class='lessindent'>
5909 <li>Fix a database corruption bug that might occur if a ROLLBACK command
5910 is executed in <a href="pragma.html#pragma_auto_vacuum">auto-vacuum mode</a>
5911 and a very small <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit</a> is set.
5912 Ticket #2565.
5913
5914 <li>Add the ability to run a full regression test with a small
5915 <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit</a>.
5916
5917 <li>Fix other minor problems with using small soft heap limits.
5918
5919 <li>Work-around for
5920 <a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32575">GCC bug 32575</a>.
5921
5922 <li>Improved error detection of misused aggregate functions.
5923
5924 <li>Improvements to the amalgamation generator script so that all symbols
5925 are prefixed with either SQLITE_PRIVATE or SQLITE_API.
5926
5927 </ol></p>
5928 <a name="version_3_4_1"></a>
5929 <h3>2007-07-20 (3.4.1)</h3><p><ol class='lessindent'>
5930 <li>Fix a bug in <a href="lang_vacuum.html">VACUUM</a> that can lead to
5931 database corruptio if two
5932 processes are connected to the database at the same time and one
5933 VACUUMs then the other then modifies the database.</li>
5934 <li>The expression "+column" is now considered the same as "column"
5935 when computing the collating sequence to use on the expression.</li>
5936 <li>In the <a href="tclsqlite.html">TCL language interface</a>,
5937 "@variable" instead of "$variable" always binds as a blob.</li>
5938 <li>Added <a href="pragma.html#pragma_freelist_count">PRAGMA freelist_count</a>
5939 for determining the current size of the freelist.</li>
5940 <li>The <a href="pragma.html#pragma_auto_vacuum">
5941 PRAGMA auto_vacuum=incremental</a> setting is now persistent.</li>
5942 <li>Add FD_CLOEXEC to all open files under Unix.</li>
5943 <li>Fix a bug in the <a href="optoverview.html#minmax">
5944 min()/max() optimization</a> when applied to
5945 descending indices.</li>
5946 <li>Make sure the TCL language interface works correctly with 64-bit
5947 integers on 64-bit machines.</li>
5948 <li>Allow the value -9223372036854775808 as an integer literal in SQL
5949 statements.</li>
5950 <li>Add the capability of "hidden" columns in virtual tables.</li>
5951 <li>Use the macro SQLITE_PRIVATE (defaulting to "static") on all
5952 internal functions in the amalgamation.</li>
5953 <li>Add pluggable tokenizers and <a href="https://icu.unicode.org">ICU</a>
5954 tokenization support to FTS2</li>
5955 <li>Other minor bug fixes and documentation enhancements</li>
5956
5957 </ol></p>
5958 <a name="version_3_4_0"></a>
5959 <h3>2007-06-18 (3.4.0)</h3><p><ol class='lessindent'>
5960 <li>Fix a bug that can lead to database corruption if an <a href="rescode.html#busy">SQLITE_BUSY</a> error
5961 occurs in the middle of an explicit transaction and that transaction
5962 is later committed. Ticket #2409.
5963 <li>Fix a bug that can lead to database corruption if autovacuum mode is
5964 on and a malloc() failure follows a CREATE TABLE or CREATE INDEX statement
5965 which itself follows a cache overflow inside a transaction. See
5966 ticket #2418.
5967 </li>
5968 <li>Added explicit <a href="limits.html">upper bounds</a> on the sizes and
5969 quantities of things SQLite can process. This change might cause
5970 compatibility problems for
5971 applications that use SQLite in the extreme, which is why the current
5972 release is 3.4.0 instead of 3.3.18.</li>
5973 <li>Added support for <a href="c3ref/blob_open.html">Incremental BLOB I/O</a>.</li>
5974 <li>Added the <a href="c3ref/bind_blob.html">sqlite3_bind_zeroblob()</a> API</a>
5975 and the <a href="lang_corefunc.html#zeroblob">zeroblob()</a> SQL function.</li>
5976 <li>Added support for <a href="pragma.html#pragma_incremental_vacuum">
5977 Incremental Vacuum</a>.</li>
5978 <li>Added the SQLITE_MIXED_ENDIAN_64BIT_FLOAT compile-time option to support
5979 ARM7 processors with goofy endianness.</li>
5980 <li>Removed all instances of sprintf() and strcpy() from the core library.</li>
5981 <li>Added support for
5982 <a href="https://icu.unicode.org">International Components for Unicode (ICU)</a>
5983 to the full-text search extensions.
5984 <li>In the Windows OS driver, reacquire a SHARED lock if an attempt to
5985 acquire an EXCLUSIVE lock fails. Ticket #2354</li>
5986 <li>Fix the REPLACE() function so that it returns NULL if the second argument
5987 is an empty string. Ticket #2324.</li>
5988 <li>Document the hazards of type conversions in
5989 <a href="c3ref/column_blob.html">sqlite3_column_blob()</a>
5990 and related APIs. Fix unnecessary type conversions. Ticket #2321.</li>
5991 <li>Internationalization of the TRIM() function. Ticket #2323</li>
5992 <li>Use memmove() instead of memcpy() when moving between memory regions
5993 that might overlap. Ticket #2334</li>
5994 <li>Fix an optimizer bug involving subqueries in a compound SELECT that has
5995 both an ORDER BY and a LIMIT clause. Ticket #2339.</li>
5996 <li>Make sure the <a href="c3ref/mprintf.html">sqlite3_snprintf()</a>
5997 interface does not zero-terminate the buffer if the buffer size is
5998 less than 1. Ticket #2341</li>
5999 <li>Fix the built-in printf logic so that it prints "NaN" not "Inf" for
6000 floating-point NaNs. Ticket #2345</li>
6001 <li>When converting BLOB to TEXT, use the text encoding of the main database.
6002 Ticket #2349</li>
6003 <li>Keep the full precision of integers (if possible) when casting to
6004 NUMERIC. Ticket #2364</li>
6005 <li>Fix a bug in the handling of UTF16 codepoint 0xE000</li>
6006 <li>Consider explicit collate clauses when matching WHERE constraints
6007 to indices in the query optimizer. Ticket #2391</li>
6008 <li>Fix the query optimizer to correctly handle constant expressions in
6009 the ON clause of a LEFT JOIN. Ticket #2403</li>
6010 <li>Fix the query optimizer to handle rowid comparisons to NULL
6011 correctly. Ticket #2404</li>
6012 <li>Fix many potential segfaults that could be caused by malicious SQL
6013 statements.</li>
6014
6015 </ol></p>
6016 <a name="version_3_3_17"></a>
6017 <h3>2007-04-25 (3.3.17)</h3><p><ol class='lessindent'>
6018 <li>When the "write_version" value of the database header is larger than
6019 what the library understands, make the database read-only instead of
6020 unreadable.</li>
6021 <li>Other minor bug fixes</li>
6022
6023 </ol></p>
6024 <a name="version_3_3_16"></a>
6025 <h3>2007-04-18 (3.3.16)</h3><p><ol class='lessindent'>
6026 <li>Fix a bug that caused VACUUM to fail if NULLs appeared in a
6027 UNIQUE column.</li>
6028 <li>Reinstate performance improvements that were added in
6029 <a href="#version_3_3_14">Version 3.3.14</a>
6030 but regressed in <a href="#version_3_3_15">Version 3.3.15</a>.</li>
6031 <li>Fix problems with the handling of ORDER BY expressions on
6032 compound SELECT statements in subqueries.</li>
6033 <li>Fix a potential segfault when destroying locks on WinCE in
6034 a multi-threaded environment.</li>
6035 <li>Documentation updates.</li>
6036
6037 </ol></p>
6038 <a name="version_3_3_15"></a>
6039 <h3>2007-04-09 (3.3.15)</h3><p><ol class='lessindent'>
6040 <li>Fix a bug introduced in 3.3.14 that caused a rollback of
6041 CREATE TEMP TABLE to leave the database connection wedged.</li>
6042 <li>Fix a bug that caused an extra NULL row to be returned when
6043 a descending query was interrupted by a change to the database.</li>
6044 <li>The FOR EACH STATEMENT clause on a trigger now causes a syntax
6045 error. It used to be silently ignored.</li>
6046 <li>Fix an obscure and relatively harmless problem that might have caused
6047 a resource leak following an I/O error.</li>
6048 <li>Many improvements to the test suite. Test coverage now exceeded 98%</li>
6049
6050 </ol></p>
6051 <a name="version_3_3_14"></a>
6052 <h3>2007-04-02 (3.3.14)</h3><p><ol class='lessindent'>
6053 <li>Fix a bug (ticket #2273)
6054 that could cause a segfault when the IN operator
6055 is used one term of a two-column index and the right-hand side of
6056 the IN operator contains a NULL.</li>
6057 <li>Added a new OS interface method for determining the sector size
6058 of underlying media: sqlite3OsSectorSize().</li>
6059 <li>A new algorithm for statements of the form
6060 INSERT INTO <i>table1</i> SELECT * FROM <i>table2</i>
6061 is faster and reduces fragmentation. VACUUM uses statements of
6062 this form and thus runs faster and defragments better.</li>
6063 <li>Performance enhancements through reductions in disk I/O:
6064 <ol type='a'>
6065 <li>Do not read the last page of an overflow chain when
6066 deleting the row - just add that page to the freelist.</li>
6067 <li>Do not store pages being deleted in the
6068 rollback journal.</li>
6069 <li>Do not read in the (meaningless) content of
6070 pages extracted from the freelist.</li>
6071 <li>Do not flush the page cache (and thus avoiding
6072 a cache refill) unless another process changes the underlying
6073 database file.</li>
6074 <li>Truncate rather than delete the rollback journal when committing
6075 a transaction in exclusive access mode, or when committing the TEMP
6076 database.</li>
6077 </ol></li>
6078 <li>Added support for exclusive access mode using
6079 <a href="pragma.html#pragma_locking_mode">
6080 "PRAGMA locking_mode=EXCLUSIVE"</a></li>
6081 <li>Use heap space instead of stack space for large buffers in the
6082 pager - useful on embedded platforms with stack-space
6083 limitations.</li>
6084 <li>Add a makefile target "sqlite3.c" that builds an amalgamation containing
6085 the core SQLite library C code in a single file.</li>
6086 <li>Get the library working correctly when compiled
6087 with GCC option "-fstrict-aliasing".</li>
6088 <li>Removed the vestigal SQLITE_PROTOCOL error.</li>
6089 <li>Improvements to test coverage, other minor bugs fixed,
6090 memory leaks plugged,
6091 code refactored and/or recommended in places for easier reading.</li>
6092
6093 </ol></p>
6094 <a name="version_3_3_13"></a>
6095 <h3>2007-02-13 (3.3.13)</h3><p><ol class='lessindent'>
6096 <li>Add a "fragmentation" measurement in the output of sqlite3_analyzer.</li>
6097 <li>Add the COLLATE operator used to explicitly set the collating sequence
6098 used by an expression. This feature is considered experimental pending
6099 additional testing.</li>
6100 <li>Allow up to 64 tables in a join - the old limit was 32.</li>
6101 <li>Added two new experimental functions:
6102 <a href="lang_corefunc.html#randomblob">randomblob()</a> and
6103 <a href="lang_corefunc.html#hex">hex()</a>.
6104 Their intended use is to facilitate generating
6105 <a href="http://en.wikipedia.org/wiki/UUID">UUIDs</a>.
6106 </li>
6107 <li>Fix a problem where
6108 <a href="pragma.html#pragma_count_changes">PRAGMA count_changes</a> was
6109 causing incorrect results for updates on tables with triggers</li>
6110 <li>Fix a bug in the ORDER BY clause optimizer for joins where the
6111 left-most table in the join is constrained by a UNIQUE index.</li>
6112 <li>Fixed a bug in the "copy" method of the TCL interface.</li>
6113 <li>Bug fixes in fts1 and fts2 modules.</li>
6114
6115 </ol></p>
6116 <a name="version_3_3_12"></a>
6117 <h3>2007-01-27 (3.3.12)</h3><p><ol class='lessindent'>
6118 <li>Fix another bug in the IS NULL optimization that was added in
6119 version 3.3.9.</li>
6120 <li>Fix an assertion fault that occurred on deeply nested views.</li>
6121 <li>Limit the amount of output that
6122 <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>
6123 generates.</li>
6124 <li>Minor syntactic changes to support a wider variety of compilers.</li>
6125
6126 </ol></p>
6127 <a name="version_3_3_11"></a>
6128 <h3>2007-01-22 (3.3.11)</h3><p><ol class='lessindent'>
6129 <li>Fix another bug in the implementation of the new
6130 <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> API.
6131 We'll get it right eventually...</li>
6132 <li>Fix a bug in the IS NULL optimization that was added in version 3.3.9 -
6133 the bug was causing incorrect results on certain LEFT JOINs that included
6134 in the WHERE clause an IS NULL constraint for the right table of the
6135 LEFT JOIN.</li>
6136 <li>Make AreFileApisANSI() a no-op macro in WinCE since WinCE does not
6137 support this function.</li>
6138
6139 </ol></p>
6140 <a name="version_3_3_10"></a>
6141 <h3>2007-01-09 (3.3.10)</h3><p><ol class='lessindent'>
6142 <li>Fix bugs in the implementation of the new
6143 <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> API
6144 that can lead to segfaults.</li>
6145 <li>Fix 1-second round-off errors in the
6146 strftime() function</li>
6147 <li>Enhance the Windows OS layer to provide detailed error codes</li>
6148 <li>Work around a win2k problem so that SQLite can use single-character
6149 database file names</li>
6150 <li>The
6151 <a href="pragma.html#pragma_user_version">user_version</a> and
6152 <a href="pragma.html#pragma_schema_version">schema_version</a> pragmas
6153 correctly set their column names in the result set</li>
6154 <li>Documentation updates</li>
6155
6156 </ol></p>
6157 <a name="version_3_3_9"></a>
6158 <h3>2007-01-04 (3.3.9)</h3><p><ol class='lessindent'>
6159 <li>Fix bugs in pager.c that could lead to database corruption if two
6160 processes both try to recover a hot journal at the same instant</li>
6161 <li>Added the <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>
6162 API.</li>
6163 <li>Fixed the ".dump" command in the command-line shell to show
6164 indices, triggers and views again.</li>
6165 <li>Change the table_info pragma so that it returns NULL for the default
6166 value if there is no default value</li>
6167 <li>Support for non-ASCII characters in win95 filenames</li>
6168 <li>Query optimizer enhancements:
6169 <ol type='a'>
6170 <li>Optimizer does a better job of using indices to satisfy ORDER BY
6171 clauses that sort on the integer primary key</li>
6172 <li>Use an index to satisfy an IS NULL operator in the WHERE clause</li>
6173 <li>Fix a bug that was causing the optimizer to miss an OR optimization
6174 opportunity</li>
6175 <li>The optimizer has more freedom to reorder tables in the FROM clause
6176 even in there are LEFT joins.</li>
6177 </ol>
6178 <li>Extension loading supported added to WinCE</li>
6179 <li>Allow constraint names on the DEFAULT clause in a table definition</li>
6180 <li>Added the ".bail" command to the command-line shell</li>
6181 <li>Make CSV (comma separate value) output from the command-line shell
6182 more closely aligned to accepted practice</li>
6183 <li>Experimental FTS2 module added</li>
6184 <li>Use sqlite3_mprintf() instead of strdup() to avoid libc dependencies</li>
6185 <li>VACUUM uses a temporary file in the official TEMP folder, not in the
6186 same directory as the original database</li>
6187 <li>The prefix on temporary filenames on Windows is changed from "sqlite"
6188 to "etilqs".</li>
6189
6190 </ol></p>
6191 <a name="version_3_3_8"></a>
6192 <h3>2006-10-09 (3.3.8)</h3><p><ol class='lessindent'>
6193 <li>Support for full text search using the FTS1 module (beta)</li>
6194 <li>Added Mac OS X locking patches (beta - disabled by default)</li>
6195 <li>Introduce extended error codes and add error codes for various
6196 kinds of I/O errors.</li>
6197 <li>Added support for IF EXISTS on CREATE/DROP TRIGGER/VIEW</li>
6198 <li>Fix the regression test suite so that it works with Tcl8.5</li>
6199 <li>Enhance sqlite3_set_authorizer() to provide notification of calls to
6200 SQL functions.</li>
6201 <li>Added experimental API: sqlite3_auto_extension()</li>
6202 <li>Various minor bug fixes</li>
6203
6204 </ol></p>
6205 <a name="version_3_3_7"></a>
6206 <h3>2006-08-12 (3.3.7)</h3><p><ol class='lessindent'>
6207 <li>Added support for virtual tables (beta)</li>
6208 <li>Added support for dynamically loaded extensions (beta)</li>
6209 <li>The
6210 <a href="c3ref/interrupt.html">sqlite3_interrupt()</a>
6211 routine can be called for a different thread</li>
6212 <li>Added the <a href="lang_expr.html#match">MATCH</a> operator.</li>
6213 <li>The default file format is now 1.
6214
6215 </ol></p>
6216 <a name="version_3_3_6"></a>
6217 <h3>2006-06-06 (3.3.6)</h3><p><ol class='lessindent'>
6218 <li>Plays better with virus scanners on Windows</li>
6219 <li>Faster :memory: databases</li>
6220 <li>Fix an obscure segfault in UTF-8 to UTF-16 conversions</li>
6221 <li>Added driver for OS/2</li>
6222 <li>Correct column meta-information returned for aggregate queries</li>
6223 <li>Enhanced output from EXPLAIN QUERY PLAN</li>
6224 <li>LIMIT 0 now works on subqueries</li>
6225 <li>Bug fixes and performance enhancements in the query optimizer</li>
6226 <li>Correctly handle NULL filenames in ATTACH and DETACH</li>
6227 <li>Improved syntax error messages in the parser</li>
6228 <li>Fix type coercion rules for the IN operator</li>
6229
6230 </ol></p>
6231 <a name="version_3_3_5"></a>
6232 <h3>2006-04-05 (3.3.5)</h3><p><ol class='lessindent'>
6233 <li>CHECK constraints use conflict resolution algorithms correctly.</li>
6234 <li>The SUM() function throws an error on integer overflow.</li>
6235 <li>Choose the column names in a compound query from the left-most SELECT
6236 instead of the right-most.</li>
6237 <li>The sqlite3_create_collation() function
6238 honors the SQLITE_UTF16_ALIGNED flag.</li>
6239 <li>SQLITE_SECURE_DELETE compile-time option causes deletes to overwrite
6240 old data with zeros.</li>
6241 <li>Detect integer overflow in abs().</li>
6242 <li>The random() function provides 64 bits of randomness instead of
6243 only 32 bits.</li>
6244 <li>Parser detects and reports automaton stack overflow.</li>
6245 <li>Change the round() function to return REAL instead of TEXT.</li>
6246 <li>Allow WHERE clause terms on the left table of a LEFT OUTER JOIN to
6247 contain aggregate subqueries.</li>
6248 <li>Skip over leading spaces in text to numeric conversions.</li>
6249 <li>Various minor bug and documentation typo fixes and
6250 performance enhancements.</li>
6251
6252 </ol></p>
6253 <a name="version_3_3_4"></a>
6254 <h3>2006-02-11 (3.3.4)</h3><p><ol class='lessindent'>
6255 <li>Fix a blunder in the Unix mutex implementation that can lead to
6256 deadlock on multithreaded systems.</li>
6257 <li>Fix an alignment problem on 64-bit machines</li>
6258 <li>Added the fullfsync pragma.</li>
6259 <li>Fix an optimizer bug that could have caused some unusual LEFT OUTER JOINs
6260 to give incorrect results.</li>
6261 <li>The SUM function detects integer overflow and converts to accumulating
6262 an approximate result using floating point numbers</li>
6263 <li>Host parameter names can begin with '@' for compatibility with SQL Server.
6264 </li>
6265 <li>Other miscellaneous bug fixes</li>
6266
6267 </ol></p>
6268 <a name="version_3_3_3"></a>
6269 <h3>2006-01-31 (3.3.3)</h3><p><ol class='lessindent'>
6270 <li>Removed support for an ON CONFLICT clause on CREATE INDEX - it never
6271 worked correctly so this should not present any backward compatibility
6272 problems.</li>
6273 <li>Authorizer callback now notified of ALTER TABLE ADD COLUMN commands</li>
6274 <li>After any changes to the TEMP database schema, all prepared statements
6275 are invalidated and must be recreated using a new call to
6276 sqlite3_prepare()</li>
6277 <li>Other minor bug fixes in preparation for the first stable release
6278 of version 3.3</li>
6279
6280 </ol></p>
6281 <h3>2006-01-24 (3.3.2 beta)</h3><p><ol class='lessindent'>
6282 <li>Bug fixes and speed improvements. Improved test coverage.</li>
6283 <li>Changes to the OS-layer interface: mutexes must now be recursive.</li>
6284 <li>Discontinue the use of thread-specific data for out-of-memory
6285 exception handling</li>
6286
6287 </ol></p>
6288 <h3>2006-01-16 (3.3.1 alpha)</h3><p><ol class='lessindent'>
6289 <li>Countless bug fixes</li>
6290 <li>Speed improvements</li>
6291 <li>Database connections can now be used by multiple threads, not just
6292 the thread in which they were created.</li>
6293
6294 </ol></p>
6295 <h3>2006-01-11 (3.3.0 alpha)</h3><p><ol class='lessindent'>
6296 <li>CHECK constraints</li>
6297 <li>IF EXISTS and IF NOT EXISTS clauses on CREATE/DROP TABLE/INDEX.</li>
6298 <li>DESC indices</li>
6299 <li>More efficient encoding of boolean values resulting in smaller database
6300 files</li>
6301 <li>More aggressive <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a></li>
6302 <li>Separate INTEGER and REAL affinity</li>
6303 <li>Added a virtual function layer for the OS interface</li>
6304 <li>"exists" method added to the TCL interface</li>
6305 <li>Improved response to out-of-memory errors</li>
6306 <li>Database cache can be optionally shared between connections
6307 in the same thread</li>
6308 <li>Optional READ UNCOMMITTED isolation (instead of the default
6309 isolation level of SERIALIZABLE) and table level locking when
6310 database connections share a common cache.</li>
6311
6312 </ol></p>
6313 <a name="version_3_2_8"></a>
6314 <h3>2005-12-19 (3.2.8)</h3><p><ol class='lessindent'>
6315 <li>Fix an obscure bug that can cause database corruption under the
6316 following unusual circumstances: A large INSERT or UPDATE statement which
6317 is part of an even larger transaction fails due to a uniqueness constraint
6318 but the containing transaction commits.</li>
6319
6320 </ol></p>
6321 <a name="version_2_8_17"></a>
6322 <h3>2005-12-19 (2.8.17)</h3><p><ol class='lessindent'>
6323 <li>Fix an obscure bug that can cause database corruption under the
6324 following unusual circumstances: A large INSERT or UPDATE statement which
6325 is part of an even larger transaction fails due to a uniqueness contraint
6326 but the containing transaction commits.</li>
6327
6328 </ol></p>
6329 <a name="version_3_2_7"></a>
6330 <h3>2005-09-24 (3.2.7)</h3><p><ol class='lessindent'>
6331 <li>GROUP BY now considers NULLs to be equal again, as it should
6332 </li>
6333 <li>Now compiles on Solaris and OpenBSD and other Unix variants
6334 that lack the fdatasync() function</li>
6335 <li>Now compiles on MSVC++6 again</li>
6336 <li>Fix uninitialized variables causing malfunctions for various obscure
6337 queries</li>
6338 <li>Correctly compute a LEFT OUTER JOINs that is constrained on the
6339 left table only</li>
6340
6341 </ol></p>
6342 <a name="version_3_2_6"></a>
6343 <h3>2005-09-17 (3.2.6)</h3><p><ol class='lessindent'>
6344 <li>Fix a bug that can cause database corruption if a VACUUM (or
6345 autovacuum) fails and is rolled back on a database that is
6346 larger than 1GiB</li>
6347 <li>LIKE optimization now works for columns with COLLATE NOCASE</li>
6348 <li>ORDER BY and GROUP BY now use bounded memory</li>
6349 <li>Added support for COUNT(DISTINCT expr)</li>
6350 <li>Change the way SUM() handles NULL values in order to comply with
6351 the SQL standard</li>
6352 <li>Use fdatasync() instead of fsync() where possible in order to speed
6353 up commits slightly</li>
6354 <li>Use of the CROSS keyword in a join turns off the table reordering
6355 optimization</li>
6356 <li>Added the experimental and undocumented EXPLAIN QUERY PLAN capability</li>
6357 <li>Use the unicode API in Windows</li>
6358
6359 </ol></p>
6360 <a name="version_3_2_5"></a>
6361 <h3>2005-08-27 (3.2.5)</h3><p><ol class='lessindent'>
6362 <li>Fix a bug effecting DELETE and UPDATE statements that changed
6363 more than 40960 rows.</li>
6364 <li>Change the makefile so that it no longer requires GNUmake extensions</li>
6365 <li>Fix the --enable-threadsafe option on the configure script</li>
6366 <li>Fix a code generator bug that occurs when the left-hand side of an IN
6367 operator is constant and the right-hand side is a SELECT statement</li>
6368 <li>The PRAGMA synchronous=off statement now disables syncing of the
6369 master journal file in addition to the normal rollback journals</li>
6370
6371 </ol></p>
6372 <a name="version_3_2_4"></a>
6373 <h3>2005-08-24 (3.2.4)</h3><p><ol class='lessindent'>
6374 <li>Fix a bug introduced in the previous release
6375 that can cause a segfault while generating code
6376 for complex WHERE clauses.</li>
6377 <li>Allow floating point literals to begin or end with a decimal point.</li>
6378
6379 </ol></p>
6380 <a name="version_3_2_3"></a>
6381 <h3>2005-08-21 (3.2.3)</h3><p><ol class='lessindent'>
6382 <li>Added support for the CAST operator</li>
6383 <li>Tcl interface allows BLOB values to be transferred to user-defined
6384 functions</li>
6385 <li>Added the "transaction" method to the Tcl interface</li>
6386 <li>Allow the DEFAULT value of a column to call functions that have constant
6387 operands</li>
6388 <li>Added the ANALYZE command for gathering statistics on indices and
6389 using those statistics when picking an index in the optimizer</li>
6390 <li>Remove the limit (formerly 100) on the number of terms in the
6391 WHERE clause</li>
6392 <li>The right-hand side of the IN operator can now be a list of expressions
6393 instead of just a list of constants</li>
6394 <li>Rework the optimizer so that it is able to make better use of indices</li>
6395 <li>The order of tables in a join is adjusted automatically to make
6396 better use of indices</li>
6397 <li>The IN operator is now a candidate for optimization even if the left-hand
6398 side is not the left-most term of the index. Multiple IN operators can be
6399 used with the same index.</li>
6400 <li>WHERE clause expressions using BETWEEN and OR are now candidates
6401 for optimization</li>
6402 <li>Added the "case_sensitive_like" pragma and the SQLITE_CASE_SENSITIVE_LIKE
6403 compile-time option to set its default value to "on".</li>
6404 <li>Use indices to help with GLOB expressions and LIKE expressions too
6405 when the case_sensitive_like pragma is enabled</li>
6406 <li>Added support for grave-accent quoting for compatibility with MySQL</li>
6407 <li>Improved test coverage</li>
6408 <li>Dozens of minor bug fixes</li>
6409
6410 </ol></p>
6411 <a name="version_3_2_2"></a>
6412 <h3>2005-06-12 (3.2.2)</h3><p><ol class='lessindent'>
6413 <li>Added the sqlite3_db_handle() API</li>
6414 <li>Added the sqlite3_get_autocommit() API</li>
6415 <li>Added a REGEXP operator to the parser. There is no function to back
6416 up this operator in the standard build but users can add their own using
6417 sqlite3_create_function()</li>
6418 <li>Speed improvements and library footprint reductions.</li>
6419 <li>Fix byte alignment problems on 64-bit architectures.</li>
6420 <li>Many, many minor bug fixes and documentation updates.</li>
6421
6422 </ol></p>
6423 <a name="version_3_2_1"></a>
6424 <h3>2005-03-29 (3.2.1)</h3><p><ol class='lessindent'>
6425 <li>Fix a memory allocation error in the new ADD COLUMN comment.</li>
6426 <li>Documentation updates</li>
6427
6428 </ol></p>
6429 <a name="version_3_2_0"></a>
6430 <h3>2005-03-21 (3.2.0)</h3><p><ol class='lessindent'>
6431 <li>Added support for ALTER TABLE ADD COLUMN.</li>
6432 <li>Added support for the "T" separator in ISO-8601 date/time strings.</li>
6433 <li>Improved support for Cygwin.</li>
6434 <li>Numerous bug fixes and documentation updates.</li>
6435
6436 </ol></p>
6437 <a name="version_3_1_6"></a>
6438 <h3>2005-03-17 (3.1.6)</h3><p><ol class='lessindent'>
6439 <li>Fix a bug that could cause database corruption when inserting
6440 record into tables with around 125 columns.</li>
6441 <li>sqlite3_step() is now much more likely to invoke the busy handler
6442 and less likely to return SQLITE_BUSY.</li>
6443 <li>Fix memory leaks that used to occur after a malloc() failure.</li>
6444
6445 </ol></p>
6446 <a name="version_3_1_5"></a>
6447 <h3>2005-03-11 (3.1.5)</h3><p><ol class='lessindent'>
6448 <li>The ioctl on Mac OS X to control syncing to disk is F_FULLFSYNC,
6449 not F_FULLSYNC. The previous release had it wrong.</li>
6450
6451 </ol></p>
6452 <a name="version_3_1_4"></a>
6453 <h3>2005-03-11 (3.1.4)</h3><p><ol class='lessindent'>
6454 <li>Fix a bug in autovacuum that could cause database corruption if
6455 a CREATE UNIQUE INDEX fails because of a constraint violation.
6456 This problem only occurs if the new autovacuum feature introduced in
6457 version 3.1 is turned on.</li>
6458 <li>The F_FULLSYNC ioctl (currently only supported on Mac OS X) is disabled
6459 if the synchronous pragma is set to something other than "full".</li>
6460 <li>Add additional forward compatibility to the future version 3.2 database
6461 file format.</li>
6462 <li>Fix a bug in WHERE clauses of the form (rowid<'2')</li>
6463 <li>New <a href="compile.html#omitfeatures">SQLITE_OMIT_...</a> compile-time options added</li>
6464 <li>Updates to the man page</li>
6465 <li>Remove the use of strcasecmp() from the shell</li>
6466 <li>Windows DLL exports symbols Tclsqlite_Init and Sqlite_Init</li>
6467
6468 </ol></p>
6469 <a name="version_3_1_3"></a>
6470 <h3>2005-02-19 (3.1.3)</h3><p><ol class='lessindent'>
6471 <li>Fix a problem with VACUUM on databases from which tables containing
6472 AUTOINCREMENT have been dropped.</li>
6473 <li>Add forward compatibility to the future version 3.2 database file
6474 format.</li>
6475 <li>Documentation updates</li>
6476
6477 </ol></p>
6478 <a name="version_3_1_2"></a>
6479 <h3>2005-02-15 (3.1.2)</h3><p><ol class='lessindent'>
6480 <li>Fix a bug that can lead to database corruption if there are two
6481 open connections to the same database and one connection does a VACUUM
6482 and the second makes some change to the database.</li>
6483 <li>Allow "?" parameters in the LIMIT clause.</li>
6484 <li>Fix VACUUM so that it works with AUTOINCREMENT.</li>
6485 <li>Fix a race condition in AUTOVACUUM that can lead to corrupt databases</li>
6486 <li>Add a numeric version number to the sqlite3.h include file.</li>
6487 <li>Other minor bug fixes and performance enhancements.</li>
6488
6489 </ol></p>
6490 <a name="version_2_8_16"></a>
6491 <h3>2005-02-15 (2.8.16)</h3><p><ol class='lessindent'>
6492 <li>Fix a bug that can lead to database corruption if there are two
6493 open connections to the same database and one connection does a VACUUM
6494 and the second makes some change to the database.</li>
6495 <li>Correctly handle quoted names in CREATE INDEX statements.</li>
6496 <li>Fix a naming conflict between sqlite.h and sqlite3.h.</li>
6497 <li>Avoid excess heap usage when copying expressions.</li>
6498 <li>Other minor bug fixes.</li>
6499
6500 </ol></p>
6501 <h3>2005-02-01 (3.1.1 BETA)</h3><p><ol class='lessindent'>
6502 <li>Automatic caching of prepared statements in the TCL interface</li>
6503 <li>ATTACH and DETACH as well as some other operations cause existing
6504 prepared statements to expire.</li>
6505 <li>Numerous minor bug fixes</li>
6506
6507 </ol></p>
6508 <h3>2005-01-21 (3.1.0 ALPHA)</h3><p><ol class='lessindent'>
6509 <li>Autovacuum support added</li>
6510 <li>CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP added</li>
6511 <li>Support for the EXISTS clause added.</li>
6512 <li>Support for correlated subqueries added.</li>
6513 <li>Added the ESCAPE clause on the LIKE operator.</li>
6514 <li>Support for ALTER TABLE ... RENAME TABLE ... added</li>
6515 <li>AUTOINCREMENT keyword supported on INTEGER PRIMARY KEY</li>
6516 <li>Many SQLITE_OMIT_ macros inserts to omit features at compile-time
6517 and reduce the library footprint.</li>
6518 <li>The REINDEX command was added.</li>
6519 <li>The engine no longer consults the main table if it can get
6520 all the information it needs from an index.</li>
6521 <li>Many nuisance bugs fixed.</li>
6522
6523 </ol></p>
6524 <a name="version_3_0_8"></a>
6525 <h3>2004-10-12 (3.0.8)</h3><p><ol class='lessindent'>
6526 <li>Add support for DEFERRED, IMMEDIATE, and EXCLUSIVE transactions.</li>
6527 <li>Allow new user-defined functions to be created when there are
6528 already one or more precompiled SQL statements.<li>
6529 <li>Fix portability problems for MinGW/MSYS.</li>
6530 <li>Fix a byte alignment problem on 64-bit Sparc machines.</li>
6531 <li>Fix the ".import" command of the shell so that it ignores \r
6532 characters at the end of lines.</li>
6533 <li>The "csv" mode option in the shell puts strings inside double-quotes.</li>
6534 <li>Fix typos in documentation.</li>
6535 <li>Convert array constants in the code to have type "const".</li>
6536 <li>Numerous code optimizations, specially optimizations designed to
6537 make the code footprint smaller.</li>
6538
6539 </ol></p>
6540 <a name="version_3_0_7"></a>
6541 <h3>2004-09-18 (3.0.7)</h3><p><ol class='lessindent'>
6542 <li>The BTree module allocates large buffers using malloc() instead of
6543 off of the stack, in order to play better on machines with limited
6544 stack space.</li>
6545 <li>Fixed naming conflicts so that versions 2.8 and 3.0 can be
6546 linked and used together in the same ANSI-C source file.</li>
6547 <li>New interface: sqlite3_bind_parameter_index()</li>
6548 <li>Add support for wildcard parameters of the form: "?nnn"</li>
6549 <li>Fix problems found on 64-bit systems.</li>
6550 <li>Removed encode.c file (containing unused routines) from the
6551 version 3.0 source tree.</li>
6552 <li>The sqlite3_trace() callbacks occur before each statement
6553 is executed, not when the statement is compiled.</li>
6554 <li>Makefile updates and miscellaneous bug fixes.</li>
6555
6556 </ol></p>
6557 <h3>2004-09-02 (3.0.6 beta)</h3><p><ol class='lessindent'>
6558 <li>Better detection and handling of corrupt database files.</li>
6559 <li>The sqlite3_step() interface returns SQLITE_BUSY if it is unable
6560 to commit a change because of a lock</li>
6561 <li>Combine the implementations of LIKE and GLOB into a single
6562 pattern-matching subroutine.</li>
6563 <li>Miscellaneous code size optimizations and bug fixes</li>
6564
6565 </ol></p>
6566 <h3>2004-08-29 (3.0.5 beta)</h3><p><ol class='lessindent'>
6567 <li>Support for ":AAA" style bind parameter names.</li>
6568 <li>Added the new sqlite3_bind_parameter_name() interface.</li>
6569 <li>Support for TCL variable names embedded in SQL statements in the
6570 TCL bindings.</li>
6571 <li>The TCL bindings transfer data without necessarily doing a conversion
6572 to a string.</li>
6573 <li>The database for TEMP tables is not created until it is needed.</li>
6574 <li>Add the ability to specify an alternative temporary file directory
6575 using the "sqlite_temp_directory" global variable.</li>
6576 <li>A compile-time option (SQLITE_BUSY_RESERVED_LOCK) causes the busy
6577 handler to be called when there is contention for a RESERVED lock.</li>
6578 <li>Various bug fixes and optimizations</li>
6579
6580 </ol></p>
6581 <h3>2004-08-09 (3.0.4 beta)</h3><p><ol class='lessindent'>
6582 <li>CREATE TABLE and DROP TABLE now work correctly as prepared statements.</li>
6583 <li>Fix a bug in VACUUM and UNIQUE indices.</li>
6584 <li>Add the ".import" command to the command-line shell.</li>
6585 <li>Fix a bug that could cause index corruption when an attempt to
6586 delete rows of a table is blocked by a pending query.</li>
6587 <li>Library size optimizations.</li>
6588 <li>Other minor bug fixes.</li>
6589
6590 </ol></p>
6591 <a name="version_2_8_15"></a>
6592 <h3>2004-07-22 (2.8.15)</h3><p><ol class='lessindent'>
6593 <li>This is a maintenance release only. Various minor bugs have been
6594 fixed and some portability enhancements are added.</li>
6595
6596 </ol></p>
6597 <h3>2004-07-22 (3.0.3 beta)</h3><p><ol class='lessindent'>
6598 <li>The second beta release for SQLite 3.0.</li>
6599 <li>Add support for "PRAGMA page_size" to adjust the page size of
6600 the database.</li>
6601 <li>Various bug fixes and documentation updates.</li>
6602
6603 </ol></p>
6604 <h3>2004-06-30 (3.0.2 beta)</h3><p><ol class='lessindent'>
6605 <li>The first beta release for SQLite 3.0.</li>
6606
6607 </ol></p>
6608 <h3>2004-06-22 (3.0.1 alpha)</h3><p><ol class='lessindent'>
6609 <li><font color="red"><b>
6610 *** Alpha Release - Research And Testing Use Only ***</b></font>
6611 <li>Lots of bug fixes.</li>
6612
6613 </ol></p>
6614 <h3>2004-06-18 (3.0.0 alpha)</h3><p><ol class='lessindent'>
6615 <li><font color="red"><b>
6616 *** Alpha Release - Research And Testing Use Only ***</b></font>
6617 <li>Support for internationalization including UTF-8, UTF-16, and
6618 user defined collating sequences.</li>
6619 <li>New file format that is 25% to 35% smaller for typical use.</li>
6620 <li>Improved concurrency.</li>
6621 <li>Atomic commits for ATTACHed databases.</li>
6622 <li>Remove cruft from the APIs.</li>
6623 <li>BLOB support.</li>
6624 <li>64-bit rowids.</li>
6625 <li><a href="version3.html">More information</a>.
6626
6627 </ol></p>
6628 <a name="version_2_8_14"></a>
6629 <h3>2004-06-09 (2.8.14)</h3><p><ol class='lessindent'>
6630 <li>Fix the min() and max() optimizer so that it works when the FROM
6631 clause consists of a subquery.</li>
6632 <li>Ignore extra whitespace at the end of "." commands in the shell.</li>
6633 <li>Bundle sqlite_encode_binary() and sqlite_decode_binary() with the
6634 library.</li>
6635 <li>The TEMP_STORE and DEFAULT_TEMP_STORE pragmas now work.</li>
6636 <li>Code changes to compile cleanly using OpenWatcom.</li>
6637 <li>Fix VDBE stack overflow problems with INSTEAD OF triggers and
6638 NULLs in IN operators.</li>
6639 <li>Add the global variable sqlite_temp_directory which if set defines the
6640 directory in which temporary files are stored.</li>
6641 <li>sqlite_interrupt() plays well with VACUUM.</li>
6642 <li>Other minor bug fixes.</li>
6643
6644 </ol></p>
6645 <a name="version_2_8_13"></a>
6646 <h3>2004-03-08 (2.8.13)</h3><p><ol class='lessindent'>
6647 <li>Refactor parts of the code in order to make the code footprint
6648 smaller. The code is now also a little bit faster.</li>
6649 <li>sqlite_exec() is now implemented as a wrapper around sqlite_compile()
6650 and sqlite_step().</li>
6651 <li>The built-in min() and max() functions now honor the difference between
6652 NUMERIC and TEXT datatypes. Formerly, min() and max() always assumed
6653 their arguments were of type NUMERIC.</li>
6654 <li>New HH:MM:SS modifier to the built-in date/time functions.</li>
6655 <li>Experimental sqlite_last_statement_changes() API added. Fixed
6656 the last_insert_rowid() function so that it works correctly with
6657 triggers.</li>
6658 <li>Add functions prototypes for the database encryption API.</li>
6659 <li>Fix several nuisance bugs.</li>
6660
6661 </ol></p>
6662 <a name="version_2_8_12"></a>
6663 <h3>2004-02-08 (2.8.12)</h3><p><ol class='lessindent'>
6664 <li>Fix a bug that will might corrupt the rollback journal if a power failure
6665 or external program halt occurs in the middle of a COMMIT. The corrupt
6666 journal can lead to database corruption when it is rolled back.</li>
6667 <li>Reduce the size and increase the speed of various modules, especially
6668 the virtual machine.</li>
6669 <li>Allow "&lt;expr&gt; IN &lt;table&gt;" as a shorthand for
6670 "&lt;expr&gt; IN (SELECT * FROM &lt;table&gt;".</li>
6671 <li>Optimizations to the sqlite_mprintf() routine.</li>
6672 <li>Make sure the MIN() and MAX() optimizations work within subqueries.</li>
6673
6674 </ol></p>
6675 <a name="version_2_8_11"></a>
6676 <h3>2004-01-14 (2.8.11)</h3><p><ol class='lessindent'>
6677 <li>Fix a bug in how the IN operator handles NULLs in subqueries. The bug
6678 was introduced by the previous release.</li>
6679
6680 </ol></p>
6681 <a name="version_2_8_10"></a>
6682 <h3>2004-01-14 (2.8.10)</h3><p><ol class='lessindent'>
6683 <li>Fix a potential database corruption problem on Unix caused by the fact
6684 that all POSIX advisory locks are cleared whenever you close() a file.
6685 The work around it to embargo all close() calls while locks are
6686 outstanding.</li>
6687 <li>Performance enhancements on some corner cases of COUNT(*).</li>
6688 <li>Make sure the in-memory backend response sanely if malloc() fails.</li>
6689 <li>Allow sqlite_exec() to be called from within user-defined SQL
6690 functions.</li>
6691 <li>Improved accuracy of floating-point conversions using "long double".</li>
6692 <li>Bug fixes in the experimental date/time functions.</li>
6693
6694 </ol></p>
6695 <a name="version_2_8_9"></a>
6696 <h3>2004-01-06 (2.8.9)</h3><p><ol class='lessindent'>
6697 <li>Fix a 32-bit integer overflow problem that could result in corrupt
6698 indices in a database if large negative numbers (less than -2147483648)
6699 were inserted into an indexed numeric column.</li>
6700 <li>Fix a locking problem on multi-threaded Linux implementations.</li>
6701 <li>Always use "." instead of "," as the decimal point even if the locale
6702 requests ",".</li>
6703 <li>Added UTC to localtime conversions to the experimental date/time
6704 functions.</li>
6705 <li>Bug fixes to date/time functions.</li>
6706
6707 </ol></p>
6708 <a name="version_2_8_8"></a>
6709 <h3>2003-12-18 (2.8.8)</h3><p><ol class='lessindent'>
6710 <li>Fix a critical bug introduced into 2.8.0 which could cause
6711 database corruption.</li>
6712 <li>Fix a problem with 3-way joins that do not use indices</li>
6713 <li>The VACUUM command now works with the non-callback API</li>
6714 <li>Improvements to the "PRAGMA integrity_check" command</li>
6715
6716 </ol></p>
6717 <a name="version_2_8_7"></a>
6718 <h3>2003-12-04 (2.8.7)</h3><p><ol class='lessindent'>
6719 <li>Added experimental sqlite_bind() and sqlite_reset() APIs.</li>
6720 <li>If the name of the database is an empty string, open a new database
6721 in a temporary file that is automatically deleted when the database
6722 is closed.</li>
6723 <li>Performance enhancements in the <a href="lemon.html">Lemon</a>-generated parser</li>
6724 <li>Experimental date/time functions revised.</li>
6725 <li>Disallow temporary indices on permanent tables.</li>
6726 <li>Documentation updates and typo fixes</li>
6727 <li>Added experimental sqlite_progress_handler() callback API</li>
6728 <li>Removed support for the Oracle8 outer join syntax.</li>
6729 <li>Allow GLOB and LIKE operators to work as functions.</li>
6730 <li>Other minor documentation and makefile changes and bug fixes.</li>
6731
6732 </ol></p>
6733 <a name="version_2_8_6"></a>
6734 <h3>2003-08-22 (2.8.6)</h3><p><ol class='lessindent'>
6735 <li>Moved the CVS repository to www.sqlite.org</li>
6736 <li>Update the NULL-handling documentation.</li>
6737 <li>Experimental date/time functions added.</li>
6738 <li>Bug fix: correctly evaluate a view of a view without segfaulting.</li>
6739 <li>Bug fix: prevent database corruption if you dropped a
6740 trigger that had the same name as a table.</li>
6741 <li>Bug fix: allow a VACUUM (without segfaulting) on an empty
6742 database after setting the EMPTY_RESULT_CALLBACKS pragma.</li>
6743 <li>Bug fix: if an integer value will not fit in a 32-bit int, store it in
6744 a double instead.</li>
6745 <li>Bug fix: Make sure the journal file directory entry is committed to disk
6746 before writing the database file.</li>
6747
6748 </ol></p>
6749 <a name="version_2_8_5"></a>
6750 <h3>2003-07-22 (2.8.5)</h3><p><ol class='lessindent'>
6751 <li>Make LIMIT work on a compound SELECT statement.</li>
6752 <li>LIMIT 0 now shows no rows. Use LIMIT -1 to see all rows.</li>
6753 <li>Correctly handle comparisons between an INTEGER PRIMARY KEY and
6754 a floating point number.</li>
6755 <li>Fix several important bugs in the new ATTACH and DETACH commands.</li>
6756 <li>Updated the <a href="nulls.html">NULL-handling document</a>.</li>
6757 <li>Allow NULL arguments in sqlite_compile() and sqlite_step().</li>
6758 <li>Many minor bug fixes</li>
6759
6760 </ol></p>
6761 <a name="version_2_8_4"></a>
6762 <h3>2003-06-29 (2.8.4)</h3><p><ol class='lessindent'>
6763 <li>Enhanced the "PRAGMA integrity_check" command to verify indices.</li>
6764 <li>Added authorization hooks for the new ATTACH and DETACH commands.</li>
6765 <li>Many documentation updates</li>
6766 <li>Many minor bug fixes</li>
6767
6768 </ol></p>
6769 <a name="version_2_8_3"></a>
6770 <h3>2003-06-04 (2.8.3)</h3><p><ol class='lessindent'>
6771 <li>Fix a problem that will corrupt the indices on a table if you
6772 do an INSERT OR REPLACE or an UPDATE OR REPLACE on a table that
6773 contains an INTEGER PRIMARY KEY plus one or more indices.</li>
6774 <li>Fix a bug in Windows locking code so that locks work correctly
6775 when simultaneously accessed by Win95 and WinNT systems.</li>
6776 <li>Add the ability for INSERT and UPDATE statements to refer to the
6777 "rowid" (or "_rowid_" or "oid") columns.</li>
6778 <li>Other important bug fixes</li>
6779
6780 </ol></p>
6781 <a name="version_2_8_2"></a>
6782 <h3>2003-05-17 (2.8.2)</h3><p><ol class='lessindent'>
6783 <li>Fix a problem that will corrupt the database file if you drop a
6784 table from the main database that has a TEMP index.</li>
6785
6786 </ol></p>
6787 <a name="version_2_8_1"></a>
6788 <h3>2003-05-17 (2.8.1)</h3><p><ol class='lessindent'>
6789 <li>Reactivated the VACUUM command that reclaims unused disk space in
6790 a database file.</li>
6791 <li>Added the ATTACH and DETACH commands to allow interacting with multiple
6792 database files at the same time.</li>
6793 <li>Added support for TEMP triggers and indices.</li>
6794 <li>Added support for in-memory databases.</li>
6795 <li>Removed the experimental sqlite_open_aux_file(). Its function is
6796 subsumed in the new ATTACH command.</li>
6797 <li>The precedence order for ON CONFLICT clauses was changed so that
6798 ON CONFLICT clauses on BEGIN statements have a higher precedence than
6799 ON CONFLICT clauses on constraints.
6800 <li>Many, many bug fixes and compatibility enhancements.</li>
6801
6802 </ol></p>
6803 <a name="version_2_8_0"></a>
6804 <h3>2003-02-16 (2.8.0)</h3><p><ol class='lessindent'>
6805 <li>Modified the journal file format to make it more resistant to corruption
6806 that can occur after an OS crash or power failure.</li>
6807 <li>Added a new C/C++ API that does not use callback for returning data.</li>
6808
6809 </ol></p>
6810 <a name="version_2_7_6"></a>
6811 <h3>2003-01-25 (2.7.6)</h3><p><ol class='lessindent'>
6812 <li>Performance improvements. The library is now much faster.</li>
6813 <li>Added the <b>sqlite_set_authorizer()</b> API. Formal documentation has
6814 not been written - see the source code comments for instructions on
6815 how to use this function.</li>
6816 <li>Fix a bug in the GLOB operator that was preventing it from working
6817 with upper-case letters.</li>
6818 <li>Various minor bug fixes.</li>
6819
6820 </ol></p>
6821 <a name="version_2_7_5"></a>
6822 <h3>2002-12-28 (2.7.5)</h3><p><ol class='lessindent'>
6823 <li>Fix an uninitialized variable in pager.c which could (with a probability
6824 of about 1 in 4 billion) result in a corrupted database.</li>
6825
6826 </ol></p>
6827 <a name="version_2_7_4"></a>
6828 <h3>2002-12-17 (2.7.4)</h3><p><ol class='lessindent'>
6829 <li>Database files can now grow to be up to 2&#94;41 bytes. The old limit
6830 was 2&#94;31 bytes.</li>
6831 <li>The optimizer will now scan tables in the reverse if doing so will
6832 satisfy an ORDER BY ... DESC clause.</li>
6833 <li>The full pathname of the database file is now remembered even if
6834 a relative path is passed into sqlite_open(). This allows
6835 the library to continue operating correctly after a chdir().</li>
6836 <li>Speed improvements in the VDBE.</li>
6837 <li>Lots of little bug fixes.</li>
6838
6839 </ol></p>
6840 <a name="version_2_7_3"></a>
6841 <h3>2002-10-31 (2.7.3)</h3><p><ol class='lessindent'>
6842 <li>Various compiler compatibility fixes.</li>
6843 <li>Fix a bug in the "expr IN ()" operator.</li>
6844 <li>Accept column names in parentheses.</li>
6845 <li>Fix a problem with string memory management in the VDBE</li>
6846 <li>Fix a bug in the "table_info" pragma"</li>
6847 <li>Export the sqlite_function_type() API function in the Windows DLL</li>
6848 <li>Fix locking behavior under Windows</li>
6849 <li>Fix a bug in LEFT OUTER JOIN</li>
6850
6851 </ol></p>
6852 <a name="version_2_7_2"></a>
6853 <h3>2002-09-25 (2.7.2)</h3><p><ol class='lessindent'>
6854 <li>Prevent journal file overflows on huge transactions.</li>
6855 <li>Fix a memory leak that occurred when sqlite_open() failed.</li>
6856 <li>Honor the ORDER BY and LIMIT clause of a SELECT even if the
6857 result set is used for an INSERT.</li>
6858 <li>Do not put write locks on the file used to hold TEMP tables.</li>
6859 <li>Added documentation on SELECT DISTINCT and on how SQLite handles NULLs.</li>
6860 <li>Fix a problem that was causing poor performance when many thousands
6861 of SQL statements were executed by a single sqlite_exec() call.</li>
6862
6863 </ol></p>
6864 <a name="version_2_7_1"></a>
6865 <h3>2002-08-31 (2.7.1)</h3><p><ol class='lessindent'>
6866 <li>Fix a bug in the ORDER BY logic that was introduced in version 2.7.0</li>
6867 <li>C-style comments are now accepted by the tokenizer.</li>
6868 <li>INSERT runs a little faster when the source is a SELECT statement.</li>
6869
6870 </ol></p>
6871 <a name="version_2_7_0"></a>
6872 <h3>2002-08-25 (2.7.0)</h3><p><ol class='lessindent'>
6873 <li>Make a distinction between numeric and text values when sorting.
6874 Text values sort according to memcmp(). Numeric values sort in
6875 numeric order.</li>
6876 <li>Allow multiple simultaneous readers under Windows by simulating
6877 the reader/writers locks that are missing from Win95/98/ME.</li>
6878 <li>An error is now returned when trying to start a transaction if
6879 another transaction is already active.</li>
6880
6881 </ol></p>
6882 <a name="version_2_6_3"></a>
6883 <h3>2002-08-13 (2.6.3)</h3><p><ol class='lessindent'>
6884 <li>Add the ability to read both little-endian and big-endian databases.
6885 So a database created under SunOS or Mac OS X can be read and written
6886 under Linux or Windows and vice versa.</li>
6887 <li>Convert to the new website: https://sqlite.org/</li>
6888 <li>Allow transactions to span Linux Threads</li>
6889 <li>Bug fix in the processing of the ORDER BY clause for GROUP BY queries</li>
6890
6891 </ol></p>
6892 <a name="version_2_6_2"></a>
6893 <h3>2002-07-31 (2.6.2)</h3><p><ol class='lessindent'>
6894 <li>Text files read by the COPY command can now have line terminators
6895 of LF, CRLF, or CR.</li>
6896 <li>SQLITE_BUSY is handled correctly if encountered during database
6897 initialization.</li>
6898 <li>Fix to UPDATE triggers on TEMP tables.</li>
6899 <li>Documentation updates.</li>
6900
6901 </ol></p>
6902 <a name="version_2_6_1"></a>
6903 <h3>2002-07-19 (2.6.1)</h3><p><ol class='lessindent'>
6904 <li>Include a static string in the library that responds to the RCS
6905 "ident" command and which contains the library version number.</li>
6906 <li>Fix an assertion failure that occurred when deleting all rows of
6907 a table with the "count_changes" pragma turned on.</li>
6908 <li>Better error reporting when problems occur during the automatic
6909 2.5.6 to 2.6.0 database format upgrade.</li>
6910
6911 </ol></p>
6912 <a name="version_2_6_0"></a>
6913 <h3>2002-07-18 (2.6.0)</h3><p><ol class='lessindent'>
6914 <li>Change the format of indices to correct a design flaw the originated
6915 with version 2.1.0. <font color="red">*** This is an incompatible
6916 file format change ***</font> When version 2.6.0 or later of the
6917 library attempts to open a database file created by version 2.5.6 or
6918 earlier, it will automatically and irreversibly convert the file format.
6919 <b>Make backup copies of older database files before opening them with
6920 version 2.6.0 of the library.</b>
6921 </li>
6922
6923 </ol></p>
6924 <a name="version_2_5_6"></a>
6925 <h3>2002-07-07 (2.5.6)</h3><p><ol class='lessindent'>
6926 <li>Fix more problems with rollback. Enhance the test suite to exercise
6927 the rollback logic extensively in order to prevent any future problems.
6928 </li>
6929
6930 </ol></p>
6931 <a name="version_2_5_5"></a>
6932 <h3>2002-07-06 (2.5.5)</h3><p><ol class='lessindent'>
6933 <li>Fix a bug which could cause database corruption during a rollback.
6934 This bugs was introduced in version 2.4.0 by the freelist
6935 optimization of checkin &#91;410&#93;.</li>
6936 <li>Fix a bug in aggregate functions for VIEWs.</li>
6937 <li>Other minor changes and enhancements.</li>
6938
6939 </ol></p>
6940 <a name="version_2_5_4"></a>
6941 <h3>2002-07-01 (2.5.4)</h3><p><ol class='lessindent'>
6942 <li>Make the "AS" keyword optional again.</li>
6943 <li>The datatype of columns now appear in the 4th argument to the
6944 callback.</li>
6945 <li>Added the <b>sqlite_open_aux_file()</b> API, though it is still
6946 mostly undocumented and untested.</li>
6947 <li>Added additional test cases and fixed a few bugs that those
6948 test cases found.</li>
6949
6950 </ol></p>
6951 <a name="version_2_5_3"></a>
6952 <h3>2002-06-25 (2.5.3)</h3><p><ol class='lessindent'>
6953 <li>Bug fix: Database corruption can occur due to the optimization
6954 that was introduced in version 2.4.0 (check-in &#91;410&#93;). The problem
6955 should now be fixed. The use of versions 2.4.0 through 2.5.2 is
6956 not recommended.</li>
6957
6958 </ol></p>
6959 <a name="version_2_5_2"></a>
6960 <h3>2002-06-25 (2.5.2)</h3><p><ol class='lessindent'>
6961 <li>Added the new <b>SQLITE_TEMP_MASTER</b> table which records the schema
6962 for temporary tables in the same way that <b>SQLITE_MASTER</b> does for
6963 persistent tables.</li>
6964 <li>Added an optimization to UNION ALL</li>
6965 <li>Fixed a bug in the processing of LEFT OUTER JOIN</li>
6966 <li>The LIMIT clause now works on subselects</li>
6967 <li>ORDER BY works on subselects</li>
6968 <li>There is a new TypeOf() function used to determine if an expression
6969 is numeric or text.</li>
6970 <li>Autoincrement now works for INSERT from a SELECT.</li>
6971
6972 </ol></p>
6973 <a name="version_2_5_1"></a>
6974 <h3>2002-06-19 (2.5.1)</h3><p><ol class='lessindent'>
6975 <li>The query optimizer now attempts to implement the ORDER BY clause
6976 using an index. Sorting is still used if not suitable index is
6977 available.</li>
6978
6979 </ol></p>
6980 <a name="version_2_5_0"></a>
6981 <h3>2002-06-17 (2.5.0)</h3><p><ol class='lessindent'>
6982 <li>Added support for row triggers.</li>
6983 <li>Added SQL-92 compliant handling of NULLs.</li>
6984 <li>Add support for the full SQL-92 join syntax and LEFT OUTER JOINs.</li>
6985 <li>Double-quoted strings interpreted as column names not text literals.</li>
6986 <li>Parse (but do not implement) foreign keys.</li>
6987 <li>Performance improvements in the parser, pager, and WHERE clause code
6988 generator.</li>
6989 <li>Make the LIMIT clause work on subqueries. (ORDER BY still does not
6990 work, though.)</li>
6991 <li>Added the "%Q" expansion to sqlite_*_printf().</li>
6992 <li>Bug fixes too numerous to mention (see the change log).</li>
6993
6994 </ol></p>
6995 <a name="version_2_4_12"></a>
6996 <h3>2002-05-10 (2.4.12)</h3><p><ol class='lessindent'>
6997 <li>Added logic to detect when the library API routines are called out
6998 of sequence.</li>
6999
7000 </ol></p>
7001 <a name="version_2_4_11"></a>
7002 <h3>2002-05-08 (2.4.11)</h3><p><ol class='lessindent'>
7003 <li>Bug fix: Column names in the result set were not being generated
7004 correctly for some (rather complex) VIEWs. This could cause a
7005 segfault under certain circumstances.</li>
7006
7007 </ol></p>
7008 <a name="version_2_4_10"></a>
7009 <h3>2002-05-03 (2.4.10)</h3><p><ol class='lessindent'>
7010 <li>Bug fix: Generate correct column headers when a compound SELECT is used
7011 as a subquery.</li>
7012 <li>Added the sqlite_encode_binary() and sqlite_decode_binary() functions to
7013 the source tree. But they are not yet linked into the library.</li>
7014 <li>Documentation updates.</li>
7015 <li>Export the sqlite_changes() function from Windows DLLs.</li>
7016 <li>Bug fix: Do not attempt the subquery flattening optimization on queries
7017 that lack a FROM clause. To do so causes a segfault.</li>
7018
7019 </ol></p>
7020 <a name="version_2_4_9"></a>
7021 <h3>2002-04-22 (2.4.9)</h3><p><ol class='lessindent'>
7022 <li>Fix a bug that was causing the precompiled binary of SQLITE.EXE to
7023 report "out of memory" under Windows 98.</li>
7024
7025 </ol></p>
7026 <a name="version_2_4_8"></a>
7027 <h3>2002-04-20 (2.4.8)</h3><p><ol class='lessindent'>
7028 <li>Make sure VIEWs are created after their corresponding TABLEs in the
7029 output of the <b>.dump</b> command in the shell.</li>
7030 <li>Speed improvements: Do not do synchronous updates on TEMP tables.</li>
7031 <li>Many improvements and enhancements to the shell.</li>
7032 <li>Make the GLOB and LIKE operators functions that can be overridden
7033 by a programmer. This allows, for example, the LIKE operator to
7034 be changed to be case sensitive.</li>
7035
7036 </ol></p>
7037 <a name="version_2_4_7"></a>
7038 <h3>2002-04-12 (2.4.7)</h3><p><ol class='lessindent'>
7039 <li>Add the ability to put TABLE.* in the column list of a
7040 SELECT statement.</li>
7041 <li>Permit SELECT statements without a FROM clause.</li>
7042 <li>Added the <b>last_insert_rowid()</b> SQL function.</li>
7043 <li>Do not count rows where the IGNORE conflict resolution occurs in
7044 the row count.</li>
7045 <li>Make sure functions expressions in the VALUES clause of an INSERT
7046 are correct.</li>
7047 <li>Added the <b>sqlite_changes()</b> API function to return the number
7048 of row that changed in the most recent operation.</li>
7049
7050 </ol></p>
7051 <a name="version_2_4_6"></a>
7052 <h3>2002-04-02 (2.4.6)</h3><p><ol class='lessindent'>
7053 <li>Bug fix: Correctly handle terms in the WHERE clause of a join that
7054 do not contain a comparison operator.</li>
7055
7056 </ol></p>
7057 <a name="version_2_4_5"></a>
7058 <h3>2002-04-02 (2.4.5)</h3><p><ol class='lessindent'>
7059 <li>Bug fix: Correctly handle functions that appear in the WHERE clause
7060 of a join.</li>
7061 <li>When the PRAGMA vdbe_trace=ON is set, correctly print the P3 operand
7062 value when it is a pointer to a structure rather than a pointer to
7063 a string.</li>
7064 <li>When inserting an explicit NULL into an INTEGER PRIMARY KEY, convert
7065 the NULL value into a unique key automatically.</li>
7066
7067 </ol></p>
7068 <a name="version_2_4_4"></a>
7069 <h3>2002-03-30 (2.4.4)</h3><p><ol class='lessindent'>
7070 <li>Allow "VIEW" to be a column name</li>
7071 <li>Added support for CASE expressions (patch from Dan Kennedy)</li>
7072 <li>Added RPMS to the delivery (patches from Doug Henry)</li>
7073 <li>Fix typos in the documentation</li>
7074 <li>Cut over configuration management to a new CVS repository with
7075 its own CVSTrac bug tracking system.</li>
7076
7077 </ol></p>
7078 <a name="version_2_4_3"></a>
7079 <h3>2002-03-23 (2.4.3)</h3><p><ol class='lessindent'>
7080 <li>Fix a bug in SELECT that occurs when a compound SELECT is used as a
7081 subquery in the FROM of a SELECT.</li>
7082 <li>The <b>sqlite_get_table()</b> function now returns an error if you
7083 give it two or more SELECTs that return different numbers of columns.</li>
7084
7085 </ol></p>
7086 <a name="version_2_4_2"></a>
7087 <h3>2002-03-20 (2.4.2)</h3><p><ol class='lessindent'>
7088 <li>Bug fix: Fix an assertion failure that occurred when ROWID was a column
7089 in a SELECT statement on a view.</li>
7090 <li>Bug fix: Fix an uninitialized variable in the VDBE that would could an
7091 assert failure.</li>
7092 <li>Make the os.h header file more robust in detecting when the compile is
7093 for Windows and when it is for Unix.</li>
7094
7095 </ol></p>
7096 <a name="version_2_4_1"></a>
7097 <h3>2002-03-13 (2.4.1)</h3><p><ol class='lessindent'>
7098 <li>Using an unnamed subquery in a FROM clause would cause a segfault.</li>
7099 <li>The parser now insists on seeing a semicolon or the end of input before
7100 executing a statement. This avoids an accidental disaster if the
7101 WHERE keyword is misspelled in an UPDATE or DELETE statement.</li>
7102
7103 </ol></p>
7104 <a name="version_2_4_0"></a>
7105 <h3>2002-03-11 (2.4.0)</h3><p><ol class='lessindent'>
7106 <li>Change the name of the sanity_check PRAGMA to <b>integrity_check</b>
7107 and make it available in all compiles.</li>
7108 <li>SELECT min() or max() of an indexed column with no WHERE or GROUP BY
7109 clause is handled as a special case which avoids a complete table scan.</li>
7110 <li>Automatically generated ROWIDs are now sequential.</li>
7111 <li>Do not allow dot-commands of the command-line shell to occur in the
7112 middle of a real SQL command.</li>
7113 <li>Modifications to the <a href="lemon.html">Lemon parser generator</a> so that the parser tables
7114 are 4 times smaller.</li>
7115 <li>Added support for user-defined functions implemented in C.</li>
7116 <li>Added support for new functions: <b>coalesce()</b>, <b>lower()</b>,
7117 <b>upper()</b>, and <b>random()</b>
7118 <li>Added support for VIEWs.</li>
7119 <li>Added the subquery flattening optimizer.</li>
7120 <li>Modified the B-Tree and Pager modules so that disk pages that do not
7121 contain real data (free pages) are not journaled and are not
7122 written from memory back to the disk when they change. This does not
7123 impact database integrity, since the
7124 pages contain no real data, but it does make large INSERT operations
7125 about 2.5 times faster and large DELETEs about 5 times faster.</li>
7126 <li>Made the CACHE_SIZE pragma persistent</li>
7127 <li>Added the SYNCHRONOUS pragma</li>
7128 <li>Fixed a bug that was causing updates to fail inside of transactions when
7129 the database contained a temporary table.</li>
7130
7131 </ol></p>
7132 <a name="version_2_3_3"></a>
7133 <h3>2002-02-19 (2.3.3)</h3><p><ol class='lessindent'>
7134 <li>Allow identifiers to be quoted in square brackets, for compatibility
7135 with MS-Access.</li>
7136 <li>Added support for sub-queries in the FROM clause of a SELECT.</li>
7137 <li>More efficient implementation of sqliteFileExists() under Windows.
7138 (by Joel Luscy)</li>
7139 <li>The VALUES clause of an INSERT can now contain expressions, including
7140 scalar SELECT clauses.</li>
7141 <li>Added support for CREATE TABLE AS SELECT</li>
7142 <li>Bug fix: Creating and dropping a table all within a single
7143 transaction was not working.</li>
7144
7145 </ol></p>
7146 <a name="version_2_3_2"></a>
7147 <h3>2002-02-14 (2.3.2)</h3><p><ol class='lessindent'>
7148 <li>Bug fix: There was an incorrect assert() in pager.c. The real code was
7149 all correct (as far as is known) so everything should work OK if you
7150 compile with -DNDEBUG=1. When asserts are not disabled, there
7151 could be a fault.</li>
7152
7153 </ol></p>
7154 <a name="version_2_3_1"></a>
7155 <h3>2002-02-13 (2.3.1)</h3><p><ol class='lessindent'>
7156 <li>Bug fix: An assertion was failing if "PRAGMA full_column_names=ON;" was
7157 set and you did a query that used a rowid, like this:
7158 "SELECT rowid, * FROM ...".</li>
7159
7160 </ol></p>
7161 <a name="version_2_3_0"></a>
7162 <h3>2002-02-03 (2.3.0)</h3><p><ol class='lessindent'>
7163 <li>Fix a serious bug in the INSERT command which was causing data to go
7164 into the wrong columns if the data source was a SELECT and the INSERT
7165 clauses specified its columns in some order other than the default.</li>
7166 <li>Added the ability to resolve constraint conflicts is ways other than
7167 an abort and rollback. See the documentation on the "ON CONFLICT"
7168 clause for details.</li>
7169 <li>Temporary files are now automatically deleted by the operating system
7170 when closed. There are no more dangling temporary files on a program
7171 crash. (If the OS crashes, fsck will delete the file after reboot
7172 under Unix. I do not know what happens under Windows.)</li>
7173 <li>NOT NULL constraints are honored.</li>
7174 <li>The COPY command puts NULLs in columns whose data is '\N'.</li>
7175 <li>In the COPY command, backslash can now be used to escape a newline.</li>
7176 <li>Added the SANITY_CHECK pragma.</li>
7177
7178 </ol></p>
7179 <a name="version_2_2_5"></a>
7180 <h3>2002-01-28 (2.2.5)</h3><p><ol class='lessindent'>
7181 <li>Important bug fix: the IN operator was not working if either the
7182 left-hand or right-hand side was derived from an INTEGER PRIMARY KEY.</li>
7183 <li>Do not escape the backslash '\' character in the output of the
7184 <b>sqlite</b> command-line access program.</li>
7185
7186 </ol></p>
7187 <a name="version_2_2_4"></a>
7188 <h3>2002-01-22 (2.2.4)</h3><p><ol class='lessindent'>
7189 <li>The label to the right of an AS in the column list of a SELECT can now
7190 be used as part of an expression in the WHERE, ORDER BY, GROUP BY, and/or
7191 HAVING clauses.</li>
7192 <li>Fix a bug in the <b>-separator</b> command-line option to the <b>sqlite</b>
7193 command.</li>
7194 <li>Fix a problem with the sort order when comparing upper-case strings against
7195 characters greater than 'Z' but less than 'a'.</li>
7196 <li>Report an error if an ORDER BY or GROUP BY expression is constant.</li>
7197
7198 </ol></p>
7199 <a name="version_2_2_3"></a>
7200 <h3>2002-01-16 (2.2.3)</h3><p><ol class='lessindent'>
7201 <li>Fix warning messages in VC++ 7.0. (Patches from nicolas352001)</li>
7202 <li>Make the library thread-safe. (The code is there and appears to work
7203 but has not been stressed.)</li>
7204 <li>Added the new <b>sqlite_last_insert_rowid()</b> API function.</li>
7205
7206 </ol></p>
7207 <a name="version_2_2_2"></a>
7208 <h3>2002-01-14 (2.2.2)</h3><p><ol class='lessindent'>
7209 <li>Bug fix: An assertion was failing when a temporary table with an index
7210 had the same name as a permanent table created by a separate process.</li>
7211 <li>Bug fix: Updates to tables containing an INTEGER PRIMARY KEY and an
7212 index could fail.</li>
7213
7214 </ol></p>
7215 <a name="version_2_2_1"></a>
7216 <h3>2002-01-09 (2.2.1)</h3><p><ol class='lessindent'>
7217 <li>Bug fix: An attempt to delete a single row of a table with a WHERE
7218 clause of "ROWID=x" when no such rowid exists was causing an error.</li>
7219 <li>Bug fix: Passing in a NULL as the 3rd parameter to <b>sqlite_open()</b>
7220 would sometimes cause a coredump.</li>
7221 <li>Bug fix: DROP TABLE followed by a CREATE TABLE with the same name all
7222 within a single transaction was causing a coredump.</li>
7223 <li>Makefile updates from A. Rottmann</li>
7224
7225 </ol></p>
7226 <a name="version_2_2_0"></a>
7227 <h3>2001-12-22 (2.2.0)</h3><p><ol class='lessindent'>
7228 <li>Columns of type INTEGER PRIMARY KEY are actually used as the primary
7229 key in underlying B-Tree representation of the table.</li>
7230 <li>Several obscure, unrelated bugs were found and fixed while
7231 implemented the integer primary key change of the previous bullet.</li>
7232 <li>Added the ability to specify "*" as part of a larger column list in
7233 the result section of a SELECT statement. For example:
7234 <nobr>"<b>SELECT rowid, * FROM table1;</b>"</nobr>.</li>
7235 <li>Updates to comments and documentation.</li>
7236
7237 </ol></p>
7238 <a name="version_2_1_7"></a>
7239 <h3>2001-12-15 (2.1.7)</h3><p><ol class='lessindent'>
7240 <li>Fix a bug in <b>CREATE TEMPORARY TABLE</b> which was causing the
7241 table to be initially allocated in the main database file instead
7242 of in the separate temporary file. This bug could cause the library
7243 to suffer an assertion failure and it could cause "page leaks" in the
7244 main database file.
7245 <li>Fix a bug in the b-tree subsystem that could sometimes cause the first
7246 row of a table to be repeated during a database scan.</li>
7247
7248 </ol></p>
7249 <a name="version_2_1_6"></a>
7250 <h3>2001-12-14 (2.1.6)</h3><p><ol class='lessindent'>
7251 <li>Fix the locking mechanism yet again to prevent
7252 <b>sqlite_exec()</b> from returning SQLITE_PROTOCOL
7253 unnecessarily. This time the bug was a race condition in
7254 the locking code. This change affects both POSIX and Windows users.</li>
7255
7256 </ol></p>
7257 <a name="version_2_1_5"></a>
7258 <h3>2001-12-06 (2.1.5)</h3><p><ol class='lessindent'>
7259 <li>Fix for another problem (unrelated to the one fixed in 2.1.4)
7260 that sometimes causes <b>sqlite_exec()</b> to return SQLITE_PROTOCOL
7261 unnecessarily. This time the bug was
7262 in the POSIX locking code and should not effect Windows users.</li>
7263
7264 </ol></p>
7265 <a name="version_2_1_4"></a>
7266 <h3>2001-12-05 (2.1.4)</h3><p><ol class='lessindent'>
7267 <li>Sometimes <b>sqlite_exec()</b> would return SQLITE_PROTOCOL when it
7268 should have returned SQLITE_BUSY.</li>
7269 <li>The fix to the previous bug uncovered a deadlock which was also
7270 fixed.</li>
7271 <li>Add the ability to put a single .command in the second argument
7272 of the sqlite shell</li>
7273 <li>Updates to the FAQ</li>
7274
7275 </ol></p>
7276 <a name="version_2_1_3"></a>
7277 <h3>2001-11-24 (2.1.3)</h3><p><ol class='lessindent'>
7278 <li>Fix the behavior of comparison operators
7279 (ex: "<b>&lt;</b>", "<b>==</b>", etc.)
7280 so that they are consistent with the order of entries in an index.</li>
7281 <li>Correct handling of integers in SQL expressions that are larger than
7282 what can be represented by the machine integer.</li>
7283
7284 </ol></p>
7285 <a name="version_2_1_2"></a>
7286 <h3>2001-11-23 (2.1.2)</h3><p><ol class='lessindent'>
7287 <li>Changes to support 64-bit architectures.</li>
7288 <li>Fix a bug in the locking protocol.</li>
7289 <li>Fix a bug that could (rarely) cause the database to become
7290 unreadable after a DROP TABLE due to corruption to the SQLITE_MASTER
7291 table.</li>
7292 <li>Change the code so that version 2.1.1 databases that were rendered
7293 unreadable by the above bug can be read by this version of
7294 the library even though the SQLITE_MASTER table is (slightly)
7295 corrupted.</li>
7296
7297 </ol></p>
7298 <a name="version_2_1_1"></a>
7299 <h3>2001-11-13 (2.1.1)</h3><p><ol class='lessindent'>
7300 <li>Bug fix: Sometimes arbitrary strings were passed to the callback
7301 function when the actual value of a column was NULL.</li>
7302
7303 </ol></p>
7304 <a name="version_2_1_0"></a>
7305 <h3>2001-11-12 (2.1.0)</h3><p><ol class='lessindent'>
7306 <li>Change the format of data records so that records up to 16MB in size
7307 can be stored.</li>
7308 <li>Change the format of indices to allow for better query optimization.</li>
7309 <li>Implement the "LIMIT ... OFFSET ..." clause on SELECT statements.</li>
7310
7311 </ol></p>
7312 <a name="version_2_0_8"></a>
7313 <h3>2001-11-03 (2.0.8)</h3><p><ol class='lessindent'>
7314 <li>Made selected parameters in API functions <b>const</b>. This should
7315 be fully backwards compatible.</li>
7316 <li>Documentation updates</li>
7317 <li>Simplify the design of the VDBE by restricting the number of sorters
7318 and lists to 1.
7319 In practice, no more than one sorter and one list was ever used anyhow.
7320 </li>
7321
7322 </ol></p>
7323 <a name="version_2_0_7"></a>
7324 <h3>2001-10-22 (2.0.7)</h3><p><ol class='lessindent'>
7325 <li>Any UTF-8 character or ISO8859 character can be used as part of
7326 an identifier.</li>
7327 <li>Patches from Christian Werner to improve ODBC compatibility and to
7328 fix a bug in the round() function.</li>
7329 <li>Plug some memory leaks that use to occur if malloc() failed.
7330 We have been and continue to be memory leak free as long as
7331 malloc() works.</li>
7332 <li>Changes to some test scripts so that they work on Windows in
7333 addition to Unix.</li>
7334
7335 </ol></p>
7336 <a name="version_2_0_6"></a>
7337 <h3>2001-10-19 (2.0.6)</h3><p><ol class='lessindent'>
7338 <li>Added the EMPTY_RESULT_CALLBACKS pragma</li>
7339 <li>Support for UTF-8 and ISO8859 characters in column and table names.</li>
7340 <li>Bug fix: Compute correct table names with the FULL_COLUMN_NAMES pragma
7341 is turned on.</li>
7342
7343 </ol></p>
7344 <a name="version_2_0_5"></a>
7345 <h3>2001-10-15 (2.0.5)</h3><p><ol class='lessindent'>
7346 <li>Added the COUNT_CHANGES pragma.</li>
7347 <li>Changes to the FULL_COLUMN_NAMES pragma to help out the ODBC driver.</li>
7348 <li>Bug fix: "SELECT count(*)" was returning NULL for empty tables.
7349 Now it returns 0.</li>
7350
7351 </ol></p>
7352 <a name="version_2_0_4"></a>
7353 <h3>2001-10-13 (2.0.4)</h3><p><ol class='lessindent'>
7354 <li>Bug fix: an obscure and relatively harmless bug was causing one of
7355 the tests to fail when gcc optimizations are turned on. This release
7356 fixes the problem.</li>
7357
7358 </ol></p>
7359 <a name="version_2_0_3"></a>
7360 <h3>2001-10-13 (2.0.3)</h3><p><ol class='lessindent'>
7361 <li>Bug fix: the <b>sqlite_busy_timeout()</b> function was delaying 1000
7362 times too long before failing.</li>
7363 <li>Bug fix: an assertion was failing if the disk holding the database
7364 file became full or stopped accepting writes for some other reason.
7365 New tests were added to detect similar problems in the future.</li>
7366 <li>Added new operators: <b>&amp;</b> (bitwise-and)
7367 <b>|</b> (bitwise-or), <b>~</b> (ones-complement),
7368 <b>&lt;&lt;</b> (shift left), <b>&gt;&gt;</b> (shift right).</li>
7369 <li>Added new functions: <b>round()</b> and <b>abs()</b>.</li>
7370
7371 </ol></p>
7372 <a name="version_2_0_2"></a>
7373 <h3>2001-10-09 (2.0.2)</h3><p><ol class='lessindent'>
7374 <li>Fix two bugs in the locking protocol. (One was masking the other.)</li>
7375 <li>Removed some unused "#include <unistd.h>" that were causing problems
7376 for VC++.</li>
7377 <li>Fixed <b>sqlite.h</b> so that it is usable from C++</li>
7378 <li>Added the FULL_COLUMN_NAMES pragma. When set to "ON", the names of
7379 columns are reported back as TABLE.COLUMN instead of just COLUMN.</li>
7380 <li>Added the TABLE_INFO() and INDEX_INFO() pragmas to help support the
7381 ODBC interface.</li>
7382 <li>Added support for TEMPORARY tables and indices.</li>
7383
7384 </ol></p>
7385 <a name="version_2_0_1"></a>
7386 <h3>2001-10-02 (2.0.1)</h3><p><ol class='lessindent'>
7387 <li>Remove some C++ style comments from btree.c so that it will compile
7388 using compilers other than gcc.</li>
7389 <li>The ".dump" output from the shell does not work if there are embedded
7390 newlines anywhere in the data. This is an old bug that was carried
7391 forward from version 1.0. To fix it, the ".dump" output no longer
7392 uses the COPY command. It instead generates INSERT statements.</li>
7393 <li>Extend the expression syntax to support "expr NOT NULL" (with a
7394 space between the "NOT" and the "NULL") in addition to "expr NOTNULL"
7395 (with no space).</li>
7396
7397 </ol></p>
7398 <a name="version_2_0_0"></a>
7399 <h3>2001-09-28 (2.0.0)</h3><p><ol class='lessindent'>
7400 <li>Automatically build binaries for Linux and Windows and put them on
7401 the website.</li>
7402
7403 </ol></p>
7404 <h3>2001-09-28 (2.0-alpha-4)</h3><p><ol class='lessindent'>
7405 <li>Incorporate makefile patches form A. Rottmann to use LIBTOOL</li>
7406
7407 </ol></p>
7408 <h3>2001-09-27 (2.0-alpha-3)</h3><p><ol class='lessindent'>
7409 <li>SQLite now honors the UNIQUE keyword in CREATE UNIQUE INDEX. Primary
7410 keys are required to be unique.</li>
7411 <li>File format changed back to what it was for alpha-1</li>
7412 <li>Fixes to the rollback and locking behavior</li>
7413
7414 </ol></p>
7415 <h3>2001-09-20 (2.0-alpha-2)</h3><p><ol class='lessindent'>
7416 <li>Initial release of version 2.0. The idea of renaming the library
7417 to "SQLus" was abandoned in favor of keeping the "SQLite" name and
7418 bumping the major version number.</li>
7419 <li>The pager and btree subsystems added back. They are now the only
7420 available backend.</li>
7421 <li>The Dbbe abstraction and the GDBM and memory drivers were removed.</li>
7422 <li>Copyright on all code was disclaimed. The library is now in the
7423 public domain.</li>
7424
7425 </ol></p>
7426 <a name="version_1_0_32"></a>
7427 <h3>2001-07-23 (1.0.32)</h3><p><ol class='lessindent'>
7428 <li>Pager and btree subsystems removed. These will be used in a follow-on
7429 SQL server library named "SQLus".</li>
7430 <li>Add the ability to use quoted strings as table and column names in
7431 expressions.</li>
7432
7433 </ol></p>
7434 <a name="version_1_0_31"></a>
7435 <h3>2001-04-15 (1.0.31)</h3><p><ol class='lessindent'>
7436 <li>Pager subsystem added but not yet used.</li>
7437 <li>More robust handling of out-of-memory errors.</li>
7438 <li>New tests added to the test suite.</li>
7439
7440 </ol></p>
7441 <a name="version_1_0_30"></a>
7442 <h3>2001-04-06 (1.0.30)</h3><p><ol class='lessindent'>
7443 <li>Remove the <b>sqlite_encoding</b> TCL variable that was introduced
7444 in the previous version.</li>
7445 <li>Add options <b>-encoding</b> and <b>-tcl-uses-utf</b> to the
7446 <b>sqlite</b> TCL command.</li>
7447 <li>Add tests to make sure that tclsqlite was compiled using Tcl header
7448 files and libraries that match.</li>
7449
7450 </ol></p>
7451 <a name="version_1_0_29"></a>
7452 <h3>2001-04-05 (1.0.29)</h3><p><ol class='lessindent'>
7453 <li>The library now assumes data is stored as UTF-8 if the --enable-utf8
7454 option is given to configure. The default behavior is to assume
7455 iso8859-x, as it has always done. This only makes a difference for
7456 LIKE and GLOB operators and the LENGTH and SUBSTR functions.</li>
7457 <li>If the library is not configured for UTF-8 and the Tcl library
7458 is one of the newer ones that uses UTF-8 internally,
7459 then a conversion from UTF-8 to iso8859 and
7460 back again is done inside the TCL interface.</li>
7461
7462 </ol></p>
7463 <a name="version_1_0_28"></a>
7464 <h3>2001-04-04 (1.0.28)</h3><p><ol class='lessindent'>
7465 <li>Added limited support for transactions. At this point, transactions
7466 will do table locking on the GDBM backend. There is no support (yet)
7467 for rollback or atomic commit.</li>
7468 <li>Added special column names ROWID, OID, and _ROWID_ that refer to the
7469 unique random integer key associated with every row of every table.</li>
7470 <li>Additional tests added to the regression suite to cover the new ROWID
7471 feature and the TCL interface bugs mentioned below.</li>
7472 <li>Changes to the <a href="lemon.html">Lemon parser generator</a> to help it work better when
7473 compiled using MSVC.</li>
7474 <li>Bug fixes in the TCL interface identified by Oleg Oleinick.</li>
7475
7476 </ol></p>
7477 <a name="version_1_0_27"></a>
7478 <h3>2001-03-20 (1.0.27)</h3><p><ol class='lessindent'>
7479 <li>When doing DELETE and UPDATE, the library used to write the record
7480 numbers of records to be deleted or updated into a temporary file.
7481 This is changed so that the record numbers are held in memory.</li>
7482 <li>The DELETE command without a WHILE clause just removes the database
7483 files from the disk, rather than going through and deleting record
7484 by record.</li>
7485
7486 </ol></p>
7487 <a name="version_1_0_26"></a>
7488 <h3>2001-03-20 (1.0.26)</h3><p><ol class='lessindent'>
7489 <li>A serious bug fixed on Windows. Windows users should upgrade.
7490 No impact to Unix.</li>
7491
7492 </ol></p>
7493 <a name="version_1_0_25"></a>
7494 <h3>2001-03-15 (1.0.25)</h3><p><ol class='lessindent'>
7495 <li>Modify the test scripts to identify tests that depend on system
7496 load and processor speed and
7497 to warn the user that a failure of one of those (rare) tests does
7498 not necessarily mean the library is malfunctioning. No changes to
7499 code.
7500 </li>
7501
7502 </ol></p>
7503 <a name="version_1_0_24"></a>
7504 <h3>2001-03-14 (1.0.24)</h3><p><ol class='lessindent'>
7505 <li>Fix a bug which was causing
7506 the UPDATE command to fail on systems where "malloc(0)" returns
7507 NULL. The problem does not appear on Windows, Linux, or HPUX but does
7508 cause the library to fail on QNX.
7509 </li>
7510
7511 </ol></p>
7512 <a name="version_1_0_23"></a>
7513 <h3>2001-02-20 (1.0.23)</h3><p><ol class='lessindent'>
7514 <li>An unrelated (and minor) bug from Mark Muranwski fixed. The algorithm
7515 for figuring out where to put temporary files for a "memory:" database
7516 was not working quite right.
7517 </li>
7518
7519 </ol></p>
7520 <a name="version_1_0_22"></a>
7521 <h3>2001-02-19 (1.0.22)</h3><p><ol class='lessindent'>
7522 <li>The previous fix was not quite right. This one seems to work better.
7523 </li>
7524
7525 </ol></p>
7526 <a name="version_1_0_21"></a>
7527 <h3>2001-02-19 (1.0.21)</h3><p><ol class='lessindent'>
7528 <li>The UPDATE statement was not working when the WHERE clause contained
7529 some terms that could be satisfied using indices and other terms that
7530 could not. Fixed.</li>
7531
7532 </ol></p>
7533 <a name="version_1_0_20"></a>
7534 <h3>2001-02-11 (1.0.20)</h3><p><ol class='lessindent'>
7535 <li>Merge development changes into the main trunk. Future work toward
7536 using a BTree file structure will use a separate CVS source tree. This
7537 CVS tree will continue to support the GDBM version of SQLite only.</li>
7538
7539 </ol></p>
7540 <a name="version_1_0_19"></a>
7541 <h3>2001-02-06 (1.0.19)</h3><p><ol class='lessindent'>
7542 <li>Fix a strange (but valid) C declaration that was causing problems
7543 for QNX. No logical changes.</li>
7544
7545 </ol></p>
7546 <a name="version_1_0_18"></a>
7547 <h3>2001-01-04 (1.0.18)</h3><p><ol class='lessindent'>
7548 <li>Print the offending SQL statement when an error occurs.</li>
7549 <li>Do not require commas between constraints in CREATE TABLE statements.</li>
7550 <li>Added the "-echo" option to the shell.</li>
7551 <li>Changes to comments.</li>
7552
7553 </ol></p>
7554 <a name="version_1_0_17"></a>
7555 <h3>2000-12-10 (1.0.17)</h3><p><ol class='lessindent'>
7556 <li>Rewrote <b>sqlite_complete()</b> to make it faster.</li>
7557 <li>Minor tweaks to other code to make it run a little faster.</li>
7558 <li>Added new tests for <b>sqlite_complete()</b> and for memory leaks.</li>
7559
7560 </ol></p>
7561 <a name="version_1_0_16"></a>
7562 <h3>2000-11-28 (1.0.16)</h3><p><ol class='lessindent'>
7563 <li>Documentation updates. Mostly fixing of typos and spelling errors.</li>
7564
7565 </ol></p>
7566 <a name="version_1_0_15"></a>
7567 <h3>2000-10-23 (1.0.15)</h3><p><ol class='lessindent'>
7568 <li>Documentation updates</li>
7569 <li>Some sanity checking code was removed from the inner loop of vdbe.c
7570 to help the library to run a little faster. The code is only
7571 removed if you compile with -DNDEBUG.</li>
7572
7573 </ol></p>
7574 <a name="version_1_0_14"></a>
7575 <h3>2000-10-19 (1.0.14)</h3><p><ol class='lessindent'>
7576 <li>Added a "memory:" backend driver that stores its database in an
7577 in-memory hash table.</li>
7578
7579 </ol></p>
7580 <a name="version_1_0_13"></a>
7581 <h3>2000-10-19 (1.0.13)</h3><p><ol class='lessindent'>
7582 <li>Break out the GDBM driver into a separate file in anticipation
7583 to added new drivers.</li>
7584 <li>Allow the name of a database to be prefixed by the driver type.
7585 For now, the only driver type is "gdbm:".</li>
7586
7587 </ol></p>
7588 <a name="version_1_0_12"></a>
7589 <h3>2000-10-17 (1.0.12)</h3><p><ol class='lessindent'>
7590 <li>Fixed an off-by-one error that was causing a coredump in
7591 the '%q' format directive of the new
7592 <b>sqlite_..._printf()</b> routines.</li>
7593 <li>Added the <b>sqlite_interrupt()</b> interface.</li>
7594 <li>In the shell, <b>sqlite_interrupt()</b> is invoked when the
7595 user presses Control-C</li>
7596 <li>Fixed some instances where <b>sqlite_exec()</b> was
7597 returning the wrong error code.</li>
7598
7599 </ol></p>
7600 <a name="version_1_0_10"></a>
7601 <h3>2000-10-11 (1.0.10)</h3><p><ol class='lessindent'>
7602 <li>Added notes on how to compile for Windows95/98.</li>
7603 <li>Removed a few variables that were not being used. Etc.</li>
7604
7605 </ol></p>
7606 <a name="version_1_0_9"></a>
7607 <h3>2000-10-09 (1.0.9)</h3><p><ol class='lessindent'>
7608 <li>Added the <b>sqlite_..._printf()</b> interface routines.</li>
7609 <li>Modified the <b>sqlite</b> shell program to use the new interface
7610 routines.</li>
7611 <li>Modified the <b>sqlite</b> shell program to print the schema for
7612 the built-in SQLITE_MASTER table, if explicitly requested.</li>
7613
7614 </ol></p>
7615 <a name="version_1_0_8"></a>
7616 <h3>2000-09-30 (1.0.8)</h3><p><ol class='lessindent'>
7617 <li>Begin writing documentation on the TCL interface.</li>
7618
7619 </ol></p>
7620 <h3>2000-09-29 (Not Released)</h3><p><ol class='lessindent'>
7621 <li>Added the <b>sqlite_get_table()</b> API</li>
7622 <li>Updated the documentation for due to the above change.</li>
7623 <li>Modified the <b>sqlite</b> shell to make use of the new
7624 sqlite_get_table() API in order to print a list of tables
7625 in multiple columns, similar to the way "ls" prints filenames.</li>
7626 <li>Modified the <b>sqlite</b> shell to print a semicolon at the
7627 end of each CREATE statement in the output of the ".schema" command.</li>
7628
7629 </ol></p>
7630 <h3>2000-09-21 (Not Released)</h3><p><ol class='lessindent'>
7631 <li>Change the tclsqlite "eval" method to return a list of results if
7632 no callback script is specified.</li>
7633 <li>Change tclsqlite.c to use the Tcl_Obj interface</li>
7634 <li>Add tclsqlite.c to the libsqlite.a library</li>
7635
7636 </ol></p>
7637 <a name="version_1_0_5"></a>
7638 <h3>2000-09-14 (1.0.5)</h3><p><ol class='lessindent'>
7639 <li>Changed the print format for floating point values from "%g" to "%.15g".
7640 </li>
7641 <li>Changed the comparison function so that numbers in exponential notation
7642 (ex: 1.234e+05) sort in numerical order.</li>
7643
7644 </ol></p>
7645 <a name="version_1_0_4"></a>
7646 <h3>2000-08-28 (1.0.4)</h3><p><ol class='lessindent'>
7647 <li>Added functions <b>length()</b> and <b>substr()</b>.</li>
7648 <li>Fix a bug in the <b>sqlite</b> shell program that was causing
7649 a coredump when the output mode was "column" and the first row
7650 of data contained a NULL.</li>
7651
7652 </ol></p>
7653 <a name="version_1_0_3"></a>
7654 <h3>2000-08-22 (1.0.3)</h3><p><ol class='lessindent'>
7655 <li>In the sqlite shell, print the "Database opened READ ONLY" message
7656 to stderr instead of stdout.</li>
7657 <li>In the sqlite shell, now print the version number on initial startup.</li>
7658 <li>Add the <b>sqlite_version&#91;&#93;</b> string constant to the library</li>
7659 <li>Makefile updates</li>
7660 <li>Bug fix: incorrect VDBE code was being generated for the following
7661 circumstance: a query on an indexed table containing a WHERE clause with
7662 an IN operator that had a subquery on its right-hand side.</li>
7663
7664 </ol></p>
7665 <a name="version_1_0_1"></a>
7666 <h3>2000-08-18 (1.0.1)</h3><p><ol class='lessindent'>
7667 <li>Fix a bug in the configure script.</li>
7668 <li>Minor revisions to the website.</li>
7669
7670 </ol></p>
7671 <a name="version_1_0"></a>
7672 <h3>2000-08-17 (1.0)</h3><p><ol class='lessindent'>
7673 <li>Change the <b>sqlite</b> program so that it can read
7674 databases for which it lacks write permission. (It used to
7675 refuse all access if it could not write.)</li>
7676
7677 </ol></p>
7678 <h3>2000-08-09</h3><p><ol class='lessindent'>
7679 <li>Treat carriage returns as white space.</li>
7680
7681 </ol></p>
7682 <h3>2000-08-08</h3><p><ol class='lessindent'>
7683 <li>Added pattern matching to the ".table" command in the "sqlite"
7684 command shell.</li>
7685
7686 </ol></p>
7687 <h3>2000-08-04</h3><p><ol class='lessindent'>
7688 <li>Documentation updates</li>
7689 <li>Added "busy" and "timeout" methods to the Tcl interface</li>
7690
7691 </ol></p>
7692 <h3>2000-08-03</h3><p><ol class='lessindent'>
7693 <li>File format version number was being stored in sqlite_master.tcl
7694 multiple times. This was harmless, but unnecessary. It is now fixed.</li>
7695
7696 </ol></p>
7697 <h3>2000-08-02</h3><p><ol class='lessindent'>
7698 <li>The file format for indices was changed slightly in order to work
7699 around an inefficiency that can sometimes come up with GDBM when
7700 there are large indices having many entries with the same key.
7701 <font color="red">** Incompatible Change **</font></li>
7702
7703 </ol></p>
7704 <h3>2000-08-01</h3><p><ol class='lessindent'>
7705 <li>The parser's stack was overflowing on a very long UPDATE statement.
7706 This is now fixed.</li>
7707
7708 </ol></p>
7709 <h3>2000-07-31</h3><p><ol class='lessindent'>
7710 <li>Finish the <a href="vdbe.html">VDBE tutorial</a>.</li>
7711 <li>Added documentation on compiling to WinNT.</li>
7712 <li>Fix a configuration program for WinNT.</li>
7713 <li>Fix a configuration problem for HPUX.</li>
7714
7715 </ol></p>
7716 <h3>2000-07-29</h3><p><ol class='lessindent'>
7717 <li>Better labels on column names of the result.</li>
7718
7719 </ol></p>
7720 <h3>2000-07-28</h3><p><ol class='lessindent'>
7721 <li>Added the <b>sqlite_busy_handler()</b>
7722 and <b>sqlite_busy_timeout()</b> interface.</li>
7723
7724 </ol></p>
7725 <h3>2000-06-23</h3><p><ol class='lessindent'>
7726 <li>Begin writing the <a href="vdbe.html">VDBE tutorial</a>.</li>
7727
7728 </ol></p>
7729 <h3>2000-06-21</h3><p><ol class='lessindent'>
7730 <li>Clean up comments and variable names. Changes to documentation.
7731 No functional changes to the code.</li>
7732
7733 </ol></p>
7734 <h3>2000-06-19</h3><p><ol class='lessindent'>
7735 <li>Column names in UPDATE statements were case sensitive.
7736 This mistake has now been fixed.</li>
7737
7738 </ol></p>
7739 <h3>2000-06-18</h3><p><ol class='lessindent'>
7740 <li>Added the concatenate string operator (||)</li>
7741
7742 </ol></p>
7743 <h3>2000-06-12</h3><p><ol class='lessindent'>
7744 <li>Added the fcnt() function to the SQL interpreter. The fcnt() function
7745 returns the number of database "Fetch" operations that have occurred.
7746 This function is designed for use in test scripts to verify that
7747 queries are efficient and appropriately optimized. Fcnt() has no other
7748 useful purpose, as far as I know.</li>
7749 <li>Added a bunch more tests that take advantage of the new fcnt() function.
7750 The new tests did not uncover any new problems.</li>
7751
7752 </ol></p>
7753 <h3>2000-06-08</h3><p><ol class='lessindent'>
7754 <li>Added lots of new test cases</li>
7755 <li>Fix a few bugs discovered while adding test cases</li>
7756 <li>Begin adding lots of new documentation</li>
7757
7758 </ol></p>
7759 <h3>2000-06-06</h3><p><ol class='lessindent'>
7760 <li>Added compound select operators: <B>UNION</b>, <b>UNION ALL</B>,
7761 <b>INTERSECT</b>, and <b>EXCEPT</b></li>
7762 <li>Added support for using <b>(SELECT ...)</b> within expressions</li>
7763 <li>Added support for <b>IN</b> and <b>BETWEEN</b> operators</li>
7764 <li>Added support for <b>GROUP BY</b> and <b>HAVING</b></li>
7765 <li>NULL values are now reported to the callback as a NULL pointer
7766 rather than an empty string.</li>
7767
7768 </ol></p>
7769 <h3>2000-06-03</h3><p><ol class='lessindent'>
7770 <li>Added support for default values on columns of a table.</li>
7771 <li>Improved test coverage. Fixed a few obscure bugs found by the
7772 improved tests.</li>
7773
7774 </ol></p>
7775 <h3>2000-06-02</h3><p><ol class='lessindent'>
7776 <li>All database files to be modified by an UPDATE, INSERT or DELETE are
7777 now locked before any changes are made to any files.
7778 This makes it safe (I think) to access
7779 the same database simultaneously from multiple processes.</li>
7780 <li>The code appears stable so we are now calling it "beta".</li>
7781
7782 </ol></p>
7783 <h3>2000-06-01</h3><p><ol class='lessindent'>
7784 <li>Better support for file locking so that two or more processes
7785 (or threads)
7786 can access the same database simultaneously. More work needed in
7787 this area, though.</li>
7788
7789 </ol></p>
7790 <h3>2000-05-31</h3><p><ol class='lessindent'>
7791 <li>Added support for aggregate functions (Ex: <b>COUNT(*)</b>, <b>MIN(...)</b>)
7792 to the SELECT statement.</li>
7793 <li>Added support for <B>SELECT DISTINCT ...</B></li>
7794
7795 </ol></p>
7796 <h3>2000-05-30</h3><p><ol class='lessindent'>
7797 <li>Added the <b>LIKE</b> operator.</li>
7798 <li>Added a <b>GLOB</b> operator: similar to <B>LIKE</B>
7799 but it uses Unix shell globbing wildcards instead of the '%'
7800 and '_' wildcards of SQL.</li>
7801 <li>Added the <B>COPY</b> command patterned after
7802 <a href="http://www.postgresql.org/">PostgreSQL</a> so that SQLite
7803 can now read the output of the <b>pg_dump</b> database dump utility
7804 of PostgreSQL.</li>
7805 <li>Added a <B>VACUUM</B> command that calls the
7806 <b>gdbm_reorganize()</b> function on the underlying database
7807 files.</li>
7808 <li>And many, many bug fixes...</li>
7809
7810 </ol></p>
7811 <h3>2000-05-29</h3><p><ol class='lessindent'>
7812 <li>Initial Public Release of Alpha code</li>
7813
7814 </ol></p>
7815
7816 </dl>
7817
7818