| @@ -1,18 +1,18 @@ | | | @@ -1,18 +1,18 @@ |
1 | $NetBSD: patch-ab,v 1.3 2009/10/11 16:06:21 tnn Exp $ | | 1 | $NetBSD: patch-ab,v 1.4 2009/10/28 16:46:51 tnn Exp $ |
2 | | | 2 | |
3 | --- sqlite3.h.orig 2009-10-11 18:02:11.000000000 +0200 | | 3 | --- sqlite3.h.orig 2009-10-28 17:39:08.000000000 +0100 |
4 | +++ sqlite3.h | | 4 | +++ sqlite3.h |
5 | @@ -0,0 +1,5759 @@ | | 5 | @@ -0,0 +1,5763 @@ |
6 | +/* | | 6 | +/* |
7 | +** 2001 September 15 | | 7 | +** 2001 September 15 |
8 | +** | | 8 | +** |
9 | +** The author disclaims copyright to this source code. In place of | | 9 | +** The author disclaims copyright to this source code. In place of |
10 | +** a legal notice, here is a blessing: | | 10 | +** a legal notice, here is a blessing: |
11 | +** | | 11 | +** |
12 | +** May you do good and not evil. | | 12 | +** May you do good and not evil. |
13 | +** May you find forgiveness for yourself and forgive others. | | 13 | +** May you find forgiveness for yourself and forgive others. |
14 | +** May you share freely, never taking more than you give. | | 14 | +** May you share freely, never taking more than you give. |
15 | +** | | 15 | +** |
16 | +************************************************************************* | | 16 | +************************************************************************* |
17 | +** This header file defines the interface that the SQLite library | | 17 | +** This header file defines the interface that the SQLite library |
18 | +** presents to client programs. If a C-function, structure, datatype, | | 18 | +** presents to client programs. If a C-function, structure, datatype, |
| @@ -114,29 +114,29 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 | | | @@ -114,29 +114,29 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 |
114 | +** <a href="http://www.fossil-scm.org/">fossil configuration management | | 114 | +** <a href="http://www.fossil-scm.org/">fossil configuration management |
115 | +** system</a>. The SQLITE_SOURCE_ID | | 115 | +** system</a>. The SQLITE_SOURCE_ID |
116 | +** macro is a string which identifies a particular check-in of SQLite | | 116 | +** macro is a string which identifies a particular check-in of SQLite |
117 | +** within its configuration management system. The string contains the | | 117 | +** within its configuration management system. The string contains the |
118 | +** date and time of the check-in (UTC) and an SHA1 hash of the entire | | 118 | +** date and time of the check-in (UTC) and an SHA1 hash of the entire |
119 | +** source tree. | | 119 | +** source tree. |
120 | +** | | 120 | +** |
121 | +** See also: [sqlite3_libversion()], | | 121 | +** See also: [sqlite3_libversion()], |
122 | +** [sqlite3_libversion_number()], [sqlite3_sourceid()], | | 122 | +** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
123 | +** [sqlite_version()] and [sqlite_source_id()]. | | 123 | +** [sqlite_version()] and [sqlite_source_id()]. |
124 | +** | | 124 | +** |
125 | +** Requirements: [H10011] [H10014] | | 125 | +** Requirements: [H10011] [H10014] |
126 | +*/ | | 126 | +*/ |
127 | +#define SQLITE_VERSION "3.6.18" | | 127 | +#define SQLITE_VERSION "3.6.19" |
128 | +#define SQLITE_VERSION_NUMBER 3006018 | | 128 | +#define SQLITE_VERSION_NUMBER 3006019 |
129 | +#define SQLITE_SOURCE_ID "2009-09-11 14:05:07 b084828a771ec40be85f07c590ca99de4f6c24ee" | | 129 | +#define SQLITE_SOURCE_ID "2009-10-14 11:33:55 c1d499afc50d54b376945b4efb65c56c787a073d" |
130 | + | | 130 | + |
131 | +/* | | 131 | +/* |
132 | +** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100> | | 132 | +** CAPI3REF: Run-Time Library Version Numbers {H10020} <S60100> |
133 | +** KEYWORDS: sqlite3_version | | 133 | +** KEYWORDS: sqlite3_version |
134 | +** | | 134 | +** |
135 | +** These interfaces provide the same information as the [SQLITE_VERSION], | | 135 | +** These interfaces provide the same information as the [SQLITE_VERSION], |
136 | +** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] #defines in the header, | | 136 | +** [SQLITE_VERSION_NUMBER], and [SQLITE_SOURCE_ID] #defines in the header, |
137 | +** but are associated with the library instead of the header file. Cautious | | 137 | +** but are associated with the library instead of the header file. Cautious |
138 | +** programmers might include assert() statements in their application to | | 138 | +** programmers might include assert() statements in their application to |
139 | +** verify that values returned by these interfaces match the macros in | | 139 | +** verify that values returned by these interfaces match the macros in |
140 | +** the header, and thus insure that the application is | | 140 | +** the header, and thus insure that the application is |
141 | +** compiled with matching library and header files. | | 141 | +** compiled with matching library and header files. |
142 | +** | | 142 | +** |
| @@ -1311,28 +1311,29 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 | | | @@ -1311,28 +1311,29 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 |
1311 | +** unpredictable and might not equal either the old or the new | | 1311 | +** unpredictable and might not equal either the old or the new |
1312 | +** last insert [rowid]. | | 1312 | +** last insert [rowid]. |
1313 | +*/ | | 1313 | +*/ |
1314 | +SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*); | | 1314 | +SQLITE_API sqlite3_int64 sqlite3_last_insert_rowid(sqlite3*); |
1315 | + | | 1315 | + |
1316 | +/* | | 1316 | +/* |
1317 | +** CAPI3REF: Count The Number Of Rows Modified {H12240} <S10600> | | 1317 | +** CAPI3REF: Count The Number Of Rows Modified {H12240} <S10600> |
1318 | +** | | 1318 | +** |
1319 | +** This function returns the number of database rows that were changed | | 1319 | +** This function returns the number of database rows that were changed |
1320 | +** or inserted or deleted by the most recently completed SQL statement | | 1320 | +** or inserted or deleted by the most recently completed SQL statement |
1321 | +** on the [database connection] specified by the first parameter. | | 1321 | +** on the [database connection] specified by the first parameter. |
1322 | +** Only changes that are directly specified by the [INSERT], [UPDATE], | | 1322 | +** Only changes that are directly specified by the [INSERT], [UPDATE], |
1323 | +** or [DELETE] statement are counted. Auxiliary changes caused by | | 1323 | +** or [DELETE] statement are counted. Auxiliary changes caused by |
1324 | +** triggers are not counted. Use the [sqlite3_total_changes()] function | | 1324 | +** triggers or [foreign key actions] are not counted. Use the |
1325 | +** to find the total number of changes including changes caused by triggers. | | 1325 | +** [sqlite3_total_changes()] function to find the total number of changes |
| | | 1326 | +** including changes caused by triggers and foreign key actions. |
1326 | +** | | 1327 | +** |
1327 | +** Changes to a view that are simulated by an [INSTEAD OF trigger] | | 1328 | +** Changes to a view that are simulated by an [INSTEAD OF trigger] |
1328 | +** are not counted. Only real table changes are counted. | | 1329 | +** are not counted. Only real table changes are counted. |
1329 | +** | | 1330 | +** |
1330 | +** A "row change" is a change to a single row of a single table | | 1331 | +** A "row change" is a change to a single row of a single table |
1331 | +** caused by an INSERT, DELETE, or UPDATE statement. Rows that | | 1332 | +** caused by an INSERT, DELETE, or UPDATE statement. Rows that |
1332 | +** are changed as side effects of [REPLACE] constraint resolution, | | 1333 | +** are changed as side effects of [REPLACE] constraint resolution, |
1333 | +** rollback, ABORT processing, [DROP TABLE], or by any other | | 1334 | +** rollback, ABORT processing, [DROP TABLE], or by any other |
1334 | +** mechanisms do not count as direct row changes. | | 1335 | +** mechanisms do not count as direct row changes. |
1335 | +** | | 1336 | +** |
1336 | +** A "trigger context" is a scope of execution that begins and | | 1337 | +** A "trigger context" is a scope of execution that begins and |
1337 | +** ends with the script of a [CREATE TRIGGER | trigger]. | | 1338 | +** ends with the script of a [CREATE TRIGGER | trigger]. |
1338 | +** Most SQL statements are | | 1339 | +** Most SQL statements are |
| @@ -1364,28 +1365,28 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 | | | @@ -1364,28 +1365,28 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 |
1364 | +** [H12241] [H12243] | | 1365 | +** [H12241] [H12243] |
1365 | +** | | 1366 | +** |
1366 | +** If a separate thread makes changes on the same database connection | | 1367 | +** If a separate thread makes changes on the same database connection |
1367 | +** while [sqlite3_changes()] is running then the value returned | | 1368 | +** while [sqlite3_changes()] is running then the value returned |
1368 | +** is unpredictable and not meaningful. | | 1369 | +** is unpredictable and not meaningful. |
1369 | +*/ | | 1370 | +*/ |
1370 | +SQLITE_API int sqlite3_changes(sqlite3*); | | 1371 | +SQLITE_API int sqlite3_changes(sqlite3*); |
1371 | + | | 1372 | + |
1372 | +/* | | 1373 | +/* |
1373 | +** CAPI3REF: Total Number Of Rows Modified {H12260} <S10600> | | 1374 | +** CAPI3REF: Total Number Of Rows Modified {H12260} <S10600> |
1374 | +** | | 1375 | +** |
1375 | +** This function returns the number of row changes caused by [INSERT], | | 1376 | +** This function returns the number of row changes caused by [INSERT], |
1376 | +** [UPDATE] or [DELETE] statements since the [database connection] was opened. | | 1377 | +** [UPDATE] or [DELETE] statements since the [database connection] was opened. |
1377 | +** The count includes all changes from all | | 1378 | +** The count includes all changes from all [CREATE TRIGGER | trigger] |
1378 | +** [CREATE TRIGGER | trigger] contexts. However, | | 1379 | +** contexts and changes made by [foreign key actions]. However, |
1379 | +** the count does not include changes used to implement [REPLACE] constraints, | | 1380 | +** the count does not include changes used to implement [REPLACE] constraints, |
1380 | +** do rollbacks or ABORT processing, or [DROP TABLE] processing. The | | 1381 | +** do rollbacks or ABORT processing, or [DROP TABLE] processing. The |
1381 | +** count does not include rows of views that fire an [INSTEAD OF trigger], | | 1382 | +** count does not include rows of views that fire an [INSTEAD OF trigger], |
1382 | +** though if the INSTEAD OF trigger makes changes of its own, those changes | | 1383 | +** though if the INSTEAD OF trigger makes changes of its own, those changes |
1383 | +** are counted. | | 1384 | +** are counted. |
1384 | +** The changes are counted as soon as the statement that makes them is | | 1385 | +** The changes are counted as soon as the statement that makes them is |
1385 | +** completed (when the statement handle is passed to [sqlite3_reset()] or | | 1386 | +** completed (when the statement handle is passed to [sqlite3_reset()] or |
1386 | +** [sqlite3_finalize()]). | | 1387 | +** [sqlite3_finalize()]). |
1387 | +** | | 1388 | +** |
1388 | +** See also the [sqlite3_changes()] interface and the | | 1389 | +** See also the [sqlite3_changes()] interface and the |
1389 | +** [count_changes pragma]. | | 1390 | +** [count_changes pragma]. |
1390 | +** | | 1391 | +** |
1391 | +** Requirements: | | 1392 | +** Requirements: |
| @@ -4506,26 +4507,29 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 | | | @@ -4506,26 +4507,29 @@ $NetBSD: patch-ab,v 1.3 2009/10/11 16:06 |
4506 | +/* | | 4507 | +/* |
4507 | +** CAPI3REF: Open A BLOB For Incremental I/O {H17810} <S30230> | | 4508 | +** CAPI3REF: Open A BLOB For Incremental I/O {H17810} <S30230> |
4508 | +** | | 4509 | +** |
4509 | +** This interfaces opens a [BLOB handle | handle] to the BLOB located | | 4510 | +** This interfaces opens a [BLOB handle | handle] to the BLOB located |
4510 | +** in row iRow, column zColumn, table zTable in database zDb; | | 4511 | +** in row iRow, column zColumn, table zTable in database zDb; |
4511 | +** in other words, the same BLOB that would be selected by: | | 4512 | +** in other words, the same BLOB that would be selected by: |
4512 | +** | | 4513 | +** |
4513 | +** <pre> | | 4514 | +** <pre> |
4514 | +** SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow; | | 4515 | +** SELECT zColumn FROM zDb.zTable WHERE [rowid] = iRow; |
4515 | +** </pre> {END} | | 4516 | +** </pre> {END} |
4516 | +** | | 4517 | +** |
4517 | +** If the flags parameter is non-zero, then the BLOB is opened for read | | 4518 | +** If the flags parameter is non-zero, then the BLOB is opened for read |
4518 | +** and write access. If it is zero, the BLOB is opened for read access. | | 4519 | +** and write access. If it is zero, the BLOB is opened for read access. |
| | | 4520 | +** It is not possible to open a column that is part of an index or primary |
| | | 4521 | +** key for writing. ^If [foreign key constraints] are enabled, it is |
| | | 4522 | +** not possible to open a column that is part of a [child key] for writing. |
4519 | +** | | 4523 | +** |
4520 | +** Note that the database name is not the filename that contains | | 4524 | +** Note that the database name is not the filename that contains |
4521 | +** the database but rather the symbolic name of the database that | | 4525 | +** the database but rather the symbolic name of the database that |
4522 | +** is assigned when the database is connected using [ATTACH]. | | 4526 | +** is assigned when the database is connected using [ATTACH]. |
4523 | +** For the main database file, the database name is "main". | | 4527 | +** For the main database file, the database name is "main". |
4524 | +** For TEMP tables, the database name is "temp". | | 4528 | +** For TEMP tables, the database name is "temp". |
4525 | +** | | 4529 | +** |
4526 | +** On success, [SQLITE_OK] is returned and the new [BLOB handle] is written | | 4530 | +** On success, [SQLITE_OK] is returned and the new [BLOB handle] is written |
4527 | +** to *ppBlob. Otherwise an [error code] is returned and *ppBlob is set | | 4531 | +** to *ppBlob. Otherwise an [error code] is returned and *ppBlob is set |
4528 | +** to be a null pointer. | | 4532 | +** to be a null pointer. |
4529 | +** This function sets the [database connection] error code and message | | 4533 | +** This function sets the [database connection] error code and message |
4530 | +** accessible via [sqlite3_errcode()] and [sqlite3_errmsg()] and related | | 4534 | +** accessible via [sqlite3_errcode()] and [sqlite3_errmsg()] and related |
4531 | +** functions. Note that the *ppBlob variable is always initialized in a | | 4535 | +** functions. Note that the *ppBlob variable is always initialized in a |