@@ -231,11 +231,11 @@
231 231 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** [sqlite3_libversion_number()], [sqlite3_sourceid()],
232 232 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** [sqlite_version()] and [sqlite_source_id()].
233 233 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
234 234 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#define SQLITE_VERSION "3.8.8"
235 235 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#define SQLITE_VERSION_NUMBER 3008008
236 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- #define SQLITE_SOURCE_ID "2014-12-06 14:56:49 6aeece19a235344be2537e66a3fe08b1febfb5a0"
236 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ #define SQLITE_SOURCE_ID "2014-12-10 04:58:43 3528f8dd39acace8eeb7337994c8617313f4b04b"
237 237 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
238 238 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/*
239 239 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** CAPI3REF: Run-Time Library Version Numbers
240 240 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** KEYWORDS: sqlite3_version, sqlite3_sourceid
241 241 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
@@ -5279,24 +5279,31 @@
5279 5279 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
5280 5280 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
5281 5281 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/*
5282 5282 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** CAPI3REF: Extract Metadata About A Column Of A Table
5283 5283 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5284 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** ^This routine returns metadata about a specific column of a specific
5285 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** database table accessible using the [database connection] handle
5286 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** passed as the first function argument.
5284 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** ^(The sqlite3_table_column_metadata(X,D,T,C,....) routine returns
5285 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** information about column C of table T in database D
5286 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** on [database connection] X.)^ ^The sqlite3_table_column_metadata()
5287 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** interface returns SQLITE_OK and fills in the non-NULL pointers in
5288 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** the final five arguments with appropriate values if the specified
5289 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** column exists. ^The sqlite3_table_column_metadata() interface returns
5290 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** SQLITE_ERROR and if the specified column does not exist.
5291 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** ^If the column-name parameter to sqlite3_table_column_metadata() is a
5292 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** NULL pointer, then this routine simply checks for the existance of the
5293 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** table and returns SQLITE_OK if the table exists and SQLITE_ERROR if it
5294 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** does not.
5287 5295 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5288 5296 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** ^The column is identified by the second, third and fourth parameters to
5289 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** this function. ^The second parameter is either the name of the database
5297 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** this function. ^(The second parameter is either the name of the database
5290 5298 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** (i.e. "main", "temp", or an attached database) containing the specified
5291 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** table or NULL. ^If it is NULL, then all attached databases are searched
5299 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** table or NULL.)^ ^If it is NULL, then all attached databases are searched
5292 5300 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** for the table using the same algorithm used by the database engine to
5293 5301 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** resolve unqualified table references.
5294 5302 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5295 5303 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** ^The third and fourth parameters to this function are the table and column
5296 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** name of the desired column, respectively. Neither of these parameters
5297 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** may be NULL.
5304 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** name of the desired column, respectively.
5298 5305 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5299 5306 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** ^Metadata is returned by writing to the memory locations passed as the 5th
5300 5307 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** and subsequent parameters to this function. ^Any of these arguments may be
5301 5308 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** NULL, in which case the corresponding element of metadata is omitted.
5302 5309 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
@@ -5311,36 +5318,33 @@
5311 5318 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** <tr><td> 9th <td> int <td> True if column is [AUTOINCREMENT]
5312 5319 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** </table>
5313 5320 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** </blockquote>)^
5314 5321 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5315 5322 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** ^The memory pointed to by the character pointers returned for the
5316 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** declaration type and collation sequence is valid only until the next
5323 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** declaration type and collation sequence is valid until the next
5317 5324 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** call to any SQLite API function.
5318 5325 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5319 5326 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** ^If the specified table is actually a view, an [error code] is returned.
5320 5327 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5321 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** ^If the specified column is "rowid", "oid" or "_rowid_" and an
5328 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** ^If the specified column is "rowid", "oid" or "_rowid_" and the table
5329 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** is not a [WITHOUT ROWID] table and an
5322 5330 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** [INTEGER PRIMARY KEY] column has been explicitly declared, then the output
5323 5331 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** parameters are set for the explicitly declared column. ^(If there is no
5324 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** explicitly declared [INTEGER PRIMARY KEY] column, then the output
5325 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** parameters are set as follows:
5332 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** [INTEGER PRIMARY KEY] column, then the outputs
5333 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** for the [rowid] are set as follows:
5326 5334 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5327 5335 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** <pre>
5328 5336 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** data type: "INTEGER"
5329 5337 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** collation sequence: "BINARY"
5330 5338 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** not null: 0
5331 5339 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** primary key: 1
5332 5340 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** auto increment: 0
5333 5341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** </pre>)^
5334 5342 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
**
5335 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** ^(This function may load one or more schemas from database files. If an
5336 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** error occurs during this process, or if the requested table or column
5337 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** cannot be found, an [error code] is returned and an error message left
5338 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** in the [database connection] (to be retrieved using sqlite3_errmsg()).)^
5339 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- **
5340 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** ^This API is only available if the library was compiled with the
5341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- ** [SQLITE_ENABLE_COLUMN_METADATA] C-preprocessor symbol defined.
5343 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** ^This function causes all database schemas to be read from disk and
5344 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** parsed, if that has not already been done, and returns an error if
5345 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ** any errors are encountered while loading the schema.
5342 5346 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
5343 5347 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
SQLITE_API int sqlite3_table_column_metadata(
5344 5348 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3 *db, /* Connection handle */
5345 5349 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zDbName, /* Database name or NULL */
5346 5350 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zTableName, /* Table name */
@@ -59329,11 +59333,11 @@
59329 59333 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ nMaxCells*sizeof(u16) /* szCell */
59330 59334 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ pBt->pageSize; /* aSpace1 */
59331 59335 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
59332 59336 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* EVIDENCE-OF: R-28375-38319 SQLite will never request a scratch buffer
59333 59337 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** that is more than 6 times the database page size. */
59334 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- assert( szScratch<=6*pBt->pageSize );
59338 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ assert( szScratch<=6*(int)pBt->pageSize );
59335 59339 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
apCell = sqlite3ScratchMalloc( szScratch );
59336 59340 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( apCell==0 ){
59337 59341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
rc = SQLITE_NOMEM;
59338 59342 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
goto balance_cleanup;
59339 59343 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
@@ -77429,11 +77433,13 @@
77429 77433 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
77430 77434 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#define SRVAL(p) ((void*)((SorterRecord*)(p) + 1))
77431 77435 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
77432 77436 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* The minimum PMA size is set to this value multiplied by the database
77433 77437 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** page size in bytes. */
77434 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- #define SORTER_MIN_WORKING 10
77438 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ #ifndef SQLITE_SORTER_PMASZ
77439 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ # define SQLITE_SORTER_PMASZ 10
77440 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ #endif
77435 77441 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
77436 77442 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* Maximum number of PMAs that a single MergeEngine can merge */
77437 77443 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#define SORTER_MAX_MERGE_COUNT 16
77438 77444 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
77439 77445 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
static int vdbeIncrSwap(IncrMerger*);
@@ -77828,13 +77834,13 @@
77828 77834 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
SortSubtask *pTask = &pSorter->aTask[i];
77829 77835 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pTask->pSorter = pSorter;
77830 77836 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
77831 77837 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
77832 77838 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( !sqlite3TempInMemory(db) ){
77833 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- pSorter->mnPmaSize = SORTER_MIN_WORKING * pgsz;
77839 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ pSorter->mnPmaSize = SQLITE_SORTER_PMASZ * pgsz;
77834 77840 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
mxCache = db->aDb[0].pSchema->cache_size;
77835 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- if( mxCache<SORTER_MIN_WORKING ) mxCache = SORTER_MIN_WORKING;
77841 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ if( mxCache<SQLITE_SORTER_PMASZ ) mxCache = SQLITE_SORTER_PMASZ;
77836 77842 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pSorter->mxPmaSize = MIN((i64)mxCache*pgsz, SQLITE_MAX_MXPMASIZE);
77837 77843 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
77838 77844 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* EVIDENCE-OF: R-26747-61719 When the application provides any amount of
77839 77845 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** scratch memory using SQLITE_CONFIG_SCRATCH, SQLite avoids unnecessary
77840 77846 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** large heap allocations.
@@ -101080,11 +101086,10 @@
101080 101086 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# define sqlite3_column_database_name16 0
101081 101087 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# define sqlite3_column_table_name 0
101082 101088 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# define sqlite3_column_table_name16 0
101083 101089 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# define sqlite3_column_origin_name 0
101084 101090 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# define sqlite3_column_origin_name16 0
101085 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- # define sqlite3_table_column_metadata 0
101086 101091 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#endif
101087 101092 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
101088 101093 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#ifdef SQLITE_OMIT_AUTHORIZATION
101089 101094 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# define sqlite3_set_authorizer 0
101090 101095 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#endif
@@ -127175,15 +127180,17 @@
127175 127180 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
for(j=0; j<db->nDb; j++){
127176 127181 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
struct Db *pDb = &db->aDb[j];
127177 127182 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( pDb->pBt ){
127178 127183 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( pDb->pSchema ){
127179 127184 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* Must clear the KeyInfo cache. See ticket [e4a18565a36884b00edf] */
127185 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ sqlite3BtreeEnter(pDb->pBt);
127180 127186 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
for(i=sqliteHashFirst(&pDb->pSchema->idxHash); i; i=sqliteHashNext(i)){
127181 127187 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
Index *pIdx = sqliteHashData(i);
127182 127188 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3KeyInfoUnref(pIdx->pKeyInfo);
127183 127189 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pIdx->pKeyInfo = 0;
127184 127190 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
127191 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ sqlite3BtreeLeave(pDb->pBt);
127185 127192 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
127186 127193 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3BtreeClose(pDb->pBt);
127187 127194 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pDb->pBt = 0;
127188 127195 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( j!=1 ){
127189 127196 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pDb->pSchema = 0;
@@ -128882,10 +128889,13 @@
128882 128889 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
| SQLITE_RecTriggers
128883 128890 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#endif
128884 128891 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#if defined(SQLITE_DEFAULT_FOREIGN_KEYS) && SQLITE_DEFAULT_FOREIGN_KEYS
128885 128892 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
| SQLITE_ForeignKeys
128886 128893 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#endif
128894 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ #if defined(SQLITE_REVERSE_UNORDERED_SELECTS)
128895 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ | SQLITE_ReverseOrder
128896 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ #endif
128887 128897 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
;
128888 128898 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3HashInit(&db->aCollSeq);
128889 128899 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#ifndef SQLITE_OMIT_VIRTUALTABLE
128890 128900 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3HashInit(&db->aModule);
128891 128901 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#endif
@@ -128929,11 +128939,13 @@
128929 128939 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
rc = SQLITE_NOMEM;
128930 128940 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
128931 128941 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3Error(db, rc);
128932 128942 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
goto opendb_out;
128933 128943 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
128944 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ sqlite3BtreeEnter(db->aDb[0].pBt);
128934 128945 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
db->aDb[0].pSchema = sqlite3SchemaGet(db, db->aDb[0].pBt);
128946 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ sqlite3BtreeLeave(db->aDb[0].pBt);
128935 128947 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
db->aDb[1].pSchema = sqlite3SchemaGet(db, 0);
128936 128948 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
128937 128949 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* The default safety_level for the main database is 'full'; for the temp
128938 128950 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** database it is 'NONE'. This matches the pager layer defaults.
128939 128951 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
@@ -129283,11 +129295,10 @@
129283 129295 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
129284 129296 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/*
129285 129297 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** Return meta information about a specific column of a database table.
129286 129298 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** See comment in sqlite3.h (sqlite.h.in) for details.
129287 129299 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
129288 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- #ifdef SQLITE_ENABLE_COLUMN_METADATA
129289 129300 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
SQLITE_API int sqlite3_table_column_metadata(
129290 129301 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3 *db, /* Connection handle */
129291 129302 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zDbName, /* Database name or NULL */
129292 129303 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zTableName, /* Table name */
129293 129304 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
const char *zColumnName, /* Column name */
@@ -129323,25 +129334,27 @@
129323 129334 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pTab = 0;
129324 129335 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
goto error_out;
129325 129336 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
129326 129337 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
129327 129338 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* Find the column for which info is requested */
129328 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- if( sqlite3IsRowid(zColumnName) ){
129329 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- iCol = pTab->iPKey;
129330 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- if( iCol>=0 ){
129331 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- pCol = &pTab->aCol[iCol];
129332 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- }
129339 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ if( zColumnName==0 ){
129340 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ /* Query for existance of table only */
129333 129341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}else{
129334 129342 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
for(iCol=0; iCol<pTab->nCol; iCol++){
129335 129343 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
pCol = &pTab->aCol[iCol];
129336 129344 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( 0==sqlite3StrICmp(pCol->zName, zColumnName) ){
129337 129345 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
break;
129338 129346 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
129339 129347 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
129340 129348 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
if( iCol==pTab->nCol ){
129341 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- pTab = 0;
129342 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- goto error_out;
129349 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ if( HasRowid(pTab) && sqlite3IsRowid(zColumnName) ){
129350 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ iCol = pTab->iPKey;
129351 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ pCol = iCol>=0 ? &pTab->aCol[iCol] : 0;
129352 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ }else{
129353 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ pTab = 0;
129354 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ goto error_out;
129355 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ }
129343 129356 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
129344 129357 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
129345 129358 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
129346 129359 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/* The following block stores the meta information that will be returned
129347 129360 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** to the caller in local variables zDataType, zCollSeq, notnull, primarykey
@@ -129390,11 +129403,10 @@
129390 129403 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3DbFree(db, zErrMsg);
129391 129404 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
rc = sqlite3ApiExit(db, rc);
129392 129405 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
sqlite3_mutex_leave(db->mutex);
129393 129406 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
return rc;
129394 129407 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
129395 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- #endif
129396 129408 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
129397 129409 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
/*
129398 129410 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
** Sleep for a little while. Return the amount of time slept.
129399 129411 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
*/
129400 129412 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
SQLITE_API int sqlite3_sleep(int ms){
129401 129413 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!