| 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.12.1 On 2016-04-08</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.12.1 On 2016-04-08</h2><p><b>Prior changes from version 3.12.0 (2016-03-29):</b></p> |
| 119 |
<p><ol class='lessindent'> |
| 120 |
<p><b>Potentially Disruptive Change:</b> |
| 121 |
<li value='1'>The <a href="../compile.html#default_page_size">SQLITE_DEFAULT_PAGE_SIZE</a> is increased from 1024 to 4096. |
| 122 |
The <a href="../compile.html#default_cache_size">SQLITE_DEFAULT_CACHE_SIZE</a> is changed from 2000 to -2000 so |
| 123 |
the same amount of cache memory is used by default. |
| 124 |
See the application note on the |
| 125 |
<a href="../pgszchng2016.html">version 3.12.0 page size change</a> for further information. |
| 126 |
<p><b>Performance enhancements:</b> |
| 127 |
<li>Enhancements to the <a href="../lemon.html">Lemon parser generator</a> |
| 128 |
so that it creates a smaller and faster SQL parser. |
| 129 |
<li>Only create <a href="../tempfiles.html#superjrnl">master journal</a> files if two or more attached databases are all |
| 130 |
modified, do not have <a href="../pragma.html#pragma_synchronous">PRAGMA synchronous</a> set to OFF, and |
| 131 |
do not have the <a href="../pragma.html#pragma_journal_mode">journal_mode</a> set to OFF, MEMORY, or WAL. |
| 132 |
<li>Only create <a href="../tempfiles.html#stmtjrnl">statement journal</a> files when their size exceeds a threshold. |
| 133 |
Otherwise the journal is held in memory and no I/O occurs. The threshold |
| 134 |
can be configured at compile-time using <a href="../compile.html#stmtjrnl_spill">SQLITE_STMTJRNL_SPILL</a> or at |
| 135 |
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>). |
| 136 |
<li>The query planner is able to optimize IN operators on <a href="../vtab.html">virtual tables</a> |
| 137 |
even if the <a href="../vtab.html#xbestindex">xBestIndex</a> method does not set the |
| 138 |
sqlite3_index_constraint_usage.omit flag of the |
| 139 |
virtual table column to the left of the IN operator. |
| 140 |
<li>The query planner now does a better job of optimizing <a href="../vtab.html">virtual table</a> |
| 141 |
accesses in a 3-way or higher join where constraints on the virtual |
| 142 |
table are split across two or more other tables of the join. |
| 143 |
<li>More efficient handling of <a href="../appfunc.html">application-defined SQL functions</a>, especially |
| 144 |
in cases where the application defines hundreds or thousands of |
| 145 |
custom functions. |
| 146 |
<li>The query planner considers the LIMIT clause when estimating the cost |
| 147 |
of ORDER BY. |
| 148 |
<li>The configure script (on unix) automatically detects |
| 149 |
pread() and pwrite() and sets compile-time options to use those OS |
| 150 |
interfaces if they are available. |
| 151 |
<li>Reduce the amount of memory needed to hold the schema. |
| 152 |
<li>Other miscellaneous micro-optimizations for improved performance and reduced |
| 153 |
memory usage. |
| 154 |
<p><b>New Features:</b> |
| 155 |
<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> |
| 156 |
which allows the two-argument version of the <a href="../fts3.html#f3tknzr">fts3_tokenizer()</a> SQL function to |
| 157 |
be enabled or disabled at run-time. |
| 158 |
<li>Added the <a href="https://sqlite.org/src/artifact/d7cc99350?ln=403-443">sqlite3rbu_bp_progress()</a> |
| 159 |
interface to the <a href="../rbu.html">RBU</a> extension. |
| 160 |
<li>The <a href="../pragma.html#pragma_defer_foreign_keys">PRAGMA defer_foreign_keys=ON</a> statement now also disables |
| 161 |
<a href="../foreignkeys.html#fk_actions">RESTRICT actions</a> on foreign key. |
| 162 |
<li>Added the <a href="../c3ref/system_errno.html">sqlite3_system_errno()</a> interface. |
| 163 |
<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> |
| 164 |
compile-time options. The <a href="../compile.html#default_synchronous">SQLITE_DEFAULT_SYNCHRONOUS</a> compile-time option |
| 165 |
replaces the <a href="../compile.html#extra_durable">SQLITE_EXTRA_DURABLE</a> option, which is no longer supported. |
| 166 |
<li>Enhanced the ".stats" command in the <a href="../cli.html">command-line shell</a> to show more |
| 167 |
information about I/O performance obtained from /proc, when available. |
| 168 |
<p><b>Bug fixes:</b> |
| 169 |
<li>Make sure the <a href="../c3ref/get_auxdata.html">sqlite3_set_auxdata()</a> values from multiple triggers |
| 170 |
within a single statement do not interfere with one another. |
| 171 |
Ticket <a href="https://sqlite.org/src/info/dc9b1c91">dc9b1c91</a>. |
| 172 |
<li>Fix the code generator for expressions of the form "x IN (SELECT...)" where |
| 173 |
the SELECT statement on the RHS is a correlated subquery. |
| 174 |
Ticket <a href="https://sqlite.org/src/info/5e3c886796e5512e">5e3c886796e5512e</a>. |
| 175 |
<li>Fix a harmless TSAN warning associated with the <a href="../c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface. |
| 176 |
</ol> |
| 177 |
<p><b>Changes in this specific patch release, version 3.12.1 (2016-04-08):</b></p> |
| 178 |
<p><ol class='lessindent'> |
| 179 |
<li value='21'>Fix a boundary condition error introduced by version 3.12.0 |
| 180 |
that can result in a crash during heavy <a href="../lang_savepoint.html">SAVEPOINT</a> usage. |
| 181 |
Ticket <a href="https://sqlite.org/src/info/7f7f8026eda38">7f7f8026eda38</a>. |
| 182 |
<li>Fix <a href="../lang_createview.html">views</a> so that they inherit column datatypes from the |
| 183 |
table that they are defined against, when possible. |
| 184 |
<li>Fix the query planner so that IS and IS NULL operators are able |
| 185 |
to drive an index on a LEFT OUTER JOIN. |
| 186 |
<p><b>Hashes:</b> |
| 187 |
<li>SQLITE_SOURCE_ID: "2016-04-08 15:09:49 fe7d3b75fe1bde41511b323925af8ae1b910bc4d" |
| 188 |
<li>SHA1 for sqlite3.c: ebb18593350779850e3e1a930eb84a70fca8c1d1 |
| 189 |
|
| 190 |
</ol></p> |
| 191 |
|
| 192 |
<p>A <a href="../changes.html">complete list of SQLite releases</a> |
| 193 |
in a single page and a <a href="../chronology.html">chronology</a> are both also available. |
| 194 |
A detailed history of every |
| 195 |
check-in is available at |
| 196 |
<a href="https://sqlite.org/src/timeline"> |
| 197 |
SQLite version control site</a>.</p> |
| 198 |
|
| 199 |
|