~ubuntu-branches/ubuntu/wily/sqlite3/wily

« back to all changes in this revision

Viewing changes to changes.html

  • Committer: Package Import Robot
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2012-06-13 21:43:48 UTC
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: package-import@ubuntu.com-20120613214348-uy14uupdeq0hh04k
Tags: upstream-3.7.13/www
Import upstream version 3.7.13, component www

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 
2
<html><head>
 
3
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
 
4
<title>Release History Of SQLite</title>
 
5
<style type="text/css">
 
6
body {
 
7
    margin: auto;
 
8
    font-family: Verdana, sans-serif;
 
9
    padding: 8px 1%;
 
10
}
 
11
 
 
12
a { color: #044a64 }
 
13
a:visited { color: #734559 }
 
14
 
 
15
.logo { position:absolute; margin:3px; }
 
16
.tagline {
 
17
  float:right;
 
18
  text-align:right;
 
19
  font-style:italic;
 
20
  width:300px;
 
21
  margin:12px;
 
22
  margin-top:58px;
 
23
}
 
24
 
 
25
.toolbar {
 
26
  text-align: center;
 
27
  line-height: 1.6em;
 
28
  margin: 0;
 
29
  padding: 0px 8px;
 
30
}
 
31
.toolbar a { color: white; text-decoration: none; padding: 6px 12px; }
 
32
.toolbar a:visited { color: white; }
 
33
.toolbar a:hover { color: #044a64; background: white; }
 
34
 
 
35
.content    { margin: 5%; }
 
36
.content dt { font-weight:bold; }
 
37
.content dd { margin-bottom: 25px; margin-left:20%; }
 
38
.content ul { padding:0px; padding-left: 15px; margin:0px; }
 
39
 
 
40
/* rounded corners */
 
41
.se  { background: url(images/se.gif) 100% 100% no-repeat #044a64}
 
42
.sw  { background: url(images/sw.gif) 0% 100% no-repeat }
 
43
.ne  { background: url(images/ne.gif) 100% 0% no-repeat }
 
44
.nw  { background: url(images/nw.gif) 0% 0% no-repeat }
 
45
 
 
46
/* Things for "fancyformat" documents start here. */
 
47
.fancy img+p {font-style:italic}
 
48
.fancy .codeblock i { color: darkblue; }
 
49
.fancy h1,.fancy h2,.fancy h3,.fancy h4 {font-weight:normal;color:#044a64}
 
50
.fancy h2 { margin-left: 10px }
 
51
.fancy h3 { margin-left: 20px }
 
52
.fancy h4 { margin-left: 30px }
 
53
.fancy th {white-space:nowrap;text-align:left;border-bottom:solid 1px #444}
 
54
.fancy th, .fancy td {padding: 0.2em 1ex; vertical-align:top}
 
55
.fancy #toc a        { color: darkblue ; text-decoration: none }
 
56
.fancy .todo         { color: #AA3333 ; font-style : italic }
 
57
.fancy .todo:before  { content: 'TODO:' }
 
58
.fancy p.todo        { border: solid #AA3333 1px; padding: 1ex }
 
59
.fancy img { display:block; }
 
60
.fancy :link:hover, .fancy :visited:hover { background: wheat }
 
61
.fancy p,.fancy ul,.fancy ol { margin: 1em 5ex }
 
62
.fancy li p { margin: 1em 0 }
 
63
/* End of "fancyformat" specific rules. */
 
64
 
 
65
</style>
 
66
  
 
67
</head>
 
68
<body>
 
69
<div><!-- container div to satisfy validator -->
 
70
 
 
71
<a href="index.html">
 
72
<img class="logo" src="images/sqlite370_banner.gif" alt="SQLite Logo"
 
73
 border="0"></a>
 
74
<div><!-- IE hack to prevent disappearing logo--></div>
 
75
<div class="tagline">Small. Fast. Reliable.<br>Choose any three.</div>
 
76
 
 
77
<table width=100% style="clear:both"><tr><td>
 
78
  <div class="se"><div class="sw"><div class="ne"><div class="nw">
 
79
  <table width=100% style="padding:0;margin:0;cell-spacing:0"><tr>
 
80
  <td width=100%>
 
81
  <div class="toolbar">
 
82
    <a href="about.html">About</a>
 
83
    <a href="sitemap.html">Sitemap</a>
 
84
    <a href="docs.html">Documentation</a>
 
85
    <a href="download.html">Download</a>
 
86
    <a href="copyright.html">License</a>
 
87
    <a href="news.html">News</a>
 
88
    <a href="support.html">Support</a>
 
89
  </div>
 
90
<script>
 
91
  gMsg = "Search SQLite Docs..."
 
92
  function entersearch() {
 
93
    var q = document.getElementById("q");
 
94
    if( q.value == gMsg ) { q.value = "" }
 
95
    q.style.color = "black"
 
96
    q.style.fontStyle = "normal"
 
97
  }
 
98
  function leavesearch() {
 
99
    var q = document.getElementById("q");
 
100
    if( q.value == "" ) { 
 
101
      q.value = gMsg
 
102
      q.style.color = "#044a64"
 
103
      q.style.fontStyle = "italic"
 
104
    }
 
105
  }
 
106
</script>
 
107
<td>
 
108
    <div style="padding:0 1em 0px 0;white-space:nowrap">
 
109
    <form name=f method="GET" action="http://www.sqlite.org/search">
 
110
      <input id=q name=q type=text
 
111
       onfocus="entersearch()" onblur="leavesearch()" style="width:24ex;padding:1px 1ex; border:solid white 1px; font-size:0.9em ; font-style:italic;color:#044a64;" value="Search SQLite Docs...">
 
112
      <input type=submit value="Go" style="border:solid white 1px;background-color:#044a64;color:white;font-size:0.9em;padding:0 1ex">
 
113
    </form>
 
114
    </div>
 
115
  </table>
 
116
</div></div></div></div>
 
117
</td></tr></table>
 
118
<div class=startsearch></div>
 
119
  
 
120
 
 
121
<h1 align=center>Release History</h1>
 
122
 
 
123
<p>
 
124
This page provides a high-level summary of changes to SQLite.
 
125
For more detail, refer the Fossil checkin logs at
 
126
<a href="http://www.sqlite.org/src/timeline">
 
127
http://www.sqlite.org/src/timeline</a> and
 
128
<a href="http://www.sqlite.org/src/timeline?t=release">
 
129
http://www.sqlite.org/src/timeline?t=release</a>
 
130
</p>
 
131
 
 
132
<a name="version_3_7_13"></a>
 
133
<h3>2012-06-11 (3.7.13)</h3><p><ul>
 
134
<li><a href="inmemorydb.html">In-memory databases</a> that are specified using
 
135
    <a href="uri.html">URI filenames</a> are allowed to use <a href="sharedcache.html#inmemsharedcache">shared cache</a>,
 
136
    so that the same
 
137
    in-memory database can be accessed from multiple database connections.
 
138
<li>Recognize and use the <a href="uri.html#coreqp">mode=memory</a> query parameter in
 
139
    <a href="uri.html">URI filenames</a>.
 
140
<li>Avoid resetting the schema of <a href="sharedcache.html">shared cache</a> connections when any one
 
141
    connection closes.  Instead, wait for the last connection to close before
 
142
    reseting the schema.
 
143
<li>In the <a href="rtree.html">RTREE</a> extension, when rounding 64-bit floating point numbers
 
144
    to 32-bit for storage, always round in a direction that causes the
 
145
    bounding box to get larger.
 
146
<li>Adjust the unix driver to avoid unnecessary calls to fchown().
 
147
<li>Add interfaces sqlite3_quota_ferror() and sqlite3_quota_file_available()
 
148
    to the test_quota.c module.
 
149
<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
 
150
    return SQLITE_MISUSE on any attempt to overload or replace a <a href="vtab.html">virtual table</a>
 
151
    module.  The destructor is always called in this case, in accordance with
 
152
    historical and current documentation.
 
153
</ul></p><a name="version_3_7_12_1"></a>
 
154
<h3>2012 May 22 (3.7.12.1)</h3><p><ul>
 
155
<li>Fix a bug 
 
156
    <a href="http://www.sqlite.org/src/info/c2ad16f997ee9c">(ticket c2ad16f997)</a>
 
157
    in the 3.7.12 release that can cause a segfault for certain
 
158
    obscure nested aggregate queries.
 
159
<li>Fix various other minor test script problems.
 
160
<li>SQLITE_SOURCE_ID: 
 
161
    "2012-05-22 02:45:53 6d326d44fd1d626aae0e8456e5fa2049f1ce0789"
 
162
<li>SHA1 for sqlite3.c: d494e8d81607f0515d4f386156fb0fd86d5ba7df
 
163
</ul></p><a name="version_3_7_12"></a>
 
164
<h3>2012 May 14 (3.7.12)</h3><p><ul>
 
165
<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>.
 
166
<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
 
167
    unnecessary reading of database content from disk.
 
168
<li>Add the <a href="fts3.html#*fts4mergecmd">FTS4 "merge" command</a>, the <a href="fts3.html#*fts4automergecmd">FTS4 "automerge" command</a>, and
 
169
    the <a href="fts3.html#*fts4ickcmd">FTS4 "integrity-check" command</a>.
 
170
<li>Report the name of specific <a href="lang_createtable.html#ckconst">CHECK</a> constraints that fail.
 
171
<li>In the command-line shell, use popen() instead of fopen() if the first
 
172
    character of the argument to the ".output" command is "|".
 
173
<li>Make use of OVERLAPPED in the windows <a href="vfs.html">VFS</a> to avoid some system calls
 
174
    and thereby obtain a performance improvement.
 
175
<li>More aggressive optimization of the AND operator when one side or the
 
176
    other is always false.
 
177
<li>Improved performance of queries with many OR-connected terms in the
 
178
    WHERE clause that can all be indexed.
 
179
<li>Add the <a href="compile.html#rtree_int_only">SQLITE_RTREE_INT_ONLY</a> compile-time option to force the
 
180
    <a href="rtree.html">R*Tree Extension Module</a> to use integer instead of
 
181
    floating point values for both storage and computation.
 
182
<li>Enhance the <a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a> command to use much less memory when
 
183
    processing multi-gigabyte databases.
 
184
<li>New interfaces added to the test_quota.c add-on module.
 
185
<li>Added the ".trace" dot-command to the command-line shell.
 
186
<li>Allow virtual table constructors to be invoked recursively.
 
187
<li>Improved optimization of ORDER BY clauses on compound queries.
 
188
<li>Improved optimization of aggregate subqueries contained within an
 
189
    aggregate query.
 
190
<li>Bug fix: Fix the <a href="lang_savepoint.html">RELEASE</a> command so that it does not cancel pending
 
191
    queries.  This repairs a problem introduced in 3.7.11.
 
192
<li>Bug fix: Do not discard the DISTINCT as superfluous unless a subset of
 
193
    the result set is subject to a UNIQUE constraint <em>and</em> it none
 
194
    of the columns in that subset can be NULL.
 
195
    Ticket <a href="http://www.sqlite.org/src/info/385a5b56b9">385a5b56b9</a>.
 
196
<li>Bug fix: Do not optimize away an ORDER BY clause that has the same terms
 
197
    as a UNIQUE index unless those terms are also NOT NULL.
 
198
    Ticket <a href="http://www.sqlite.org/src/info/2a5629202f">2a5629202f</a>.
 
199
<li>SQLITE_SOURCE_ID: 
 
200
    "2012-05-14 01:41:23 8654aa9540fe9fd210899d83d17f3f407096c004"
 
201
<li>SHA1 for sqlite3.c: 57e2104a0f7b3f528e7f6b7a8e553e2357ccd2e1
 
202
 
 
203
</ul></p><a name="version_3_7_11"></a>
 
204
<h3>2012 March 20 (3.7.11)</h3><p><ul>
 
205
<li>Enhance the <a href="lang_insert.html">INSERT</a> syntax to allow multiple rows to be inserted
 
206
    via the VALUES clause.
 
207
<li>Enhance the <a href="lang_createvtab.html">CREATE VIRTUAL TABLE</a> command to support the
 
208
    IF NOT EXISTS clause.
 
209
<li>Added the <a href="c3ref/stricmp.html">sqlite3_stricmp()</a> interface as a counterpart to
 
210
    <a href="c3ref/stricmp.html">sqlite3_strnicmp()</a>.
 
211
<li>Added the <a href="c3ref/db_readonly.html">sqlite3_db_readonly()</a> interface.
 
212
<li>Added the <a href="c3ref/c_fcntl_chunk_size.html#sqlitefcntlpragma">SQLITE_FCNTL_PRAGMA</a> file control, giving <a href="vfs.html">VFS</a> implementations
 
213
    the ability to add new <a href="pragma.html#syntax">PRAGMA</a> statements or to override built-in
 
214
    PRAGMAs.
 
215
<li>Queries of the form:  "SELECT max(x), y FROM table" returns the 
 
216
    value of y on the same row that contains the maximum x value.
 
217
<li>Added support for the <a href="fts3.html#*fts4languageid">FTS4 languageid option</a>.  
 
218
<li>Documented support for the <a href="fts3.html#*fts4content">FTS4 content option</a>.  This feature has
 
219
    actually been in the code since <a href="#version_3_7_9">version 3.7.9</a> but is only now considered
 
220
    to be officially supported.
 
221
<li>Pending statements no longer block <a href="lang_transaction.html">ROLLBACK</a>.  Instead, the pending
 
222
    statement will return SQLITE_ABORT upon next access after the ROLLBACK.
 
223
<li>Improvements to the handling of CSV inputs in the <a href="sqlite.html">command-line shell</a>
 
224
<li>Fix a <a href="http://www.sqlite.org/src/info/b7c8682cc1">bug</a> introduced 
 
225
    in <a href="#version_3_7_10">version 3.7.10</a> that might cause a LEFT JOIN
 
226
    to be incorrectly converted into an INNER JOIN if the WHERE clause
 
227
    indexable terms connected by OR.
 
228
 
 
229
<li>SQLITE_SOURCE_ID: 
 
230
    "2012-03-20 11:35:50 00bb9c9ce4f465e6ac321ced2a9d0062dc364669"
 
231
<li>SHA1 for sqlite3.c: d460d7eda3a9dccd291aed2a9fda868b9b120a10
 
232
</ul></p><a name="version_3_7_10"></a>
 
233
<h3>2012 January 16 (3.7.10)</h3><p><ul>
 
234
<li>The default <a href="fileformat2.html#schemaformat">schema format number</a> is changed from 1 to 4.
 
235
    This means that, unless
 
236
    the <a href="pragma.html#pragma_legacy_file_format">PRAGMA legacy_file_format=ON</a> statement is
 
237
    run, newly created database files will be unreadable by version of SQLite
 
238
    prior to 3.3.0 (2006-01-10).  It also means that the <a href="lang_createindex.html#descidx">descending indices</a>
 
239
    are enabled by default.
 
240
<li>The sqlite3_pcache_methods structure and the <a href="c3ref/c_config_getmalloc.html#sqliteconfigpcache">SQLITE_CONFIG_PCACHE</a>
 
241
    and <a href="c3ref/c_config_getmalloc.html#sqliteconfiggetpcache">SQLITE_CONFIG_GETPCACHE</a> configuration parameters are deprecated.
 
242
    They are replaced by a new <a href="c3ref/pcache_methods2.html">sqlite3_pcache_methods2</a> structure and
 
243
    <a href="c3ref/c_config_getmalloc.html#sqliteconfigpcache2">SQLITE_CONFIG_PCACHE2</a> and <a href="c3ref/c_config_getmalloc.html#sqliteconfiggetpcache2">SQLITE_CONFIG_GETPCACHE2</a> configuration
 
244
    parameters.
 
245
<li>Added the <a href="psow.html">powersafe overwrite</a> property to the VFS interface.  Provide
 
246
    the <a href="c3ref/c_iocap_atomic.html">SQLITE_IOCAP_POWERSAFE_OVERWRITE</a> I/O capability, the
 
247
    <a href="compile.html#powersafe_overwrite">SQLITE_POWERSAFE_OVERWRITE</a> compile-time option, and the
 
248
    "psow=BOOLEAN" query parameter for <a href="uri.html">URI filenames</a>.
 
249
<li>Added the <a href="c3ref/db_release_memory.html">sqlite3_db_release_memory()</a> interface and the
 
250
    <a href="pragma.html#pragma_shrink_memory">shrink_memory pragma</a>.
 
251
<li>Added the <a href="c3ref/db_filename.html">sqlite3_db_filename()</a> interface.
 
252
<li>Added the <a href="c3ref/stmt_busy.html">sqlite3_stmt_busy()</a> interface.
 
253
<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.
 
254
<li>If the argument to <a href="pragma.html#pragma_cache_size">PRAGMA cache_size</a> is negative N, that means to use
 
255
    approximately -1024*N bytes of memory for the page cache regardless of
 
256
    the page size.
 
257
<li>Enhanced the default memory allocator to make use of _msize() on windows,
 
258
    malloc_size() on Mac, and malloc_usable_size() on Linux.
 
259
<li>Enhanced the query planner to support index queries with range constraints
 
260
    on the rowid.
 
261
<li>Enhanced the query planner flattening logic to allow UNION ALL compounds
 
262
    to be promoted upwards to replace a simple wrapper SELECT even if the
 
263
    compounds are joins.
 
264
<li>Enhanced the query planner so that the xfer optimization can be used with
 
265
    INTEGER PRIMARY KEY ON CONFLICT as long as the destination table is
 
266
    initially empty.
 
267
<li>Enhanced the windows <a href="vfs.html">VFS</a> so that all system calls can be overridden
 
268
    using the xSetSystemCall interface.
 
269
<li>Updated the "unix-dotfile" <a href="vfs.html">VFS</a> to use locking directories with mkdir()
 
270
    and rmdir() instead of locking files with open() and unlink().
 
271
<li>Enhancements to the test_quota.c extension to support stdio-like interfaces
 
272
    with quotas.
 
273
<li>Change the unix <a href="vfs.html">VFS</a> to be tolerant of read() system calls that return 
 
274
    less then the full number of requested bytes.
 
275
<li>Change both unix and windows <a href="vfs.html">VFSes</a> to report a sector size of 4096
 
276
    instead of the old default of 512.
 
277
<li>In the <a href="tclsqlite.html">TCL Interface</a>, add the -uri option to the "sqlite3" TCL command
 
278
    used for creating new database connection objects.
 
279
<li>Added the <a href="c3ref/c_testctrl_always.html">SQLITE_TESTCTRL_EXPLAIN_STMT</a> test-control option with the
 
280
    <a href="compile.html#enable_tree_explain">SQLITE_ENABLE_TREE_EXPLAIN</a> compile-time option to enable the
 
281
    <a href="sqlite.html">command-line shell</a> to display ASCII-art parse trees of SQL statements
 
282
    that it processes, for debugging and analysis.
 
283
<li><b>Bug fix:</b>
 
284
    Add an additional xSync when restarting a WAL in order to prevent an
 
285
    exceedingly unlikely but theoretically possible
 
286
    database corruption following power-loss.
 
287
    Ticket <a href="http://www.sqlite.org/src/info/ff5be73dee">ff5be73dee</a>.
 
288
<li><b>Bug fix:</b>
 
289
    Change the VDBE so that all registers are initialized to Invalid
 
290
    instead of NULL.
 
291
    Ticket <a href="http://www.sqlite.org/src/info/7bbfb7d442">7bbfb7d442</a>
 
292
<li><b>Bug fix:</b>
 
293
    Fix problems that can result from 32-bit integer overflow.
 
294
    Ticket <a href="http://www.sqlite.org/src/info/ac0ff496b7e2">ac00f496b7e2</a>
 
295
<li>SQLITE_SOURCE_ID: 
 
296
    "2012-01-16 13:28:40 ebd01a8deffb5024a5d7494eef800d2366d97204"
 
297
<li>SHA1 for sqlite3.c: 6497cbbaad47220bd41e2e4216c54706e7ae95d4
 
298
</ul></p><a name="version_3_7_9"></a>
 
299
<h3>2011 November 1 (3.7.9)</h3><p><ul>
 
300
<li>If a search token (on the right-hand side of the MATCH operator) in
 
301
    <a href="fts3.html#fts4">FTS4</a> begins with "&#94;" then that token must be the first in its field
 
302
    of the document.  <b>** Potentially Incompatible Change **</b>
 
303
<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>
 
304
    to the <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface.
 
305
<li>Removed support for <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a>, replacing it with the much
 
306
    more capable <a href="compile.html#enable_stat3">SQLITE_ENABLE_STAT3</a> option.
 
307
<li>Enhancements to the sqlite3_analyzer utility program, including the
 
308
    --pageinfo and --stats options and support for multiplexed databases.
 
309
<li>Enhance the <a href="c3ref/data_count.html">sqlite3_data_count()</a> interface so that it can be used to
 
310
    determine if SQLITE_DONE has been seen on the prepared statement.
 
311
<li>Added the <a href="c3ref/c_fcntl_chunk_size.html#sqlitefcntloverwrite">SQLITE_FCNTL_OVERWRITE</a> file-control by which the SQLite core
 
312
    indicates to the VFS that the current transaction will overwrite the
 
313
    entire database file.
 
314
<li>Increase the default <a href="malloc.html#lookaside">lookaside memory allocator</a> allocation size from
 
315
    100 to 128 bytes.
 
316
<li>Enhanced the query planner so that it can factor terms in and out of
 
317
    OR expressions in the WHERE clause in an effort to find better indices.
 
318
<li>Added the <a href="compile.html#direct_overflow_read">SQLITE_DIRECT_OVERFLOW_READ</a> compile-time option, causing
 
319
    <a href="fileformat2.html#ovflpgs">overflow pages</a> to be read directly from the database file, 
 
320
    bypassing the <a href="c3ref/pcache_methods2.html">page cache</a>.
 
321
<li>Remove limits on the magnitude of precision and width value in the
 
322
    format specifiers of the <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> family of string rendering
 
323
    routines.
 
324
<li>Fix a bug that prevent <a href="lang_altertable.html">ALTER TABLE ... RENAME</a> from working
 
325
    on some virtual tables in a database with a UTF16 encoding.
 
326
<li>Fix a bug in ASCII-to-float conversion that causes slow performance and
 
327
    incorrect results when converting numbers with ridiculously large exponents.
 
328
<li>Fix a bug that causes incorrect results in aggregate queries that use
 
329
    multiple aggregate functions whose arguments contain complicated expressions
 
330
    that differ only in the case of string literals contained within those
 
331
    expressions.
 
332
<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
 
333
    working correctly if their names were capitalized.
 
334
<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
 
335
    engaged.
 
336
<li>Fix a bug in <a href="vtab.html">virtual table</a> implementation that causes a crash if
 
337
    an <a href="fts3.html#fts4">FTS4</a> table is <a href="lang_droptable.html">dropped</a> inside a transaction and
 
338
    a <a href="lang_savepoint.html">SAVEPOINT</a> occurs afterwards.
 
339
<li>SQLITE_SOURCE_ID: 
 
340
    "2011-11-01 00:52:41 c7c6050ef060877ebe77b41d959e9df13f8c9b5e"
 
341
<li>SHA1 for sqlite3.c: becd16877f4f9b281b91c97e106089497d71bb47
 
342
</ul></p><a name="version_3_7_8"></a>
 
343
<h3>2011 September 19 (3.7.8)</h3><p><ul>
 
344
<li> Orders of magnitude performance improvement for <a href="lang_createindex.html">CREATE INDEX</a> on
 
345
     very large tables.
 
346
<li> Improved the windows VFS to better defend against interference
 
347
     from anti-virus software.
 
348
<li> Improved query plan optimization when the DISTINCT keyword is present.
 
349
<li> Allow more system calls to be overridden in the unix VFS - to provide
 
350
     better support for chromium sandboxes.
 
351
<li> Increase the default size of a lookahead cache line from 100 to 128 bytes.
 
352
<li> Enhancements to the test_quota.c module so that it can track 
 
353
     preexisting files.
 
354
<li> Bug fix: Virtual tables now handle IS NOT NULL constraints correctly.
 
355
<li> Bug fixes: Correctly handle nested correlated subqueries used with
 
356
     indices in a WHERE clause.
 
357
<li> SQLITE_SOURCE_ID:
 
358
    "2011-09-19 14:49:19 3e0da808d2f5b4d12046e05980ca04578f581177"
 
359
<li> SHA1 for sqlite3.c: bfcd74a655636b592c5dba6d0d5729c0f8e3b4de
 
360
</ul></p><a name="version_3_7_7_1"></a>
 
361
<h3>2011 June 28 (3.7.7.1)</h3><p><ul>
 
362
<li> Fix <a href="http://www.sqlite.org/src/info/25ee812710">a bug</a> causing 
 
363
     <a href="pragma.html#pragma_case_sensitive_like">PRAGMA case_sensitive_like</a> statements compiled using sqlite3_prepare()
 
364
     to fail with an <a href="c3ref/c_abort.html">SQLITE_SCHEMA</a> error.
 
365
<li> SQLITE_SOURCE_ID:
 
366
    "2011-06-28 17:39:05 af0d91adf497f5f36ec3813f04235a6e195a605f"
 
367
<li> SHA1 for sqlite3.c: d47594b8a02f6cf58e91fb673e96cb1b397aace0
 
368
</ul></p><a name="version_3_7_7"></a>
 
369
<h3>2011 June 24 (3.7.7)</h3><p><ul>
 
370
<li> Add support for <a href="uri.html">URI filenames</a>
 
371
<li> Add the <a href="c3ref/vtab_config.html">sqlite3_vtab_config()</a> interface in
 
372
     support of <a href="lang_conflict.html">ON CONFLICT</a> clauses with <a href="vtab.html">virtual tables</a>.
 
373
<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
 
374
     <a href="vtab.html">virtual tables</a> in support of <a href="lang_savepoint.html">SAVEPOINT</a> for virtual tables.
 
375
<li> Update the built-in <a href="fts3.html">FTS3/FTS4</a> and <a href="rtree.html">RTREE</a> virtual tables to support
 
376
     <a href="lang_conflict.html">ON CONFLICT</a> clauses and <a href="lang_replace.html">REPLACE</a>.
 
377
<li> Avoid unnecessary reparsing of the database schema.
 
378
<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>.
 
379
<li> Allow <a href="wal.html">WAL-mode</a> databases to be opened read-only as long as
 
380
     there is an existing read/write connection.
 
381
<li> Added support for <a href="shortnames.html">short filenames</a>.
 
382
<li> SQLITE_SOURCE_ID:
 
383
     "2011-06-23 19:49:22 4374b7e83ea0a3fbc3691f9c0c936272862f32f2"
 
384
<li> SHA1 for sqlite3.c: 5bbe79e206ae5ffeeca760dbd0d66862228db551
 
385
</ul></p><a name="version_3_7_6_3"></a>
 
386
<h3>2011 May 19 (3.7.6.3)</h3><p><ul>
 
387
<li> Fix a problem with <a href="wal.html">WAL mode</a> which could cause transactions to
 
388
     silently rollback if the <a href="pragma.html#pragma_cache_size">cache_size</a> is set very small (less than 10)
 
389
     and SQLite comes under memory pressure.
 
390
</ul></p><a name="version_3_7_6_2"></a>
 
391
<h3>2011 April 17 (3.7.6.2)</h3><p><ul>
 
392
<li> Fix the function prototype for the open(2) system call to agree with
 
393
     POSIX.  Without this fix, pthreads does not work correctly on NetBSD.
 
394
<li> SQLITE_SOURCE_ID:
 
395
     "2011-04-17 17:25:17 154ddbc17120be2915eb03edc52af1225eb7cb5e"
 
396
<li> SHA1 for sqlite3.c: 806577fd524dd5f3bfd8d4d27392ed2752bc9701
 
397
 
 
398
</ul></p><a name="version_3_7_6_1"></a>
 
399
<h3>2011 April 14 (3.7.6.1)</h3><p><ul>
 
400
<li> Fix a bug in 3.7.6 that only appears if the <a href="c3ref/c_fcntl_chunk_size.html#sqlitefcntlsizehint">SQLITE_FCNTL_SIZE_HINT</a>
 
401
     file control is used with a build of SQLite that makes use of the
 
402
     HAVE_POSIX_FALLOCATE compile-time option and which has
 
403
     SQLITE_ENABLE_LOCKING_MODE turned off.
 
404
<li> SQLITE_SOURCE_ID:
 
405
     "2011-04-13 14:40:25 a35e83eac7b185f4d363d7fa51677f2fdfa27695"
 
406
<li> SHA1 for sqlite3.c: b81bfa27d3e09caf3251475863b1ce6dd9f6ab66
 
407
</ul></p><a name="version_3_7_6"></a>
 
408
<h3>2011 April 12 (3.7.6)</h3><p><ul>
 
409
<li> Added the <a href="c3ref/wal_checkpoint_v2.html">sqlite3_wal_checkpoint_v2()</a> interface and enhanced the
 
410
     <a href="pragma.html#pragma_wal_checkpoint">wal_checkpoint pragma</a> to support blocking checkpoints.
 
411
<li> Improvements to the query planner so that it makes better estimates of
 
412
     plan costs and hence does a better job of choosing the right plan,
 
413
     especially when <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a> is used.
 
414
<li> Fix a bug which prevented deferred foreign key constraints from being
 
415
     enforced when <a href="c3ref/finalize.html">sqlite3_finalize()</a> was not
 
416
     called by one statement with a failed foreign key constraint prior to
 
417
     another statement with foreign key constraints running.
 
418
<li> Integer arithmetic operations that would have resulted in overflow
 
419
     are now performed using floating-point instead.
 
420
<li> Increased the version number on the <a href="c3ref/vfs.html">VFS object</a> to
 
421
     3 and added new methods xSetSysCall, xGetSysCall, and xNextSysCall
 
422
     used for doing full-coverage testing.
 
423
<li> Increase the maximum value of <a href="limits.html#max_attached">SQLITE_MAX_ATTACHED</a> from 30 to 62
 
424
     (though the default value remains at 10).
 
425
<li> Enhancements to FTS4:
 
426
     <ol type="a">
 
427
     <li> Added the <a href="fts3.html#fts4aux">fts4aux</a> table
 
428
     <li> Added support for <a href="fts3.html#*fts4compression">compressed FTS4 content</a>
 
429
     </ol>
 
430
<li> Enhance the <a href="lang_analyze.html">ANALYZE</a> command to support the name of an index
 
431
     as its argument, in order to analyze just that one index.
 
432
<li> Added the "unix-excl" built-in VFS on unix and unix-like platforms.
 
433
<li> SQLITE_SOURCE_ID:
 
434
     "2011-04-12 01:58:40 f9d43fa363d54beab6f45db005abac0a7c0c47a7"
 
435
<li> SHA1 for sqlite3.c: f38df08547efae0ff4343da607b723f588bbd66b
 
436
</ul></p><a name="version_3_7_5"></a>
 
437
<h3>2011 February 01 (3.7.5)</h3><p><ul>
 
438
<li> Added the <a href="c3ref/mprintf.html">sqlite3_vsnprintf()</a> interface.
 
439
<li> Added the <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidehit">SQLITE_DBSTATUS_LOOKASIDE_HIT</a>,
 
440
     <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidemisssize">SQLITE_DBSTATUS_LOOKASIDE_MISS_SIZE</a>, and
 
441
     <a href="c3ref/c_dbstatus_options.html#sqlitedbstatuslookasidemissfull">SQLITE_DBSTATUS_LOOKASIDE_MISS_FULL</a> options for the
 
442
     <a href="c3ref/db_status.html">sqlite3_db_status()</a> interface.
 
443
<li> Added the <a href="compile.html#omit_autoreset">SQLITE_OMIT_AUTORESET</a> compile-time option.
 
444
<li> Added the <a href="compile.html#default_foreign_keys">SQLITE_DEFAULT_FOREIGN_KEYS</a> compile-time option.
 
445
<li> Updates to <a href="c3ref/stmt_readonly.html">sqlite3_stmt_readonly()</a> so that its result is well-defined
 
446
     for all prepared statements and so that it works with <a href="lang_vacuum.html">VACUUM</a>.
 
447
<li> Added the "-heap" option to the <a href="sqlite.html">command-line shell</a>
 
448
<li> Fix <a href="http://www.sqlite.org/src/info/5d863f876e">a bug</a> involving
 
449
     frequent changes in and out of WAL mode and
 
450
     VACUUM that could (in theory) cause database corruption.
 
451
<li> Enhance the <a href="c3ref/profile.html">sqlite3_trace()</a> mechanism so that nested SQL statements
 
452
     such as might be generated by virtual tables are shown but are shown
 
453
     in comments and without parameter expansion.  This 
 
454
     greatly improves tracing output when using the FTS3/4 and/or RTREE
 
455
     virtual tables.
 
456
<li> Change the xFileControl() methods on all built-in VFSes to return
 
457
     <a href="c3ref/c_abort.html">SQLITE_NOTFOUND</a> instead of <a href="c3ref/c_abort.html">SQLITE_ERROR</a> for an unrecognized
 
458
     operation code.
 
459
<li> The SQLite core invokes the <a href="c3ref/c_fcntl_chunk_size.html#sqlitefcntlsyncomitted">SQLITE_FCNTL_SYNC_OMITTED</a> 
 
460
     <a href="c3ref/file_control.html">file control</a>
 
461
     to the VFS in place of a call to xSync if the database has
 
462
     <a href="pragma.html#pragma_synchronous">PRAGMA synchronous</a> set to OFF.
 
463
</ul></p><a name="version_3_7_4"></a>
 
464
<h3>2010 December 08 (3.7.4)</h3><p><ul>
 
465
<li> Added the <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface to allow an existing
 
466
     <a href="c3ref/blob.html">sqlite3_blob</a> object to be rebound to a new row.
 
467
<li> Use the new <a href="c3ref/blob_reopen.html">sqlite3_blob_reopen()</a> interface to improve the performance
 
468
     of FTS.
 
469
<li> <a href="c3ref/vfs.html">VFSes</a> that do not support shared memory are allowed
 
470
     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.
 
471
<li> Enhancements to <a href="eqp.html">EXPLAIN QUERY PLAN</a>.
 
472
<li> Added the <a href="c3ref/stmt_readonly.html">sqlite3_stmt_readonly()</a> interface.
 
473
<li> Added <a href="pragma.html#pragma_checkpoint_fullfsync">PRAGMA checkpoint_fullfsync</a>.
 
474
<li> Added the <a href="c3ref/c_fcntl_chunk_size.html#sqlitefcntlfilepointer">SQLITE_FCNTL_FILE_POINTER</a> option
 
475
     to <a href="c3ref/file_control.html">sqlite3_file_control()</a>.
 
476
<li> Added support for <a href="fts3.html#fts4">FTS4</a> and enhancements 
 
477
     to the FTS <a href="fts3.html#matchinfo">matchinfo()</a> function.
 
478
<li> Added the test_superlock.c module which provides example
 
479
     code for obtaining an exclusive lock to a rollback
 
480
     or WAL database.  
 
481
<li> Added the test_multiplex.c module which provides
 
482
     an example VFS that provides multiplexing (sharding)
 
483
     of a DB, splitting it over multiple files of fixed size.
 
484
<li> A <a href="http://www.sqlite.org/src/info/80ba201079">very obscure bug</a>
 
485
     associated with the <a href="optoverview.html#or_opt">or optimization</a> was fixed.
 
486
</ul></p><a name="version_3_7_3"></a>
 
487
<h3>2010 October 08 (3.7.3)</h3><p><ul>
 
488
<li> Added the <a href="c3ref/create_function.html">sqlite3_create_function_v2()</a> interface that includes a
 
489
     destructor callback.
 
490
<li> Added support for <a href="rtree.html#customquery">custom r-tree queries</a> using application-supplied
 
491
     callback routines to define the boundary of the query region.
 
492
<li> The default page cache strives more diligently to avoid using memory
 
493
     beyond what is allocated to it by <a href="c3ref/c_config_getmalloc.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a>.  Or if
 
494
     using page cache is allocating from the heap, it strives to avoid
 
495
     going over the <a href="c3ref/soft_heap_limit64.html">sqlite3_soft_heap_limit64()</a>, even if
 
496
     <a href="compile.html#enable_memory_management">SQLITE_ENABLE_MEMORY_MANAGEMENT</a> is not set.
 
497
<li> Added the <a href="c3ref/soft_heap_limit64.html">sqlite3_soft_heap_limit64()</a> interface as a replacement for
 
498
     <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit()</a>.
 
499
<li> The <a href="lang_analyze.html">ANALYZE</a> command now gathers statistics on tables even if they 
 
500
     have no indices.
 
501
<li> Tweaks to the query planner to help it do a better job of finding the
 
502
     most efficient query plan for each query.
 
503
<li> Enhanced the internal text-to-numeric conversion routines so that they
 
504
     work with UTF8 or UTF16, thereby avoiding some UTF16-to-UTF8 text
 
505
     conversions.
 
506
<li> Fix a problem that was causing excess memory usage with large <a href="wal.html">WAL</a>
 
507
     transactions in win32 systems.
 
508
<li> The interface between the VDBE and B-Tree layer is enhanced such that
 
509
     the VDBE provides hints to the B-Tree layer letting the B-Tree layer
 
510
     know when it is safe to use hashing instead of B-Trees for transient
 
511
     tables.
 
512
<li> Miscellaneous documentation enhancements.
 
513
</ul></p><a name="version_3_7_2"></a>
 
514
<h3>2010 August 24 (3.7.2)</h3><p><ul>
 
515
<li> Fix an <a href="http://www.sqlite.org/src/info/5e10420e8d">
 
516
     old and very obscure bug</a> that can lead to corruption of the
 
517
     database <a href="fileformat2.html#freelist">free-page list</a> when <a href="pragma.html#pragma_incremental_vacuum">incremental_vacuum</a> is used.
 
518
</ul></p><a name="version_3_7_1"></a>
 
519
<h3>2010 August 23 (3.7.1)</h3><p><ul>
 
520
<li> Added new commands <a href="c3ref/c_dbstatus_options.html#sqlitedbstatusschemaused">SQLITE_DBSTATUS_SCHEMA_USED</a> and
 
521
     <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
 
522
     order to report out the amount of memory used to hold the schema and
 
523
     prepared statements of a connection.
 
524
<li> Increase the maximum size of a database pages from 32KiB to 64KiB.
 
525
<li> Use the <a href="optoverview.html#like_opt">LIKE optimization</a> even if the right-hand side string contains
 
526
     no wildcards.
 
527
<li> Added the <a href="c3ref/c_fcntl_chunk_size.html#sqlitefcntlchunksize">SQLITE_FCNTL_CHUNK_SIZE</a> verb to the <a href="c3ref/file_control.html">sqlite3_file_control()</a>
 
528
     interface for both unix and windows, to cause database files to grow in
 
529
     large chunks in order to reduce disk fragmentation.
 
530
<li> Fixed a bug in the query planner that caused performance regressions
 
531
     relative to 3.6.23.1 on some complex joins.
 
532
<li> Fixed a typo in the OS/2 backend.
 
533
<li> Refactored the pager module.
 
534
<li> The SQLITE_MAX_PAGE_SIZE compile-time option is now silently ignored.
 
535
     The maximum page size is hard-coded at 65536 bytes.
 
536
</ul></p><a name="version_3_7_0_1"></a>
 
537
<h3>2010 August 04 (3.7.0.1)</h3><p><ul>
 
538
<li> Fix a potential database corruption bug that can occur if version 3.7.0
 
539
     and version 3.6.23.1 alternately write to the same database file.
 
540
     <a href="http://www.sqlite.org/src/info/51ae9cad317a1">
 
541
     Ticket &#91;51ae9cad317a1&#93;</a>
 
542
<li> Fix a performance regression related to the query planner enhancements
 
543
     of version 3.7.0.
 
544
</ul></p><a name="version_3_7_0"></a>
 
545
<h3>2010 July 22 (3.7.0)</h3><p><ul>
 
546
<li> Added support for <a href="wal.html">write-ahead logging</a>.
 
547
<li> Query planner enhancement - automatic transient indices are created
 
548
     when doing so reduces the estimated query time.
 
549
<li> Query planner enhancement - the ORDER BY becomes a no-op if the query
 
550
     also contains a GROUP BY clause that forces the correct output order.
 
551
<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>.
 
552
<li> The logical database size is now stored in the database header so that
 
553
     bytes can be appended to the end of the database file without corrupting
 
554
     it and so that SQLite will work correctly on systems that lack support
 
555
     for ftruncate().
 
556
</ul></p><a name="version_3_6_23_1"></a>
 
557
<h3>2010 March 30 (3.6.23.1)</h3><p><ul>
 
558
<li> Fix a bug in the offsets() function of <a href="fts3.html">FTS3</a>
 
559
<li> Fix a missing "sync" that when omitted could lead to database
 
560
     corruption if a power failure or OS crash occurred just as a
 
561
     ROLLBACK operation was finishing.
 
562
</ul></p><a name="version_3_6_23"></a>
 
563
<h3>2010 March 09 (3.6.23)</h3><p><ul>
 
564
<li> Added the <a href="pragma.html#pragma_secure_delete">secure_delete pragma</a>.
 
565
<li> Added the <a href="c3ref/compileoption_get.html">sqlite3_compileoption_used()</a> and
 
566
     <a href="c3ref/compileoption_get.html">sqlite3_compileoption_get()</a> interfaces as well as the
 
567
     <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
 
568
     <a href="lang_corefunc.html#sqlite_compileoption_get">sqlite_compileoption_get()</a> SQL functions.
 
569
<li> Added the <a href="c3ref/log.html">sqlite3_log()</a> interface together with the
 
570
     <a href="c3ref/c_config_getmalloc.html#sqliteconfiglog">SQLITE_CONFIG_LOG</a> verb to <a href="c3ref/config.html">sqlite3_config()</a>.  The ".log" command
 
571
     is added to the <a href="sqlite.html">Command Line Interface</a>.
 
572
<li> Improvements to <a href="fts3.html">FTS3</a>.
 
573
<li> Improvements and bug-fixes in support for <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a>.
 
574
<li> The <a href="pragma.html#pragma_integrity_check">integrity_check pragma</a> is enhanced to detect out-of-order rowids.
 
575
<li> The ".genfkey" operator has been removed from the
 
576
     <a href="sqlite.html">Command Line Interface</a>.
 
577
<li> Updates to the co-hosted Lemon LALR(1) parser generator. (These
 
578
     updates did not affect SQLite.)
 
579
<li> Various minor bug fixes and performance enhancements.
 
580
</ul></p><a name="version_3_6_22"></a>
 
581
<h3>2010 Jan 06 (3.6.22)</h3><p><ul>
 
582
<li>Fix bugs that can (rarely) lead to incorrect query results when
 
583
    the CAST or OR operators are used in the WHERE clause of a query.
 
584
<li>Continuing enhancements and improvements to <a href="fts3.html">FTS3</a>.
 
585
<li>Other miscellaneous bug fixes.
 
586
</ul></p><a name="version_3_6_21"></a>
 
587
<h3>2009 Dec 07 (3.6.21)</h3><p><ul>
 
588
<li>The SQL output resulting from <a href="c3ref/profile.html">sqlite3_trace()</a> is now modified to include
 
589
the values of <a href="lang_expr.html#varparam">bound parameters</a>.
 
590
<li>Performance optimizations targeting a specific use case from
 
591
a single high-profile user of SQLite.  A 12% reduction in the number of
 
592
CPU operations is achieved (as measured by Valgrind).  Actual performance
 
593
improvements in practice may vary depending on workload.  Changes
 
594
include:
 
595
<ul>
 
596
<li>The <a href="lang_corefunc.html#ifnull">ifnull()</a> and <a href="lang_corefunc.html#coalesce">coalesce()</a> SQL functions are now implemented
 
597
using in-line VDBE code rather than calling external functions, so that
 
598
unused arguments need never be evaluated.
 
599
<li>The <a href="lang_corefunc.html#substr">substr()</a> SQL function does not bother to measure the length
 
600
its entire input string if it is only computing a prefix
 
601
<li>Unnecessary OP_IsNull, OP_Affinity, and OP_MustBeInt VDBE opcodes
 
602
are suppressed
 
603
<li>Various code refactorizations for performance
 
604
</ul>
 
605
<li>The FTS3 extension has undergone a major rework and cleanup.
 
606
New <a href="fts3.html">FTS3 documentation</a> is now available.
 
607
<li>The <a href="compile.html#secure_delete">SQLITE_SECURE_DELETE</a> compile-time option fixed to make sure that
 
608
content is deleted even when the <a href="lang_delete.html#truncateopt">truncate optimization</a> applies.
 
609
<li>Improvements to "dot-command" handling in the
 
610
<a href="sqlite.html">Command Line Interface</a>.
 
611
<li>Other minor bug fixes and documentation enhancements.
 
612
</ul></p><a name="version_3_6_20"></a>
 
613
<h3>2009 Nov 4 (3.6.20)</h3><p><ul>
 
614
<li>Optimizer enhancement: <a href="c3ref/stmt.html">prepared statements</a> are automatically 
 
615
re-compiled when a binding on the RHS of a LIKE operator changes or
 
616
when any range constraint changes under <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a>.
 
617
<li>Various minor bug fixes and documentation enhancements.
 
618
</ul></p><a name="version_3_6_16_1"></a>
 
619
<h3>2009 Oct 30 (3.6.16.1)</h3><p><ul>
 
620
<li>A small patch to version 3.6.16 to fix 
 
621
<a href="http://www.sqlite.org/src/info/6b00e0a34c">the OP_If bug</a>.
 
622
</ul></p><a name="version_3_6_19"></a>
 
623
<h3>2009 Oct 14 (3.6.19)</h3><p><ul>
 
624
<li>Added support for <a href="foreignkeys.html">foreign key constraints</a>.  Foreign key constraints
 
625
    are disabled by default.  Use the <a href="pragma.html#pragma_foreign_keys">foreign_keys pragma</a> to turn them on.
 
626
<li>Generalized the IS and IS NOT operators to take arbitrary expressions
 
627
    on their right-hand side.
 
628
<li>The <a href="tclsqlite.html">TCL Interface</a> has been enhanced to use the
 
629
    <a href="http://www.tcl.tk/cgi-bin/tct/tip/322.html">Non-Recursive Engine (NRE)</a>
 
630
    interface to the TCL interpreter when linked against TCL 8.6 or later.
 
631
<li>Fix a bug introduced in 3.6.18 that can lead to a segfault when an
 
632
    attempt is made to write on a read-only database.
 
633
</ul></p><a name="version_3_6_18"></a>
 
634
<h3>2009 Sep 11 (3.6.18)</h3><p><ul>
 
635
<li>Versioning of the SQLite source code has transitioned from CVS to
 
636
    <a href="http://www.fossil-scm.org/">Fossil</a>.
 
637
<li>Query planner enhancements.
 
638
<li>The <a href="compile.html#enable_stat2">SQLITE_ENABLE_STAT2</a> compile-time option causes the <a href="lang_analyze.html">ANALYZE</a> 
 
639
    command to collect a small histogram of each index, to help SQLite better
 
640
    select among competing range query indices.
 
641
<li>Recursive triggers can be enabled using the <a href="pragma.html#pragma_recursive_triggers">PRAGMA recursive_triggers</a>
 
642
    statement.  
 
643
<li>Delete triggers fire when rows are removed due to a 
 
644
    <a href="lang_conflict.html">REPLACE conflict resolution</a>.  This feature is only
 
645
    enabled when recursive triggers are enabled.
 
646
<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>
 
647
    flags for <a href="c3ref/open.html">sqlite3_open_v2()</a> used to override the global
 
648
    <a href="sharedcache.html">shared cache mode</a> settings for individual database connections.
 
649
<li>Added improved version identification features:
 
650
    C-Preprocessor macro <a href="c3ref/c_source_id.html">SQLITE_SOURCE_ID</a>,
 
651
    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>.
 
652
<li>Obscure bug fix on triggers
 
653
(<a href="http://www.sqlite.org/src/info/efc02f9779">&#91;efc02f9779&#93;</a>).
 
654
</ul></p><a name="version_3_6_17"></a>
 
655
<h3>2009 Aug 10 (3.6.17)</h3><p><ul>
 
656
<li>Expose the <a href="c3ref/stricmp.html">sqlite3_strnicmp()</a> interface for use by extensions and
 
657
    applications.
 
658
<li>Remove the restriction on <a href="vtab.html">virtual tables</a> and <a href="sharedcache.html">shared cache mode</a>.
 
659
    Virtual tables and shared cache can now be used at the same time.
 
660
<li>Many code simplifications and obscure bug fixes in support of
 
661
    providing <a href="testing.html#coverage">100% branch test coverage</a>.
 
662
</ul></p><a name="version_3_6_16"></a>
 
663
<h3>2009 June 27 (3.6.16)</h3><p><ul>
 
664
<li>Fix a bug (ticket #3929) that occasionally causes INSERT or UPDATE
 
665
    operations to fail on an indexed table that has a self-modifying trigger.
 
666
<li>Other minor bug fixes and performance optimizations.
 
667
</ul></p><a name="version_3_6_15"></a>
 
668
<h3>2009 June 15 (3.6.15)</h3><p><ul>
 
669
<li>Refactor the internal representation of SQL expressions so that they
 
670
    use less memory on embedded platforms.
 
671
<li>Reduce the amount of stack space used
 
672
<li>Fix an 64-bit alignment bug on HP/UX and Sparc
 
673
<li>The <a href="c3ref/create_function.html">sqlite3_create_function()</a> family of interfaces now return
 
674
    <a href="c3ref/c_abort.html">SQLITE_MISUSE</a> instead of <a href="c3ref/c_abort.html">SQLITE_ERROR</a> when passed invalid
 
675
    parameter combinations.
 
676
<li>When new tables are created using CREATE TABLE ... AS SELECT ... the
 
677
    datatype of the columns is the simplified SQLite datatype (TEXT, INT,
 
678
    REAL, NUMERIC, or BLOB) instead of a copy of the original datatype from
 
679
    the source table.
 
680
<li>Resolve race conditions when checking for a hot rollback journal.
 
681
<li>The <a href="c3ref/initialize.html">sqlite3_shutdown()</a> interface frees all mutexes under windows.
 
682
<li>Enhanced robustness against corrupt database files
 
683
<li>Continuing improvements to the test suite and fixes to obscure
 
684
    bugs and inconsistencies that the test suite improvements are
 
685
    uncovering.
 
686
   
 
687
</ul></p><a name="version_3_6_14_2"></a>
 
688
<h3>2009 May 25 (3.6.14.2)</h3><p><ul>
 
689
<li>Fix a code generator bug introduced in <a href="#version_3_6_14">version 3.6.14</a>.  This bug
 
690
    can cause incorrect query results under obscure circumstances.
 
691
    <a href="http://www.sqlite.org/cvstrac/tktview?tn=3879">Ticket #3879</a>.
 
692
</ul></p><a name="version_3_6_14_1"></a>
 
693
<h3>2009 May 19 (3.6.14.1)</h3><p><ul>
 
694
<li>Fix a bug in <a href="lang_aggfunc.html#groupconcat">group_concat()</a>, <a href="http://www.sqlite.org/cvstrac/tktview?tn=3841">ticket #3841</a>
 
695
<li>Fix a performance bug in the pager cache, <a href="http://www.sqlite.org/cvstrac/tktview?tn=3844">ticket #3844</a>
 
696
<li>Fix a bug in the <a href="c3ref/backup.html">sqlite3_backup</a> implementation that can lead
 
697
    to a corrupt backup database.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=3858">Ticket #3858</a>.
 
698
</ul></p><a name="version_3_6_14"></a>
 
699
<h3>2009 May 7 (3.6.14)</h3><p><ul>
 
700
<li>Added the optional <a href="asyncvfs.html">asynchronous VFS</a> module.</li>
 
701
<li>Enhanced the query optimizer so that <a href="vtab.html">virtual tables</a> are able to
 
702
    make use of OR and IN operators in the WHERE clause.</li>
 
703
<li>Speed improvements in the btree and pager layers.</li>
 
704
<li>Added the <a href="compile.html#have_isnan">SQLITE_HAVE_ISNAN</a> compile-time option which will cause
 
705
    the isnan() function from the standard math library to be used instead
 
706
    of SQLite's own home-brew NaN checker.</li>
 
707
<li>Countless minor bug fixes, documentation improvements, new and
 
708
    improved test cases, and code simplifications and cleanups.</p>
 
709
</ul></p><a name="version_3_6_13"></a>
 
710
<h3>2009 April 13 (3.6.13)</h3><p><ul>
 
711
<li>Fix a bug in <a href="#version_3_6_12">version 3.6.12</a> that causes a segfault when running
 
712
    a count(*) on the sqlite_master table of an empty database. Ticket #3774.
 
713
<li>Fix a bug in <a href="#version_3_6_12">version 3.6.12</a> that causes a segfault that when 
 
714
    inserting into a table using a DEFAULT value where there is a 
 
715
    function as part of the DEFAULT value expression.  Ticket #3791.
 
716
<li>Fix data structure alignment issues on Sparc.  Ticket #3777.
 
717
<li>Other minor bug fixes.
 
718
</ul></p><a name="version_3_6_12"></a>
 
719
<h3>2009 March 31 (3.6.12)</h3><p><ul>
 
720
<li>Fixed a bug that caused database corruption when an <a href="pragma.html#pragma_incremental_vacuum">incremental_vacuum</a> is
 
721
    rolled back in an in-memory database.  Ticket #3761.
 
722
<li>Added the <a href="c3ref/unlock_notify.html">sqlite3_unlock_notify()</a> interface.
 
723
<li>Added the <a href="pragma.html#pragma_reverse_unordered_selects">reverse_unordered_selects pragma</a>.
 
724
<li>The default page size on windows is automatically adjusted to match the
 
725
    capabilities of the underlying filesystem.
 
726
<li>Add the new ".genfkey" command in the <a href="sqlite.html">CLI</a> for generating triggers to
 
727
    implement foreign key constraints.
 
728
<li>Performance improvements for "count(*)" queries.
 
729
<li>Reduce the amount of heap memory used, especially by TRIGGERs.
 
730
<li>
 
731
</ul></p><a name="version_3_6_11"></a>
 
732
<h3>2009 Feb 18 (3.6.11)</h3><p><ul>
 
733
<li>Added the <a href="c3ref/backup_finish.html#sqlite3backupinit">hot-backup interface</a>.
 
734
<li>Added new commands ".backup" and ".restore" to the <a href="sqlite.html">CLI</a>.
 
735
<li>Added new methods <a href="tclsqlite.html#backup">backup</a> and
 
736
    <a href="tclsqlite.html#restore">restore</a> to the TCL interface.
 
737
<li>Improvements to the <a href="syntaxdiagrams.html">syntax bubble
 
738
    diagrams</a>
 
739
<li>Various minor bug fixes
 
740
</ul></p><a name="version_3_6_10"></a>
 
741
<h3>2009 Jan 15 (3.6.10)</h3><p><ul>
 
742
<li>Fix a cache coherency problem that could lead to database corruption.
 
743
    <a href="http://www.sqlite.org/cvstrac/tktview?tn=3584">Ticket #3584</a>.
 
744
</ul></p><a name="version_3_6_9"></a>
 
745
<h3>2009 Jan 14 (3.6.9)</h3><p><ul>
 
746
<li>Fix two bugs, which when combined might result in incorrect
 
747
    query results.  Both bugs were harmless by themselves; only when
 
748
    they team up do they cause problems.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=3581">Ticket #3581</a>.
 
749
</ul></p><a name="version_3_6_8"></a>
 
750
<h3>2009 Jan 12 (3.6.8)</h3><p><ul>
 
751
<li>Added support for <a href="lang_savepoint.html">nested transactions</a></li>
 
752
<li>Enhanced the query optimizer so that it is able to use
 
753
    multiple indices to efficiently process 
 
754
    <a href="optoverview.html#or_opt">OR-connected constraints</a>
 
755
    in a WHERE clause.</li>
 
756
<li>Added support for parentheses in FTS3 query patterns using the
 
757
    <a href="compile.html#enable_fts3_parenthesis">SQLITE_ENABLE_FTS3_PARENTHESIS</a> compile-time option.</li>
 
758
</ul></p><a name="version_3_6_7"></a>
 
759
<h3>2008 Dec 16 (3.6.7)</h3><p><ul>
 
760
<li>Reorganize the Unix interface in os_unix.c</li>
 
761
<li>Added support for "Proxy Locking" on Mac OS X.</li>
 
762
<li>Changed the prototype of the <a href="c3ref/auto_extension.html">sqlite3_auto_extension()</a> interface in a
 
763
    way that is backwards compatible but which might cause warnings in new
 
764
    builds of applications that use that interface.</li>
 
765
<li>Changed the signature of the xDlSym method of the <a href="c3ref/vfs.html">sqlite3_vfs</a> object
 
766
    in a way that is backwards compatible but which might cause
 
767
    compiler warnings.</li>
 
768
<li>Added superfluous casts and variable initializations in order
 
769
    to suppress nuisance compiler warnings.</li>
 
770
<li>Fixes for various minor bugs.</li>
 
771
</ul></p><a name="version_3_6_6_2"></a>
 
772
<h3>2008 Nov 26 (3.6.6.2)</h3><p><ul>
 
773
<li>Fix a bug in the b-tree delete algorithm that seems like it might be
 
774
    able to cause database corruption.  The bug was first introduced in
 
775
    <a href="#version_3_6_6">version 3.6.6</a> by check-in &#91;5899&#93; on 2008-11-13.</li>
 
776
<li>Fix a memory leak that can occur following a disk I/O error.</li>
 
777
</ul></p><a name="version_3_6_6_1"></a>
 
778
<h3>2008 Nov 22 (3.6.6.1)</h3><p><ul>
 
779
<li>Fix a bug in the page cache that can lead database corruption following
 
780
    a rollback.  This bug was first introduced in <a href="#version_3_6_4">version 3.6.4</a>.</li>
 
781
<li>Two other very minor bug fixes</li>
 
782
</ul></p><a name="version_3_6_6"></a>
 
783
<h3>2008 Nov 19 (3.6.6)</h3><p><ul>
 
784
<li>Fix a #define that prevented <a href="malloc.html#memsys5">memsys5</a> from compiling</li>
 
785
<li>Fix a problem in the virtual table commit mechanism that was causing
 
786
    a crash in FTS3.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=3497">Ticket #3497</a>.</li>
 
787
<li>Add the <a href="c3ref/pcache_methods2.html">application-defined page cache</a></li>
 
788
<li>Added built-in support for VxWorks</li>
 
789
</ul></p><a name="version_3_6_5"></a>
 
790
<h3>2008 Nov 12 (3.6.5)</h3><p><ul>
 
791
<li>Add the MEMORY option to the <a href="pragma.html#pragma_journal_mode">journal_mode pragma</a>.</li>
 
792
<li>Added the <a href="c3ref/db_mutex.html">sqlite3_db_mutex()</a> interface.</li>
 
793
<li>Added the <a href="compile.html#omit_truncate_optimization">SQLITE_OMIT_TRUNCATE_OPTIMIZATION</a> compile-time option.</li>
 
794
<li>Fixed the <a href="lang_delete.html#truncateopt">truncate optimization</a> so that <a href="c3ref/changes.html">sqlite3_changes()</a> and
 
795
    <a href="c3ref/total_changes.html">sqlite3_total_changes()</a> interfaces and the <a href="pragma.html#pragma_count_changes">count_changes pragma</a>
 
796
    return the correct values.</li>
 
797
<li>Added the <a href="c3ref/errcode.html">sqlite3_extended_errcode()</a> interface.</li>
 
798
<li>The <a href="lang_transaction.html">COMMIT</a> command now succeeds even if there are pending queries.
 
799
    It returns <a href="c3ref/c_abort.html">SQLITE_BUSY</a> if there are pending incremental BLOB I/O requests.
 
800
<li>The error code is changed to <a href="c3ref/c_abort.html">SQLITE_BUSY</a> (instead of <a href="c3ref/c_abort.html">SQLITE_ERROR</a>)
 
801
    when an attempt is made to <a href="lang_transaction.html">ROLLBACK</a> while one or more queries are
 
802
    still pending.</li>
 
803
<li>Drop all support for the <a href="malloc.html#memsysx">experimental memory allocators</a> memsys4 and
 
804
    memsys6.</li>
 
805
<li>Added the <a href="compile.html#zero_malloc">SQLITE_ZERO_MALLOC</a> compile-time option.</li>
 
806
</ul></p><a name="version_3_6_4"></a>
 
807
<h3>2008 Oct 15 (3.6.4)</h3><p><ul>
 
808
<li>Add option support for LIMIT and ORDER BY clauses on <a href="lang_delete.html">DELETE</a> and
 
809
    <a href="lang_update.html">UPDATE</a> statements.  Only works if SQLite is compiled with
 
810
    <a href="compile.html#enable_update_delete_limit">SQLITE_ENABLE_UPDATE_DELETE_LIMIT</a>.
 
811
<li>Added the <a href="c3ref/stmt_status.html">sqlite3_stmt_status()</a> interface for performance monitoring.</li>
 
812
<li>Add the <a href="lang_indexedby.html">INDEXED BY</a> clause.</li>
 
813
<li>The LOCKING_STYLE extension is now enabled by default on Mac OS X</li>
 
814
<li>Added the TRUNCATE option to <a href="pragma.html#pragma_journal_mode">PRAGMA journal_mode</a></li>
 
815
<li>Performance enhancements to tree balancing logic in the B-Tree layer.</li>
 
816
<li>Added the
 
817
  <a href="http://www.sqlite.org/src/finfo?name=tool/genfkey.c">
 
818
  source code</a> and
 
819
  <a href="http://www.sqlite.org/src/finfo?name=tool/genfkey.README">
 
820
  documentation</a> for the <b>genfkey</b> program for automatically generating
 
821
  triggers to enforce foreign key constraints.</li>
 
822
<li>Added the <a href="compile.html#omit_truncate_optimization">SQLITE_OMIT_TRUNCATE_OPTIMIZATION</a> compile-time option.</li>
 
823
<li>The <a href="lang.html">SQL language documentation</a> is converted to use 
 
824
<a href="syntaxdiagrams.html">syntax diagrams</a> instead of BNF.</li>
 
825
<li>Other minor bug fixes</li>
 
826
</ul></p><a name="version_3_6_3"></a>
 
827
<h3>2008 Sep 22 (3.6.3)</h3><p><ul>
 
828
<li>Fix for a bug in the SELECT DISTINCT logic that was introduced by the
 
829
    prior version.</li>
 
830
<li>Other minor bug fixes</li>
 
831
</ul></p><a name="version_3_6_2"></a>
 
832
<h3>2008 Aug 30 (3.6.2)</h3><p><ul>
 
833
<li>Split the pager subsystem into separate pager and pcache subsystems.</li>
 
834
<li>Factor out identifier resolution procedures into separate files.</li>
 
835
<li>Bug fixes</li>
 
836
</ul></p><a name="version_3_6_1"></a>
 
837
<h3>2008 Aug 6 (3.6.1)</h3><p><ul>
 
838
<li>Added the <a href="malloc.html#lookaside">lookaside memory allocator</a> for a speed improvement in excess
 
839
    of 15% on some workloads.  (Your mileage may vary.)</li>
 
840
<li>Added the <a href="c3ref/c_config_getmalloc.html#sqliteconfiglookaside">SQLITE_CONFIG_LOOKASIDE</a> verb to <a href="c3ref/config.html">sqlite3_config()</a> to control
 
841
    the default lookaside configuration.</li>
 
842
<li>Added verbs <a href="c3ref/c_status_malloc_count.html#sqlitestatuspagecachesize">SQLITE_STATUS_PAGECACHE_SIZE</a> and
 
843
    <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.
 
844
<li>Modified <a href="c3ref/c_config_getmalloc.html#sqliteconfigpagecache">SQLITE_CONFIG_PAGECACHE</a> and <a href="c3ref/c_config_getmalloc.html#sqliteconfigscratch">SQLITE_CONFIG_SCRATCH</a> to remove
 
845
    the "+4" magic number in the buffer size computation.
 
846
<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
 
847
    controlling and monitoring the lookaside allocator separately on each
 
848
    <a href="c3ref/sqlite3.html">database connection</a>.</li>
 
849
<li>Numerous other performance enhancements</li>
 
850
<li>Miscellaneous minor bug fixes</li>
 
851
</ul></p><h3>2008 July 16 (3.6.0 beta)</h3><p><ul>
 
852
<li>Modifications to the <a href="c3ref/vfs.html">virtual file system</a> interface
 
853
    to support a wider range of embedded systems.
 
854
    See <a href="35to36.html">35to36.html</a> for additional information.
 
855
    <font color="red">*** Potentially incompatible change ***</font></li>
 
856
<li>All C-preprocessor macros used to control compile-time options
 
857
    now begin with the prefix "SQLITE_".  This may require changes to
 
858
    applications that compile SQLite using their own makefiles and with
 
859
    custom compile-time options, hence we mark this as a
 
860
    <font color="red">*** Potentially incompatible change ***</font></li>
 
861
<li>The SQLITE_MUTEX_APPDEF compile-time option is no longer supported.
 
862
    Alternative mutex implementations can now be added at run-time using
 
863
    the <a href="c3ref/config.html">sqlite3_config()</a> interface with the <a href="c3ref/c_config_getmalloc.html#sqliteconfigmutex">SQLITE_CONFIG_MUTEX</a> verb.
 
864
    <font color="red">*** Potentially incompatible change ***</font></li>
 
865
<li>The handling of IN and NOT IN operators that contain a NULL on their
 
866
    right-hand side expression is brought into compliance with the SQL
 
867
    standard and with other SQL database engines.  This is a bug fix,
 
868
    but as it has the potential to break legacy applications that depend
 
869
    on the older buggy behavior, we mark that as a
 
870
    <font color="red">*** Potentially incompatible change ***</font></li>
 
871
<li>The result column names generated for compound subqueries have been 
 
872
    simplified to show only the name of the column of the original table and
 
873
    omit the table name.  This makes SQLite operate more like other SQL
 
874
    database engines.</li>
 
875
<li>Added the <a href="c3ref/config.html">sqlite3_config()</a> interface for doing run-time configuration
 
876
    of the entire SQLite library.</li>
 
877
<li>Added the <a href="c3ref/status.html">sqlite3_status()</a> interface used for querying run-time status
 
878
    information about the overall SQLite library and its subsystems.</li>
 
879
<li>Added the <a href="c3ref/initialize.html">sqlite3_initialize()</a> and <a href="c3ref/initialize.html">sqlite3_shutdown()</a> interfaces.</li>
 
880
<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>
 
881
<li>Added the <a href="pragma.html#pragma_page_count">PRAGMA page_count</a> command.</li>
 
882
<li>Added the <a href="c3ref/next_stmt.html">sqlite3_next_stmt()</a> interface.</li>
 
883
<li>Added a new <a href="rtree.html">R*Tree virtual table</a></li>
 
884
</ul></p><a name="version_3_5_9"></a>
 
885
<h3>2008 May 14 (3.5.9)</h3><p><ul>
 
886
<li>Added <em>experimental</em>
 
887
    support for the <a href="pragma.html#pragma_journal_mode">journal_mode</a> PRAGMA and persistent journal.</li>
 
888
<li><a href="pragma.html#pragma_journal_mode">Journal mode PERSIST</a> is the default behavior in
 
889
    <a href="pragma.html#pragma_locking_mode">exclusive locking mode</a>.</li>
 
890
<li>Fix a performance regression on LEFT JOIN (see <a href="http://www.sqlite.org/cvstrac/tktview?tn=3015">ticket #3015</a>)
 
891
    that was mistakenly introduced in <a href="#version_3_5_8">version 3.5.8</a>.</li>
 
892
<li>Performance enhancement: Reengineer the internal routines used
 
893
    to interpret and render variable-length integers.</li>
 
894
<li>Fix a buffer-overrun problem in <a href="c3ref/mprintf.html">sqlite3_mprintf()</a> which occurs
 
895
    when a string without a zero-terminator is passed to "%.*s".</li>
 
896
<li>Always convert IEEE floating point NaN values into NULL during
 
897
    processing.  (<a href="http://www.sqlite.org/cvstrac/tktview?tn=3060">Ticket #3060</a>)</li>
 
898
<li>Make sure that when a connection blocks on a RESERVED lock that
 
899
    it is able to continue after the lock is released.  (<a href="http://www.sqlite.org/cvstrac/tktview?tn=3093">Ticket #3093</a>)</li>
 
900
<li>The "configure" scripts should now automatically configure Unix
 
901
    systems for large file support.  Improved error messages for
 
902
    when large files are encountered and large file support is disabled.</li>
 
903
<li>Avoid cache pages leaks following disk-full or I/O errors</li>
 
904
<li>And, many more minor bug fixes and performance enhancements....</li>
 
905
</ul></p><a name="version_3_5_8"></a>
 
906
<h3>2008 Apr 16 (3.5.8)</h3><p><ul>
 
907
<li>Expose SQLite's internal pseudo-random number generator (PRNG)
 
908
    via the <a href="c3ref/randomness.html">sqlite3_randomness()</a> interface</li>
 
909
<li>New interface <a href="c3ref/context_db_handle.html">sqlite3_context_db_handle()</a> that returns the
 
910
    <a href="c3ref/sqlite3.html">database connection</a> handle that has invoked an application-defined
 
911
    SQL function.</li>
 
912
<li>New interface <a href="c3ref/limit.html">sqlite3_limit()</a> allows size and length limits to be
 
913
    set on a per-connection basis and at run-time.</li>
 
914
<li>Improved crash-robustness: write the database page size into the rollback
 
915
    journal header.</li>
 
916
<li>Allow the <a href="lang_vacuum.html">VACUUM</a> command to change the page size of a database file.</li>
 
917
<li>The xAccess() method of the VFS is allowed to return -1 to signal
 
918
    a memory allocation error.</li>
 
919
<li>Performance improvement: The OP_IdxDelete opcode uses unpacked records,
 
920
    obviating the need for one OP_MakeRecord opcode call for each index
 
921
    record deleted.</li>
 
922
<li>Performance improvement: Constant subexpressions are factored out of
 
923
    loops.</li>
 
924
<li>Performance improvement: Results of OP_Column are reused rather than
 
925
    issuing multiple OP_Column opcodes.</li>
 
926
<li>Fix a bug in the RTRIM collating sequence.</li>
 
927
<li>Fix a bug in the SQLITE_SECURE_DELETE option that was causing
 
928
    Firefox crashes.  Make arrangements to always test SQLITE_SECURE_DELETE
 
929
    prior to each release.</li>
 
930
<li>Other miscellaneous performance enhancements.</li>
 
931
<li>Other miscellaneous minor bug fixes.</li>
 
932
</ul></p><a name="version_3_5_7"></a>
 
933
<h3>2008 Mar 17 (3.5.7)</h3><p><ul>
 
934
<li>Fix a bug (<a href="http://www.sqlite.org/cvstrac/tktview?tn=2927">ticket #2927</a>) in the register allocation for
 
935
compound selects - introduced by the new VM code in version 3.5.5.</li>
 
936
<li>ALTER TABLE uses double-quotes instead of single-quotes for quoting
 
937
filenames.</li>
 
938
<li>Use the WHERE clause to reduce the size of a materialized VIEW in
 
939
an UPDATE or DELETE statement. (Optimization)</li>
 
940
<li>Do not apply the flattening optimization if the outer query is an
 
941
aggregate and the inner query contains ORDER BY.  (<a href="http://www.sqlite.org/cvstrac/tktview?tn=2943">Ticket #2943</a>)</li>
 
942
<li>Additional OS/2 updates</li>
 
943
<li>Added an experimental power-of-two, first-fit memory allocator.</li>
 
944
<li>Remove all instances of sprintf() from the code</li>
 
945
<li>Accept "Z" as the zulu timezone at the end of date strings</li>
 
946
<li>Fix a bug in the LIKE optimizer that occurs when the last character
 
947
before the first wildcard is an upper-case "Z"</li>
 
948
<li>Added the "bitvec" object for keeping track of which pages have
 
949
been journalled.  Improves speed and reduces memory consumption, especially
 
950
for large database files.</li>
 
951
<li>Get the SQLITE_ENABLE_LOCKING_STYLE macro working again on Mac OS X.</li>
 
952
<li>Store the statement journal in the temporary file directory instead of
 
953
collocated with the database file.</li>
 
954
<li>Many improvements and cleanups to the configure script</li>
 
955
</ul></p><a name="version_3_5_6"></a>
 
956
<h3>2008 Feb 6 (3.5.6)</h3><p><ul>
 
957
<li>Fix a bug (<a href="http://www.sqlite.org/cvstrac/tktview?tn=2913">ticket #2913</a>)
 
958
that prevented virtual tables from working in a LEFT JOIN.
 
959
The problem was introduced into shortly before the 3.5.5 release.</li>
 
960
<li>Bring the OS/2 porting layer up-to-date.</li>
 
961
<li>Add the new <a href="c3ref/result_blob.html">sqlite3_result_error_code()</a> API and use it in the
 
962
implementation of <a href="lang_attach.html">ATTACH</a> so that proper error codes are returned
 
963
when an <a href="lang_attach.html">ATTACH</a> fails.</li>
 
964
</ul></p><a name="version_3_5_5"></a>
 
965
<h3>2008 Jan 31 (3.5.5)</h3><p><ul>
 
966
<li>Convert the underlying virtual machine to be a register-based machine
 
967
rather than a stack-based machine.  The only user-visible change
 
968
is in the output of EXPLAIN.</li>
 
969
<li>Add the build-in RTRIM collating sequence.</li>
 
970
</ul></p><a name="version_3_5_4"></a>
 
971
<h3>2007 Dec 14 (3.5.4)</h3><p><ul>
 
972
<li>Fix a critical bug in UPDATE or DELETE that occurs when an
 
973
OR REPLACE clause or a trigger causes rows in the same table to
 
974
be deleted as side effects.  (See <a href="http://www.sqlite.org/cvstrac/tktview?tn=2832">ticket #2832</a>.)  The most likely
 
975
result of this bug is a segmentation fault, though database
 
976
corruption is a possibility.</li>
 
977
<li>Bring the processing of ORDER BY into compliance with the 
 
978
SQL standard for case where a result alias and a table column name
 
979
are in conflict.  Correct behavior is to prefer the result alias.
 
980
Older versions of SQLite incorrectly picked the table column.
 
981
(See <a href="http://www.sqlite.org/cvstrac/tktview?tn=2822">ticket #2822</a>.)</li>
 
982
<li>The <a href="lang_vacuum.html">VACUUM</a> command preserves
 
983
the setting of the 
 
984
<a href="pragma.html#pragma_legacy_file_format">legacy_file_format pragma</a>.
 
985
(<a href="http://www.sqlite.org/cvstrac/tktview?tn=2804">Ticket #2804</a>.)</li>
 
986
<li>Productize and officially support the group_concat() SQL function.</li>
 
987
<li>Better optimization of some IN operator expressions.</li>
 
988
<li>Add the ability to change the 
 
989
<a href="pragma.html#pragma_auto_vacuum">auto_vacuum</a> status of a
 
990
database by setting the auto_vaccum pragma and VACUUMing the database.</li>
 
991
<li>Prefix search in FTS3 is much more efficient.</li>
 
992
<li>Relax the SQL statement length restriction in the CLI so that
 
993
the ".dump" output of databases with very large BLOBs and strings can
 
994
be played back to recreate the database.</li>
 
995
<li>Other small bug fixes and optimizations.</li>
 
996
</ul></p><a name="version_3_5_3"></a>
 
997
<h3>2007 Nov 27 (3.5.3)</h3><p><ul>
 
998
<li>Move website and documentation files out of the source tree into
 
999
a <a href="http://www.sqlite.org/docsrc/">separate CM system</a>.
 
1000
<li>Fix a long-standing bug in INSERT INTO ... SELECT ... statements
 
1001
where the SELECT is compound.
 
1002
<li>Fix a long-standing bug in RAISE(IGNORE) as used in BEFORE triggers.
 
1003
<li>Fixed the operator precedence for the ~ operator.
 
1004
<li>On Win32, do not return an error when attempting to delete a file
 
1005
that does not exist.
 
1006
<li>Allow collating sequence names to be quoted.
 
1007
<li>Modify the TCL interface to use <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>.
 
1008
<li>Fix multiple bugs that can occur following a malloc() failure.
 
1009
<li><a href="c3ref/step.html">sqlite3_step()</a> returns <a href="c3ref/c_abort.html">SQLITE_MISUSE</a> instead of crashing when
 
1010
called with a NULL parameter.
 
1011
<li>FTS3 now uses the SQLite memory allocator exclusively.  The
 
1012
FTS3 amalgamation can now be appended to the SQLite amalgamation to
 
1013
generate a super-amalgamation containing both.
 
1014
<li>The DISTINCT keyword now will sometimes use an INDEX if an
 
1015
appropriate index is available and the optimizer thinks its use
 
1016
might be advantageous.
 
1017
</ul></p><a name="version_3_5_2"></a>
 
1018
<h3>2007 Nov 05 (3.5.2)</h3><p><ul>
 
1019
<li>Dropped support for the <a href="compile.html#omitfeatures">SQLITE_OMIT_MEMORY_ALLOCATION</a> compile-time
 
1020
option.
 
1021
<li>Always open files using FILE_FLAG_RANDOM_ACCESS under Windows.
 
1022
<li>The 3rd parameter of the built-in SUBSTR() function is now optional.
 
1023
<li>Bug fix: do not invoke the authorizer when reparsing the schema after
 
1024
a schema change.
 
1025
<li>Added the experimental malloc-free memory allocator in mem3.c.
 
1026
<li>Virtual machine stores 64-bit integer and floating point constants
 
1027
in binary instead of text for a performance boost.
 
1028
<li>Fix a race condition in test_async.c.
 
1029
<li>Added the ".timer" command to the CLI
 
1030
</ul></p><a name="version_3_5_1"></a>
 
1031
<h3>2007 Oct 04 (3.5.1)</h3><p><ul>
 
1032
<li><i><b>Nota Bene:</b> We are not using terms "alpha" or "beta" on this
 
1033
    release because the code is stable and because if we use those terms,
 
1034
    nobody will upgrade.  However, we still reserve the right to make
 
1035
    incompatible changes to the new VFS interface in future releases.</i></li>
 
1036
 
 
1037
<li>Fix a bug in the handling of <a href="c3ref/c_abort.html">SQLITE_FULL</a> errors that could lead
 
1038
    to database corruption.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2686">Ticket #2686</a>.
 
1039
<li>The test_async.c drive now does full file locking and works correctly
 
1040
    when used simultaneously by multiple processes on the same database.
 
1041
<li>The CLI ignores whitespace (including comments) at the end of lines
 
1042
<li>Make sure the query optimizer checks dependencies on all terms of
 
1043
    a compound SELECT statement.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2640">Ticket #2640</a>.
 
1044
<li>Add demonstration code showing how to build a VFS for a raw
 
1045
    mass storage without a filesystem.
 
1046
<li>Added an output buffer size parameter to the xGetTempname() method
 
1047
    of the VFS layer.
 
1048
<li>Sticky <a href="c3ref/c_abort.html">SQLITE_FULL</a> or <a href="c3ref/c_abort.html">SQLITE_IOERR</a> errors in the pager are reset
 
1049
    when a new transaction is started.
 
1050
</ul></p><a name="version_3_5_0"></a>
 
1051
<h3>2007 Sep 04 (3.5.0) alpha</h3><p><ul>
 
1052
<li>Redesign the OS interface layer.  See
 
1053
    <a href="34to35.html">34to35.html</a> for details.
 
1054
    <font color="red">*** Potentially incompatible change ***</font>
 
1055
<li>The <a href="c3ref/release_memory.html">sqlite3_release_memory()</a>, <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit()</a>,
 
1056
    and <a href="c3ref/enable_shared_cache.html">sqlite3_enable_shared_cache()</a> interfaces now work cross all
 
1057
    threads in the process, not just the single thread in which they
 
1058
    are invoked.
 
1059
    <font color="red">*** Potentially incompatible change ***</font>
 
1060
<li>Added the <a href="c3ref/open.html">sqlite3_open_v2()</a> interface.  
 
1061
<li>Reimplemented the memory allocation subsystem and made it 
 
1062
    replaceable at compile-time.
 
1063
<li>Created a new mutex subsystem and made it replicable at
 
1064
    compile-time.
 
1065
<li>The same database connection may now be used simultaneously by
 
1066
    separate threads.
 
1067
</ul></p><a name="version_3_4_2"></a>
 
1068
<h3>2007 August 13 (3.4.2)</h3><p><ul>
 
1069
<li>Fix a database corruption bug that might occur if a ROLLBACK command
 
1070
is executed in <a href="pragma.html#pragma_auto_vacuum">auto-vacuum mode</a>
 
1071
and a very small <a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit</a> is set. 
 
1072
<a href="http://www.sqlite.org/cvstrac/tktview?tn=2565">Ticket #2565</a>.
 
1073
 
 
1074
<li>Add the ability to run a full regression test with a small
 
1075
<a href="c3ref/soft_heap_limit.html">sqlite3_soft_heap_limit</a>.
 
1076
 
 
1077
<li>Fix other minor problems with using small soft heap limits.
 
1078
 
 
1079
<li>Work-around for 
 
1080
<a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32575">GCC bug 32575</a>.
 
1081
 
 
1082
<li>Improved error detection of misused aggregate functions.
 
1083
 
 
1084
<li>Improvements to the amalgamation generator script so that all symbols
 
1085
are prefixed with either SQLITE_PRIVATE or SQLITE_API.
 
1086
</ul></p><a name="version_3_4_1"></a>
 
1087
<h3>2007 July 20 (3.4.1)</h3><p><ul>
 
1088
<li>Fix a bug in <a href="lang_vacuum.html">VACUUM</a> that can lead to
 
1089
    <a href="http://www.sqlite.org/cvstrac/wiki?p=DatabaseCorruption">
 
1090
    database corruption</a> if two
 
1091
    processes are connected to the database at the same time and one
 
1092
    VACUUMs then the other then modifies the database.</li>
 
1093
<li>The expression "+column" is now considered the same as "column"
 
1094
    when computing the collating sequence to use on the expression.</li>
 
1095
<li>In the <a href="tclsqlite.html">TCL language interface</a>,
 
1096
   "@variable" instead of "$variable" always binds as a blob.</li>
 
1097
<li>Added <a href="pragma.html#pragma_freelist_count">PRAGMA freelist_count</a>
 
1098
    for determining the current size of the freelist.</li>
 
1099
<li>The <a href="pragma.html#pragma_auto_vacuum">
 
1100
    PRAGMA auto_vacuum=incremental</a> setting is now persistent.</li>
 
1101
<li>Add FD_CLOEXEC to all open files under Unix.</li>
 
1102
<li>Fix a bug in the <a href="optoverview.html#minmax">
 
1103
    min()/max() optimization</a> when applied to
 
1104
    descending indices.</li>
 
1105
<li>Make sure the TCL language interface works correctly with 64-bit
 
1106
    integers on 64-bit machines.</li>
 
1107
<li>Allow the value -9223372036854775808 as an integer literal in SQL
 
1108
    statements.</li>
 
1109
<li>Add the capability of "hidden" columns in virtual tables.</li>
 
1110
<li>Use the macro SQLITE_PRIVATE (defaulting to "static") on all
 
1111
    internal functions in the amalgamation.</li>
 
1112
<li>Add pluggable tokenizers and <a href="http://www.icu-project.org/">ICU</a>
 
1113
    tokenization support to FTS2</li>
 
1114
<li>Other minor bug fixes and documentation enhancements</li>
 
1115
</ul></p><a name="version_3_4_0"></a>
 
1116
<h3>2007 June 18 (3.4.0)</h3><p><ul>
 
1117
<li>Fix a bug that can lead to database corruption if an <a href="c3ref/c_abort.html">SQLITE_BUSY</a> error
 
1118
    occurs in the middle of an explicit transaction and that transaction
 
1119
    is later committed.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2409">Ticket #2409</a>.
 
1120
    See the
 
1121
    <a href="http://www.sqlite.org/cvstrac/wiki?p=CorruptionFollowingBusyError">
 
1122
    CorruptionFollowingBusyError</a> wiki page for details.</i>
 
1123
<li>Fix a bug that can lead to database corruption if autovacuum mode is
 
1124
    on and a malloc() failure follows a CREATE TABLE or CREATE INDEX statement
 
1125
    which itself follows a cache overflow inside a transaction.  See
 
1126
    <a href="http://www.sqlite.org/cvstrac/tktview?tn=2418">ticket #2418</a>. 
 
1127
    </li>
 
1128
<li>Added explicit <a href="limits.html">upper bounds</a> on the sizes and
 
1129
    quantities of things SQLite can process.  This change might cause
 
1130
    compatibility problems for
 
1131
    applications that use SQLite in the extreme, which is why the current
 
1132
    release is 3.4.0 instead of 3.3.18.</li>
 
1133
<li>Added support for <a href="c3ref/blob_open.html">Incremental BLOB I/O</a>.</li>
 
1134
<li>Added the <a href="c3ref/bind_blob.html">sqlite3_bind_zeroblob()</a> API</a>
 
1135
    and the <a href="lang_expr.html#zeroblob">zeroblob()</a> SQL function.</li>
 
1136
<li>Added support for <a href="pragma.html#pragma_incremental_vacuum">
 
1137
    Incremental Vacuum</a>.</li>
 
1138
<li>Added the SQLITE_MIXED_ENDIAN_64BIT_FLOAT compile-time option to support
 
1139
    ARM7 processors with goofy endianness.</li>
 
1140
<li>Removed all instances of sprintf() and strcpy() from the core library.</li>
 
1141
<li>Added support for
 
1142
    <a href="http://www.icu-project.org/">International Components for Unicode (ICU)</a>
 
1143
    to the full-text search extensions.
 
1144
</ul><p>
 
1145
<ul type="circle">
 
1146
<li>In the Windows OS driver, reacquire a SHARED lock if an attempt to
 
1147
    acquire an EXCLUSIVE lock fails.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2354">Ticket #2354</a></li>
 
1148
<li>Fix the REPLACE() function so that it returns NULL if the second argument
 
1149
    is an empty string.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2324">Ticket #2324</a>.</li>
 
1150
<li>Document the hazards of type conversions in
 
1151
    <a href="c3ref/column_blob.html">sqlite3_column_blob()</a>
 
1152
    and related APIs.  Fix unnecessary type conversions.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2321">Ticket #2321</a>.</li>
 
1153
<li>Internationalization of the TRIM() function.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2323">Ticket #2323</a></li>
 
1154
<li>Use memmove() instead of memcpy() when moving between memory regions
 
1155
    that might overlap.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2334">Ticket #2334</a></li>
 
1156
<li>Fix an optimizer bug involving subqueries in a compound SELECT that has
 
1157
    both an ORDER BY and a LIMIT clause.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2339">Ticket #2339</a>.</li>
 
1158
<li>Make sure the <a href="c3ref/mprintf.html">sqlite3_snprintf()</a>
 
1159
    interface does not zero-terminate the buffer if the buffer size is
 
1160
    less than 1.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2341">Ticket #2341</a></li>
 
1161
<li>Fix the built-in printf logic so that it prints "NaN" not "Inf" for
 
1162
    floating-point NaNs.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2345">Ticket #2345</a></li>
 
1163
<li>When converting BLOB to TEXT, use the text encoding of the main database.
 
1164
    <a href="http://www.sqlite.org/cvstrac/tktview?tn=2349">Ticket #2349</a></li>
 
1165
<li>Keep the full precision of integers (if possible) when casting to
 
1166
    NUMERIC.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2364">Ticket #2364</a></li>
 
1167
<li>Fix a bug in the handling of UTF16 codepoint 0xE000</li>
 
1168
<li>Consider explicit collate clauses when matching WHERE constraints
 
1169
    to indices in the query optimizer.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2391">Ticket #2391</a></li>
 
1170
<li>Fix the query optimizer to correctly handle constant expressions in 
 
1171
    the ON clause of a LEFT JOIN.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2403">Ticket #2403</a></li>
 
1172
<li>Fix the query optimizer to handle rowid comparisons to NULL
 
1173
    correctly.  <a href="http://www.sqlite.org/cvstrac/tktview?tn=2404">Ticket #2404</a></li>
 
1174
<li>Fix many potential segfaults that could be caused by malicious SQL
 
1175
    statements.</li>
 
1176
</ul></p><a name="version_3_3_17"></a>
 
1177
<h3>2007 April 25 (3.3.17)</h3><p><ul>
 
1178
<li>When the "write_version" value of the database header is larger than
 
1179
    what the library understands, make the database read-only instead of
 
1180
    unreadable.</li>
 
1181
<li>Other minor bug fixes</li>
 
1182
</ul></p><a name="version_3_3_16"></a>
 
1183
<h3>2007 April 18 (3.3.16)</h3><p><ul>
 
1184
<li>Fix a bug that caused VACUUM to fail if NULLs appeared in a
 
1185
    UNIQUE column.</li>
 
1186
<li>Reinstate performance improvements that were added in
 
1187
    <a href="#version_3_3_14">Version 3.3.14</a>
 
1188
    but regressed in <a href="#version_3_3_15">Version 3.3.15</a>.</li>
 
1189
<li>Fix problems with the handling of ORDER BY expressions on
 
1190
    compound SELECT statements in subqueries.</li>
 
1191
<li>Fix a potential segfault when destroying locks on WinCE in
 
1192
    a multi-threaded environment.</li>
 
1193
<li>Documentation updates.</li>
 
1194
</ul></p><a name="version_3_3_15"></a>
 
1195
<h3>2007 April 9 (3.3.15)</h3><p><ul>
 
1196
<li>Fix a bug introduced in 3.3.14 that caused a rollback of
 
1197
    CREATE TEMP TABLE to leave the database connection wedged.</li>
 
1198
<li>Fix a bug that caused an extra NULL row to be returned when
 
1199
    a descending query was interrupted by a change to the database.</li>
 
1200
<li>The FOR EACH STATEMENT clause on a trigger now causes a syntax
 
1201
    error.  It used to be silently ignored.</li>
 
1202
<li>Fix an obscure and relatively harmless problem that might have caused
 
1203
    a resource leak following an I/O error.</li>
 
1204
<li>Many improvements to the test suite.  Test coverage now exceeded 98%</li>
 
1205
</ul></p><a name="version_3_3_14"></a>
 
1206
<h3>2007 April 2 (3.3.14)</h3><p><ul>
 
1207
<li>Fix a bug (<a href="http://www.sqlite.org/cvstrac/tktview?tn=2273">ticket #2273</a>)
 
1208
    that could cause a segfault when the IN operator
 
1209
    is used one one term of a two-column index and the right-hand side of
 
1210
    the IN operator contains a NULL.</li>
 
1211
<li>Added a new OS interface method for determining the sector size
 
1212
    of underlying media:  sqlite3OsSectorSize().</li>
 
1213
<li>A new algorithm for statements of the form
 
1214
    INSERT INTO <i>table1</i> SELECT * FROM <i>table2</i>
 
1215
    is faster and reduces fragmentation.  VACUUM uses statements of
 
1216
    this form and thus runs faster and defragments better.</li>
 
1217
<li>Performance enhancements through reductions in disk I/O:
 
1218
<ul>
 
1219
<li>Do not read the last page of an overflow chain when
 
1220
    deleting the row - just add that page to the freelist.</li>
 
1221
<li>Do not store pages being deleted in the 
 
1222
    rollback journal.</li>
 
1223
<li>Do not read in the (meaningless) content of
 
1224
    pages extracted from the freelist.</li>
 
1225
<li>Do not flush the page cache (and thus avoiding
 
1226
    a cache refill) unless another process changes the underlying
 
1227
    database file.</li>
 
1228
<li>Truncate rather than delete the rollback journal when committing
 
1229
    a transaction in exclusive access mode, or when committing the TEMP
 
1230
    database.</li>
 
1231
</ul></li>
 
1232
<li>Added support for exclusive access mode using
 
1233
    <a href="pragma.html#pragma_locking_mode">
 
1234
    "PRAGMA locking_mode=EXCLUSIVE"</a></li>
 
1235
<li>Use heap space instead of stack space for large buffers in the
 
1236
    pager - useful on embedded platforms with  stack-space
 
1237
    limitations.</li>
 
1238
<li>Add a makefile target "sqlite3.c" that builds an amalgamation containing
 
1239
    the core SQLite library C code in a single file.</li>
 
1240
<li>Get the library working correctly when compiled 
 
1241
    with GCC option "-fstrict-aliasing".</li>
 
1242
<li>Removed the vestigal SQLITE_PROTOCOL error.</li>
 
1243
<li>Improvements to test coverage, other minor bugs fixed,
 
1244
    memory leaks plugged,
 
1245
    code refactored and/or recommended in places for easier reading.</li>
 
1246
</ul></p><a name="version_3_3_13"></a>
 
1247
<h3>2007 February 13 (3.3.13)</h3><p><ul>
 
1248
<li>Add a "fragmentation" measurement in the output of sqlite3_analyzer.</li>
 
1249
<li>Add the COLLATE operator used to explicitly set the collating sequence
 
1250
used by an expression.  This feature is considered experimental pending
 
1251
additional testing.</li>
 
1252
<li>Allow up to 64 tables in a join - the old limit was 32.</li>
 
1253
<li>Added two new experimental functions:
 
1254
<a href="lang_expr.html#randomblobFunc">randomBlob()</a> and
 
1255
<a href="lang_expr.html#hexFunc">hex()</a>.
 
1256
Their intended use is to facilitate generating 
 
1257
<a href="http://en.wikipedia.org/wiki/UUID">UUIDs</a>.
 
1258
</li>
 
1259
<li>Fix a problem where
 
1260
<a href="pragma.html#pragma_count_changes">PRAGMA count_changes</a> was
 
1261
causing incorrect results for updates on tables with triggers</li>
 
1262
<li>Fix a bug in the ORDER BY clause optimizer for joins where the
 
1263
left-most table in the join is constrained by a UNIQUE index.</li>
 
1264
<li>Fixed a bug in the "copy" method of the TCL interface.</li>
 
1265
<li>Bug fixes in fts1 and fts2 modules.</li>
 
1266
</ul></p><a name="version_3_3_12"></a>
 
1267
<h3>2007 January 27 (3.3.12)</h3><p><ul>
 
1268
<li>Fix another bug in the IS NULL optimization that was added in
 
1269
version 3.3.9.</li>
 
1270
<li>Fix an assertion fault that occurred on deeply nested views.</li>
 
1271
<li>Limit the amount of output that
 
1272
<a href="pragma.html#pragma_integrity_check">PRAGMA integrity_check</a>
 
1273
generates.</li>
 
1274
<li>Minor syntactic changes to support a wider variety of compilers.</li>
 
1275
</ul></p><a name="version_3_3_11"></a>
 
1276
<h3>2007 January 22 (3.3.11)</h3><p><ul>
 
1277
<li>Fix another bug in the implementation of the new 
 
1278
<a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> API.
 
1279
We'll get it right eventually...</li>
 
1280
<li>Fix a bug in the IS NULL optimization that was added in version 3.3.9 -
 
1281
the bug was causing incorrect results on certain LEFT JOINs that included
 
1282
in the WHERE clause an IS NULL constraint for the right table of the
 
1283
LEFT JOIN.</li>
 
1284
<li>Make AreFileApisANSI() a no-op macro in WinCE since WinCE does not
 
1285
support this function.</li>
 
1286
</ul></p><a name="version_3_3_10"></a>
 
1287
<h3>2007 January 9 (3.3.10)</h3><p><ul>
 
1288
<li>Fix bugs in the implementation of the new 
 
1289
<a href="c3ref/prepare.html">sqlite3_prepare_v2()</a> API
 
1290
that can lead to segfaults.</li>
 
1291
<li>Fix 1-second round-off errors in the 
 
1292
<a href="http://www.sqlite.org/cvstrac/wiki?p=DateAndTimeFunctions">
 
1293
strftime()</a> function</li>
 
1294
<li>Enhance the Windows OS layer to provide detailed error codes</li>
 
1295
<li>Work around a win2k problem so that SQLite can use single-character
 
1296
database file names</li>
 
1297
<li>The
 
1298
<a href="pragma.html#pragma_user_version">user_version</a> and
 
1299
<a href="pragma.html#pragma_schema_version">schema_version</a> pragmas 
 
1300
correctly set their column names in the result set</li>
 
1301
<li>Documentation updates</li>
 
1302
</ul></p><a name="version_3_3_9"></a>
 
1303
<h3>2007 January 4 (3.3.9)</h3><p><ul>
 
1304
<li>Fix bugs in pager.c that could lead to database corruption if two
 
1305
processes both try to recover a hot journal at the same instant</li>
 
1306
<li>Added the <a href="c3ref/prepare.html">sqlite3_prepare_v2()</a>
 
1307
API.</li>
 
1308
<li>Fixed the ".dump" command in the command-line shell to show
 
1309
indices, triggers and views again.</li>
 
1310
<li>Change the table_info pragma so that it returns NULL for the default
 
1311
value if there is no default value</li>
 
1312
<li>Support for non-ASCII characters in win95 filenames</li>
 
1313
<li>Query optimizer enhancements:
 
1314
<ul>
 
1315
<li>Optimizer does a better job of using indices to satisfy ORDER BY
 
1316
clauses that sort on the integer primary key</li>
 
1317
<li>Use an index to satisfy an IS NULL operator in the WHERE clause</li>
 
1318
<li>Fix a bug that was causing the optimizer to miss an OR optimization
 
1319
opportunity</li>
 
1320
<li>The optimizer has more freedom to reorder tables in the FROM clause
 
1321
even in there are LEFT joins.</li>
 
1322
</ul>
 
1323
<li>Extension loading supported added to WinCE</li>
 
1324
<li>Allow constraint names on the DEFAULT clause in a table definition</li>
 
1325
<li>Added the ".bail" command to the command-line shell</li>
 
1326
<li>Make CSV (comma separate value) output from the command-line shell
 
1327
more closely aligned to accepted practice</li>
 
1328
<li>Experimental FTS2 module added</li>
 
1329
<li>Use sqlite3_mprintf() instead of strdup() to avoid libc dependencies</li>
 
1330
<li>VACUUM uses a temporary file in the official TEMP folder, not in the
 
1331
same directory as the original database</li>
 
1332
<li>The prefix on temporary filenames on Windows is changed from "sqlite"
 
1333
to "etilqs".</li>
 
1334
</ul></p><a name="version_3_3_8"></a>
 
1335
<h3>2006 October 9 (3.3.8)</h3><p><ul>
 
1336
<li>Support for full text search using the
 
1337
<a href="http://www.sqlite.org/cvstrac/wiki?p=FullTextIndex">FTS1 module</a>
 
1338
(beta)</li>
 
1339
<li>Added Mac OS X locking patches (beta - disabled by default)</li>
 
1340
<li>Introduce extended error codes and add error codes for various
 
1341
kinds of I/O errors.</li>
 
1342
<li>Added support for IF EXISTS on CREATE/DROP TRIGGER/VIEW</li>
 
1343
<li>Fix the regression test suite so that it works with Tcl8.5</li>
 
1344
<li>Enhance sqlite3_set_authorizer() to provide notification of calls to
 
1345
    SQL functions.</li>
 
1346
<li>Added experimental API:  sqlite3_auto_extension()</li>
 
1347
<li>Various minor bug fixes</li>
 
1348
</ul></p><a name="version_3_3_7"></a>
 
1349
<h3>2006 August 12 (3.3.7)</h3><p><ul>
 
1350
<li>Added support for
 
1351
<a href="http://www.sqlite.org/cvstrac/wiki?p=VirtualTables">virtual tables</a>
 
1352
(beta)</li>
 
1353
<li>Added support for 
 
1354
<a href="http://www.sqlite.org/cvstrac/wiki?p=LoadableExtensions">
 
1355
dynamically loaded extensions</a> (beta)</li>
 
1356
<li>The 
 
1357
<a href="c3ref/interrupt.html">sqlite3_interrupt()</a>
 
1358
routine can be called for a different thread</li>
 
1359
<li>Added the <a href="lang_expr.html#match">MATCH</a> operator.</li>
 
1360
<li>The default file format is now 1.  
 
1361
</ul></p><a name="version_3_3_6"></a>
 
1362
<h3>2006 June 6 (3.3.6)</h3><p><ul>
 
1363
<li>Plays better with virus scanners on Windows</li>
 
1364
<li>Faster :memory: databases</li>
 
1365
<li>Fix an obscure segfault in UTF-8 to UTF-16 conversions</li>
 
1366
<li>Added driver for OS/2</li>
 
1367
<li>Correct column meta-information returned for aggregate queries</li>
 
1368
<li>Enhanced output from EXPLAIN QUERY PLAN</li>
 
1369
<li>LIMIT 0 now works on subqueries</li>
 
1370
<li>Bug fixes and performance enhancements in the query optimizer</li>
 
1371
<li>Correctly handle NULL filenames in ATTACH and DETACH</li>
 
1372
<li>Improved syntax error messages in the parser</li>
 
1373
<li>Fix type coercion rules for the IN operator</li>
 
1374
</ul></p><a name="version_3_3_5"></a>
 
1375
<h3>2006 April 5 (3.3.5)</h3><p><ul>
 
1376
<li>CHECK constraints use conflict resolution algorithms correctly.</li>
 
1377
<li>The SUM() function throws an error on integer overflow.</li>
 
1378
<li>Choose the column names in a compound query from the left-most SELECT
 
1379
    instead of the right-most.</li>
 
1380
<li>The sqlite3_create_collation() function
 
1381
    honors the SQLITE_UTF16_ALIGNED flag.</li>
 
1382
<li>SQLITE_SECURE_DELETE compile-time option causes deletes to overwrite
 
1383
    old data with zeros.</li>
 
1384
<li>Detect integer overflow in abs().</li>
 
1385
<li>The random() function provides 64 bits of randomness instead of
 
1386
    only 32 bits.</li>
 
1387
<li>Parser detects and reports automaton stack overflow.</li>
 
1388
<li>Change the round() function to return REAL instead of TEXT.</li>
 
1389
<li>Allow WHERE clause terms on the left table of a LEFT OUTER JOIN to
 
1390
    contain aggregate subqueries.</li>
 
1391
<li>Skip over leading spaces in text to numeric conversions.</li>
 
1392
<li>Various minor bug and documentation typo fixes and
 
1393
    performance enhancements.</li>
 
1394
</ul></p><a name="version_3_3_4"></a>
 
1395
<h3>2006 February 11 (3.3.4)</h3><p><ul>
 
1396
<li>Fix a blunder in the Unix mutex implementation that can lead to
 
1397
deadlock on multithreaded systems.</li>
 
1398
<li>Fix an alignment problem on 64-bit machines</li>
 
1399
<li>Added the fullfsync pragma.</li>
 
1400
<li>Fix an optimizer bug that could have caused some unusual LEFT OUTER JOINs
 
1401
to give incorrect results.</li>
 
1402
<li>The SUM function detects integer overflow and converts to accumulating
 
1403
an approximate result using floating point numbers</li>
 
1404
<li>Host parameter names can begin with '@' for compatibility with SQL Server.
 
1405
</li>
 
1406
<li>Other miscellaneous bug fixes</li>
 
1407
</ul></p><a name="version_3_3_3"></a>
 
1408
<h3>2006 January 31 (3.3.3)</h3><p><ul>
 
1409
<li>Removed support for an ON CONFLICT clause on CREATE INDEX - it never
 
1410
worked correctly so this should not present any backward compatibility
 
1411
problems.</li>
 
1412
<li>Authorizer callback now notified of ALTER TABLE ADD COLUMN commands</li>
 
1413
<li>After any changes to the TEMP database schema, all prepared statements
 
1414
are invalidated and must be recreated using a new call to
 
1415
sqlite3_prepare()</li>
 
1416
<li>Other minor bug fixes in preparation for the first stable release
 
1417
of version 3.3</li>
 
1418
</ul></p><h3>2006 January 24 (3.3.2 beta)</h3><p><ul>
 
1419
<li>Bug fixes and speed improvements.  Improved test coverage.</li>
 
1420
<li>Changes to the OS-layer interface: mutexes must now be recursive.</li>
 
1421
<li>Discontinue the use of thread-specific data for out-of-memory
 
1422
exception handling</li>
 
1423
</ul></p><h3>2006 January 16 (3.3.1 alpha)</h3><p><ul>
 
1424
<li>Countless bug fixes</li>
 
1425
<li>Speed improvements</li>
 
1426
<li>Database connections can now be used by multiple threads, not just
 
1427
the thread in which they were created.</li>
 
1428
</ul></p><h3>2006 January 10 (3.3.0 alpha)</h3><p><ul>
 
1429
<li>CHECK constraints</li>
 
1430
<li>IF EXISTS and IF NOT EXISTS clauses on CREATE/DROP TABLE/INDEX.</li>
 
1431
<li>DESC indices</li>
 
1432
<li>More efficient encoding of boolean values resulting in smaller database
 
1433
files</li>
 
1434
<li>More aggressive <a href="compile.html#omit_floating_point">SQLITE_OMIT_FLOATING_POINT</a></li>
 
1435
<li>Separate INTEGER and REAL affinity</li>
 
1436
<li>Added a virtual function layer for the OS interface</li>
 
1437
<li>"exists" method added to the TCL interface</li>
 
1438
<li>Improved response to out-of-memory errors</li>
 
1439
<li>Database cache can be optionally shared between connections
 
1440
in the same thread</li>
 
1441
<li>Optional READ UNCOMMITTED isolation (instead of the default
 
1442
isolation level of SERIALIZABLE) and table level locking when
 
1443
database connections share a common cache.</li>
 
1444
</ul></p><a name="version_3_2_8"></a>
 
1445
<h3>2005 December 19 (3.2.8)</h3><p><ul>
 
1446
<li>Fix an obscure bug that can cause database corruption under the
 
1447
following unusual circumstances: A large INSERT or UPDATE statement which 
 
1448
is part of an even larger transaction fails due to a uniqueness constraint
 
1449
but the containing transaction commits.</li>
 
1450
</ul></p><a name="version_2_8_17"></a>
 
1451
<h3>2005 December 19 (2.8.17)</h3><p><ul>
 
1452
<li>Fix an obscure bug that can cause database corruption under the
 
1453
following unusual circumstances: A large INSERT or UPDATE statement which 
 
1454
is part of an even larger transaction fails due to a uniqueness contraint
 
1455
but the containing transaction commits.</li>
 
1456
</ul></p><a name="version_3_2_7"></a>
 
1457
<h3>2005 September 24 (3.2.7)</h3><p><ul>
 
1458
<li>GROUP BY now considers NULLs to be equal again, as it should
 
1459
</li>
 
1460
<li>Now compiles on Solaris and OpenBSD and other Unix variants
 
1461
that lack the fdatasync() function</li>
 
1462
<li>Now compiles on MSVC++6 again</li>
 
1463
<li>Fix uninitialized variables causing malfunctions for various obscure
 
1464
queries</li>
 
1465
<li>Correctly compute a LEFT OUTER JOINs that is constrained on the
 
1466
left table only</li>
 
1467
</ul></p><a name="version_3_2_6"></a>
 
1468
<h3>2005 September 17 (3.2.6)</h3><p><ul>
 
1469
<li>Fix a bug that can cause database corruption if a VACUUM (or
 
1470
    autovacuum) fails and is rolled back on a database that is
 
1471
    larger than 1GiB</li>
 
1472
<li>LIKE optimization now works for columns with COLLATE NOCASE</li>
 
1473
<li>ORDER BY and GROUP BY now use bounded memory</li>
 
1474
<li>Added support for COUNT(DISTINCT expr)</li>
 
1475
<li>Change the way SUM() handles NULL values in order to comply with
 
1476
    the SQL standard</li>
 
1477
<li>Use fdatasync() instead of fsync() where possible in order to speed
 
1478
    up commits slightly</li>
 
1479
<li>Use of the CROSS keyword in a join turns off the table reordering
 
1480
    optimization</li>
 
1481
<li>Added the experimental and undocumented EXPLAIN QUERY PLAN capability</li>
 
1482
<li>Use the unicode API in Windows</li>
 
1483
</ul></p><a name="version_3_2_5"></a>
 
1484
<h3>2005 August 27 (3.2.5)</h3><p><ul>
 
1485
<li>Fix a bug effecting DELETE and UPDATE statements that changed
 
1486
more than 40960 rows.</li>
 
1487
<li>Change the makefile so that it no longer requires GNUmake extensions</li>
 
1488
<li>Fix the --enable-threadsafe option on the configure script</li>
 
1489
<li>Fix a code generator bug that occurs when the left-hand side of an IN
 
1490
operator is constant and the right-hand side is a SELECT statement</li>
 
1491
<li>The PRAGMA synchronous=off statement now disables syncing of the
 
1492
master journal file in addition to the normal rollback journals</li>
 
1493
</ul></p><a name="version_3_2_4"></a>
 
1494
<h3>2005 August 24 (3.2.4)</h3><p><ul>
 
1495
<li>Fix a bug introduced in the previous release
 
1496
that can cause a segfault while generating code
 
1497
for complex WHERE clauses.</li>
 
1498
<li>Allow floating point literals to begin or end with a decimal point.</li>
 
1499
</ul></p><a name="version_3_2_3"></a>
 
1500
<h3>2005 August 21 (3.2.3)</h3><p><ul>
 
1501
<li>Added support for the CAST operator</li>
 
1502
<li>Tcl interface allows BLOB values to be transferred to user-defined
 
1503
functions</li>
 
1504
<li>Added the "transaction" method to the Tcl interface</li>
 
1505
<li>Allow the DEFAULT value of a column to call functions that have constant
 
1506
operands</li>
 
1507
<li>Added the ANALYZE command for gathering statistics on indices and
 
1508
using those statistics when picking an index in the optimizer</li>
 
1509
<li>Remove the limit (formerly 100) on the number of terms in the
 
1510
WHERE clause</li>
 
1511
<li>The right-hand side of the IN operator can now be a list of expressions
 
1512
instead of just a list of constants</li>
 
1513
<li>Rework the optimizer so that it is able to make better use of indices</li>
 
1514
<li>The order of tables in a join is adjusted automatically to make
 
1515
better use of indices</li>
 
1516
<li>The IN operator is now a candidate for optimization even if the left-hand
 
1517
side is not the left-most term of the index.  Multiple IN operators can be
 
1518
used with the same index.</li>
 
1519
<li>WHERE clause expressions using BETWEEN and OR are now candidates
 
1520
for optimization</li>
 
1521
<li>Added the "case_sensitive_like" pragma and the SQLITE_CASE_SENSITIVE_LIKE
 
1522
compile-time option to set its default value to "on".</li>
 
1523
<li>Use indices to help with GLOB expressions and LIKE expressions too
 
1524
when the case_sensitive_like pragma is enabled</li>
 
1525
<li>Added support for grave-accent quoting for compatibility with MySQL</li>
 
1526
<li>Improved test coverage</li>
 
1527
<li>Dozens of minor bug fixes</li>
 
1528
</ul></p><a name="version_3_2_2"></a>
 
1529
<h3>2005 June 13 (3.2.2)</h3><p><ul>
 
1530
<li>Added the sqlite3_db_handle() API</li>
 
1531
<li>Added the sqlite3_get_autocommit() API</li>
 
1532
<li>Added a REGEXP operator to the parser.  There is no function to back
 
1533
up this operator in the standard build but users can add their own using
 
1534
sqlite3_create_function()</li>
 
1535
<li>Speed improvements and library footprint reductions.</li>
 
1536
<li>Fix byte alignment problems on 64-bit architectures.</li>
 
1537
<li>Many, many minor bug fixes and documentation updates.</li>
 
1538
</ul></p><a name="version_3_2_1"></a>
 
1539
<h3>2005 March 29 (3.2.1)</h3><p><ul>
 
1540
<li>Fix a memory allocation error in the new ADD COLUMN comment.</li>
 
1541
<li>Documentation updates</li>
 
1542
</ul></p><a name="version_3_2_0"></a>
 
1543
<h3>2005 March 21 (3.2.0)</h3><p><ul>
 
1544
<li>Added support for ALTER TABLE ADD COLUMN.</li>
 
1545
<li>Added support for the "T" separator in ISO-8601 date/time strings.</li>
 
1546
<li>Improved support for Cygwin.</li>
 
1547
<li>Numerous bug fixes and documentation updates.</li>
 
1548
</ul></p><a name="version_3_1_6"></a>
 
1549
<h3>2005 March 16 (3.1.6)</h3><p><ul>
 
1550
<li>Fix a bug that could cause database corruption when inserting
 
1551
    record into tables with around 125 columns.</li>
 
1552
<li>sqlite3_step() is now much more likely to invoke the busy handler
 
1553
    and less likely to return SQLITE_BUSY.</li>
 
1554
<li>Fix memory leaks that used to occur after a malloc() failure.</li>
 
1555
</ul></p><a name="version_3_1_5"></a>
 
1556
<h3>2005 March 11 (3.1.5)</h3><p><ul>
 
1557
<li>The ioctl on Mac OS X to control syncing to disk is F_FULLFSYNC,
 
1558
    not F_FULLSYNC.  The previous release had it wrong.</li>
 
1559
</ul></p><a name="version_3_1_4"></a>
 
1560
<h3>2005 March 10 (3.1.4)</h3><p><ul>
 
1561
<li>Fix a bug in autovacuum that could cause database corruption if
 
1562
a CREATE UNIQUE INDEX fails because of a constraint violation.
 
1563
This problem only occurs if the new autovacuum feature introduced in
 
1564
version 3.1 is turned on.</li>
 
1565
<li>The F_FULLSYNC ioctl (currently only supported on Mac OS X) is disabled
 
1566
if the synchronous pragma is set to something other than "full".</li>
 
1567
<li>Add additional forward compatibility to the future version 3.2 database 
 
1568
file format.</li>
 
1569
<li>Fix a bug in WHERE clauses of the form (rowid<'2')</li>
 
1570
<li>New <a href="compile.html#omitfeatures">SQLITE_OMIT_...</a> compile-time options added</li>
 
1571
<li>Updates to the man page</li>
 
1572
<li>Remove the use of strcasecmp() from the shell</li>
 
1573
<li>Windows DLL exports symbols Tclsqlite_Init and Sqlite_Init</li>
 
1574
</ul></p><a name="version_3_1_3"></a>
 
1575
<h3>2005 February 19 (3.1.3)</h3><p><ul>
 
1576
<li>Fix a problem with VACUUM on databases from which tables containing
 
1577
AUTOINCREMENT have been dropped.</li>
 
1578
<li>Add forward compatibility to the future version 3.2 database file
 
1579
format.</li>
 
1580
<li>Documentation updates</li>
 
1581
</ul></p><a name="version_3_1_2"></a>
 
1582
<h3>2005 February 15 (3.1.2)</h3><p><ul>
 
1583
<li>Fix a bug that can lead to database corruption if there are two
 
1584
open connections to the same database and one connection does a VACUUM
 
1585
and the second makes some change to the database.</li>
 
1586
<li>Allow "?" parameters in the LIMIT clause.</li>
 
1587
<li>Fix VACUUM so that it works with AUTOINCREMENT.</li>
 
1588
<li>Fix a race condition in AUTOVACUUM that can lead to corrupt databases</li>
 
1589
<li>Add a numeric version number to the sqlite3.h include file.</li>
 
1590
<li>Other minor bug fixes and performance enhancements.</li>
 
1591
</ul></p><a name="version_2_8_16"></a>
 
1592
<h3>2005 February 15 (2.8.16)</h3><p><ul>
 
1593
<li>Fix a bug that can lead to database corruption if there are two
 
1594
open connections to the same database and one connection does a VACUUM
 
1595
and the second makes some change to the database.</li>
 
1596
<li>Correctly handle quoted names in CREATE INDEX statements.</li>
 
1597
<li>Fix a naming conflict between sqlite.h and sqlite3.h.</li>
 
1598
<li>Avoid excess heap usage when copying expressions.</li>
 
1599
<li>Other minor bug fixes.</li>
 
1600
</ul></p><h3>2005 February 1 (3.1.1 BETA)</h3><p><ul>
 
1601
<li>Automatic caching of prepared statements in the TCL interface</li>
 
1602
<li>ATTACH and DETACH as well as some other operations cause existing
 
1603
    prepared statements to expire.</li>
 
1604
<li>Numerous minor bug fixes</li>
 
1605
</ul></p><h3>2005 January 21 (3.1.0 ALPHA)</h3><p><ul>
 
1606
<li>Autovacuum support added</li>
 
1607
<li>CURRENT_TIME, CURRENT_DATE, and CURRENT_TIMESTAMP added</li>
 
1608
<li>Support for the EXISTS clause added.</li>
 
1609
<li>Support for correlated subqueries added.</li>
 
1610
<li>Added the ESCAPE clause on the LIKE operator.</li>
 
1611
<li>Support for ALTER TABLE ... RENAME TABLE ... added</li>
 
1612
<li>AUTOINCREMENT keyword supported on INTEGER PRIMARY KEY</li>
 
1613
<li>Many SQLITE_OMIT_ macros inserts to omit features at compile-time
 
1614
    and reduce the library footprint.</li>
 
1615
<li>The REINDEX command was added.</li>
 
1616
<li>The engine no longer consults the main table if it can get
 
1617
    all the information it needs from an index.</li>
 
1618
<li>Many nuisance bugs fixed.</li>
 
1619
</ul></p><a name="version_3_0_8"></a>
 
1620
<h3>2004 October 11 (3.0.8)</h3><p><ul>
 
1621
<li>Add support for DEFERRED, IMMEDIATE, and EXCLUSIVE transactions.</li>
 
1622
<li>Allow new user-defined functions to be created when there are
 
1623
already one or more precompiled SQL statements.<li>
 
1624
<li>Fix portability problems for MinGW/MSYS.</li>
 
1625
<li>Fix a byte alignment problem on 64-bit Sparc machines.</li>
 
1626
<li>Fix the ".import" command of the shell so that it ignores \r
 
1627
characters at the end of lines.</li>
 
1628
<li>The "csv" mode option in the shell puts strings inside double-quotes.</li>
 
1629
<li>Fix typos in documentation.</li>
 
1630
<li>Convert array constants in the code to have type "const".</li>
 
1631
<li>Numerous code optimizations, specially optimizations designed to
 
1632
make the code footprint smaller.</li>
 
1633
</ul></p><a name="version_3_0_7"></a>
 
1634
<h3>2004 September 18 (3.0.7)</h3><p><ul>
 
1635
<li>The BTree module allocates large buffers using malloc() instead of
 
1636
    off of the stack, in order to play better on machines with limited
 
1637
    stack space.</li>
 
1638
<li>Fixed naming conflicts so that versions 2.8 and 3.0 can be
 
1639
    linked and used together in the same ANSI-C source file.</li>
 
1640
<li>New interface: sqlite3_bind_parameter_index()</li>
 
1641
<li>Add support for wildcard parameters of the form: "?nnn"</li>
 
1642
<li>Fix problems found on 64-bit systems.</li>
 
1643
<li>Removed encode.c file (containing unused routines) from the 
 
1644
    version 3.0 source tree.</li>
 
1645
<li>The sqlite3_trace() callbacks occur before each statement
 
1646
    is executed, not when the statement is compiled.</li>
 
1647
<li>Makefile updates and miscellaneous bug fixes.</li>
 
1648
</ul></p><h3>2004 September 02 (3.0.6 beta)</h3><p><ul>
 
1649
<li>Better detection and handling of corrupt database files.</li>
 
1650
<li>The sqlite3_step() interface returns SQLITE_BUSY if it is unable
 
1651
    to commit a change because of a lock</li>
 
1652
<li>Combine the implementations of LIKE and GLOB into a single
 
1653
    pattern-matching subroutine.</li>
 
1654
<li>Miscellaneous code size optimizations and bug fixes</li>
 
1655
</ul></p><h3>2004 August 29 (3.0.5 beta)</h3><p><ul>
 
1656
<li>Support for ":AAA" style bind parameter names.</li>
 
1657
<li>Added the new sqlite3_bind_parameter_name() interface.</li>
 
1658
<li>Support for TCL variable names embedded in SQL statements in the
 
1659
    TCL bindings.</li>
 
1660
<li>The TCL bindings transfer data without necessarily doing a conversion
 
1661
    to a string.</li>
 
1662
<li>The database for TEMP tables is not created until it is needed.</li>
 
1663
<li>Add the ability to specify an alternative temporary file directory
 
1664
    using the "sqlite_temp_directory" global variable.</li>
 
1665
<li>A compile-time option (SQLITE_BUSY_RESERVED_LOCK) causes the busy
 
1666
    handler to be called when there is contention for a RESERVED lock.</li>
 
1667
<li>Various bug fixes and optimizations</li>
 
1668
</ul></p><h3>2004 August 8 (3.0.4 beta)</h3><p><ul>
 
1669
<li>CREATE TABLE and DROP TABLE now work correctly as prepared statements.</li>
 
1670
<li>Fix a bug in VACUUM and UNIQUE indices.</li>
 
1671
<li>Add the ".import" command to the command-line shell.</li>
 
1672
<li>Fix a bug that could cause index corruption when an attempt to
 
1673
    delete rows of a table is blocked by a pending query.</li>
 
1674
<li>Library size optimizations.</li>
 
1675
<li>Other minor bug fixes.</li>
 
1676
</ul></p><a name="version_2_8_15"></a>
 
1677
<h3>2004 July 22 (2.8.15)</h3><p><ul>
 
1678
<li>This is a maintenance release only.  Various minor bugs have been
 
1679
fixed and some portability enhancements are added.</li>
 
1680
</ul></p><h3>2004 July 22 (3.0.3 beta)</h3><p><ul>
 
1681
<li>The second beta release for SQLite 3.0.</li>
 
1682
<li>Add support for "PRAGMA page_size" to adjust the page size of
 
1683
the database.</li>
 
1684
<li>Various bug fixes and documentation updates.</li>
 
1685
</ul></p><h3>2004 June 30 (3.0.2 beta)</h3><p><ul>
 
1686
<li>The first beta release for SQLite 3.0.</li>
 
1687
</ul></p><h3>2004 June 22 (3.0.1 alpha)</h3><p><ul>
 
1688
<li><font color="red"><b>
 
1689
    *** Alpha Release - Research And Testing Use Only ***</b></font>
 
1690
<li>Lots of bug fixes.</li>
 
1691
</ul></p><h3>2004 June 18 (3.0.0 alpha)</h3><p><ul>
 
1692
<li><font color="red"><b>
 
1693
    *** Alpha Release - Research And Testing Use Only ***</b></font>
 
1694
<li>Support for internationalization including UTF-8, UTF-16, and
 
1695
    user defined collating sequences.</li>
 
1696
<li>New file format that is 25% to 35% smaller for typical use.</li>
 
1697
<li>Improved concurrency.</li>
 
1698
<li>Atomic commits for ATTACHed databases.</li>
 
1699
<li>Remove cruft from the APIs.</li>
 
1700
<li>BLOB support.</li>
 
1701
<li>64-bit rowids.</li>
 
1702
<li><a href="version3.html">More information</a>.
 
1703
</ul></p><a name="version_2_8_14"></a>
 
1704
<h3>2004 June 9 (2.8.14)</h3><p><ul>
 
1705
<li>Fix the min() and max() optimizer so that it works when the FROM
 
1706
    clause consists of a subquery.</li>
 
1707
<li>Ignore extra whitespace at the end of of "." commands in the shell.</li>
 
1708
<li>Bundle sqlite_encode_binary() and sqlite_decode_binary() with the 
 
1709
    library.</li>
 
1710
<li>The TEMP_STORE and DEFAULT_TEMP_STORE pragmas now work.</li>
 
1711
<li>Code changes to compile cleanly using OpenWatcom.</li>
 
1712
<li>Fix VDBE stack overflow problems with INSTEAD OF triggers and
 
1713
    NULLs in IN operators.</li>
 
1714
<li>Add the global variable sqlite_temp_directory which if set defines the
 
1715
    directory in which temporary files are stored.</li>
 
1716
<li>sqlite_interrupt() plays well with VACUUM.</li>
 
1717
<li>Other minor bug fixes.</li>
 
1718
</ul></p><a name="version_2_8_13"></a>
 
1719
<h3>2004 March 8 (2.8.13)</h3><p><ul>
 
1720
<li>Refactor parts of the code in order to make the code footprint
 
1721
    smaller.  The code is now also a little bit faster.</li>
 
1722
<li>sqlite_exec() is now implemented as a wrapper around sqlite_compile()
 
1723
    and sqlite_step().</li>
 
1724
<li>The built-in min() and max() functions now honor the difference between
 
1725
    NUMERIC and TEXT datatypes.  Formerly, min() and max() always assumed
 
1726
    their arguments were of type NUMERIC.</li>
 
1727
<li>New HH:MM:SS modifier to the built-in date/time functions.</li>
 
1728
<li>Experimental sqlite_last_statement_changes() API added.  Fixed
 
1729
    the last_insert_rowid() function so that it works correctly with
 
1730
    triggers.</li>
 
1731
<li>Add functions prototypes for the database encryption API.</li>
 
1732
<li>Fix several nuisance bugs.</li>
 
1733
</ul></p><a name="version_2_8_12"></a>
 
1734
<h3>2004 February 8 (2.8.12)</h3><p><ul>
 
1735
<li>Fix a bug that will might corrupt the rollback journal if a power failure
 
1736
    or external program halt occurs in the middle of a COMMIT.  The corrupt
 
1737
    journal can lead to database corruption when it is rolled back.</li>
 
1738
<li>Reduce the size and increase the speed of various modules, especially
 
1739
    the virtual machine.</li>
 
1740
<li>Allow "&lt;expr&gt; IN &lt;table&gt;" as a shorthand for
 
1741
    "&lt;expr&gt; IN (SELECT * FROM &lt;table&gt;".</li>
 
1742
<li>Optimizations to the sqlite_mprintf() routine.</li>
 
1743
<li>Make sure the MIN() and MAX() optimizations work within subqueries.</li>
 
1744
</ul></p><a name="version_2_8_11"></a>
 
1745
<h3>2004 January 14 (2.8.11)</h3><p><ul>
 
1746
<li>Fix a bug in how the IN operator handles NULLs in subqueries.  The bug
 
1747
    was introduced by the previous release.</li>
 
1748
</ul></p><a name="version_2_8_10"></a>
 
1749
<h3>2004 January 13 (2.8.10)</h3><p><ul>
 
1750
<li>Fix a potential database corruption problem on Unix caused by the fact
 
1751
    that all POSIX advisory locks are cleared whenever you close() a file.
 
1752
    The work around it to embargo all close() calls while locks are 
 
1753
    outstanding.</li>
 
1754
<li>Performance enhancements on some corner cases of COUNT(*).</li>
 
1755
<li>Make sure the in-memory backend response sanely if malloc() fails.</li>
 
1756
<li>Allow sqlite_exec() to be called from within user-defined SQL
 
1757
    functions.</li>
 
1758
<li>Improved accuracy of floating-point conversions using "long double".</li>
 
1759
<li>Bug fixes in the experimental date/time functions.</li>
 
1760
</ul></p><a name="version_2_8_9"></a>
 
1761
<h3>2004 January 5 (2.8.9)</h3><p><ul>
 
1762
<li>Fix a 32-bit integer overflow problem that could result in corrupt
 
1763
    indices in a database if large negative numbers (less than -2147483648)
 
1764
    were inserted into an indexed numeric column.</li>
 
1765
<li>Fix a locking problem on multi-threaded Linux implementations.</li>
 
1766
<li>Always use "." instead of "," as the decimal point even if the locale
 
1767
    requests ",".</li>
 
1768
<li>Added UTC to localtime conversions to the experimental date/time
 
1769
    functions.</li>
 
1770
<li>Bug fixes to date/time functions.</li>
 
1771
</ul></p><a name="version_2_8_8"></a>
 
1772
<h3>2003 December 17 (2.8.8)</h3><p><ul>
 
1773
<li>Fix a critical bug introduced into 2.8.0 which could cause
 
1774
    database corruption.</li>
 
1775
<li>Fix a problem with 3-way joins that do not use indices</li>
 
1776
<li>The VACUUM command now works with the non-callback API</li>
 
1777
<li>Improvements to the "PRAGMA integrity_check" command</li>
 
1778
</ul></p><a name="version_2_8_7"></a>
 
1779
<h3>2003 December 4 (2.8.7)</h3><p><ul>
 
1780
<li>Added experimental sqlite_bind() and sqlite_reset() APIs.</li>
 
1781
<li>If the name of the database is an empty string, open a new database
 
1782
    in a temporary file that is automatically deleted when the database
 
1783
    is closed.</li>
 
1784
<li>Performance enhancements in the lemon-generated parser</li>
 
1785
<li>Experimental date/time functions revised.</li>
 
1786
<li>Disallow temporary indices on permanent tables.</li>
 
1787
<li>Documentation updates and typo fixes</li>
 
1788
<li>Added experimental sqlite_progress_handler() callback API</li>
 
1789
<li>Removed support for the Oracle8 outer join syntax.</li>
 
1790
<li>Allow GLOB and LIKE operators to work as functions.</li>
 
1791
<li>Other minor documentation and makefile changes and bug fixes.</li>
 
1792
</ul></p><a name="version_2_8_6"></a>
 
1793
<h3>2003 August 21 (2.8.6)</h3><p><ul>
 
1794
<li>Moved the CVS repository to www.sqlite.org</li>
 
1795
<li>Update the NULL-handling documentation.</li>
 
1796
<li>Experimental date/time functions added.</li>
 
1797
<li>Bug fix: correctly evaluate a view of a view without segfaulting.</li>
 
1798
<li>Bug fix: prevent database corruption if you dropped a
 
1799
    trigger that had the same name as a table.</li>
 
1800
<li>Bug fix: allow a VACUUM (without segfaulting) on an empty
 
1801
    database after setting the EMPTY_RESULT_CALLBACKS pragma.</li>
 
1802
<li>Bug fix: if an integer value will not fit in a 32-bit int, store it in
 
1803
    a double instead.</li>
 
1804
<li>Bug fix: Make sure the journal file directory entry is committed to disk
 
1805
    before writing the database file.</li>
 
1806
</ul></p><a name="version_2_8_5"></a>
 
1807
<h3>2003 July 22 (2.8.5)</h3><p><ul>
 
1808
<li>Make LIMIT work on a compound SELECT statement.</li>
 
1809
<li>LIMIT 0 now shows no rows.  Use LIMIT -1 to see all rows.</li>
 
1810
<li>Correctly handle comparisons between an INTEGER PRIMARY KEY and
 
1811
    a floating point number.</li>
 
1812
<li>Fix several important bugs in the new ATTACH and DETACH commands.</li>
 
1813
<li>Updated the <a href="nulls.html">NULL-handling document</a>.</li> 
 
1814
<li>Allow NULL arguments in sqlite_compile() and sqlite_step().</li>
 
1815
<li>Many minor bug fixes</li>
 
1816
</ul></p><a name="version_2_8_4"></a>
 
1817
<h3>2003 June 29 (2.8.4)</h3><p><ul>
 
1818
<li>Enhanced the "PRAGMA integrity_check" command to verify indices.</li>
 
1819
<li>Added authorization hooks for the new ATTACH and DETACH commands.</li>
 
1820
<li>Many documentation updates</li>
 
1821
<li>Many minor bug fixes</li>
 
1822
</ul></p><a name="version_2_8_3"></a>
 
1823
<h3>2003 June 4 (2.8.3)</h3><p><ul>
 
1824
<li>Fix a problem that will corrupt the indices on a table if you
 
1825
    do an INSERT OR REPLACE or an UPDATE OR REPLACE on a table that
 
1826
    contains an INTEGER PRIMARY KEY plus one or more indices.</li>
 
1827
<li>Fix a bug in Windows locking code so that locks work correctly
 
1828
    when simultaneously accessed by Win95 and WinNT systems.</li>
 
1829
<li>Add the ability for INSERT and UPDATE statements to refer to the
 
1830
    "rowid" (or "_rowid_" or "oid") columns.</li>
 
1831
<li>Other important bug fixes</li>
 
1832
</ul></p><a name="version_2_8_2"></a>
 
1833
<h3>2003 May 17 (2.8.2)</h3><p><ul>
 
1834
<li>Fix a problem that will corrupt the database file if you drop a
 
1835
    table from the main database that has a TEMP index.</li>
 
1836
</ul></p><a name="version_2_8_1"></a>
 
1837
<h3>2003 May 16 (2.8.1)</h3><p><ul>
 
1838
<li>Reactivated the VACUUM command that reclaims unused disk space in 
 
1839
    a database file.</li>
 
1840
<li>Added the ATTACH and DETACH commands to allow interacting with multiple
 
1841
    database files at the same time.</li>
 
1842
<li>Added support for TEMP triggers and indices.</li>
 
1843
<li>Added support for in-memory databases.</li>
 
1844
<li>Removed the experimental sqlite_open_aux_file().  Its function is
 
1845
    subsumed in the new ATTACH command.</li>
 
1846
<li>The precedence order for ON CONFLICT clauses was changed so that
 
1847
    ON CONFLICT clauses on BEGIN statements have a higher precedence than
 
1848
    ON CONFLICT clauses on constraints.
 
1849
<li>Many, many bug fixes and compatibility enhancements.</li>
 
1850
</ul></p><a name="version_2_8_0"></a>
 
1851
<h3>2003 Feb 16 (2.8.0)</h3><p><ul>
 
1852
<li>Modified the journal file format to make it more resistant to corruption
 
1853
    that can occur after an OS crash or power failure.</li>
 
1854
<li>Added a new C/C++ API that does not use callback for returning data.</li>
 
1855
</ul></p><a name="version_2_7_6"></a>
 
1856
<h3>2003 Jan 25 (2.7.6)</h3><p><ul>
 
1857
<li>Performance improvements.  The library is now much faster.</li>
 
1858
<li>Added the <b>sqlite_set_authorizer()</b> API.  Formal documentation has
 
1859
    not been written - see the source code comments for instructions on
 
1860
    how to use this function.</li>
 
1861
<li>Fix a bug in the GLOB operator that was preventing it from working
 
1862
    with upper-case letters.</li>
 
1863
<li>Various minor bug fixes.</li>
 
1864
</ul></p><a name="version_2_7_5"></a>
 
1865
<h3>2002 Dec 27 (2.7.5)</h3><p><ul>
 
1866
<li>Fix an uninitialized variable in pager.c which could (with a probability
 
1867
    of about 1 in 4 billion) result in a corrupted database.</li>
 
1868
</ul></p><a name="version_2_7_4"></a>
 
1869
<h3>2002 Dec 17 (2.7.4)</h3><p><ul>
 
1870
<li>Database files can now grow to be up to 2&#94;41 bytes.  The old limit
 
1871
    was 2&#94;31 bytes.</li>
 
1872
<li>The optimizer will now scan tables in the reverse if doing so will
 
1873
    satisfy an ORDER BY ... DESC clause.</li>
 
1874
<li>The full pathname of the database file is now remembered even if
 
1875
    a relative path is passed into sqlite_open().  This allows 
 
1876
    the library to continue operating correctly after a chdir().</li>
 
1877
<li>Speed improvements in the VDBE.</li>
 
1878
<li>Lots of little bug fixes.</li>
 
1879
</ul></p><a name="version_2_7_3"></a>
 
1880
<h3>2002 Oct 30 (2.7.3)</h3><p><ul>
 
1881
<li>Various compiler compatibility fixes.</li>
 
1882
<li>Fix a bug in the "expr IN ()" operator.</li>
 
1883
<li>Accept column names in parentheses.</li>
 
1884
<li>Fix a problem with string memory management in the VDBE</li>
 
1885
<li>Fix a bug in the "table_info" pragma"</li>
 
1886
<li>Export the sqlite_function_type() API function in the Windows DLL</li>
 
1887
<li>Fix locking behavior under Windows</li>
 
1888
<li>Fix a bug in LEFT OUTER JOIN</li>
 
1889
</ul></p><a name="version_2_7_2"></a>
 
1890
<h3>2002 Sep 25 (2.7.2)</h3><p><ul>
 
1891
<li>Prevent journal file overflows on huge transactions.</li>
 
1892
<li>Fix a memory leak that occurred when sqlite_open() failed.</li>
 
1893
<li>Honor the ORDER BY and LIMIT clause of a SELECT even if the
 
1894
    result set is used for an INSERT.</li>
 
1895
<li>Do not put write locks on the file used to hold TEMP tables.</li>
 
1896
<li>Added documentation on SELECT DISTINCT and on how SQLite handles NULLs.</li>
 
1897
<li>Fix a problem that was causing poor performance when many thousands
 
1898
    of SQL statements were executed by a single sqlite_exec() call.</li>
 
1899
</ul></p><a name="version_2_7_1"></a>
 
1900
<h3>2002 Aug 31 (2.7.1)</h3><p><ul>
 
1901
<li>Fix a bug in the ORDER BY logic that was introduced in version 2.7.0</li>
 
1902
<li>C-style comments are now accepted by the tokenizer.</li>
 
1903
<li>INSERT runs a little faster when the source is a SELECT statement.</li>
 
1904
</ul></p><a name="version_2_7_0"></a>
 
1905
<h3>2002 Aug 25 (2.7.0)</h3><p><ul>
 
1906
<li>Make a distinction between numeric and text values when sorting.
 
1907
    Text values sort according to memcmp().  Numeric values sort in
 
1908
    numeric order.</li>
 
1909
<li>Allow multiple simultaneous readers under Windows by simulating
 
1910
    the reader/writers locks that are missing from Win95/98/ME.</li>
 
1911
<li>An error is now returned when trying to start a transaction if
 
1912
    another transaction is already active.</li>
 
1913
</ul></p><a name="version_2_6_3"></a>
 
1914
<h3>2002 Aug 12 (2.6.3)</h3><p><ul>
 
1915
<li>Add the ability to read both little-endian and big-endian databases.
 
1916
    So a database created under SunOS or Mac OS X can be read and written
 
1917
    under Linux or Windows and vice versa.</li>
 
1918
<li>Convert to the new website: http://www.sqlite.org/</li>
 
1919
<li>Allow transactions to span Linux Threads</li>
 
1920
<li>Bug fix in the processing of the ORDER BY clause for GROUP BY queries</li>
 
1921
</ul></p><a name="version_2_6_2"></a>
 
1922
<h3>2002 Jly 30 (2.6.2)</h3><p><ul>
 
1923
<li>Text files read by the COPY command can now have line terminators
 
1924
    of LF,  CRLF, or CR.</li>
 
1925
<li>SQLITE_BUSY is handled correctly if encountered during database
 
1926
    initialization.</li>
 
1927
<li>Fix to UPDATE triggers on TEMP tables.</li>
 
1928
<li>Documentation updates.</li>
 
1929
</ul></p><a name="version_2_6_1"></a>
 
1930
<h3>2002 Jly 19 (2.6.1)</h3><p><ul>
 
1931
<li>Include a static string in the library that responds to the RCS
 
1932
    "ident" command and which contains the library version number.</li>
 
1933
<li>Fix an assertion failure that occurred when deleting all rows of
 
1934
    a table with the "count_changes" pragma turned on.</li>
 
1935
<li>Better error reporting when problems occur during the automatic
 
1936
    2.5.6 to 2.6.0 database format upgrade.</li>
 
1937
</ul></p><a name="version_2_6_0"></a>
 
1938
<h3>2002 Jly 17 (2.6.0)</h3><p><ul>
 
1939
<li>Change the format of indices to correct a design flaw the originated
 
1940
    with version 2.1.0.  <font color="red">*** This is an incompatible
 
1941
    file format change ***</font>  When version 2.6.0 or later of the
 
1942
    library attempts to open a database file created by version 2.5.6 or
 
1943
    earlier, it will automatically and irreversibly convert the file format.
 
1944
    <b>Make backup copies of older database files before opening them with
 
1945
    version 2.6.0 of the library.</b>
 
1946
    </li>
 
1947
</ul></p><a name="version_2_5_6"></a>
 
1948
<h3>2002 Jly 7 (2.5.6)</h3><p><ul>
 
1949
<li>Fix more problems with rollback.  Enhance the test suite to exercise
 
1950
    the rollback logic extensively in order to prevent any future problems.
 
1951
    </li>
 
1952
</ul></p><a name="version_2_5_5"></a>
 
1953
<h3>2002 Jly 6 (2.5.5)</h3><p><ul>
 
1954
<li>Fix a bug which could cause database corruption during a rollback.
 
1955
    This bugs was introduced in version 2.4.0 by the freelist
 
1956
    optimization of checkin &#91;410&#93;.</li>
 
1957
<li>Fix a bug in aggregate functions for VIEWs.</li>
 
1958
<li>Other minor changes and enhancements.</li>
 
1959
</ul></p><a name="version_2_5_4"></a>
 
1960
<h3>2002 Jly 1 (2.5.4)</h3><p><ul>
 
1961
<li>Make the "AS" keyword optional again.</li>
 
1962
<li>The datatype of columns now appear in the 4th argument to the
 
1963
    callback.</li>
 
1964
<li>Added the <b>sqlite_open_aux_file()</b> API, though it is still
 
1965
    mostly undocumented and untested.</li>
 
1966
<li>Added additional test cases and fixed a few bugs that those
 
1967
    test cases found.</li>
 
1968
</ul></p><a name="version_2_5_3"></a>
 
1969
<h3>2002 Jun 24 (2.5.3)</h3><p><ul>
 
1970
<li>Bug fix:  Database corruption can occur due to the optimization
 
1971
    that was introduced in version 2.4.0 (check-in &#91;410&#93;).  The problem
 
1972
    should now be fixed.  The use of versions 2.4.0 through 2.5.2 is
 
1973
    not recommended.</li>
 
1974
</ul></p><a name="version_2_5_2"></a>
 
1975
<h3>2002 Jun 24 (2.5.2)</h3><p><ul>
 
1976
<li>Added the new <b>SQLITE_TEMP_MASTER</b> table which records the schema
 
1977
    for temporary tables in the same way that <b>SQLITE_MASTER</b> does for
 
1978
    persistent tables.</li>
 
1979
<li>Added an optimization to UNION ALL</li>
 
1980
<li>Fixed a bug in the processing of LEFT OUTER JOIN</li>
 
1981
<li>The LIMIT clause now works on subselects</li>
 
1982
<li>ORDER BY works on subselects</li>
 
1983
<li>There is a new TypeOf() function used to determine if an expression
 
1984
    is numeric or text.</li>
 
1985
<li>Autoincrement now works for INSERT from a SELECT.</li>
 
1986
</ul></p><a name="version_2_5_1"></a>
 
1987
<h3>2002 Jun 19 (2.5.1)</h3><p><ul>
 
1988
<li>The query optimizer now attempts to implement the ORDER BY clause
 
1989
    using an index.  Sorting is still used if not suitable index is
 
1990
    available.</li>
 
1991
</ul></p><a name="version_2_5_0"></a>
 
1992
<h3>2002 Jun 17 (2.5.0)</h3><p><ul>
 
1993
<li>Added support for row triggers.</li>
 
1994
<li>Added SQL-92 compliant handling of NULLs.</li>
 
1995
<li>Add support for the full SQL-92 join syntax and LEFT OUTER JOINs.</li>
 
1996
<li>Double-quoted strings interpreted as column names not text literals.</li>
 
1997
<li>Parse (but do not implement) foreign keys.</li>
 
1998
<li>Performance improvements in the parser, pager, and WHERE clause code
 
1999
    generator.</li>
 
2000
<li>Make the LIMIT clause work on subqueries.  (ORDER BY still does not
 
2001
    work, though.)</li>
 
2002
<li>Added the "%Q" expansion to sqlite_*_printf().</li>
 
2003
<li>Bug fixes too numerous to mention (see the change log).</li>
 
2004
</ul></p><a name="version_2_4_12"></a>
 
2005
<h3>2002 May 09 (2.4.12)</h3><p><ul>
 
2006
<li>Added logic to detect when the library API routines are called out
 
2007
    of sequence.</li>
 
2008
</ul></p><a name="version_2_4_11"></a>
 
2009
<h3>2002 May 08 (2.4.11)</h3><p><ul>
 
2010
<li>Bug fix: Column names in the result set were not being generated
 
2011
    correctly for some (rather complex) VIEWs.  This could cause a
 
2012
    segfault under certain circumstances.</li>
 
2013
</ul></p><a name="version_2_4_10"></a>
 
2014
<h3>2002 May 02 (2.4.10)</h3><p><ul>
 
2015
<li>Bug fix: Generate correct column headers when a compound SELECT is used
 
2016
    as a subquery.</li>
 
2017
<li>Added the sqlite_encode_binary() and sqlite_decode_binary() functions to
 
2018
    the source tree.  But they are not yet linked into the library.</li>
 
2019
<li>Documentation updates.</li>
 
2020
<li>Export the sqlite_changes() function from Windows DLLs.</li>
 
2021
<li>Bug fix: Do not attempt the subquery flattening optimization on queries
 
2022
    that lack a FROM clause.  To do so causes a segfault.</li>
 
2023
</ul></p><a name="version_2_4_9"></a>
 
2024
<h3>2002 Apr 21 (2.4.9)</h3><p><ul>
 
2025
<li>Fix a bug that was causing the precompiled binary of SQLITE.EXE to
 
2026
    report "out of memory" under Windows 98.</li>
 
2027
</ul></p><a name="version_2_4_8"></a>
 
2028
<h3>2002 Apr 20 (2.4.8)</h3><p><ul>
 
2029
<li>Make sure VIEWs are created after their corresponding TABLEs in the
 
2030
    output of the <b>.dump</b> command in the shell.</li>
 
2031
<li>Speed improvements: Do not do synchronous updates on TEMP tables.</li>
 
2032
<li>Many improvements and enhancements to the shell.</li>
 
2033
<li>Make the GLOB and LIKE operators functions that can be overridden
 
2034
    by a programmer.  This allows, for example, the LIKE operator to
 
2035
    be changed to be case sensitive.</li>
 
2036
</ul></p><a name="version_2_4_7"></a>
 
2037
<h3>2002 Apr 06 (2.4.7)</h3><p><ul>
 
2038
<li>Add the ability to put TABLE.* in the column list of a
 
2039
    SELECT statement.</li>
 
2040
<li>Permit SELECT statements without a FROM clause.</li>
 
2041
<li>Added the <b>last_insert_rowid()</b> SQL function.</li>
 
2042
<li>Do not count rows where the IGNORE conflict resolution occurs in
 
2043
    the row count.</li>
 
2044
<li>Make sure functions expressions in the VALUES clause of an INSERT
 
2045
    are correct.</li>
 
2046
<li>Added the <b>sqlite_changes()</b> API function to return the number
 
2047
    of row that changed in the most recent operation.</li>
 
2048
</ul></p><a name="version_2_4_6"></a>
 
2049
<h3>2002 Apr 02 (2.4.6)</h3><p><ul>
 
2050
<li>Bug fix: Correctly handle terms in the WHERE clause of a join that
 
2051
    do not contain a comparison operator.</li>
 
2052
</ul></p><a name="version_2_4_5"></a>
 
2053
<h3>2002 Apr 01 (2.4.5)</h3><p><ul>
 
2054
<li>Bug fix: Correctly handle functions that appear in the WHERE clause
 
2055
    of a join.</li>
 
2056
<li>When the PRAGMA vdbe_trace=ON is set, correctly print the P3 operand
 
2057
    value when it is a pointer to a structure rather than a pointer to
 
2058
    a string.</li>
 
2059
<li>When inserting an explicit NULL into an INTEGER PRIMARY KEY, convert
 
2060
    the NULL value into a unique key automatically.</li>
 
2061
</ul></p><a name="version_2_4_4"></a>
 
2062
<h3>2002 Mar 24 (2.4.4)</h3><p><ul>
 
2063
<li>Allow "VIEW" to be a column name</li>
 
2064
<li>Added support for CASE expressions (patch from Dan Kennedy)</li>
 
2065
<li>Added RPMS to the delivery (patches from Doug Henry)</li>
 
2066
<li>Fix typos in the documentation</li>
 
2067
<li>Cut over configuration management to a new CVS repository with
 
2068
    its own CVSTrac bug tracking system.</li>
 
2069
</ul></p><a name="version_2_4_3"></a>
 
2070
<h3>2002 Mar 22 (2.4.3)</h3><p><ul>
 
2071
<li>Fix a bug in SELECT that occurs when a compound SELECT is used as a
 
2072
    subquery in the FROM of a SELECT.</li>
 
2073
<li>The <b>sqlite_get_table()</b> function now returns an error if you
 
2074
    give it two or more SELECTs that return different numbers of columns.</li>
 
2075
</ul></p><a name="version_2_4_2"></a>
 
2076
<h3>2002 Mar 14 (2.4.2)</h3><p><ul>
 
2077
<li>Bug fix: Fix an assertion failure that occurred when ROWID was a column
 
2078
    in a SELECT statement on a view.</li>
 
2079
<li>Bug fix: Fix an uninitialized variable in the VDBE that would could an
 
2080
    assert failure.</li>
 
2081
<li>Make the os.h header file more robust in detecting when the compile is
 
2082
    for Windows and when it is for Unix.</li>
 
2083
</ul></p><a name="version_2_4_1"></a>
 
2084
<h3>2002 Mar 13 (2.4.1)</h3><p><ul>
 
2085
<li>Using an unnamed subquery in a FROM clause would cause a segfault.</li>
 
2086
<li>The parser now insists on seeing a semicolon or the end of input before
 
2087
    executing a statement.  This avoids an accidental disaster if the
 
2088
    WHERE keyword is misspelled in an UPDATE or DELETE statement.</li>
 
2089
</ul></p><a name="version_2_4_0"></a>
 
2090
<h3>2002 Mar 10 (2.4.0)</h3><p><ul>
 
2091
<li>Change the name of the sanity_check PRAGMA to <b>integrity_check</b>
 
2092
    and make it available in all compiles.</li>
 
2093
<li>SELECT min() or max() of an indexed column with no WHERE or GROUP BY
 
2094
    clause is handled as a special case which avoids a complete table scan.</li>
 
2095
<li>Automatically generated ROWIDs are now sequential.</li>
 
2096
<li>Do not allow dot-commands of the command-line shell to occur in the
 
2097
    middle of a real SQL command.</li>
 
2098
<li>Modifications to the "lemon" parser generator so that the parser tables
 
2099
    are 4 times smaller.</li>
 
2100
<li>Added support for user-defined functions implemented in C.</li>
 
2101
<li>Added support for new functions: <b>coalesce()</b>, <b>lower()</b>,
 
2102
    <b>upper()</b>, and <b>random()</b>
 
2103
<li>Added support for VIEWs.</li>
 
2104
<li>Added the subquery flattening optimizer.</li>
 
2105
<li>Modified the B-Tree and Pager modules so that disk pages that do not
 
2106
    contain real data (free pages) are not journaled and are not
 
2107
    written from memory back to the disk when they change.  This does not 
 
2108
    impact database integrity, since the
 
2109
    pages contain no real data, but it does make large INSERT operations
 
2110
    about 2.5 times faster and large DELETEs about 5 times faster.</li>
 
2111
<li>Made the CACHE_SIZE pragma persistent</li>
 
2112
<li>Added the SYNCHRONOUS pragma</li>
 
2113
<li>Fixed a bug that was causing updates to fail inside of transactions when
 
2114
    the database contained a temporary table.</li>
 
2115
</ul></p><a name="version_2_3_3"></a>
 
2116
<h3>2002 Feb 18 (2.3.3)</h3><p><ul>
 
2117
<li>Allow identifiers to be quoted in square brackets, for compatibility
 
2118
    with MS-Access.</li>
 
2119
<li>Added support for sub-queries in the FROM clause of a SELECT.</li>
 
2120
<li>More efficient implementation of sqliteFileExists() under Windows.
 
2121
    (by Joel Luscy)</li>
 
2122
<li>The VALUES clause of an INSERT can now contain expressions, including
 
2123
    scalar SELECT clauses.</li>
 
2124
<li>Added support for CREATE TABLE AS SELECT</li>
 
2125
<li>Bug fix: Creating and dropping a table all within a single
 
2126
    transaction was not working.</li>
 
2127
</ul></p><a name="version_2_3_2"></a>
 
2128
<h3>2002 Feb 14 (2.3.2)</h3><p><ul>
 
2129
<li>Bug fix: There was an incorrect assert() in pager.c.  The real code was
 
2130
    all correct (as far as is known) so everything should work OK if you
 
2131
    compile with -DNDEBUG=1.  When asserts are not disabled, there
 
2132
    could be a fault.</li>
 
2133
</ul></p><a name="version_2_3_1"></a>
 
2134
<h3>2002 Feb 13 (2.3.1)</h3><p><ul>
 
2135
<li>Bug fix: An assertion was failing if "PRAGMA full_column_names=ON;" was
 
2136
    set and you did a query that used a rowid, like this:  
 
2137
    "SELECT rowid, * FROM ...".</li>
 
2138
</ul></p><a name="version_2_3_0"></a>
 
2139
<h3>2002 Jan 30 (2.3.0)</h3><p><ul>
 
2140
<li>Fix a serious bug in the INSERT command which was causing data to go
 
2141
    into the wrong columns if the data source was a SELECT and the INSERT
 
2142
    clauses specified its columns in some order other than the default.</li>
 
2143
<li>Added the ability to resolve constraint conflicts is ways other than
 
2144
    an abort and rollback.  See the documentation on the "ON CONFLICT"
 
2145
    clause for details.</li>
 
2146
<li>Temporary files are now automatically deleted by the operating system
 
2147
    when closed.  There are no more dangling temporary files on a program
 
2148
    crash.  (If the OS crashes, fsck will delete the file after reboot 
 
2149
    under Unix.  I do not know what happens under Windows.)</li>
 
2150
<li>NOT NULL constraints are honored.</li>
 
2151
<li>The COPY command puts NULLs in columns whose data is '\N'.</li>
 
2152
<li>In the COPY command, backslash can now be used to escape a newline.</li>
 
2153
<li>Added the SANITY_CHECK pragma.</li>
 
2154
</ul></p><a name="version_2_2_5"></a>
 
2155
<h3>2002 Jan 28 (2.2.5)</h3><p><ul>
 
2156
<li>Important bug fix: the IN operator was not working if either the
 
2157
    left-hand or right-hand side was derived from an INTEGER PRIMARY KEY.</li>
 
2158
<li>Do not escape the backslash '\' character in the output of the
 
2159
    <b>sqlite</b> command-line access program.</li>
 
2160
</ul></p><a name="version_2_2_4"></a>
 
2161
<h3>2002 Jan 22 (2.2.4)</h3><p><ul>
 
2162
<li>The label to the right of an AS in the column list of a SELECT can now
 
2163
    be used as part of an expression in the WHERE, ORDER BY, GROUP BY, and/or
 
2164
    HAVING clauses.</li>
 
2165
<li>Fix a bug in the <b>-separator</b> command-line option to the <b>sqlite</b>
 
2166
    command.</li>
 
2167
<li>Fix a problem with the sort order when comparing upper-case strings against
 
2168
    characters greater than 'Z' but less than 'a'.</li>
 
2169
<li>Report an error if an ORDER BY or GROUP BY expression is constant.</li>
 
2170
</ul></p><a name="version_2_2_3"></a>
 
2171
<h3>2002 Jan 16 (2.2.3)</h3><p><ul>
 
2172
<li>Fix warning messages in VC++ 7.0.  (Patches from nicolas352001)</li>
 
2173
<li>Make the library thread-safe.  (The code is there and appears to work
 
2174
    but has not been stressed.)</li>
 
2175
<li>Added the new <b>sqlite_last_insert_rowid()</b> API function.</li>
 
2176
</ul></p><a name="version_2_2_2"></a>
 
2177
<h3>2002 Jan 13 (2.2.2)</h3><p><ul>
 
2178
<li>Bug fix: An assertion was failing when a temporary table with an index
 
2179
    had the same name as a permanent table created by a separate process.</li>
 
2180
<li>Bug fix: Updates to tables containing an INTEGER PRIMARY KEY and an
 
2181
    index could fail.</li>
 
2182
</ul></p><a name="version_2_2_1"></a>
 
2183
<h3>2002 Jan 9 (2.2.1)</h3><p><ul>
 
2184
<li>Bug fix: An attempt to delete a single row of a table with a WHERE
 
2185
    clause of "ROWID=x" when no such rowid exists was causing an error.</li>
 
2186
<li>Bug fix: Passing in a NULL as the 3rd parameter to <b>sqlite_open()</b>
 
2187
    would sometimes cause a coredump.</li>
 
2188
<li>Bug fix: DROP TABLE followed by a CREATE TABLE with the same name all
 
2189
    within a single transaction was causing a coredump.</li>
 
2190
<li>Makefile updates from A. Rottmann</li>
 
2191
</ul></p><a name="version_2_2_0"></a>
 
2192
<h3>2001 Dec 22 (2.2.0)</h3><p><ul>
 
2193
<li>Columns of type INTEGER PRIMARY KEY are actually used as the primary
 
2194
    key in underlying B-Tree representation of the table.</li>
 
2195
<li>Several obscure, unrelated bugs were found and fixed while 
 
2196
    implemented the integer primary key change of the previous bullet.</li>
 
2197
<li>Added the ability to specify "*" as part of a larger column list in
 
2198
    the result section of a SELECT statement.  For example:
 
2199
    <nobr>"<b>SELECT rowid, * FROM table1;</b>"</nobr>.</li>
 
2200
<li>Updates to comments and documentation.</li>
 
2201
</ul></p><a name="version_2_1_7"></a>
 
2202
<h3>2001 Dec 14 (2.1.7)</h3><p><ul>
 
2203
<li>Fix a bug in <b>CREATE TEMPORARY TABLE</b> which was causing the
 
2204
    table to be initially allocated in the main database file instead
 
2205
    of in the separate temporary file.  This bug could cause the library
 
2206
    to suffer an assertion failure and it could cause "page leaks" in the
 
2207
    main database file.
 
2208
<li>Fix a bug in the b-tree subsystem that could sometimes cause the first
 
2209
    row of a table to be repeated during a database scan.</li>
 
2210
</ul></p><a name="version_2_1_6"></a>
 
2211
<h3>2001 Dec 14 (2.1.6)</h3><p><ul>
 
2212
<li>Fix the locking mechanism yet again to prevent
 
2213
    <b>sqlite_exec()</b> from returning SQLITE_PROTOCOL
 
2214
    unnecessarily.  This time the bug was a race condition in
 
2215
    the locking code.  This change affects both POSIX and Windows users.</li>
 
2216
</ul></p><a name="version_2_1_5"></a>
 
2217
<h3>2001 Dec 6 (2.1.5)</h3><p><ul>
 
2218
<li>Fix for another problem (unrelated to the one fixed in 2.1.4) 
 
2219
    that sometimes causes <b>sqlite_exec()</b> to return SQLITE_PROTOCOL
 
2220
    unnecessarily.  This time the bug was
 
2221
    in the POSIX locking code and should not effect Windows users.</li>
 
2222
</ul></p><a name="version_2_1_4"></a>
 
2223
<h3>2001 Dec 4 (2.1.4)</h3><p><ul>
 
2224
<li>Sometimes <b>sqlite_exec()</b> would return SQLITE_PROTOCOL when it
 
2225
    should have returned SQLITE_BUSY.</li>
 
2226
<li>The fix to the previous bug uncovered a deadlock which was also
 
2227
    fixed.</li>
 
2228
<li>Add the ability to put a single .command in the second argument
 
2229
    of the sqlite shell</li>
 
2230
<li>Updates to the FAQ</li>
 
2231
</ul></p><a name="version_2_1_3"></a>
 
2232
<h3>2001 Nov 23 (2.1.3)</h3><p><ul>
 
2233
<li>Fix the behavior of comparison operators 
 
2234
    (ex: "<b>&lt</b>", "<b>==</b>", etc.)
 
2235
    so that they are consistent with the order of entries in an index.</li>
 
2236
<li>Correct handling of integers in SQL expressions that are larger than
 
2237
    what can be represented by the machine integer.</li>
 
2238
</ul></p><a name="version_2_1_2"></a>
 
2239
<h3>2001 Nov 22 (2.1.2)</h3><p><ul>
 
2240
<li>Changes to support 64-bit architectures.</li>
 
2241
<li>Fix a bug in the locking protocol.</li>
 
2242
<li>Fix a bug that could (rarely) cause the database to become 
 
2243
    unreadable after a DROP TABLE due to corruption to the SQLITE_MASTER
 
2244
    table.</li>
 
2245
<li>Change the code so that version 2.1.1 databases that were rendered 
 
2246
    unreadable by the above bug can be read by this version of
 
2247
    the library even though the SQLITE_MASTER table is (slightly)
 
2248
    corrupted.</li>
 
2249
</ul></p><a name="version_2_1_1"></a>
 
2250
<h3>2001 Nov 13 (2.1.1)</h3><p><ul>
 
2251
<li>Bug fix: Sometimes arbitrary strings were passed to the callback
 
2252
    function when the actual value of a column was NULL.</li>
 
2253
</ul></p><a name="version_2_1_0"></a>
 
2254
<h3>2001 Nov 12 (2.1.0)</h3><p><ul>
 
2255
<li>Change the format of data records so that records up to 16MB in size
 
2256
    can be stored.</li>
 
2257
<li>Change the format of indices to allow for better query optimization.</li>
 
2258
<li>Implement the "LIMIT ... OFFSET ..." clause on SELECT statements.</li>
 
2259
</ul></p><a name="version_2_0_8"></a>
 
2260
<h3>2001 Nov 3 (2.0.8)</h3><p><ul>
 
2261
<li>Made selected parameters in API functions <b>const</b>. This should
 
2262
    be fully backwards compatible.</li>
 
2263
<li>Documentation updates</li>
 
2264
<li>Simplify the design of the VDBE by restricting the number of sorters
 
2265
    and lists to 1.
 
2266
    In practice, no more than one sorter and one list was ever used anyhow.
 
2267
    </li>
 
2268
</ul></p><a name="version_2_0_7"></a>
 
2269
<h3>2001 Oct 21 (2.0.7)</h3><p><ul>
 
2270
<li>Any UTF-8 character or ISO8859 character can be used as part of
 
2271
    an identifier.</li>
 
2272
<li>Patches from Christian Werner to improve ODBC compatibility and to
 
2273
    fix a bug in the round() function.</li>
 
2274
<li>Plug some memory leaks that use to occur if malloc() failed.
 
2275
    We have been and continue to be memory leak free as long as
 
2276
    malloc() works.</li>
 
2277
<li>Changes to some test scripts so that they work on Windows in
 
2278
    addition to Unix.</li>
 
2279
</ul></p><a name="version_2_0_6"></a>
 
2280
<h3>2001 Oct 19 (2.0.6)</h3><p><ul>
 
2281
<li>Added the EMPTY_RESULT_CALLBACKS pragma</li>
 
2282
<li>Support for UTF-8 and ISO8859 characters in column and table names.</li>
 
2283
<li>Bug fix: Compute correct table names with the FULL_COLUMN_NAMES pragma
 
2284
    is turned on.</li>
 
2285
</ul></p><a name="version_2_0_5"></a>
 
2286
<h3>2001 Oct 14 (2.0.5)</h3><p><ul>
 
2287
<li>Added the COUNT_CHANGES pragma.</li>
 
2288
<li>Changes to the FULL_COLUMN_NAMES pragma to help out the ODBC driver.</li>
 
2289
<li>Bug fix: "SELECT count(*)" was returning NULL for empty tables.
 
2290
    Now it returns 0.</li>
 
2291
</ul></p><a name="version_2_0_4"></a>
 
2292
<h3>2001 Oct 13 (2.0.4)</h3><p><ul>
 
2293
<li>Bug fix: an obscure and relatively harmless bug was causing one of
 
2294
    the tests to fail when gcc optimizations are turned on.  This release
 
2295
    fixes the problem.</li>
 
2296
</ul></p><a name="version_2_0_3"></a>
 
2297
<h3>2001 Oct 13 (2.0.3)</h3><p><ul>
 
2298
<li>Bug fix: the <b>sqlite_busy_timeout()</b> function was delaying 1000
 
2299
    times too long before failing.</li>
 
2300
<li>Bug fix: an assertion was failing if the disk holding the database
 
2301
    file became full or stopped accepting writes for some other reason.
 
2302
    New tests were added to detect similar problems in the future.</li>
 
2303
<li>Added new operators: <b>&amp;</b> (bitwise-and)
 
2304
    <b>|</b> (bitwise-or), <b>~</b> (ones-complement),
 
2305
    <b>&lt;&lt;</b> (shift left), <b>&gt;&gt;</b> (shift right).</li>
 
2306
<li>Added new functions: <b>round()</b> and <b>abs()</b>.</li>
 
2307
</ul></p><a name="version_2_0_2"></a>
 
2308
<h3>2001 Oct 9 (2.0.2)</h3><p><ul>
 
2309
<li>Fix two bugs in the locking protocol.  (One was masking the other.)</li>
 
2310
<li>Removed some unused "#include <unistd.h>" that were causing problems
 
2311
    for VC++.</li>
 
2312
<li>Fixed <b>sqlite.h</b> so that it is usable from C++</li>
 
2313
<li>Added the FULL_COLUMN_NAMES pragma.  When set to "ON", the names of
 
2314
    columns are reported back as TABLE.COLUMN instead of just COLUMN.</li>
 
2315
<li>Added the TABLE_INFO() and INDEX_INFO() pragmas to help support the
 
2316
    ODBC interface.</li>
 
2317
<li>Added support for TEMPORARY tables and indices.</li>
 
2318
</ul></p><a name="version_2_0_1"></a>
 
2319
<h3>2001 Oct 2 (2.0.1)</h3><p><ul>
 
2320
<li>Remove some C++ style comments from btree.c so that it will compile
 
2321
    using compilers other than gcc.</li>
 
2322
<li>The ".dump" output from the shell does not work if there are embedded
 
2323
    newlines anywhere in the data.  This is an old bug that was carried
 
2324
    forward from version 1.0.  To fix it, the ".dump" output no longer
 
2325
    uses the COPY command.  It instead generates INSERT statements.</li>
 
2326
<li>Extend the expression syntax to support "expr NOT NULL" (with a
 
2327
    space between the "NOT" and the "NULL") in addition to "expr NOTNULL"
 
2328
    (with no space).</li>
 
2329
</ul></p><a name="version_2_0_0"></a>
 
2330
<h3>2001 Sep 28 (2.0.0)</h3><p><ul>
 
2331
<li>Automatically build binaries for Linux and Windows and put them on
 
2332
    the website.</li>
 
2333
</ul></p><h3>2001 Sep 28 (2.0-alpha-4)</h3><p><ul>
 
2334
<li>Incorporate makefile patches form A. Rottmann to use LIBTOOL</li>
 
2335
</ul></p><h3>2001 Sep 27 (2.0-alpha-3)</h3><p><ul>
 
2336
<li>SQLite now honors the UNIQUE keyword in CREATE UNIQUE INDEX.  Primary
 
2337
    keys are required to be unique.</li>
 
2338
<li>File format changed back to what it was for alpha-1</li>
 
2339
<li>Fixes to the rollback and locking behavior</li>
 
2340
</ul></p><h3>2001 Sep 20 (2.0-alpha-2)</h3><p><ul>
 
2341
<li>Initial release of version 2.0.  The idea of renaming the library
 
2342
    to "SQLus" was abandoned in favor of keeping the "SQLite" name and
 
2343
    bumping the major version number.</li>
 
2344
<li>The pager and btree subsystems added back. They are now the only
 
2345
    available backend.</li>
 
2346
<li>The Dbbe abstraction and the GDBM and memory drivers were removed.</li>
 
2347
<li>Copyright on all code was disclaimed.  The library is now in the
 
2348
    public domain.</li>
 
2349
</ul></p><a name="version_1_0_32"></a>
 
2350
<h3>2001 Jul 23 (1.0.32)</h3><p><ul>
 
2351
<li>Pager and btree subsystems removed.  These will be used in a follow-on
 
2352
    SQL server library named "SQLus".</li>
 
2353
<li>Add the ability to use quoted strings as table and column names in
 
2354
    expressions.</li>
 
2355
</ul></p><a name="version_1_0_31"></a>
 
2356
<h3>2001 Apr 14 (1.0.31)</h3><p><ul>
 
2357
<li>Pager subsystem added but not yet used.</li>
 
2358
<li>More robust handling of out-of-memory errors.</li>
 
2359
<li>New tests added to the test suite.</li>
 
2360
</ul></p><a name="version_1_0_30"></a>
 
2361
<h3>2001 Apr 6 (1.0.30)</h3><p><ul>
 
2362
<li>Remove the <b>sqlite_encoding</b> TCL variable that was introduced
 
2363
    in the previous version.</li>
 
2364
<li>Add options <b>-encoding</b> and <b>-tcl-uses-utf</b> to the
 
2365
    <b>sqlite</b> TCL command.</li>
 
2366
<li>Add tests to make sure that tclsqlite was compiled using Tcl header
 
2367
    files and libraries that match.</li>
 
2368
</ul></p><a name="version_1_0_29"></a>
 
2369
<h3>2001 Apr 5 (1.0.29)</h3><p><ul>
 
2370
<li>The library now assumes data is stored as UTF-8 if the --enable-utf8
 
2371
    option is given to configure.  The default behavior is to assume
 
2372
    iso8859-x, as it has always done.  This only makes a difference for
 
2373
    LIKE and GLOB operators and the LENGTH and SUBSTR functions.</li>
 
2374
<li>If the library is not configured for UTF-8 and the Tcl library
 
2375
    is one of the newer ones that uses UTF-8 internally,
 
2376
    then a conversion from UTF-8 to iso8859 and
 
2377
    back again is done inside the TCL interface.</li>
 
2378
</ul></p><a name="version_1_0_28"></a>
 
2379
<h3>2001 Apr 4 (1.0.28)</h3><p><ul>
 
2380
<li>Added limited support for transactions.  At this point, transactions
 
2381
    will do table locking on the GDBM backend.  There is no support (yet)
 
2382
    for rollback or atomic commit.</li>
 
2383
<li>Added special column names ROWID, OID, and _ROWID_ that refer to the
 
2384
    unique random integer key associated with every row of every table.</li>
 
2385
<li>Additional tests added to the regression suite to cover the new ROWID
 
2386
    feature and the TCL interface bugs mentioned below.</li>
 
2387
<li>Changes to the "lemon" parser generator to help it work better when
 
2388
    compiled using MSVC.</li>
 
2389
<li>Bug fixes in the TCL interface identified by Oleg Oleinick.</li>
 
2390
</ul></p><a name="version_1_0_27"></a>
 
2391
<h3>2001 Mar 20 (1.0.27)</h3><p><ul>
 
2392
<li>When doing DELETE and UPDATE, the library used to write the record
 
2393
    numbers of records to be deleted or updated into a temporary file.
 
2394
    This is changed so that the record numbers are held in memory.</li>
 
2395
<li>The DELETE command without a WHILE clause just removes the database
 
2396
    files from the disk, rather than going through and deleting record
 
2397
    by record.</li>
 
2398
</ul></p><a name="version_1_0_26"></a>
 
2399
<h3>2001 Mar 20 (1.0.26)</h3><p><ul>
 
2400
<li>A serious bug fixed on Windows.  Windows users should upgrade.
 
2401
    No impact to Unix.</li>
 
2402
</ul></p><a name="version_1_0_25"></a>
 
2403
<h3>2001 Mar 15 (1.0.25)</h3><p><ul>
 
2404
<li>Modify the test scripts to identify tests that depend on system
 
2405
    load and processor speed and
 
2406
    to warn the user that a failure of one of those (rare) tests does
 
2407
    not necessarily mean the library is malfunctioning.  No changes to
 
2408
    code.
 
2409
    </li>
 
2410
</ul></p><a name="version_1_0_24"></a>
 
2411
<h3>2001 Mar 14 (1.0.24)</h3><p><ul>
 
2412
<li>Fix a bug which was causing
 
2413
    the UPDATE command to fail on systems where "malloc(0)" returns
 
2414
    NULL.  The problem does not appear on Windows, Linux, or HPUX but does 
 
2415
    cause the library to fail on QNX.
 
2416
    </li>
 
2417
</ul></p><a name="version_1_0_23"></a>
 
2418
<h3>2001 Feb 19 (1.0.23)</h3><p><ul>
 
2419
<li>An unrelated (and minor) bug from Mark Muranwski fixed.  The algorithm
 
2420
    for figuring out where to put temporary files for a "memory:" database
 
2421
    was not working quite right.
 
2422
    </li>
 
2423
</ul></p><a name="version_1_0_22"></a>
 
2424
<h3>2001 Feb 19 (1.0.22)</h3><p><ul>
 
2425
<li>The previous fix was not quite right.  This one seems to work better.
 
2426
    </li>
 
2427
</ul></p><a name="version_1_0_21"></a>
 
2428
<h3>2001 Feb 19 (1.0.21)</h3><p><ul>
 
2429
<li>The UPDATE statement was not working when the WHERE clause contained
 
2430
    some terms that could be satisfied using indices and other terms that
 
2431
    could not.  Fixed.</li>
 
2432
</ul></p><a name="version_1_0_20"></a>
 
2433
<h3>2001 Feb 11 (1.0.20)</h3><p><ul>
 
2434
<li>Merge development changes into the main trunk.  Future work toward
 
2435
    using a BTree file structure will use a separate CVS source tree.  This
 
2436
    CVS tree will continue to support the GDBM version of SQLite only.</li>
 
2437
</ul></p><a name="version_1_0_19"></a>
 
2438
<h3>2001 Feb 6 (1.0.19)</h3><p><ul>
 
2439
<li>Fix a strange (but valid) C declaration that was causing problems
 
2440
    for QNX.  No logical changes.</li>
 
2441
</ul></p><a name="version_1_0_18"></a>
 
2442
<h3>2001 Jan 4 (1.0.18)</h3><p><ul>
 
2443
<li>Print the offending SQL statement when an error occurs.</li>
 
2444
<li>Do not require commas between constraints in CREATE TABLE statements.</li>
 
2445
<li>Added the "-echo" option to the shell.</li>
 
2446
<li>Changes to comments.</li>
 
2447
</ul></p><a name="version_1_0_17"></a>
 
2448
<h3>2000 Dec 10 (1.0.17)</h3><p><ul>
 
2449
<li>Rewrote <b>sqlite_complete()</b> to make it faster.</li>
 
2450
<li>Minor tweaks to other code to make it run a little faster.</li>
 
2451
<li>Added new tests for <b>sqlite_complete()</b> and for memory leaks.</li>
 
2452
</ul></p><a name="version_1_0_16"></a>
 
2453
<h3>2000 Dec 4 (1.0.16)</h3><p><ul>
 
2454
<li>Documentation updates.  Mostly fixing of typos and spelling errors.</li>
 
2455
</ul></p><a name="version_1_0_15"></a>
 
2456
<h3>2000 Oct 23 (1.0.15)</h3><p><ul>
 
2457
<li>Documentation updates</li>
 
2458
<li>Some sanity checking code was removed from the inner loop of vdbe.c
 
2459
    to help the library to run a little faster.  The code is only
 
2460
    removed if you compile with -DNDEBUG.</li>
 
2461
</ul></p><a name="version_1_0_14"></a>
 
2462
<h3>2000 Oct 19 (1.0.14)</h3><p><ul>
 
2463
<li>Added a "memory:" backend driver that stores its database in an
 
2464
    in-memory hash table.</li>
 
2465
</ul></p><a name="version_1_0_13"></a>
 
2466
<h3>2000 Oct 18 (1.0.13)</h3><p><ul>
 
2467
<li>Break out the GDBM driver into a separate file in anticipation
 
2468
    to added new drivers.</li>
 
2469
<li>Allow the name of a database to be prefixed by the driver type.
 
2470
    For now, the only driver type is "gdbm:".</li>
 
2471
</ul></p><a name="version_1_0_12"></a>
 
2472
<h3>2000 Oct 16 (1.0.12)</h3><p><ul>
 
2473
<li>Fixed an off-by-one error that was causing a coredump in 
 
2474
    the '%q' format directive of the new
 
2475
    <b>sqlite_..._printf()</b> routines.</li>
 
2476
<li>Added the <b>sqlite_interrupt()</b> interface.</li>
 
2477
<li>In the shell, <b>sqlite_interrupt()</b> is invoked when the
 
2478
    user presses Control-C</li>
 
2479
<li>Fixed some instances where <b>sqlite_exec()</b> was
 
2480
    returning the wrong error code.</li>
 
2481
</ul></p><a name="version_1_0_10"></a>
 
2482
<h3>2000 Oct 11 (1.0.10)</h3><p><ul>
 
2483
<li>Added notes on how to compile for Windows95/98.</li>
 
2484
<li>Removed a few variables that were not being used.  Etc.</li>
 
2485
</ul></p><a name="version_1_0_9"></a>
 
2486
<h3>2000 Oct 8 (1.0.9)</h3><p><ul>
 
2487
<li>Added the <b>sqlite_..._printf()</b> interface routines.</li>
 
2488
<li>Modified the <b>sqlite</b> shell program to use the new interface 
 
2489
    routines.</li>
 
2490
<li>Modified the <b>sqlite</b> shell program to print the schema for
 
2491
    the built-in SQLITE_MASTER table, if explicitly requested.</li>
 
2492
</ul></p><a name="version_1_0_8"></a>
 
2493
<h3>2000 Sep 30 (1.0.8)</h3><p><ul>
 
2494
<li>Begin writing documentation on the TCL interface.</li>
 
2495
</ul></p><h3>2000 Sep 29 (Not Released)</h3><p><ul>
 
2496
<li>Added the <b>sqlite_get_table()</b> API</li>
 
2497
<li>Updated the documentation for due to the above change.</li>
 
2498
<li>Modified the <b>sqlite</b> shell to make use of the new
 
2499
    sqlite_get_table() API in order to print a list of tables
 
2500
    in multiple columns, similar to the way "ls" prints filenames.</li>
 
2501
<li>Modified the <b>sqlite</b> shell to print a semicolon at the
 
2502
    end of each CREATE statement in the output of the ".schema" command.</li>
 
2503
</ul></p><h3>2000 Sep 21 (Not Released)</h3><p><ul>
 
2504
<li>Change the tclsqlite "eval" method to return a list of results if
 
2505
    no callback script is specified.</li>
 
2506
<li>Change tclsqlite.c to use the Tcl_Obj interface</li>
 
2507
<li>Add tclsqlite.c to the libsqlite.a library</li>
 
2508
</ul></p><h3>2000 Sep 13 (Version 1.0.5)</h3><p><ul>
 
2509
<li>Changed the print format for floating point values from "%g" to "%.15g".
 
2510
    </li>
 
2511
<li>Changed the comparison function so that numbers in exponential notation
 
2512
    (ex: 1.234e+05) sort in numerical order.</li>
 
2513
</ul></p><h3>2000 Aug 28 (Version 1.0.4)</h3><p><ul>
 
2514
<li>Added functions <b>length()</b> and <b>substr()</b>.</li>
 
2515
<li>Fix a bug in the <b>sqlite</b> shell program that was causing
 
2516
    a coredump when the output mode was "column" and the first row
 
2517
    of data contained a NULL.</li>
 
2518
</ul></p><h3>2000 Aug 22 (Version 1.0.3)</h3><p><ul>
 
2519
<li>In the sqlite shell, print the "Database opened READ ONLY" message
 
2520
    to stderr instead of stdout.</li>
 
2521
<li>In the sqlite shell, now print the version number on initial startup.</li>
 
2522
<li>Add the <b>sqlite_version&#91;&#93;</b> string constant to the library</li>
 
2523
<li>Makefile updates</li>
 
2524
<li>Bug fix: incorrect VDBE code was being generated for the following
 
2525
    circumstance: a query on an indexed table containing a WHERE clause with
 
2526
    an IN operator that had a subquery on its right-hand side.</li>
 
2527
</ul></p><h3>2000 Aug 18 (Version 1.0.1)</h3><p><ul>
 
2528
<li>Fix a bug in the configure script.</li>
 
2529
<li>Minor revisions to the website.</li>
 
2530
</ul></p><h3>2000 Aug 17 (Version 1.0)</h3><p><ul>
 
2531
<li>Change the <b>sqlite</b> program so that it can read
 
2532
    databases for which it lacks write permission.  (It used to
 
2533
    refuse all access if it could not write.)</li>
 
2534
</ul></p><h3>2000 Aug 9</h3><p><ul>
 
2535
<li>Treat carriage returns as white space.</li>
 
2536
</ul></p><h3>2000 Aug 8</h3><p><ul>
 
2537
<li>Added pattern matching to the ".table" command in the "sqlite"
 
2538
command shell.</li>
 
2539
</ul></p><h3>2000 Aug 4</h3><p><ul>
 
2540
<li>Documentation updates</li>
 
2541
<li>Added "busy" and "timeout" methods to the Tcl interface</li>
 
2542
</ul></p><h3>2000 Aug 3</h3><p><ul>
 
2543
<li>File format version number was being stored in sqlite_master.tcl
 
2544
    multiple times. This was harmless, but unnecessary. It is now fixed.</li>
 
2545
</ul></p><h3>2000 Aug 2</h3><p><ul>
 
2546
<li>The file format for indices was changed slightly in order to work
 
2547
    around an inefficiency that can sometimes come up with GDBM when
 
2548
    there are large indices having many entries with the same key.
 
2549
    <font color="red">** Incompatible Change **</font></li>
 
2550
</ul></p><h3>2000 Aug 1</h3><p><ul>
 
2551
<li>The parser's stack was overflowing on a very long UPDATE statement.
 
2552
    This is now fixed.</li>
 
2553
</ul></p><h3>2000 July 31</h3><p><ul>
 
2554
<li>Finish the <a href="vdbe.html">VDBE tutorial</a>.</li>
 
2555
<li>Added documentation on compiling to WinNT.</li>
 
2556
<li>Fix a configuration program for WinNT.</li>
 
2557
<li>Fix a configuration problem for HPUX.</li>
 
2558
</ul></p><h3>2000 July 29</h3><p><ul>
 
2559
<li>Better labels on column names of the result.</li>
 
2560
</ul></p><h3>2000 July 28</h3><p><ul>
 
2561
<li>Added the <b>sqlite_busy_handler()</b> 
 
2562
    and <b>sqlite_busy_timeout()</b> interface.</li>
 
2563
</ul></p><h3>2000 June 23</h3><p><ul>
 
2564
<li>Begin writing the <a href="vdbe.html">VDBE tutorial</a>.</li>
 
2565
</ul></p><h3>2000 June 21</h3><p><ul>
 
2566
<li>Clean up comments and variable names.  Changes to documentation.
 
2567
    No functional changes to the code.</li>
 
2568
</ul></p><h3>2000 June 19</h3><p><ul>
 
2569
<li>Column names in UPDATE statements were case sensitive.
 
2570
    This mistake has now been fixed.</li>
 
2571
</ul></p><h3>2000 June 16</h3><p><ul>
 
2572
<li>Added the concatenate string operator (||)</li>
 
2573
</ul></p><h3>2000 June 12</h3><p><ul>
 
2574
<li>Added the fcnt() function to the SQL interpreter.  The fcnt() function
 
2575
    returns the number of database "Fetch" operations that have occurred.
 
2576
    This function is designed for use in test scripts to verify that
 
2577
    queries are efficient and appropriately optimized.  Fcnt() has no other
 
2578
    useful purpose, as far as I know.</li>
 
2579
<li>Added a bunch more tests that take advantage of the new fcnt() function.
 
2580
    The new tests did not uncover any new problems.</li>
 
2581
</ul></p><h3>2000 June 8</h3><p><ul>
 
2582
<li>Added lots of new test cases</li>
 
2583
<li>Fix a few bugs discovered while adding test cases</li>
 
2584
<li>Begin adding lots of new documentation</li>
 
2585
</ul></p><h3>2000 June 6</h3><p><ul>
 
2586
<li>Added compound select operators: <B>UNION</b>, <b>UNION ALL</B>,
 
2587
<b>INTERSECT</b>, and <b>EXCEPT</b></li>
 
2588
<li>Added support for using <b>(SELECT ...)</b> within expressions</li>
 
2589
<li>Added support for <b>IN</b> and <b>BETWEEN</b> operators</li>
 
2590
<li>Added support for <b>GROUP BY</b> and <b>HAVING</b></li>
 
2591
<li>NULL values are now reported to the callback as a NULL pointer
 
2592
    rather than an empty string.</li>
 
2593
</ul></p><h3>2000 June 3</h3><p><ul>
 
2594
<li>Added support for default values on columns of a table.</li>
 
2595
<li>Improved test coverage.  Fixed a few obscure bugs found by the
 
2596
improved tests.</li>
 
2597
</ul></p><h3>2000 June 2</h3><p><ul>
 
2598
<li>All database files to be modified by an UPDATE, INSERT or DELETE are 
 
2599
now locked before any changes are made to any files.  
 
2600
This makes it safe (I think) to access
 
2601
the same database simultaneously from multiple processes.</li>
 
2602
<li>The code appears stable so we are now calling it "beta".</li>
 
2603
</ul></p><h3>2000 June 1</h3><p><ul>
 
2604
<li>Better support for file locking so that two or more processes 
 
2605
(or threads)
 
2606
can access the same database simultaneously.  More work needed in
 
2607
this area, though.</li>
 
2608
</ul></p><h3>2000 May 31</h3><p><ul>
 
2609
<li>Added support for aggregate functions (Ex: <b>COUNT(*)</b>, <b>MIN(...)</b>)
 
2610
to the SELECT statement.</li>
 
2611
<li>Added support for <B>SELECT DISTINCT ...</B></li>
 
2612
</ul></p><h3>2000 May 30</h3><p><ul>
 
2613
<li>Added the <b>LIKE</b> operator.</li>
 
2614
<li>Added a <b>GLOB</b> operator: similar to <B>LIKE</B> 
 
2615
but it uses Unix shell globbing wildcards instead of the '%' 
 
2616
and '_' wildcards of SQL.</li>
 
2617
<li>Added the <B>COPY</b> command patterned after 
 
2618
<a href="http://www.postgresql.org/">PostgreSQL</a> so that SQLite
 
2619
can now read the output of the <b>pg_dump</b> database dump utility
 
2620
of PostgreSQL.</li>
 
2621
<li>Added a <B>VACUUM</B> command that calls the 
 
2622
<b>gdbm_reorganize()</b> function on the underlying database
 
2623
files.</li>
 
2624
<li>And many, many bug fixes...</li>
 
2625
</ul></p><h3>2000 May 29</h3><p><ul>
 
2626
<li>Initial Public Release of Alpha code</li>
 
2627
</ul></p>
 
2628
</dl>
 
2629