mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
updating to sqlite 3.6.21
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -119,9 +119,9 @@ extern "C" {
|
||||
**
|
||||
** Requirements: [H10011] [H10014]
|
||||
*/
|
||||
#define SQLITE_VERSION "3.6.18"
|
||||
#define SQLITE_VERSION_NUMBER 3006018
|
||||
#define SQLITE_SOURCE_ID "2009-09-11 14:05:07 b084828a771ec40be85f07c590ca99de4f6c24ee"
|
||||
#define SQLITE_VERSION "3.6.21"
|
||||
#define SQLITE_VERSION_NUMBER 3006021
|
||||
#define SQLITE_SOURCE_ID "2009-12-07 16:39:13 1ed88e9d01e9eda5cbc622e7614277f29bcc551c"
|
||||
|
||||
/*
|
||||
** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100>
|
||||
@@ -245,19 +245,9 @@ typedef sqlite_uint64 sqlite3_uint64;
|
||||
**
|
||||
** This routine is the destructor for the [sqlite3] object.
|
||||
**
|
||||
** Applications should [sqlite3_finalize | finalize] all [prepared statements]
|
||||
** Applications must [sqlite3_finalize | finalize] all [prepared statements]
|
||||
** and [sqlite3_blob_close | close] all [BLOB handles] associated with
|
||||
** the [sqlite3] object prior to attempting to close the object.
|
||||
** The [sqlite3_next_stmt()] interface can be used to locate all
|
||||
** [prepared statements] associated with a [database connection] if desired.
|
||||
** Typical code might look like this:
|
||||
**
|
||||
** <blockquote><pre>
|
||||
** sqlite3_stmt *pStmt;
|
||||
** while( (pStmt = sqlite3_next_stmt(db, 0))!=0 ){
|
||||
** sqlite3_finalize(pStmt);
|
||||
** }
|
||||
** </pre></blockquote>
|
||||
**
|
||||
** If [sqlite3_close()] is invoked while a transaction is open,
|
||||
** the transaction is automatically rolled back.
|
||||
@@ -835,6 +825,9 @@ struct sqlite3_vfs {
|
||||
** The sqlite3_initialize() routine initializes the
|
||||
** SQLite library. The sqlite3_shutdown() routine
|
||||
** deallocates any resources that were allocated by sqlite3_initialize().
|
||||
** These routines are designed to aid in process initialization and
|
||||
** shutdown on embedded systems. Workstation applications using
|
||||
** SQLite normally do not need to invoke either of these routines.
|
||||
**
|
||||
** A call to sqlite3_initialize() is an "effective" call if it is
|
||||
** the first time sqlite3_initialize() is invoked during the lifetime of
|
||||
@@ -846,11 +839,17 @@ struct sqlite3_vfs {
|
||||
** A call to sqlite3_shutdown() is an "effective" call if it is the first
|
||||
** call to sqlite3_shutdown() since the last sqlite3_initialize(). Only
|
||||
** an effective call to sqlite3_shutdown() does any deinitialization.
|
||||
** All other calls to sqlite3_shutdown() are harmless no-ops.
|
||||
** All other valid calls to sqlite3_shutdown() are harmless no-ops.
|
||||
**
|
||||
** Among other things, sqlite3_initialize() shall invoke
|
||||
** The sqlite3_initialize() interface is threadsafe, but sqlite3_shutdown()
|
||||
** is not. The sqlite3_shutdown() interface must only be called from a
|
||||
** single thread. All open [database connections] must be closed and all
|
||||
** other SQLite resources must be deallocated prior to invoking
|
||||
** sqlite3_shutdown().
|
||||
**
|
||||
** Among other things, sqlite3_initialize() will invoke
|
||||
** sqlite3_os_init(). Similarly, sqlite3_shutdown()
|
||||
** shall invoke sqlite3_os_end().
|
||||
** will invoke sqlite3_os_end().
|
||||
**
|
||||
** The sqlite3_initialize() routine returns [SQLITE_OK] on success.
|
||||
** If for some reason, sqlite3_initialize() is unable to initialize
|
||||
@@ -1296,6 +1295,9 @@ SQLITE_API int sqlite3_extended_result_codes(sqlite3*, int onoff);
|
||||
** For the purposes of this routine, an [INSERT] is considered to
|
||||
** be successful even if it is subsequently rolled back.
|
||||
**
|
||||
** This function is accessible to SQL statements via the
|
||||
** [last_insert_rowid() SQL function].
|
||||
**
|
||||
** Requirements:
|
||||
** [H12221] [H12223]
|
||||
**
|
||||
@@ -1316,8 +1318,9 @@ SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
|
||||
** on the [database connection] specified by the first parameter.
|
||||
** Only changes that are directly specified by the [INSERT], [UPDATE],
|
||||
** or [DELETE] statement are counted. Auxiliary changes caused by
|
||||
** triggers are not counted. Use the [sqlite3_total_changes()] function
|
||||
** to find the total number of changes including changes caused by triggers.
|
||||
** triggers or [foreign key actions] are not counted. Use the
|
||||
** [sqlite3_total_changes()] function to find the total number of changes
|
||||
** including changes caused by triggers and foreign key actions.
|
||||
**
|
||||
** Changes to a view that are simulated by an [INSTEAD OF trigger]
|
||||
** are not counted. Only real table changes are counted.
|
||||
@@ -1352,8 +1355,8 @@ SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*);
|
||||
** However, the number returned does not include changes
|
||||
** caused by subtriggers since those have their own context.
|
||||
**
|
||||
** See also the [sqlite3_total_changes()] interface and the
|
||||
** [count_changes pragma].
|
||||
** See also the [sqlite3_total_changes()] interface, the
|
||||
** [count_changes pragma], and the [changes() SQL function].
|
||||
**
|
||||
** Requirements:
|
||||
** [H12241] [H12243]
|
||||
@@ -1369,8 +1372,8 @@ SQLITE_API int sqlite3_changes(sqlite3*);
|
||||
**
|
||||
** This function returns the number of row changes caused by [INSERT],
|
||||
** [UPDATE] or [DELETE] statements since the [database connection] was opened.
|
||||
** The count includes all changes from all
|
||||
** [CREATE TRIGGER | trigger] contexts. However,
|
||||
** The count includes all changes from all [CREATE TRIGGER | trigger]
|
||||
** contexts and changes made by [foreign key actions]. However,
|
||||
** the count does not include changes used to implement [REPLACE] constraints,
|
||||
** do rollbacks or ABORT processing, or [DROP TABLE] processing. The
|
||||
** count does not include rows of views that fire an [INSTEAD OF trigger],
|
||||
@@ -1380,8 +1383,8 @@ SQLITE_API int sqlite3_changes(sqlite3*);
|
||||
** completed (when the statement handle is passed to [sqlite3_reset()] or
|
||||
** [sqlite3_finalize()]).
|
||||
**
|
||||
** See also the [sqlite3_changes()] interface and the
|
||||
** [count_changes pragma].
|
||||
** See also the [sqlite3_changes()] interface, the
|
||||
** [count_changes pragma], and the [total_changes() SQL function].
|
||||
**
|
||||
** Requirements:
|
||||
** [H12261] [H12263]
|
||||
@@ -2289,7 +2292,7 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);
|
||||
|
||||
/*
|
||||
** CAPI3REF: Run-Time Limit Categories {H12790} <H12760>
|
||||
** KEYWORDS: {limit category} {limit categories}
|
||||
** KEYWORDS: {limit category} {*limit categories}
|
||||
**
|
||||
** These constants define various performance limits
|
||||
** that can be lowered at run-time using [sqlite3_limit()].
|
||||
@@ -2395,7 +2398,7 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);
|
||||
** In the "v2" interfaces, the prepared statement
|
||||
** that is returned (the [sqlite3_stmt] object) contains a copy of the
|
||||
** original SQL text. This causes the [sqlite3_step()] interface to
|
||||
** behave a differently in two ways:
|
||||
** behave differently in three ways:
|
||||
**
|
||||
** <ol>
|
||||
** <li>
|
||||
@@ -2417,6 +2420,14 @@ SQLITE_API int sqlite3_limit(sqlite3*, int id, int newVal);
|
||||
** to find the underlying cause of the problem. With the "v2" prepare
|
||||
** interfaces, the underlying reason for the error is returned immediately.
|
||||
** </li>
|
||||
**
|
||||
** <li>
|
||||
** ^If the value of a [parameter | host parameter] in the WHERE clause might
|
||||
** change the query plan for a statement, then the statement may be
|
||||
** automatically recompiled (as if there had been a schema change) on the first
|
||||
** [sqlite3_step()] call following any change to the
|
||||
** [sqlite3_bind_text | bindings] of the [parameter].
|
||||
** </li>
|
||||
** </ol>
|
||||
**
|
||||
** Requirements:
|
||||
@@ -2949,6 +2960,8 @@ SQLITE_API int sqlite3_data_count(sqlite3_stmt *pStmt);
|
||||
** that was returned from [sqlite3_prepare_v2()] or one of its variants)
|
||||
** and the second argument is the index of the column for which information
|
||||
** should be returned. The leftmost column of the result set has the index 0.
|
||||
** The number of columns in the result can be determined using
|
||||
** [sqlite3_column_count()].
|
||||
**
|
||||
** If the SQL statement does not currently point to a valid row, or if the
|
||||
** column index is out of range, the result is undefined.
|
||||
@@ -4132,6 +4145,8 @@ SQLITE_API int sqlite3_table_column_metadata(
|
||||
** {H12606} Extension loading must be enabled using
|
||||
** [sqlite3_enable_load_extension()] prior to calling this API,
|
||||
** otherwise an error will be returned.
|
||||
**
|
||||
** See also the [load_extension() SQL function].
|
||||
*/
|
||||
SQLITE_API int sqlite3_load_extension(
|
||||
sqlite3 *db, /* Load the extension into this database connection */
|
||||
@@ -4511,6 +4526,9 @@ typedef struct sqlite3_blob sqlite3_blob;
|
||||
**
|
||||
** If the flags parameter is non-zero, then the BLOB is opened for read
|
||||
** and write access. If it is zero, the BLOB is opened for read access.
|
||||
** It is not possible to open a column that is part of an index or primary
|
||||
** key for writing. ^If [foreign key constraints] are enabled, it is
|
||||
** not possible to open a column that is part of a [child key] for writing.
|
||||
**
|
||||
** Note that the database name is not the filename that contains
|
||||
** the database but rather the symbolic name of the database that
|
||||
|
||||
@@ -14,8 +14,6 @@
|
||||
** an SQLite instance. Shared libraries that intend to be loaded
|
||||
** as extensions by SQLite should #include this file instead of
|
||||
** sqlite3.h.
|
||||
**
|
||||
** @(#) $Id: sqlite3ext.h,v 1.25 2008/10/12 00:27:54 shane Exp $
|
||||
*/
|
||||
#ifndef _SQLITE3EXT_H_
|
||||
#define _SQLITE3EXT_H_
|
||||
|
||||
Reference in New Issue
Block a user