Debian Codegraph @

www/releaselog/3_20_0.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>SQLite Release 3.20.0 On 2017-08-01</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 <h2>SQLite Release 3.20.0 On 2017-08-01</h2><p><ol class='lessindent'>
119 <li> Update the text of error messages returned by <a href="../c3ref/errcode.html">sqlite3_errmsg()</a> for some
120 error codes.
121 <li> Add new <a href="../bindptr.html">pointer passing interfaces</a>.
122 <li> Backwards-incompatible changes to some extensions in order to take
123 advantage of the improved security offered by the new
124 <a href="../bindptr.html">pointer passing interfaces</a>:
125 <ol type='a'>
126 <li> <a href="../fts5.html#extending_fts5">Extending FTS5</a> &rarr; requires <a href="../c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to find
127 the fts5_api pointer.
128 <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.
129 <li> <a href="https://sqlite.org/src/file/ext/misc/remember.c">remember(V,PTR)</a>
130 &rarr; requires <a href="../c3ref/bind_blob.html">sqlite3_bind_pointer()</a> to set the PTR parameter.
131 </ol>
132 <li> Added the <a href="../stmt.html">SQLITE_STMT virtual table</a> extension.
133 <li> Added the <a href="../completion.html">COMPLETION extension</a> - designed to suggest
134 tab-completions for interactive user interfaces. This is a work in progress.
135 Expect further enhancements in future releases.
136 <li> Added the <a href="../unionvtab.html">UNION virtual table</a> extension.
137 <li> The built-in <a href="../lang_datefunc.html">date and time functions</a> have been enhanced so that they can be
138 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
139 of <a href="../partialindex.html">partial indexes</a>, provided that they do not use the 'now', 'localtime', or
140 'utc' keywords. <a href="../deterministic.html#dtexception">More information</a>.
141 <li> Added the <a href="../c3ref/prepare.html">sqlite3_prepare_v3()</a> and <a href="../c3ref/prepare.html">sqlite3_prepare16_v3()</a> interfaces
142 with the extra "prepFlags" parameters.
143 <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
144 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
145 <a href="../rtree.html">R-Tree extension</a>.
146 <li> Added the <a href="../pragma.html#pragma_secure_delete">PRAGMA secure_delete=FAST</a> command. When secure_delete is
147 set to FAST, old content is overwritten with zeros as long as that does
148 not increase the amount of I/O. Deleted content might still persist on
149 the <a href="../fileformat2.html#freelist">free-page list</a> but will be purged from all b-tree pages.
150 <li> Enhancements to the <a href="../cli.html">command-line shell</a>:
151 <ol type='a'>
152 <li> Add support for tab-completion using the <a href="../completion.html">COMPLETION extension</a>, for
153 both readline and linenoise.
154 <li> Add the ".cd" command.
155 <li> Enhance the "<a href="../cli.html#dschema">.schema</a>" command to show the schema of all attached
156 databases.
157 <li> Enhance "<a href="../cli.html#dtables">.tables</a>" so that it shows the schema names for all attached
158 if the name is anything other than "main".
159 <li> The "<a href="../cli.html#csv">.import</a>" command ignores an initial UTF-8 BOM.
160 <li> Added the "--newlines" option to the "<a href="../cli.html#dump">.dump</a>" command to cause U+000a and
161 U+000d characters to be output literally rather than escaped using the
162 <a href="../lang_corefunc.html#replace">replace()</a> function.
163 </ol>
164 <li> Query planner enhancements:
165 <ol type='a'>
166 <li> When generating individual loops for each ORed term of an OR scan,
167 move any constant WHERE expressions outside of the loop, as is
168 done for top-level loops.
169 <li> The query planner examines the values of bound parameters to help
170 determine if a partial index is usable.
171 <li> When deciding between two plans with the same estimated cost, bias
172 the selection toward the one that does not use the sorter.
173 <li> Evaluate WHERE clause constraints involving correlated subqueries
174 last, in the hope that they never have be evaluated at all.
175 <li> Do not use the <a href="../optoverview.html#flattening">flattening optimization</a> for a sub-query on the RHS
176 of a LEFT JOIN if that subquery reads data from a <a href="../vtab.html">virtual table</a> as
177 doing so prevents the query planner from creating <a href="../optoverview.html#autoindex">automatic indexes</a>
178 on the results of the sub-query, which can slow down the query.
179 </ol>
180 <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>,
181 and <a href="../c3ref/c_stmtstatus_counter.html#sqlitestmtstatusmemused">SQLITE_STMTSTATUS_MEMUSED</a> options for the
182 <a href="../c3ref/stmt_status.html">sqlite3_stmt_status()</a> interface.
183 <li> Provide <a href="../pragma.html#pragfunc">PRAGMA functions</a> for
184 <a href="../pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>, <a href="../pragma.html#pragma_quick_check">PRAGMA quick_check</a>, and
185 <a href="../pragma.html#pragma_foreign_key_check">PRAGMA foreign_key_check</a>.
186 <li> Add the -withoutnulls option to the <a href="../tclsqlite.html#eval">TCL interface eval method</a>.
187 <li> Enhance the <a href="../sqlanalyze.html">sqlite3_analyzer.exe</a> utility program so that it shows
188 the number of bytes of metadata on btree pages.
189 <li> The <a href="../c3ref/c_dbconfig_defensive.html#sqlitedbconfigenableqpsg">SQLITE_DBCONFIG_ENABLE_QPSG</a> run-time option and the
190 <a href="../compile.html#enable_qpsg">SQLITE_ENABLE_QPSG</a> compile-time option enable the
191 <a href="../queryplanner-ng.html#qpstab">query planner stability guarantee</a>. See also ticket
192 <a href="https://sqlite.org/src/info/892fc34f173e99d8">892fc34f173e99d8</a>
193 <li> Miscellaneous optimizations result in a 2% reduction in <a href="../cpu.html">CPU cycles used</a>.
194 <p><b>Bug Fixes:</b>
195 <li> Fix the behavior of <a href="../c3ref/column_name.html">sqlite3_column_name()</a> for queries that use the
196 <a href="../optoverview.html#flattening">flattening optimization</a> so that the result is consistent with other
197 queries that do not use that optimization, and with PostgreSQL, MySQL,
198 and SQLServer. Ticket <a href="https://sqlite.org/src/info/de3403bf5ae">de3403bf5ae</a>.
199 <li> Fix the query planner so that it knows not to use <a href="../optoverview.html#autoindex">automatic indexes</a>
200 on the right table of LEFT JOIN if the WHERE clause uses the <a href="../lang_expr.html#isisnot">IS operator</a>.
201 Fix for <a href="https://sqlite.org/src/info/ce68383bf6aba">ce68383bf6aba</a>.
202 <li> Ensure that the query planner knows that any column of a
203 <a href="../optoverview.html#flattening">flattened</a> LEFT JOIN can be NULL even
204 if that column is labeled with "NOT NULL". Fix for ticket
205 <a href="https://sqlite.org/src/info/892fc34f173e99d8">892fc34f173e99d8</a>.
206 <li> Fix rare false-positives in <a href="../pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> when run on a database connection
207 with <a href="../lang_attach.html">attached databases</a>. Ticket
208 <a href="https://sqlite.org/src/info/a4e06e75a9ab61a12">a4e06e75a9ab61a12</a>
209 <li> Fix a bug (discovered by OSSFuzz) that causes an assertion fault if certain
210 dodgy CREATE TABLE declarations are used. Ticket
211 <a href="https://sqlite.org/src/info/bc115541132dad136">bc115541132dad136</a>
212 <p><b>Hashes:</b>
213 <li>SQLITE_SOURCE_ID: "2017-08-01 13:24:15 9501e22dfeebdcefa783575e47c60b514d7c2e0cad73b2a496c0bc4b680900a8"
214 <li>SHA3-256 for sqlite3.c: 79b7f3b977360456350219cba0ba0e5eb55910565eab68ea83edda2f968ebe95
215
216 </ol></p>
217
218 <p>A <a href="../changes.html">complete list of SQLite releases</a>
219 in a single page and a <a href="../chronology.html">chronology</a> are both also available.
220 A detailed history of every
221 check-in is available at
222 <a href="https://sqlite.org/src/timeline">
223 SQLite version control site</a>.</p>
224
225