Lines Matching defs:error

693 ** ^If an error occurs while evaluating the SQL statements passed into
696 ** is not NULL then any error message is written into memory obtained
699 ** on error message strings returned through the 5th parameter of
700 ** sqlite3_exec() after the error message string is no longer needed.
750 ** New error codes may be added in future versions of SQLite.
755 /* beginning-of-error-codes */
756 #define SQLITE_ERROR 1 /* Generic error */
757 #define SQLITE_INTERNAL 2 /* Internal logic error in SQLite */
765 #define SQLITE_IOERR 10 /* Some kind of disk I/O error occurred */
770 #define SQLITE_PROTOCOL 15 /* Database lock protocol error */
786 /* end-of-error-codes */
802 ** the most recent error can be obtained using
891 ** though future versions of SQLite might change so that an error is
899 ** error in future versions of SQLite.
1329 ** the error message if the pragma fails. ^If the
1338 ** that the VFS encountered an error while handling the [PRAGMA] and the
1339 ** compilation of the PRAGMA fails with an error. ^The [SQLITE_FCNTL_PRAGMA]
1510 ** the db is a temp-db, it is a no-op, not an error.
1708 ** be created, and that it is an error if it already exists.
1730 ** non-zero error code if there is an I/O error or if the name of
1739 ** handled as a fatal error by SQLite, vfs implementations should endeavor
1764 ** simulate faults and error conditions that would otherwise be difficult
1910 ** as a mutex) it returns an [error code] other than [SQLITE_OK].
1947 ** must return [SQLITE_OK] on success and some other [error code] upon
1984 ** then this routine returns a non-zero [error code].
2093 ** non-zero [error code] if a discontinued or unsupported configuration option
2285 ** global [error log].
2475 ** non-zero [error code] if a discontinued or unsupported configuration option
2740 ** the [VACUUM] command will fail with an obscure error when attempting to
3266 ** memory might result in a segmentation fault or other severe error.
3267 ** Memory corruption, a segmentation fault, or other severe error
3389 ** rejected with an error. ^If the authorizer callback returns
3392 ** the authorizer will fail with an error message.
3397 ** authorizer will fail with an error message explaining that
3479 #define SQLITE_DENY 1 /* Abort the SQL statement with an error */
3480 #define SQLITE_IGNORE 2 /* Don't allow access, but don't generate an error */
3709 ** returned in *ppDb, even if an error occurs. The only exception is that
3713 ** [SQLITE_OK] is returned. Otherwise an [error code] is returned.)^ ^The
3715 ** an English language description of the error following a failure of any
3722 ** Whether or not an error occurs when it is opened, resources
3735 ** already exist, an error is returned.</dd>)^
3740 ** case the database must already exist, otherwise an error is returned.</dd>)^
3845 ** error is returned to the caller. ^The fragment component of a URI, if
3867 ** VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is
3873 ** an error)^.
3882 ** or writes from disk is used. ^It is an error to specify a value for
3919 ** error. Future versions of SQLite might understand additional query
3934 ** An error. "darkstar" is not a recognized authority.
3949 ** An error. "readonly" is not a valid option for the "mode" parameter.
4130 ** If a memory allocation error occurs, sqlite3_create_filename() might
4180 ** change the value of the error code. The error-code preserving
4192 ** text that describes the error, as either UTF-8 or UTF-16 respectively.
4193 ** ^(Memory to hold the error message string is managed internally.
4195 ** However, the error string might be overwritten or deallocated by
4200 ** ^(Memory to hold the error message string is managed internally
4203 ** ^If the most recent error references a specific token in the input
4207 ** ^If the most recent error does not reference a specific token in the input
4211 ** case that a second error occurs on a separate thread in between
4212 ** the time of the first error and the call to these interfaces.
4213 ** When that happens, the second error will be reported since these
4222 ** error code and message may or may not be set.
4330 ** in a single prepared statement, an SQLITE_NOMEM error is returned.</dd>)^
4399 ** to return an error (error code SQLITE_ERROR) if the statement uses
4452 ** executed using [sqlite3_step()]. ^If there is an error, *ppStmt is set
4460 ** otherwise an [error code] is returned.
4476 ** retries will occur before sqlite3_step() gives up and returns an error.
4480 ** ^When an error occurs, [sqlite3_step()] will return one of the detailed
4481 ** [error codes] or [extended error codes]. ^The legacy behavior was that
4485 ** interfaces, the underlying reason for the error is returned immediately.
4869 ** [error code] if anything goes wrong.
5045 ** NULL. ^These routines might also return NULL if a memory allocation error
5140 ** ^[SQLITE_ERROR] means that a run-time error (such as a constraint
5143 ** ^With the legacy interface, a more specific error code (for example,
5147 ** the more specific error code is returned directly by sqlite3_step().
5165 ** break because any application that ever receives an SQLITE_MISUSE error
5170 ** API always returns a generic error code, [SQLITE_ERROR], following any
5171 ** error other than [SQLITE_BUSY] and [SQLITE_MISUSE]. You must call
5173 ** specific [error codes] that better describes the error.
5179 ** then the more specific [error codes] are returned directly
5434 ** fail if an out-of-memory error occurs during a format conversion.
5446 ** If an out-of-memory error occurs, then the return value from these
5472 ** sqlite3_finalize(S) returns the appropriate [error code] or
5473 ** [extended error code].
5485 ** resource leaks. It is a grievous error for the application to try to use
5511 ** [prepared statement] S indicated an error, then
5512 ** [sqlite3_reset(S)] returns an appropriate [error code].
5906 ** fail if an out-of-memory error occurs during a format conversion.
5920 ** If an out-of-memory error occurs, then the return value from these
5996 ** allocation error occurs.
6083 ** allocation error occurs.)^ </ul>
6155 ** as the text of an error message. ^SQLite interprets the error
6160 ** or sqlite3_result_error16() is negative then SQLite takes as the error
6164 ** bytes (not characters) from the 2nd parameter as the error message.
6166 ** routines make a private copy of the error message text before
6169 ** ^The sqlite3_result_error_code() function changes the error code
6170 ** returned by SQLite as a result of an error in a function. ^By default,
6171 ** the error code is SQLITE_ERROR. ^A subsequent call to sqlite3_result_error()
6172 ** or sqlite3_result_error16() resets the error code to SQLITE_ERROR.
6175 ** error indicating that a string or BLOB is too long to represent.
6178 ** error indicating that a memory allocation failed.
6665 ** an error is to use this function.
6858 ** an error or constraint causes an implicit rollback to occur.
6903 ** be some other error code if something goes wrong. The current
7012 ** successfully. An [error code] is returned otherwise.)^
7077 ** an [SQLITE_NOMEM] error. In other words, the soft heap limit
7089 ** error. ^If the argument N is negative
7191 ** ^If the specified table is actually a view, an [error code] is returned.
7209 ** parsed, if that has not already been done, and returns an error if
7247 ** ^If an error occurs and pzErrMsg is not 0, then the
7249 ** fill *pzErrMsg with error message text stored in memory
7257 ** otherwise an error will be returned.
7272 char **pzErrMsg /* Put error message here if not 0 */
7323 ** If the xEntryPoint routine encounters an error, it should make *pzErrMsg
7324 ** point to an appropriate error message (obtained from [sqlite3_mprintf()])
7325 ** and return an appropriate [error code]. ^SQLite ensures that *pzErrMsg
7328 ** xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()],
7704 ** ^Virtual tables methods can set an error message by assigning a
7707 ** prior to assigning a new string to zErrMsg. ^After the error message
7817 ** in *ppBlob. Otherwise an [error code] is returned and, unless the error
7839 ** [database connection] error code and message accessible via
7900 ** it does not contain a blob or text value, or if another error occurs, an
7901 ** SQLite error code is returned and the blob handle is considered aborted.
7907 ** ^This function sets the database handle error code and message.
7916 ** unconditionally. Even if this routine returns an error code, the
7922 ** committed. ^If an error occurs while committing the transaction, an error
7965 ** error code of [SQLITE_ABORT].
7968 ** Otherwise, an [error code] or an [extended error code] is returned.)^
7988 ** Otherwise, an [error code] or an [extended error code] is returned.)^
7990 ** [database connection] error code and message accessible via
8006 ** error code of [SQLITE_ABORT]. ^Writes to the BLOB that occurred
8361 ** open database file, then SQLITE_ERROR is returned. ^This error
8516 ** error the returned object might be a special singleton that will
8575 ** These methods do not return a result code. ^If an error occurs, that fact
8594 ** an appropriate error code. ^The [sqlite3_str_errcode(X)] method returns
8595 ** [SQLITE_NOMEM] following any out-of-memory error, or
8637 ** SQLITE_OK on success and a non-zero [error code] on failure.
8751 ** non-zero [error code] on failure.
8767 ** The [sqlite3_db_status()] interface will return a non-zero error code
8847 ** If an IO or other error occurs while writing a page to disk, the effect
9266 ** an error.
9272 ** ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is
9273 ** returned and an error code and error message are stored in the
9275 ** ^The error code and message for the failed call to sqlite3_backup_init()
9293 ** ^If an error occurs while running sqlite3_backup_step(B,N),
9294 ** then an [error code] is returned. ^As well as [SQLITE_OK] and
9297 ** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code.
9356 ** ^If an out-of-memory condition or IO error occurred during any prior
9358 ** sqlite3_backup_finish() returns the corresponding [error code].
9361 ** is not a permanent error and does not affect the return value of
9392 ** and so no error code is reported, but the operations may malfunction
9426 ** an [SQLITE_LOCKED] error if the required locks on the shared-cache or
9443 ** application receives an SQLITE_LOCKED error, it may call the
9530 ** One way around this problem is to check the extended error code returned
9532 ** extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in
9533 ** the special "DROP TABLE/INDEX" case, the extended error code is just
9597 ** ^The [sqlite3_log()] interface writes a message into the [error log]
9636 ** The callback function should normally return [SQLITE_OK]. ^If an error
9637 ** code is returned, that error will propagate back up through the
9639 ** to report an error, though the commit will have still occurred. If the
9641 ** that does not correspond to any valid SQLite error code, the results
9754 ** of an error or because the database is not in [WAL mode]. ^If pnCkpt is not
9757 ** was called) or to -1 if the checkpoint could not run due to an error or
9782 ** an SQLITE_BUSY error is encountered when processing one or more of the
9785 ** error occurs while processing an attached database, processing is abandoned
9786 ** and the error code is returned to the caller immediately. ^If no error
9797 ** sets the error information that is queried by
10180 ** &nbsp; // an error has occurred
10257 /* #define SQLITE_ABORT 4 // Also an error code */
10382 ** because locks cannot be obtained, but no other error occurs, this
10385 ** ^If any other error occurs while flushing dirty pages to disk (for
10386 ** example an IO error or out-of-memory condition), then processing is
10387 ** abandoned and an SQLite [error code] is returned to the caller immediately.
10389 ** ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK.
10391 ** ^This function does not set the database handle error code or message
10510 ** CAPI3REF: Low-level system error code
10513 ** ^Attempt to return the underlying operating system error code or error
10514 ** number that caused the most recent I/O error or failure to open a file.
10604 ** on success or an appropriate [error code] if it fails.
10621 ** is returned. If another error code - for example SQLITE_PROTOCOL or an
10622 ** SQLITE_IOERR error code - is returned, then the final state of the
10701 ** sqlite3_snapshot_open(). It is an error if there is already a read
10705 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
10743 ** allocation error occurs.
11005 ** returned. If an error occurs, *ppSession is set to NULL and an SQLite
11006 ** error code (e.g. SQLITE_NOMEM) is returned.
11027 ** attached database. It is not an error if database zDb is not attached
11075 ** It is an error (SQLITE_MISUSE) to attempt to modify this setting after
11153 ** It is not an error if the named table does not exist in the database. Nor
11154 ** is it an error if the named table does not have a PRIMARY KEY. However,
11160 ** SQLITE_OK is returned if the call completes without error. Or, if an error
11161 ** occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.
11224 ** SQLITE_OK. If an error occurs, set both *ppChangeset and *pnChangeset to
11225 ** zero and return an SQLite error code.
11351 ** an error).
11365 ** are compatible but do not have any PRIMARY KEY columns, it is not an error
11391 ** It an error if database zFrom does not exist or does not contain the
11395 ** error code. In this case, if argument pzErrMsg is not NULL, *pzErrMsg
11396 ** may be set to point to a buffer containing an English language error
11425 ** sqlite3changeset_xxx APIs also provokes an SQLITE_CORRUPT error.
11474 ** is returned. Otherwise, if an error occurs, *pp is set to zero and an
11475 ** SQLite error code is returned.
11530 ** It is an error to specify this flag with a patchset.
11549 ** no error occurs and the iterator points to a valid change after a call
11554 ** If an error occurs, an SQLite error code is returned. Possible error
11588 ** If no error occurs, SQLITE_OK is returned. If an error does occur, an
11589 ** SQLite error code is returned. The values of the output variables may not
11654 ** If some other error occurs (e.g. an OOM condition), an SQLite error code
11688 ** If some other error occurs (e.g. an OOM condition), an SQLite error code
11716 ** If some other error occurs (e.g. an OOM condition), an SQLite error code
11755 ** If an error was encountered within a call to an sqlite3changeset_xxx()
11757 ** [SQLITE_NOMEM] in [sqlite3changeset_new()]) then an error code corresponding
11758 ** to that error is returned by this function. Otherwise, SQLITE_OK is
11768 ** // An error has occurred
11792 ** SQLITE_OK is returned. If an error occurs, both *pnOut and *ppOut are
11793 ** zeroed and an SQLite error code returned.
11863 ** sqlite3changegroup_delete(). If an error occurs, an SQLite error code
11960 ** function returns SQLITE_NOMEM. In all cases, if an error occurs the state
11963 ** If no error occurs, SQLITE_OK is returned.
11985 ** If an error occurs, an SQLite error code is returned and the output
12033 ** If there is no compatible table, it is not an error, but none of the
12035 ** via the sqlite3_log() mechanism with the error code SQLITE_SCHEMA. At most
12140 ** If any other error (aside from a constraint failure when attempting to
12143 ** SQLite error code returned.
12206 ** applied, or rolled back if an error occurs. Specifying this flag
12214 ** an error to specify this flag with a patchset.
12420 ** point to the new object and return SQLITE_OK. Otherwise, if an error
12421 ** occurs, return an SQLite error code (e.g. SQLITE_NOMEM) and set (*ppNew)
12451 ** sqlite3_free(). Otherwise, if an error occurs, (*ppOut) and (*pnOut)
12452 ** are set to zero and an SQLite error code returned.
12515 ** error occurs the xInput method should copy up to (*pnData) bytes of data
12518 ** should be set to zero to indicate this. Or, if an error occurs, an SQLite
12519 ** error code should be returned. In all cases, if an xInput callback returns
12520 ** an error, all processing is abandoned and the streaming API function
12521 ** returns a copy of the error code to the caller.
12525 ** iterator. If such an xInput callback returns an error, the iterator enters
12526 ** an error state, whereby all subsequent calls to iterator functions
12527 ** immediately fail with the same error code as returned by xInput.
12552 ** it should return some other SQLite error code. In this case processing
12554 ** of the xOutput error code to the application.
12673 ** This function returns SQLITE_OK if successful, or an SQLite error code
12736 sqlite3_context *pCtx, /* Context for returning result/error */
12761 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
12762 ** an OOM condition or IO error), an appropriate SQLite error code is
12775 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
12776 ** an OOM condition or IO error), an appropriate SQLite error code is
12787 ** if an error occurs, an SQLite error code is returned and the final values
12800 ** an error code (i.e. SQLITE_NOMEM) if an error occurs.
12815 ** first token of the phrase. Returns SQLITE_OK if successful, or an error
12816 ** code (i.e. SQLITE_NOMEM) if an error occurs.
12845 ** Otherwise, the error code is propagated upwards.
12848 ** Or, if some error occurs before the query completes or is aborted by
12849 ** the callback, an SQLite error code is returned.
12872 ** If an error (e.g. an OOM condition) occurs within this function,
12873 ** the auxiliary data is set to NULL and an error code returned. If the
13022 ** returned. If an error occurs, some value other than SQLITE_OK should
13080 ** if an error occurs with the xTokenize() implementation itself, it
13081 ** may abandon the tokenization and return any error code other than
13153 ** It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time
13663 # error "Two or more of the following compile-time configuration options\
14298 #error Cannot use both SQLITE_MMAP_READWRITE and SQLITE_ENABLE_BATCH_ATOMIC_WRITE
17023 int errCode; /* Most recent error code (SQLITE_*) */
17024 int errByteOffset; /* Byte offset of error in SQL statement */
17026 int iSysErrno; /* Errno value from last system error */
17035 u8 suppressErr; /* Do not issue error messages if true */
17096 sqlite3_value *pErr; /* Most recent error message */
17138 ** tried to do recently failed with an SQLITE_LOCKED error due to locks
17216 #define SQLITE_CorruptRdOnly HI(0x00002) /* Prohibit writes due to error */
17294 #define SQLITE_STATE_ERROR 0xd5 /* An SQLITE_MISUSE error occurred */
17919 ** error. ROLLBACK processing means that a constraint violation
17924 ** the operation in progress stops and returns an error code. But prior
17927 ** error is not inserted or updated. Processing continues and no error
17930 ** update can proceed. Processing continues and no error is reported.
17952 #define OE_Ignore 4 /* Ignore the error. Do not do the INSERT or UPDATE */
19108 char *zErrMsg; /* An error message */
19112 u8 checkSchema; /* Causes schema cookie check after an error */
19436 u32 mInitFlags; /* Flags controlling error messages */
19596 const char *zType; /* Type of the container - used for error messages */
19597 const Token *pName; /* Name of the container - used for error messages */
19782 ** The SQLITE_*_BKPT macros are substitutes for the error codes with
19784 ** routines that report the line-number on which the error originated
21017 # error "The MEMORY_DEBUG macro is obsolete. Use SQLITE_DEBUG instead."
21134 ** of code will give us the ability to simulate a disk I/O error. This
22171 # error "Compile-time disabling of covering index scan using the\
22174 delete this #error macro to continue with your build."
22868 u8 errorAction; /* Recovery action to do in case of an error */
23662 ** of change in p->tz and return 0. If a parser error occurs,
23665 ** A missing specifier is not considered an error.
23701 ** Return 1 if there is a parsing error and 0 on success.
23741 ** Put the DateTime object into its error state.
24007 ** non-zero on any kind of error.
24070 sqlite3_context *pCtx /* Write error here if one occurs */
24160 ** Return 0 on success and 1 if there is any kind of error. If the error
24161 ** is in a system call (i.e. localtime()), then an error message is written
24162 ** to context pCtx. If the error is an unrecognized modifier, no error is
24883 ** of code will give us the ability to simulate a disk I/O error. This
24889 SQLITE_API int sqlite3_io_error_pending = 0; /* Count down to first I/O error */
25007 ** as if a custom VFS (e.g. zipvfs) returns an error here, it probably
25008 ** means the commit really has failed and an error should be returned
25206 ** error in sqlite3_os_init() by the upper layers can be tested.
25332 ** abandons the current operation and returns an error code (usually
26100 ** the error.
26899 fprintf(out, "%p size error\n", &mem3.aPool[i]);
27957 ** that does error checking on mutexes to make sure they are being
27968 ** This routines provide no mutual exclusion or error checking.
28004 ** In this implementation, error checking is provided for testing
28259 ** will unwind its stack and return an error. The argument
28807 ** will unwind its stack and return an error. The argument
29332 # error Maximum size for SQLITE_MAX_ALLOCATION_SIZE is 2147483391
29853 ** Call this routine to record the fact that an OOM (out-of-memory) error
29902 ** Take actions at the end of an API call to deal with error codes.
29922 ** If an OOM as occurred, then the connection error-code (the value
30085 ** Set the StrAccum object to an error mode.
30114 ** of the output buffer in pAccum, then cause an SQLITE_TOOBIG error.
30870 ** associated with an error. If db does not already have an error
30871 ** byte offset recorded, try to compute the error byte offset for
30872 ** z and set the error byte offset in db.
30893 ** as the error offset.
31015 ** pointer if any kind of error was encountered.
31060 ** an SQLITE_NOMEM error.
31079 /* Return any error code associated with p */
33240 ** desiredEnc. It is an error if the string is already of the desired
33528 ** NULL is returned if there is an allocation error.
33625 ** or to bypass normal error detection during testing in order to let
33712 ** Set the current error code to err_code and clear any prior error message.
33727 ** The equivalent of sqlite3Error(db, SQLITE_OK). Clear the error state
33728 ** and error message.
33739 ** to do based on the SQLite error code in rc.
33750 ** Set the most recent error code and error string for the sqlite
33751 ** handle "db". The error code is set to "err_code".
33754 ** error string. zFormat and any string tokens that follow it are
33757 ** To clear the most recent error for sqlite handle "db", sqlite3Error
33778 ** Add an error message to pParse->zErrMsg and increment pParse->nErr.
33780 ** This function should be used to report any error that occurs while
33782 ** last thing the sqlite3_prepare() function does is copy the error
33815 ** error code errCode to that parser if the parser has not already
33816 ** encountered some other kind of error.
34055 *pResult = 0.0; /* Default return value, in case of an error */
34504 ** success and false if there is an error.
34973 ** Log an error that is an API call on a connection pointer that should
35216 ** error occurs, the original VList returned and the
35435 ** a performance hit but it is not a fatal error. So mark the
36229 ** if an error is encountered.
36961 ** Only set the lastErrno if the error code is a real error and not
36996 int lastErrno; /* The unix errno from last I/O error */
37467 ** standard input, output, and error.
37693 /* random NFS retry error, unless during file system support
37782 ** If a memory allocation error occurs, return NULL.
38028 ** It is invoked after an error occurs in an OS function and errno has been
38033 ** The first argument passed to the macro should be the error code that
38041 int errcode, /* SQLite error code */
38043 const char *zPath, /* File path associated with error */
38044 int iLine /* Source line number where error occurred */
38047 int iErrno = errno; /* Saved syscall error number */
38050 ** the strerror() function to obtain the human-readable error message
38060 ** returns a pointer to a buffer containing the error message. That pointer
38063 ** strerror_r(), which always writes an error message into aErr[].
38066 ** available, the error message will often be an empty string. Not a
38098 ** error.
38102 ** So we don't even try to recover from an EINTR. Just log the error
38116 static void storeLastErrno(unixFile *pFile, int error){
38117 pFile->lastErrno = error;
38173 ** return value might be uninitialized if an error occurs.
38177 ** Return an appropriate error code.
38332 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
39060 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
39244 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
39269 /* unlock failed with an error */
39434 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
39677 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
39893 ** a critical I/O error
40234 storeLastErrno(pFile, 0); /* not a system error */
40244 ** pBuf to it. If an error occurs, return -1 and set *piErrno. Otherwise,
40253 int *piErrno /* OUT: Error number if error occurs */
40301 ** or some other error code on failure.
40384 storeLastErrno(pFile, 0); /* not a system error */
40387 "unixWrite, not a system error, fd[%d], offset[%lld], wrote[%d], amt[%d], lastErrno[%d]",
40532 ** SQLITE_OK is returned. If an error occurs, either SQLITE_NOMEM
40742 ** or an error number on failure". See the manpage for details. */
41220 ** no error occurs, return SQLITE_OK and set (*piOut) to 1 if there are
41221 ** such transactions, or 0 otherwise. If an error occurs, return an
41222 ** SQLite error code. The final value of *piOut is undefined in this
41383 ** take it now. Return SQLITE_OK if successful, or an SQLite error
41594 /* Jump here on any error */
41608 ** If an error occurs, an error code is returned and *pp is set to NULL.
42040 ** If unsuccessful, an error message is logged via sqlite3_log() and
42133 ** SQLITE_OK is returned if no error occurs (even if the mapping is not
42134 ** recreated as a result of outstanding references) or an SQLite error
42167 ** Or, if one cannot but no error occurs, set *pp to 0 and return SQLITE_OK.
42168 ** Finally, if an error does occur, return an SQLite error code. The final
42595 /* If an error occurred in findInodeInfo(), close the file descriptor
42609 ** If scenario (a) caused the error then things are not so safe. The
42760 /* It's odd to simulate an io-error here, but really this is just
42761 ** using the io-error infrastructure to test that SQLite handles this
42829 ** For this reason, if an error occurs in the stat() call here, it is
42831 ** descriptor on the same path, fail, and return an error to SQLite.
42884 ** to create new files with. If no error occurs, then SQLITE_OK is returned
42886 ** written to *pMode. If an IO error occurs, an SQLite error code is
43126 ** writable, change the error code to indicate that. */
43377 ** even if it returns an error. */
43447 /* It's odd to simulate an io-error here, but really this is just
43448 ** using the io-error infrastructure to test that SQLite handles this
43527 ** unixDlOpen() fails (returns a null pointer). If a more detailed error
43528 ** message is available, it is written to zBufOut. If no error message
43530 ** error message.
43713 ** low-level error message when operating-system problems come up
43857 ** Enables the logging of error messages during host id file
44145 sqlite3_snprintf(sizeof(errmsg),errmsg,"path error (len %d)",(int)pathLen);
44151 sqlite3_snprintf(sizeof(errmsg),errmsg,"read error (len %d)",(int)readLen);
44307 /* I/O error: lastErrno set by seekAndRead */
44525 ** *pConchPath is set to NULL if a memory allocation error occurs.
44789 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
45106 # error "WAL mode requires support from the Windows NT kernel, compile\
45111 # error "Memory mapped files require support from the Windows NT kernel,\
45136 # error "At least one of SQLITE_WIN32_HAS_ANSI and SQLITE_WIN32_HAS_WIDE\
45230 ** Maximum error message length (in chars) for WinRT.
45343 DWORD lastErrno; /* The Windows errno from the last I/O error */
47064 ** is zero if the error message fits in the buffer, or non-zero
47147 ** This routine is invoked after an error occurs in an OS function.
47149 ** error code and, if possible, the human-readable equivalent from
47152 ** The first argument passed to the macro should be the error code that
47159 int errcode, /* SQLite error code */
47160 DWORD lastErrno, /* Win32 last error */
47162 const char *zPath, /* File path associated with error */
47163 int iLine /* Source line number where error occurred */
47165 char zMsg[500]; /* Human readable error text */
47184 ** will be retried following a locking error - probably caused by
47199 ** error code obtained via GetLastError() is eligible to be retried. It
47200 ** must accept the error code DWORD as its only argument and should return
47201 ** non-zero if the error code is transient in nature and the operation
47202 ** responsible for generating the original error might succeed upon being
47208 ** may be used to include additional error codes in the set that should
47224 ** If a ReadFile() or WriteFile() error occurs, invoke this routine
47226 ** to give up with an error.
47255 ** Log a I/O error retry episode.
47680 ** whether an error has actually occurred, it is also necessary to call
47734 ** giving up and returning an error.
47871 ** or some other error code on failure.
47879 int rc = 0; /* True if error has occurred, else false */
48813 DWORD lastErrno; /* The Windows errno from the last I/O error */
48958 ** take it now. Return SQLITE_OK if successful, or an SQLite error
49089 /* Jump here on any error */
49272 ** If an error occurs, an error code is returned and *pp is set to NULL.
49484 ** SQLITE_OK is returned if no error occurs (even if the mapping is not
49485 ** recreated as a result of outstanding references) or an SQLite error
49541 /* Log the error, but continue normal operation using xRead/xWrite */
49559 /* Log the error, but continue normal operation using xRead/xWrite */
49579 ** Or, if one cannot but no error occurs, set *pp to 0 and return SQLITE_OK.
49580 ** Finally, if an error does occur, return an SQLite error code. The final
49827 /* It's odd to simulate an io-error here, but really this is just
49828 ** using the io-error infrastructure to test that SQLite handles this
50407 ** up and returning an error.
50751 /* It's odd to simulate an io-error here, but really this is just
50752 ** using the io-error infrastructure to test that SQLite handles this
51081 ** strerror_r() on Unix). After an error is returned by an OS
51084 ** buffer with a nul-terminated UTF-8 encoded error message
51085 ** describing the last IO error to have occurred within the calling
51088 ** If the error message is too large for the supplied buffer,
51090 ** is zero if the error message fits in the buffer, or non-zero
51095 ** Not supplying an error message will have no adverse effect
51097 ** returns an error message:
51104 ** However if an error message is supplied, it will be incorporated
51105 ** by sqlite into the error message available to the user using
51948 ** utf-8 string describing the most recent error encountered associated
52353 ** Set the i-th bit. Return 0 on success and an error code if
52524 ** confirm that error detection works.
52528 ** an error is returned. If they are the same, zero is returned.
52530 ** If a memory allocation error occurs, return -1.
53037 ** an OOM error.
53582 ** any possibility of a memory error.
53642 ** can cause a valgrind error if the unitialized gap is accessed. Using u16
53861 pX->pLruPrev = 0; /* Initializing this saves a valgrind error */
53997 p->pLruPrev = 0; /* Initializing this saves a valgrind error */
54624 /* It is an error to call this function if the page is already
54945 ** error occurs.
55757 ** If no error occurred, all that remains is to finalize the journal to
55758 ** commit the transaction. If an error did occur, the caller will need
55763 ** The ERROR state is entered when an IO or disk-full error (including
55771 ** For example, if an IO error occurs while performing a rollback,
55778 ** instead of READER following such an error.
55781 ** to read or write data returns an error. Eventually, once all
55788 ** from the error.
55792 ** 1. An error occurs while attempting a rollback. This happens in
55795 ** 2. An error occurs while attempting to finalize a journal file
55798 ** 3. An error occurs while attempting to write to the journal or
55802 ** In other cases, the error is returned to the b-tree layer. The b-tree
55803 ** layer then attempts a rollback operation. If the error condition
55807 ** statement executed within a transaction. In this case, if the error
55809 ** automatically attempt a rollback, as it assumes that an error in a
55828 ** executed), and when the pager is leaving the "error state".
55847 ** If the VFS xLock() or xUnlock() returns an error other than SQLITE_BUSY
55871 ** doesn't know it because of a previous error in xUnlock). If this happens
56008 ** by PagerCommitPhaseTwo or PagerRollback). If an IO error prevents the
56517 p->eState==PAGER_ERROR ? "ERROR" : "?error?"
56523 p->eLock==UNKNOWN_LOCK ? "UNKNOWN" : "?error?"
56530 p->journalMode==PAGER_JOURNALMODE_WAL ? "wal" : "?error?"
56605 ** error code is something goes wrong.
56626 ** on success or an error code is something goes wrong.
56806 ** If an error occurs while reading from the journal file, an SQLite
56807 ** error code is returned.
56895 ** If an IO error occurs, abandon processing and return the IO error code.
57064 ** cannot be read from the journal file an error code is returned.
57091 ** SQLITE_DONE. If an IO error occurs, return an error code. Otherwise,
57106 ** of the transaction. Return an error code if anything goes wrong.
57225 ** an error occurs, return the error code to the caller.
57375 ** without clearing the error code. This is intentional - the error
57407 ** This function is called whenever an IOERR or FULL error that requires
57410 ** the error-code about to be returned by a pager API function. The
57414 ** IOERR sub-codes, the pager enters the ERROR state and the error code
57421 ** the persistent error occurred, then the rollback journal may need
57469 ** after rollback of a hot-journal, or if an error occurs while opening
57510 ** SQLITE_OK is returned if no error occurs. If an error occurs during
57512 ** database then the IO error code is returned to the user. If the
57515 ** unlock operation fails as well, then the first error code related
57516 ** to the first error encountered (the journal finalization one) is
57662 ** malloc error occurs during a rollback, then this will itself cause
57759 ** and played back, then SQLITE_OK is returned. If an IO error occurs
57761 ** to the database file, then the IO error code is returned. If data
57817 ** file. Return an error code to the caller if an IO error occurs.
57865 ** not be in the pager cache. Later: if a malloc() or IO error occurs
57976 ** of an internal error resulting in an automatic call to
58037 ** If an IO error within this function, an error code is returned. This
58162 ** If successful, return SQLITE_OK. If an IO error occurs while modifying
58163 ** the database file, return the error code to the caller.
58299 ** If an I/O or malloc() error occurs, the journal-file is not deleted
58300 ** and an error code is returned.
58336 ** TODO: Technically the following is an error because it assumes that
58355 ** pager_playback_one_page() call returns SQLITE_DONE or an IO error
58439 /* If we are unable to rollback, quit and return the error
58440 ** code. This will cause the pager to enter the error state
58466 ** malloc error that occurred after the change-counter was updated but
58526 ** If an IO error occurs, then the IO error is returned to the caller.
58620 ** return an SQLite error code. Otherwise, SQLITE_OK.
58785 ** If no error occurs, SQLITE_OK is returned and the size of the database
58786 ** in pages is stored in *pnPage. Otherwise, an error code (perhaps
58838 ** if no error occurs, make sure Pager.journalMode is not set to
58841 ** Return SQLITE_OK or an error code.
59172 ** or some other error code if we fail. The OS will automatically
59219 ** retried. If it returns zero, then the SQLITE_BUSY error is
59240 ** If the pager is in the error state when this function is called, it
59241 ** is a no-op. The value returned is the error state error code (i.e.
59262 ** conditions above is not true, the pager was in error state when this
59273 ** At one point this function returned an error if the pager was in
59360 ** I/O error mechanism. These routines are used to avoid simulated
59392 ** If any IO error apart from SQLITE_IOERR_SHORT_READ is encountered,
59393 ** the error code is returned to the caller and the contents of the
59441 ** Return SQLITE_OK on success and an error code if we cannot obtain
59545 ** an SQLite error code.
59563 ** and return SQLITE_OK. Otherwise, return an SQLite error code and set
59637 ** to be on disk. Return non-zero (SQLITE_READONLY_DBMOVED or some other error
59670 ** is made to roll it back. If an error occurs during the rollback
59671 ** a hot journal may be left in the filesystem but no error is returned
59705 ** If an error occurs while trying to sync the journal, shift the pager
59785 ** error is encountered, then the IO error code is returned to the caller.
59926 ** If everything is successful, SQLITE_OK is returned. If an IO error
59927 ** occurs, an IO error code is returned. Or, if the EXCLUSIVE lock cannot
60019 ** SQLITE_IOERR_XXX error code is returned if a call to sqlite3OsOpen()
60044 ** error code if the attempt to write to the sub-journal fails, or
60112 ** SQLITE_OK returned. If an IO error occurs while trying to make the
60113 ** page clean, the IO error code is returned. If the page cannot be
60114 ** made clean for some other reason, but no error occurs, then SQLITE_OK
60133 ** Spilling is also prohibited when in an error state since that could
60136 ** while in the error state, hence it is impossible for this routine to
60137 ** be called in the error state. Nevertheless, we include a NEVER()
60138 ** test for the error state as a safeguard against future changes.
60238 ** the new pager object. If an error occurs, *ppPager is set to NULL
60239 ** and error code returned. This function may return SQLITE_NOMEM
60277 /* Set the output variable to NULL in case an error occurs. */
60544 /* If an error occurred above, free the Pager structure and close the file.
60652 ** set to 0 and SQLITE_OK returned. If an IO error occurs while trying
60653 ** to determine whether or not a hot-journal file exists, the IO error
60730 ** it has a zero header, that might be due to an I/O error, or
60767 ** no outstanding references to any pages, and is in the error state,
60768 ** then an attempt is made to clear the error state by discarding
60772 ** If everything is successful, SQLITE_OK is returned. If an IO error
60774 ** rolling back a journal file, the IO error code is returned.
60845 ** may mean that the pager was in the error-state when this
60886 /* This branch is taken if an error occurs while trying to open
61009 ** getPageError() -- Used if the pager is in an error state
61047 ** an appropriate error code is returned and *ppPage is set to NULL.
61099 ** be initialized. But first some error checks:
61121 ** to test the case where a malloc error occurs while trying to set
61230 /* The page getter method for when the pager is an error state */
61265 ** returns NULL if the page is not in cache or if a disk I/O error
61336 ** an IO error code if opening or writing the journal file fails.
61346 /* If already in the error state, this function is a no-op. But on
61348 ** an error state. */
61452 ** PAGER_RESERVED state. Otherwise, return an error code to the caller.
61514 /* Even if an IO or diskfull error occurs while journalling the
61518 ** in the database file. And if an IO error occurs while doing so,
61578 ** an error might occur and the pager would end up in WRITER_LOCKED state
61738 ** If an error occurs, SQLITE_NOMEM or an IO error code is returned
61905 ** function returns SQLITE_OK. Otherwise, an IO error code is returned.
61927 ** Otherwise, either SQLITE_BUSY or an SQLITE_IOERR_XXX error code is
61986 /* If a prior error occurred, report that error again. */
61989 /* Provide the ability to easily simulate an I/O error during testing */
62199 ** If an error occurs, an IO error code is returned and the pager
62200 ** moves into the error state. Otherwise, SQLITE_OK is returned.
62205 /* This routine should not be called if a prior error has occurred.
62206 ** But if (due to a coding error elsewhere in the system) it does get
62207 ** called, just return the same error code without doing anything. */
62246 ** state if an error occurs.
62274 ** attempted here. Instead, the error code is returned to the caller.
62289 /* This can happen using journal_mode=off. Move the pager to the error
62308 /* If an error occurs during a ROLLBACK, we can no longer trust the pager
62309 ** cache. So call pager_error() on the way out to make any error persistent.
62415 ** If a memory allocation fails, SQLITE_NOMEM is returned. If an error
62416 ** occurs while opening the sub-journal file, then an IO error code is
62504 ** or an IO error code if an IO error occurs while rolling back a
62558 ** back journal_mode=off, put the pager in the error state. This way,
62693 ** This function may return SQLITE_NOMEM or an IO error code if an error
63133 ** (e.g. due to malloc() failure), return an error code.
63154 ** return SQLITE_OK. If an error occurs or the VFS used by the pager does
63155 ** not support the xShmXXX() methods, return an error code. *pbOpen is
63198 ** error (SQLITE_BUSY) is returned and the log connection is not closed.
63244 ** Return an SQLite error code if an error occurs, or SQLITE_OK otherwise.
63268 ** currently open. Otherwise, return an error.
63281 ** identifies. If this is not a WAL database, return an error.
63298 ** is not a WAL database, return an error.
63318 ** the CHECKPOINTER lock cannot be obtained, SQLITE_BUSY. If any error
63893 u8 lockError; /* True if a locking error has occurred */
64831 ** *ppWal is set to point to a new WAL handle. If an error occurs,
64832 ** an SQLite error code is returned and *ppWal is left unmodified.
65135 ** return SQLITE_OK. Otherwise, return an error code. If this routine
65136 ** returns an error, the value of *pp is undefined.
65249 ** an SQLite error code if an error occurs, or SQLITE_OK otherwise. It is not
65250 ** an error if blocking locks can not be enabled.
65584 ** it to exactly nMax bytes. If an error occurs while doing so, ignore it.
65752 ** Otherwise an SQLite error code.
65760 ** wal-index header) is mapped. Return early if an error occurs here.
65780 return rc; /* Any other non-OK return is just an error */
65876 ** If an error occurs, an SQLite error code is returned.
65920 ** or SQLITE_READONLY_CANTINIT or some error for all subsequent invocations,
66031 ** I/O error or an SQLITE_BUSY because another process is running
66032 ** recovery) return a positive error code.
66089 /* Take steps to avoid spinning forever if there is a protocol error.
66305 ** SQLITE_OK is returned if successful, or an SQLite error code if an
66306 ** error occurs. It is not an error if nBackfillAttempted cannot be
66501 ** Return SQLITE_OK if successful, or an error code if an error occurs. If an
66502 ** error does occur, the final value of *piRead is undefined.
66606 ** error code otherwise.
66713 ** other than SQLITE_OK, it is not invoked again and the error code is
66716 ** Otherwise, if the callback function does not return an error, this
66806 ** SQLITE_OK is returned if no error is encountered (regardless of whether
66807 ** or not pWal->hdr.mxFrame is modified). An SQLite error code is returned
66808 ** if an error occurs.
66930 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
67312 /* If no error occurred, set the output variables. */
67395 ** prior error while attempting to acquire are read-lock. This cannot
67398 ** upgrade to exclusive-mode following such an error.
67495 ** the CHECKPOINTER lock cannot be obtained, SQLITE_BUSY. If any error
67946 # error wrong numeric code for no-transaction
67949 # error wrong numeric code for read-transaction
67952 # error wrong numeric code for write-transaction
68089 ** FAULT skipNext holds the cursor fault error code.
68154 ** An unrecoverable error (an I/O error or a malloc failure) has occurred
68156 ** cursor. The error has left the cache in an inconsistent state.
68158 ** should return the error code stored in BtCursor.skipNext
68267 int bOomFault; /* A memory allocation error has occurred */
68271 StrAccum errMsg; /* Accumulate the error message text here */
69275 ** pCur->pKey. SQLITE_OK is returned if successful or an SQLite error
69610 ** a no-op. If an error occurs, the appropriate error code is written
69670 ** An error code is returned if something goes wrong, otherwise SQLITE_OK.
70310 ** an error code (usually SQLITE_CORRUPT).
70569 ** an error. */
70873 ** error, return ((unsigned int)-1).
70893 ** If an error occurs, then *ppPage is undefined. It
70984 ** release it and return an SQLITE_CURRUPT error.
71066 ** SQLITE_CONSTRAINT error. We cannot allow two or more BtShared
71428 ** does cause a valgrind error when the 1 or 2 bytes of unitialized
71429 ** data is passed to system call write(). So to avoid this error,
72081 ** if successful, or an SQLite error code otherwise.
72223 ** called and SQLITE_BUSY_SNAPSHOT is returned, change the error
72496 ** calling this function again), return SQLITE_DONE. Or, if an error
72497 ** occurs, return some other error code.
72507 ** or an error. bCommit is passed true for an auto-vacuum-on-commit
72634 ** SQLITE_DONE is returned. If it is not finished, but no error occurred,
72635 ** SQLITE_OK is returned. Otherwise an SQLite error code.
72860 ** Normally, if an error occurs while the pager layer is attempting to
72861 ** finalize the underlying journal file, this function returns an error and
72866 ** functions return code. So, even if an error occurs in the pager layer,
72869 ** transitioned to the error state.
72918 ** This routine sets the state to CURSOR_FAULT and the error
72936 ** If the writeOnly flag is true and an error is encountered while
72940 ** SQLITE_OK is returned if successful, or if an error occurs while
72941 ** saving a cursor position, an SQLite error code.
72989 ** a tripped cursor will result in an error.
73049 ** error occurs within the statement, the effect of that one statement
73449 ** If an error occurs an SQLite error code is returned. Otherwise:
73528 ** SQLITE_OK is returned on success, otherwise an error code.
73610 /* Trying to read or write past the end of the data is an error. The
73780 ** Return SQLITE_OK on success or an error code if anything goes
73781 ** wrong. An error is returned if "offset+amt" is larger than
74029 ** return an SQLITE_CORRUPT error.
74648 ** have been deleted? This API will need to change to return an error code
74685 ** otherwise some kind of error occurred
74778 ** otherwise some kind of error occurred
74866 ** an error. *ppPage is set to NULL in the event of an error.
75281 ** coded. But due to a coding error in versions of SQLite prior to
75414 ** STore the result code (SQLITE_OK or some error code) in rc.
76312 ** be marked as dirty. Returning an error code will cause a
77288 ** to call releasePage() on *ppChild exactly once. If an error occurs,
77289 ** an error code is returned and *ppChild is set to 0.
77874 /* If no error has occurred and pPage has an overflow cell, call balance()
77940 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
78324 ** the new table (assuming an error did not occur). But we were
78713 ** Otherwise, if an error is encountered (i.e. an IO error or database
78714 ** corruption) an SQLite error code is returned.
78726 /* Unless an error occurs, the following loop runs one iteration for each
78777 /* An error has occurred. Return an error code. */
78791 ** Append a message to the error message string.
78839 ** reference to the page, add an error message to pCheck->zErrMsg.
78862 ** page iParent, pointer type ptrType. If not, append an error message
79069 "unable to get the page. error code=%d", rc);
79078 assert( rc==SQLITE_CORRUPT ); /* The only possible error from InitPage */
79080 "btreeInitPage() returns error code %d", rc);
79292 ** Write the number of error seen in *pnErr. Except for some memory
79293 ** allocation errors, an error message held in memory obtained from
79295 ** returned. If a memory allocation error occurs, NULL is returned.
79777 int rc; /* Backup process error code */
79822 ** a NULL pointer and write an error message to pErrorDb.
79825 ** function. If an error occurs while doing so, return 0 and write an
79826 ** error message to pErrorDb.
79867 ** is an open read-transaction, return SQLITE_ERROR and leave an error
79883 ** If an error occurs, NULL is returned and an error code and error message
79941 ** error was hit. Or there is a transaction open on the destination
79942 ** database. The error has already been written into the pDestDb
79959 ** Argument rc is an SQLite error code. Return true if this error is
80063 ** Return SQLITE_OK if everything is successful, or an SQLite error
80064 ** code if an error occurs.
80376 /* Set the error code of the destination database handle. */
80526 ** within a single call (unless an error occurs). The assert() statement
80528 ** or an error code. */
80846 ** Return SQLITE_OK on success or an error code (probably SQLITE_NOMEM)
80966 ** user and the latter is an internal programming error.
81000 ** Return SQLITE_ERROR if the finalizer reports an error. SQLITE_OK
81032 ** SQLITE_ERROR is returned if xValue() reports an error. SQLITE_OK
81532 ** error occurs.
81593 ** undefined so that we can quickly detect the shallow-copy error */
81992 ** error occurs, output parameter (*ppVal) is set to point to a value
82000 ** and sets (*ppVal) to NULL. Or, if an error occurs, (*ppVal) is set to
82001 ** NULL and an SQLite error code returned.
82097 ** If pCtx is NULL and an error occurs after the sqlite3_value object
82357 ** Unless an error is encountered, SQLITE_OK is returned. It is not an
82358 ** error if a value cannot be extracted from pExpr. If an error does
82359 ** occur, an SQLite error code is returned.
82401 ** SQLITE_OK. If no value can be extracted, but no other error occurs
82402 ** (e.g. OOM), return SQLITE_OK and set *ppVal to NULL. Or, if an error
82403 ** does occur, return an SQLite error code. The final value of *ppVal
82591 ** Change the error string stored in Vdbe.zErrMsg
82693 ** If an out-of-memory error occurs while resizing the array, return
83435 ** that will cause the program to halt with an error message.
83449 ** is generated rather than an assert() or other error, so that ".eqp full"
84064 ** If a memory allocation error has occurred prior to the calling of this
84119 sqlite3 *db, /* Optional - Oom error reporting only */
85386 ** IO error while deleting or truncating a journal file. It is unlikely,
85387 ** but could happen. In this case abandon processing and return the error.
85454 ** super-journal file. If an error occurs at this point close
85492 ** an error occurs here, do not delete the super-journal file.
85494 ** If the error occurs during the first call to
85529 ** may be lying around. Returning an error code won't help matters.
85588 ** If an IO error occurs, an SQLITE_IOERR_XXX error code is returned.
85653 ** and write an error message to it. Then return SQLITE_ERROR.
85680 ** Return an error code. If the commit could not complete because of
85714 int mrc; /* Primary error code from p->rc */
85716 int isSpecialError; /* Set to true if a 'special' error */
85732 /* If the query was read-only and the error code is SQLITE_INTERRUPT,
85738 ** a statement or transaction rollback operation. If the error
85825 ** do so. If this operation returns an error, and the current statement
85826 ** error code is SQLITE_OK or SQLITE_CONSTRAINT, then promote the
85827 ** current statement error code.
85895 ** Copy the error code and error message belonging to the VDBE passed
85899 ** This function does not clear the VDBE error code or message, just
85943 ** Write any error messages into *pzErrMsg. Return the result code.
85961 ** error, then it might not have been halted properly. So halt
85966 /* If the VDBE has been run even partially, then transfer the error code
85967 ** and error message from the VDBE into the main database structure. But
85969 ** instructions yet, leave the main database error information unchanged.
85980 /* Reset register contents and reclaim error message memory.
86039 ** the result code. Write any error message text into *pzErrMsg.
86162 ** carried out. Seek the cursor now. If an error occurs, return
86163 ** the appropriate error code.
86204 ** if need be. Return any I/O error from the restore operation.
86376 ** float in the wrong order. And that error has been propagated
86574 ** If an OOM error occurs, NULL is returned.
87059 ** SQLITE_CORRUPT and return 0. If an OOM error is encountered,
87504 ** Return SQLITE_OK if everything works, or an error code otherwise.
87717 ** Cause a function to throw an error if it was call from OP_PureFunc
87721 ** throw an error if it is given inputs that would make it non-deterministic.
87752 ** Transfer error message text from an sqlite3_vtab.zErrMsg (text stored
87898 ** an error and return true if it has been finalized (or is otherwise
87958 ** This routine sets the error code and string returned by
87987 ** This routine sets the error code and string returned by
88269 sqlite3_context *pCtx /* Set a SQLITE_TOOBIG error if no NULL */
88443 /* Force an SQLITE_TOOBIG error. */
88451 /* An SQLITE_NOMEM error. */
88501 ** statement is completely executed or an error occurs.
88522 ** error has occurred, then return the error code in p->rc to the
88523 ** caller. Set the error code in the database handle to the same
88561 ** sqlite3_step() after any error or after SQLITE_DONE. But beginning
88563 ** be called automatically instead of throwing the SQLITE_MISUSE error.
88574 ** or SQLITE_BUSY error.
88623 ** error has occurred, then return the error code in p->rc to the
88624 ** caller. Set the error code in the database handle to the same value.
88656 ** sqlite3Step() to do most of the work. If a schema error occurs,
88683 ** The error message from the SQL compiler has already been loaded
88684 ** into the database handle. This block copies the error message
88687 ** finalized or reset the parser error message is available via
89260 # error "Must not define both SQLITE_OMIT_DECLTYPE \
89334 ** the mutex is released if any kind of error occurs.
89336 ** The error code stored in database p->db is overwritten with the return
89809 ** if successful, or a NULL pointer if an OOM error is encountered.
91052 u8 resetSchemaOnFault = 0; /* Reset schema after an error if positive */
91455 ** If P4 is not null then it is an error message string.
91773 ** left holding a NULL. It is an error for register ranges
91774 ** P1..P1+P3-1 and P2..P2+P3-1 to overlap. It is an error
91895 ** Halt with an SQLITE_CONSTRAINT error if there are any unresolved
93463 ** cannot be coerced into the correct type, then raise an error.
93859 ** No error checks or buffer enlargement is required */
94050 ** an error is returned to the user. */
94188 ** return an error indicating that the other VMs must complete first.
94244 ** VDBE to be rolled back after an error without having to roll back the
94245 ** entire transaction. If no error is encountered, the statement transaction
94255 ** generation counter, then an SQLITE_SCHEMA error is raised and execution
94447 ** It is an error for P1 to be negative.
95603 ** Or, if P2 is 0, raise an SQLITE_CORRUPT error. If P1 does contain
95627 ** SQLITE_CORRUPT error. If P1 does contain a record with rowid P3 then
95734 ** an SQLITE_FULL error is generated. The P3 register is updated with the '
96728 ** If P5 is not zero, then raise an SQLITE_CORRUPT_INDEX error
96734 ** this (self-correcting and non-critical) error if in writable_schema mode.
96818 ** since it was last positioned and an error (e.g. OOM or an IO error)
97009 ** This opcode throws an error if there are any active reader VMs when
97012 ** database. This error is thrown even if the database is not an AUTOVACUUM
97296 ** register P1 the text of an error message describing any problems.
97316 char *z; /* Text of the error report */
97675 ** This instruction throws an error if the memory cell is not initially
98010 ** completes into mem[P3+2]. However on an error, mem[P3+1] and
98259 ** used to generate an error message if the lock cannot be obtained.
98288 ** within a callback to a virtual table xSync() method. If it is, the error
98566 ** underlying implementation to return an error if one occurs during
98567 ** xNext(). Instead, if an error occurs, true is returned (indicating that
98568 ** data is available) and the error code returned when xColumn or
98644 ** P5 is the error actions (OE_Replace, OE_Fail, OE_Ignore, etc) to
98783 ** if they were, they throw an error.
98819 /* If the function returned an error, throw an exception */
98945 ** error is encountered.
99170 ** an error of some kind.
99188 printf("ABORT-due-to-error (rc=%d): %s\n", rc, zTrace);
99300 ** If an error occurs, or if the specified row does not exist or does not
99302 ** blob handle was opened, then an error code is returned and *pzErr may
99303 ** be set to point to a buffer containing an error message. It is the
99304 ** responsibility of the caller to free the error message buffer using
99307 ** If an error does occur, then the b-tree cursor is closed. All subsequent
99511 ** locking and error handling infrastructure built into the vdbe.
99653 /* Request is out of range. Return a transient error. */
99736 ** If an error occurs, or if the specified row does not exist or does not
99737 ** contain a blob or text value, then an error code is returned and the
99738 ** database handle error code and message set. If this happens, then all
100191 int eFWErr; /* Non-zero if in an error state */
100256 ** and return SQLITE_OK. Otherwise, if an error occurs, return an SQLite
100257 ** error code.
100294 /* Readr data from the file. Return early if an error occurs. */
100386 ** Or, if an error occurs, return an SQLite error code. The final value of
100404 ** if successful, or an SQLite error code if an error occurs.
100451 ** no error occurs, or an SQLite error code if one does.
100557 ** If an OOM error is encountered, (pTask->pUnpacked->error_rc) is set
100702 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
101079 ** Otherwise, set *ppFd to 0 and return an SQLite error code.
101175 ** SQLITE_OK if successful, or an SQLite error code (i.e. SQLITE_NOMEM) if
101176 ** an error occurs.
101249 ** if successful, or an SQLite error code if an error occurs.
101279 ** required. Otherwise, return an SQLite error code.
101301 ** SQLITE_OK if successful, or an SQLite error code if an error occurs.
101313 ** successful, or an SQLite error code otherwise.
101386 ** Return SQLITE_OK if successful or an error code if an error occurs.
101729 ** SQLITE_OK is returned on success, or an SQLite error code otherwise.
101888 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
101964 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
102074 ** PMAs from pTask->file. If no error occurs, set *ppOut to point to
102075 ** the new object and return SQLITE_OK. Or, if an error does occur, set *ppOut
102076 ** to NULL and return an SQLite error code.
102079 ** first PMA to read from pTask->file. Assuming no error occurs, it is
102081 ** PMA before returning. If an error does occur, then the final value of
102138 ** If successful, SQLITE_OK is returned. If an error occurs, an SQLite error
102194 ** error occurs, an SQLite error code is returned and the final value
102274 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
102408 ** otherwise some kind of error.
102500 ** If an error occurs, return an SQLite error code (i.e. SQLITE_NOMEM).
102898 ** then return an SQLITE_CONSTRAINT error.
103137 /* No error has occurred. Free the in-memory buffers. */
103142 /* If an error occurred while creating or writing to the file, restore
103904 ** If the name cannot be resolved unambiguously, leave an error message
103940 ** resulting in an appropriate error message toward the end of this routine
104002 ** not joined by USING. This is an error. Signal as much
104058 ** not joined by USING. This is an error. Signal as much
104315 ** rather than causing an error, to the frustration of countless
104340 ** cnt==0 is always an error. cnt>1 is often an error, but might
104467 ** Report an error that an expression is not valid for some set of
104471 ** Parse *pParse, // Leave error message here
104473 ** const char *zMsg, // Type of error
104475 ** Expr *pExpr // Invalidate this expression on error
104483 Parse *pParse, /* Leave error message here */
104485 const char *zMsg, /* Type of error */
104486 Expr *pExpr, /* Invalidate this expression on error */
104487 Expr *pError /* Associate error with this expression */
104527 ** This routine also does error checking and name resolution for
104990 Parse *pParse, /* Parsing context for error messages */
105029 ** If there is no match, return 0. Return -1 if an error occurs.
105032 Parse *pParse, /* Parsing context for error messages */
105076 ** Generate an ORDER BY or GROUP BY term out-of-range error.
105079 Parse *pParse, /* The error context into which to write the error */
105083 Expr *pError /* Associate the error with the expression */
105098 ** 1 through N generate an error. ORDER BY terms that are expressions
105107 Parse *pParse, /* Parsing context. Leave error messages here */
105216 ** If any errors are detected, add an error message to pParse and
105220 Parse *pParse, /* Parsing context. Leave error messages here */
105294 ** an appropriate error message might be left in pParse. (OOM errors
105544 ** than the right-most term, then that is a syntax error. But the error
105602 ** table columns and result-set columns. At the same time, do error
105645 ** An error message is left in pParse if anything is amiss. The number
105773 ** set to the column number. In case (4), TK_COLUMN nodes cause an error.
105775 ** Any errors cause an error message to be set in pParse.
105907 ** If a memory allocation error occurs, that fact is recorded in pParse->db
106519 ** expression depth allowed. If it is not, leave an error message in
106597 ** leave an error in pParse.
106713 ** If pRoot==NULL that means that a memory allocation error has occurred.
106754 ** Expr node. Or, if an OOM error occurs, set pParse->db->mallocFailed,
106807 ** an error message is left in pParse.
106919 ** If the function is not usable, create an error.
107090 ** The pExpr might be deleted immediately on an OOM error.
107599 ** If a memory allocation error occurs, the entire list is freed and
107770 ** pList might be NULL following an OOM error. But pName should never be
107805 ** pList might be NULL following an OOM error. But pSpan should never be
107829 ** leave an error message in pParse.
107986 ** an error for new statements, but is silently converted
107990 ** malformed schema error.
108053 ** sqlite3_prepare() causes an error */
108221 ** isInit is false, parameters raise an error. Parameters should not be
108327 && p->y.pTab->aCol!=0 /* Possible due to prior error */
108806 ** Load the Parse object passed as the first argument with an error
108951 ** error will have been caught long before we reach this point. */
109061 ** Return 0 if an error occurs.
112225 ** If an error is found, the analysis is cut short.
112352 ** If the table is a system table, this function leaves an error message
112383 const char *zWhen, /* "when" part of error message */
112479 ** in database iDb. If so, this is an error.
112616 ** Write code that will raise an error if the table described by
112882 ** it loads an error message into pParse and returns non-zero.
113375 ** An error occured while parsing or otherwise processing a database
113377 ** ALTER TABLE RENAME COLUMN program. The error message emitted by the
113379 ** adds context to the error message and then stores it in pCtx.
113392 zErr = sqlite3MPrintf(pParse->db, "error in %s %s%s%s: %s",
113500 ** true, then zNew is always quoted first. If no error occurs, the result
113503 ** Or, if an error occurs (i.e. an OOM condition), an error is left in
113504 ** pCtx and an SQLite error code returned.
113610 ** successful. Otherwise, return an SQLite error code and leave an error
113628 ** error would have been hit before this point */
114194 ** If there is a error in the input SQL, then raise an error, except
114196 ** unmodified following an error.
114300 ** 5: "when" part of error message.
114305 ** A. If an error is seen and not in PRAGMA writable_schema=ON mode,
114306 ** then raise the error.
116016 /* Read the database schema. If an error occurs, leave an error message
116469 ** If an OOM error occurs, this function always sets db->mallocFailed.
116832 /* Return an error if we get here */
117119 ** to an object in a different database, an error message is added to
117249 ** will return with an error. SQLITE_IGNORE means that the SQL statement
117273 ** Write an error message into pParse->zErrMsg that explains that the
117288 ** is treated as SQLITE_DENY. In this case an error is left in pParse.
117324 ** then generate an error.
117380 ** is returned, then the error count and error message in pParse are
117594 ** Note that if an error occurred, it might be the case that
117774 ** an error */
117884 ** error message in pParse->zErrMsg.
117887 ** routine leaves an error message in pParse->zErrMsg where
117899 /* Read the database schema. If an error occurs, leave an error message
118526 /* Skip these error checks for writable_schema=ON */
118534 sqlite3ErrorMsg(pParse, ""); /* corruptSchema() will supply the error */
118749 ** index or table name in the same database. Issue an error message if
118861 /* Normal (non-error) return. */
118864 /* If an error occurs, we jump here */
119293 ** error.
119478 makeColumnPartOfPrimaryKey(pParse, pCol); /* For the error message */
119485 sqlite3ErrorMsg(pParse, "error in generated column \"%s\"",
119490 /* Throw and error for the GENERATED ALWAYS AS clause if the
119647 ** on success and SQLITE_NOMEM on an OOM error.
120438 int noErr /* Suppress error messages if VIEW already exists */
120520 ** of errors. If an error is seen leave an error message in pParse->zErrMsg.
120559 ** Actually, the error above is now caught prior to reaching this point.
121342 ** an explicit "NULLS FIRST" or "NULLS LAST" clause, leave an error in
121383 int ifNotExist, /* Omit error if index already exists */
121795 ** ON CONFLICT clauses this is an error. Otherwise, use the
122222 ** the original SrcList unchanged, return NULL, and leave an error message
122283 ** A SrcList is returned, or NULL if there is an OOM error or if the
122286 ** a new one. If an OOM error does occurs, then the prior value of pList
122500 ** SrcList. Or, if an error occurs, return NULL. In all cases, p1 and p2
122660 ** the number of errors. Leave any error messages in the pParse structure.
122784 ** error. The onError parameter determines which (if any) of the statement
122789 int errCode, /* extended error code */
122951 /* Read the database schema. If an error occurs, leave an error message
123110 ** not, store an error in the Parse structure. */
123309 ** if necessary and generates an error message if the collating sequence
123355 ** sequence can be found. If no collation is found, leave an error message.
123401 ** another error occurs, NULL is returned and an error message written into
123406 ** and generates an error message.
123719 ** return a pointer. Set an error message and return NULL if the table
123720 ** name is not found or if any other error occurs.
123810 ** If pTab is not writable -> generate an error message and return 1.
124610 sqlite3VdbeChangeP5(v, 1); /* Cause IdxDelete to error if no entry found */
124883 ** then abs(X) throws an integer overflow error since there is no
125364 ** Possible error returns from patternMatch()
125623 ** Otherwise, return an error.
127303 ** then non-zero is returned, and a "foreign key mismatch" error loaded
127304 ** into pParse. If an OOM error occurs, non-zero is returned and the
127308 Parse *pParse, /* Parse context to store any error in */
127887 ** violations, halt the VDBE and return an error at this point, before
128055 ** schema items cannot be located, set an error in pParse and return
130250 ** row is skipped, without throwing an error.
131263 ** for improved error detection. */
131409 ** error if pSelect reads from a CTE named "xxx". */
131435 ** there is no ORDER BY, we will get an error. */
131785 ** codes. Also write an error message into memory obtained from
131798 char **pzErrMsg /* Write error messages here */
132299 char **pzErrMsg, /* Used to set error string on failure. */
133165 ** If an error occurs and pzErrMsg is not 0, then fill *pzErrMsg with
133166 ** error message text. The calling function should free this memory
133173 char **pzErrMsg /* Put error message here if not 0 */
133286 *pzErrMsg = sqlite3_mprintf("error during initialization: %s", zErrmsg);
133324 char **pzErrMsg /* Put error message here if not 0 */
133489 ** If anything goes wrong, set an error in the database connection.
134725 /* IMP: R-43042-22504 No error messages are generated if an
135924 /* Set the maximum error count */
136083 int labelError; /* Jump here to report an error */
137162 ** Fill the InitData structure with an error message that indicates
137174 /* A error message has already been generated. Do not overwrite it */
137182 "error in %s %s after %s: %s", azObj[0], azObj[1],
137338 ** auxiliary databases. Return one of the SQLITE_ error codes to
137439 ** For an attached db, it is an error if the encoding is not the same
137540 ** against whatever subset of the schema was loaded before the error
137550 /* Jump here for an error that occurs after successfully allocating
137551 ** curMain and calling sqlite3BtreeEnter(). For an error that occurs
137575 ** error occurs, write an error message into *pzErrMsg.
137610 ** Otherwise, the schema is loaded. An error code is returned.
137752 ** If a memory allocation error occurs, then the cleanup happens immediately.
137988 ** or encounters a permanent error. A schema problem after one schema
137989 ** reset is considered a permanent error. */
138009 ** locked the sqlite3_schema table, return SQLITE_LOCKED. If any other error
138417 ** a join type, but put an error in the pParse structure.
138748 ** Report an error if any column mentioned in the USING clause is
138782 ** such tables. Raise an error if more than one of those references
138785 ** We really ought to raise an error if there are two or more
138788 ** adding a new error so as to not break legacy applications.
139230 Parse *pParse, /* Leave any error here */
139366 /* This is an error condition that can result, for example, when a SELECT
139368 ** there are columns in the table on the left. The error will be caught
139813 ** Name of the connection operator, used for error messages.
140402 ** Return SQLITE_OK on success. If a memory allocation error occurs,
140616 ** If an error occurs, return NULL and leave a message in pParse.
140719 /* iCol must be less than p->pEList->nExpr. Otherwise an error would
141692 assert( v!=0 ); /* Already thrown the error if VDBE alloc failed */
142419 ** syntax error and return a detailed message.
142841 ** Not doing this may cause an error if a subsequent call to this
143293 Parse *pParse, /* Parse context (for malloc() and error reporting) */
143495 ** SQLITE_ERROR and leave an error in pParse. Otherwise, populate
143602 ** arguments. If it does, leave an error message in pParse and return
143692 ** Return 2 if an error condition is detected.
143739 ** recursive reference to CTE pCte. Leave an error in pParse and return
143894 ** SQLITE_OK is returned. Otherwise, if an OOM error is encountered,
144348 ** If anything goes wrong, an error message is written into pParse.
144889 ** encountered, then an appropriate error message is left in
144977 ** In this case, it is an error if the target object (pSrc->a[0]) name
146122 /* The SELECT has been coded. If there is an error in the Parse structure,
146126 /* Control jumps to here if an error is encountered above, or upon
146190 char *zErrMsg; /* Error message text, if an error occurs */
146283 char **pzErrMsg /* Write error messages here */
146524 ** exist, the error is caught by the block below.
146682 Token nameToken; /* Trigger name for error reporting */
146718 ** then raise an error - do not allow the trigger to be created. */
146813 ** If an OOM error occurs, NULL is returned and db->mallocFailed is set.
147250 ** list is of the form "*". Raise an error if the terms if of the
147493 ** (trigger program). If an error has occurred, transfer error information
147532 ** are freed if an error occurs, link them into the Parse.pTriggerPrg
149278 ** Return SQLITE_OK if everything works, or an error code is something
149622 /* Default behavior: Report an error if the argument to VACUUM is
149654 char **pzErrMsg, /* Write error message here */
149847 ** vacuum database and the main database. Assuming no error occurs,
150327 int ifNotExists /* No error if the table already exists */
150624 ** of the virtual table pTab. If an error occurs, an error code is returned
150625 ** and an error left in pParse.
150698 ** If an error occurs, *pzErr is set to point to an English language
150699 ** description of the error and an SQLITE_XXX error code is returned.
150717 ** error. Otherwise, do nothing.
150904 ** array. Return the error code for the first error that occurs, or
150907 ** If an error message is available, leave it in p->zErrMsg.
151008 ** If any virtual table method returns an error code other than SQLITE_OK,
151009 ** processing is abandoned and the error returned to the caller of this
151155 ** and an error message was left in pParse.
151424 ** prevent a query solution - which is an error) and many terms of the
154743 ** allocation error. The memory allocation failure will be recorded in
155820 ** Most other SQL database engines raise an error. But SQLite versions
155822 ** clause and carried on. Beginning with 3.39, raise an error only
157934 ** If an error occurs, pParse is populated with an error message and an
157935 ** appropriate error code is returned. A return of SQLITE_CONSTRAINT from
157936 ** xBestIndex is not considered an error. SQLITE_CONSTRAINT indicates that
157940 ** Whether or not an error is returned, it is the responsibility of the
158236 ** If an error occurs, an SQLite error code is returned. Otherwise,
158343 ** rows in the index. Assuming no error occurs, *pnOut is adjusted (reduced)
158529 ** for a UTF conversion required for comparison. The error is stored
158593 ** for a UTF conversion required for comparison. The error is stored
160363 ** error if they are not */
161327 ** error occurs.
162090 ** If an error occurs, this routine returns NULL.
163778 ** accordingly. If no such WINDOW clause can be found, leave an error
164213 /* Might actually be some other kind of error, but in that case
164215 ** the correct error message regardless. */
164233 /* Defer deleting the temporary table pTab because if an error occurred,
164399 ** leaves an error in pParse.
165553 ** If an OOM error occurs, this function sets the Parse.db.mallocFailed
166259 ** Disable all error recovery processing in the parser push-down
166320 ** Issue an error message if an ORDER BY or LIMIT clause occurs on an
166329 sqlite3ErrorMsg(pParse, "syntax error near \"ORDER BY\"");
166331 sqlite3ErrorMsg(pParse, "syntax error near \"LIMIT\"");
166433 ** list of identifiers. Report an error if the ID list contains
166435 ** error while parsing a legacy schema.
166448 sqlite3ErrorMsg(pParse, "syntax error after column name \"%.*s\"",
166456 # error too many tokens in the grammar
166686 ** YYERRORSYMBOL is the code number of the error symbol. If not
166687 ** defined, then do no error processing.
166694 ** YY_ERROR_ACTION The yy_action[] code for syntax error
166787 ** N == YY_ERROR_ACTION A syntax error has occurred.
167446 ** the parse is retried before an error is thrown.
167675 int yyerrcnt; /* Shifts left before out of the error */
168575 ** reduce or during error processing or when a parser is
168757 ** (2) is not a syntax error.
170582 sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &t);
171347 /* It is not possible for a REDUCE to be followed by an error */
171383 ** The following code executes when a syntax error first occurs.
171387 int yymajor, /* The major type of the error token */
171388 sqlite3ParserTOKENTYPE yyminor /* The minor type of the error token */
171397 sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
171462 int yyerrorhit = 0; /* True if yymajor has invoked an error */
171558 /* A syntax error has occurred.
171559 ** The response to an error depends upon whether or not the
171560 ** grammar defines an error token "ERROR".
171567 ** it is legal to shift the error symbol, then shift
171568 ** the error symbol.
171570 ** * Set the error count to three.
171572 ** * Begin accepting and shifting new tokens. No new error
171614 ** do any kind of error recovery. Instead, simply invoke the syntax
171615 ** error routine and continue going as if nothing had happened.
171618 ** they intend to abandon the parse upon the first syntax error seen.
171626 ** * Report an error message, and throw away the input token.
171630 ** As before, subsequent error messages are suppressed until
173637 ** initialize the mutex subsystem, return early with the error.
173676 ** the pInitMutex mutex. Return an error in either case. */
173948 /* now an error */
174819 sqlite3Error(db, SQLITE_OK); /* Deallocates any cached error strings. */
174902 ** Return a static string containing the name corresponding to the error code
175014 ** Return a static string that describes the kind of error specified in the
175019 /* SQLITE_OK */ "not an error",
175020 /* SQLITE_ERROR */ "SQL logic error",
175029 /* SQLITE_IOERR */ "disk I/O error",
175053 const char *zErr = "unknown error";
175137 ** returns 0, the operation aborts with an SQLITE_BUSY error.
175240 ** that if a malloc() fails in sqlite3_create_function(), an error code
175502 ** fails with an error message stating that the function is used in the
175527 ** a new one that always throws a run-time error.
175866 /* Initialize the output variables to -1 in case an error occurs. */
175926 ** an error occurs while running the checkpoint, an SQLite error code is
175934 ** checkpointed. If an error is encountered it is returned immediately -
176005 ** error.
176031 ** Return the byte offset of the most recent error
176046 ** error.
176077 ** sqlite3ApiExit(), to avoid setting the database handle error message.
176087 ** Return the most recent error code generated by an SQLite routine. If NULL is
176113 ** Return a string that describes the kind of error specified in the
176221 # error SQLITE_MAX_LENGTH must be at least 100
176224 # error SQLITE_MAX_SQL_LENGTH must be at least 100
176227 # error SQLITE_MAX_SQL_LENGTH must not be greater than SQLITE_MAX_LENGTH
176230 # error SQLITE_MAX_COMPOUND_SELECT must be at least 2
176233 # error SQLITE_MAX_VDBE_OP must be at least 40
176236 # error SQLITE_MAX_FUNCTION_ARG must be between 0 and 127
176239 # error SQLITE_MAX_ATTACHED must be between 0 and 125
176242 # error SQLITE_MAX_LIKE_PATTERN_LENGTH must be at least 1
176245 # error SQLITE_MAX_COLUMN must not exceed 32767
176248 # error SQLITE_MAX_TRIGGER_DEPTH must be at least 1
176251 # error SQLITE_MAX_WORKER_THREADS must be between 0 and 50
176332 ** If an error occurs, then an SQLite error code is returned and *pzErrMsg
176333 ** may be set to point to a buffer containing an English language error
176383 ** common error, we are told, so we handle it as a special case. */
176438 /* If ENABLE_URI_00_ERROR is defined, "%00" in a URI is an error. */
176806 ** conversions. The only error that can occur here is a malloc() failure.
176836 ** Throw an error if any non-sense combination is used. If we
177183 ** SQLITE_MISUSE, SQLITE_CANTOPEN, SQLITE_NOMEM and possibly other error
177187 ** to detect when version error conditions occurs.
177190 ** a low-level error is first detected.
177224 return sqlite3ReportError(SQLITE_IOERR_NOMEM, lineno, "I/O OOM error");
177337 ** to whatever their local counterparts contain. If an error did occur,
177509 ** memory allocation error, 0 on success, or non-zero for an error.
177745 ** is useful to make it easier to reach strange internal error states
178023 ** error to call this routine with any parameter other than a pointer
178093 ** It is an error to pass this routine a filename string that was not
178096 ** an error that we cannot easily detect but that will likely cause memory
178498 ** but has received an SQLITE_LOCKED error because another connection
178639 ** This is a difficult situation to handle. Returning an error
178640 ** code to the caller is insufficient, as even if an error code
179110 ** This method should return either SQLITE_OK (0), or an SQLite error
179149 ** the end of the buffer has been reached, or an SQLite error code.
180021 ** Return the number of bytes read, or 0 on error.
180031 ** Return the number of bytes read, or 0 on error.
180197 ** Write an error message into *pzErr
180259 ** Otherwise, return an SQLite error code.
180271 ** Otherwise, if an error occurs, an SQLite error code is stored in *pRc
180391 ** Otherwise, if an error occurs, an SQLite error code is stored in *pRc
180524 ** a NULL pointer is returned). Otherwise, if an OOM error is encountered
180526 ** no error occurs, *pRc is left unmodified.
180581 ** a NULL pointer is returned). Otherwise, if an OOM error is encountered
180583 ** no error occurs, *pRc is left unmodified.
180610 ** consumed. If an overflow error occurs return a negative value.
180662 ** If no error occurs, SQLITE_OK is returned and *apIndex set to point to
180664 ** array. If an error does occur, an SQLite error code is returned.
180666 ** Regardless of whether or not an error is returned, it is the responsibility
180734 ** If the table cannot be found, an error code is returned and the output
180745 char **pzErr /* OUT: error message */
180820 char **pzErr /* Write any error message here */
181046 sqlite3Fts3ErrMsg(pzErr, "error parsing prefix parameter: %s", zPrefix);
181203 char **pzErr /* OUT: sqlite3_malloc'd error message */
181213 char **pzErr /* OUT: sqlite3_malloc'd error message */
181280 ** function MATCH in the requested context" error. To discourage
181306 ** context" error.
181451 ** it. If an error occurs, return an SQLite error code.
181497 /* If no row was found and no error has occurred, then the %_content
181526 ** If an OOM error occurs, SQLITE_NOMEM is returned. Otherwise, SQLITE_OK.
181652 ** If an error occurs, an error code other than SQLITE_OK is returned.
182223 ** If no error occurs, *paOut is set to point at an sqlite3_malloc'd buffer
182227 ** If an error occurs, an SQLite error code is returned. The output values
182451 ** If an OOM error occurs, return SQLITE_NOMEM. In this case it is
182507 ** SQLite error code (SQLITE_NOMEM) if an error occurs.
182604 ** This function returns SQLITE_OK if successful, or an SQLite error code
182711 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
182730 ** an SQLite error code.
182735 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
182736 ** Output parameter *ppSegcsr is set to 0 if an error occurs.
183208 ** to 0 or 1). Return SQLITE_OK if successful, or an SQLite error code
183209 ** if an error occurs.
183321 ** output variable *ppCsr and SQLITE_OK is returned. Otherwise, an error
183323 ** string passed via zFunc is used as part of the error message.
183780 /* An error has occurred. Delete the hash table and return the error code. */
183844 ** SQLITE_OK is returned if successful, or SQLITE_NOMEM if an error occurs.
183908 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
183945 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
184061 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
184274 ** If an error occurs, return an SQLite error code. Otherwise, return
184322 ** If there is no "next" entry and no error occurs, then *pbEof is set to
184323 ** 1 before returning. Otherwise, if no error occurs and the iterator is
184326 ** If an error occurs, return an SQLite error code. Otherwise, return
184423 ** If an error occurs, return an SQLite error code. Otherwise, return
184426 ** If there is no "next" entry and no error occurs, then *pbEof is set to
184427 ** 1 before returning. Otherwise, if no error occurs and the iterator is
184466 ** If an error occurs within this function, *pRc is set to an SQLite error
184519 ** Otherwise, if an error occurs during execution, *pRc is set to an
184520 ** SQLite error code.
184568 ** an SQLite error code.
184633 ** If no error occurs, SQLITE_OK is returned and sqlite3Fts3DeferToken()
184634 ** called on each token to defer. Otherwise, an SQLite error code is
184892 ** If an error occurs, *pRc is set to an SQLite error code. Otherwise, if
185142 ** Assuming no error occurs or has occurred, It returns non-zero if the
185147 ** If an error occurs during execution of this function, *pRc is set to
185148 ** the appropriate SQLite error code. In this case the returned value is
185261 ** Or, if no error occurs and it seems the current row does match the FTS
185332 ** a no-op. If an error occurs within this function, *pRc is set to an
185333 ** SQLite error code before returning.
185418 ** populated. Otherwise, if an error occurs, an SQLite error code is returned.
185512 ** If no error occurs, SQLITE_OK is returned and the values for each column
185823 char **pzErr /* OUT: sqlite3_malloc'd error message */
186281 ** if successful or an error code if sqlite3_create_module() fails.
186420 sqlite3_context *pCtx; /* Write error message here */
186591 ** error) or SQLITE_ERROR (tokenization error) is returned and *ppExpr set
186708 ** Returns an SQLite error code. SQLITE_OK if everything works, SQLITE_NOMEM
186709 ** if a malloc failure occurs, or SQLITE_ERROR if a parse error is encountered.
186710 ** If SQLITE_ERROR is returned, pContext is populated with an error message.
186929 ** (out of memory error) or SQLITE_ERROR (parse error) is returned.
186981 ** isRequirePhrase is set, this is a syntax error.
187011 ** Return an error in either case.
187103 ** Otherwise, if an error occurs, an SQLite error code is returned and
187218 /* An error occurred. Delete the contents of the apLeaf[] array
187324 ** of the parsed expression tree and SQLITE_OK is returned. If an error
187325 ** occurs, either SQLITE_NOMEM (out-of-memory error) or SQLITE_ERROR (parse
187326 ** error) is returned and *ppExpr is set to 0.
187809 ** Return non-zero if a memory allocation error occurs.
188724 ** an error is returned.
188835 char **pzErr /* OUT: Set to malloced error message */
188983 zErr = "error in xCreate()";
188988 zErr = "error in xOpen()";
189001 zErr = "error in xClose()";
189005 zErr = "error in xDestroy()";
189531 ** in this case. Or, if an error occurs, an SQLite error code is returned.
189590 char **pzErr /* OUT: sqlite3_malloc'd error message */
189847 ** if successful or an error code if sqlite3_create_module() fails.
190167 ** Otherwise, an SQLite error code is returned and *pp is set to 0.
190379 ** SQLite error code otherwise.
190407 ** It is best to avoid this because if FTS3 returns any error when
190470 ** return SQLITE_OK. If an error occurs while preparing the statement,
190471 ** return an SQLite error code.
190521 ** if successful, or an SQLite error code otherwise.
190571 ** If an OOM error occurs, *pRc is set to SQLITE_NOMEM before returning.
190572 ** Zero is always returned in this case. Otherwise, if no OOM error occurs,
190673 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code.
190886 ** In FTS3, this is an error. It is an error to specify non-NULL values
191011 ** returned. Otherwise, an SQLite error code is returned.
191069 ** If an error occurs, or the table does not contain the specified row,
191070 ** an SQLite error code is returned. Otherwise, SQLITE_OK is returned. If
191197 ** SQLITE_DONE. Otherwise, an SQLite error code.
191831 ** *pnMax to this value and return SQLITE_OK. Otherwise, if an error occurs,
191832 ** set *pnMax to zero and return an SQLite error code.
192049 ** blocks were written to the db). Otherwise, an SQLite error code is
192119 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code.
192270 ** returned. Otherwise, an SQLite error code.
192325 ** error occurs, an SQLite error code is returned.
192352 ** Return SQLITE_OK if successful, or an SQLite error code if not.
192385 ** within its index. Assuming no error occurs, *pbMax is set to 1 if
192387 ** is returned. If an error occurs, an error code is returned and the
192448 ** SQLITE_OK is returned if successful, otherwise an SQLite error code.
192549 ** If successful, return SQLITE_OK. Otherwise, if an OOM error is encountered
193103 ** Otherwise, if successful, SQLITE_OK is returned. If an error occurs,
193104 ** an SQLite error code is returned.
193635 ** If an OOM error occurs, set *pRc to SQLITE_NOMEM and leave pBlob->a
193656 ** Return an error code if an error occurs (SQLITE_NOMEM is possible).
193714 ** error code is returned.
193843 ** If an error (i.e. OOM condition) occurs, an SQLite error code is
193895 ** Return SQLITE_OK if successful, or an SQLite error code otherwise.
193972 ** merge-writer object pWriter, and if no error has occurred, to flush
193979 ** Otherwise, if *pRc is initially SQLITE_OK and an error occurs while
193980 ** flushing buffers to disk, *pRc is set to an SQLite error code before
194093 ** NULL. If no error occurs and the entry is NULL, set *pbRes 1 before
194096 ** Or, if an error occurs while querying the database, return an SQLite
194097 ** error code. The final value of *pbRes is undefined in this case.
194278 ** level iAbsLevel+1. If no error occurs, set *piIdx to this value plus
194282 ** If an error occurs, return an SQLite error code. The final value of
194550 ** SQLite error code otherwise.
194710 ** table and return SQLITE_OK. Otherwise, if an error occurs, return an
194711 ** SQLite error code.
194746 ** If successful, leave *pRc set to SQLITE_OK and return. If an error occurs,
194747 ** set *pRc to an SQLite error code before returning.
194767 ** If no error occurs, return SQLITE_OK. If the hint blob in *pHint does
195091 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code. The
195165 ** content table. If no error occurs and the contents do match, set *pbOk
195169 ** If an error occurs (e.g. an OOM or IO error), return an SQLite error
195255 ** Run the integrity-check. If no error occurs and the current contents of
195259 ** Or, if an error (e.g. an OOM or IO error) occurs, return an SQLite
195260 ** error code.
195620 ** other error) while doing so, return immediately.
195981 ** the iteration is abandoned and the error code returned immediately.
196842 ** Otherwise, if an error occurs, an SQLite error code is returned and the
196930 ** Return SQLITE_OK if successful, or an SQLite error code if an error
198312 sqlite3_context *pCtx; /* Function context - put error messages here */
198317 u8 bErr; /* True if an error has been encountered */
198433 ** Return zero on success. Return non-zero on an OOM error
199005 ** Return negative for a syntax error. Special cases: return -2 if the
199159 return -1; /* Syntax error */
199165 ** are any errors. If an error occurs, free all memory associated with
199346 const char **pzErr /* Make *pzErr point to any syntax error in zPath */
199498 const char **pzErr /* Make this point to any syntax error */
199517 ** Return the text of a syntax error message on a JSON path. Space is
199521 return sqlite3_mprintf("JSON path error near '%q'", zErr);
199526 ** Return NULL if not found or if there is an error.
199528 ** On an error, write an error message into pCtx and increment the
199690 ** is a BLOB, throw an error.
199974 ** is not a string or if any value is a BLOB, throw an error.
200016 ** JSON or PATH arguments result in an error.
200049 ** this routine is a no-op. If JSON or PATH is malformed, throw an error.
200096 ** If JSON or PATH is malformed, throw an error.
200101 ** routine is a no-op. If JSON or PATH is malformed, throw an error.
200154 ** error if either the JSON or PATH inputs are not well-formed.
201721 /* If no error has occurred so far, check if the "number of entries"
202719 ** *ppLeaf to 0 and return SQLITE_OK. If an error occurs, set *ppLeaf
202720 ** to zero and return an SQLite error code.
204115 ** Assuming no OOM error occurs, this function sets the error message
204583 ** is written to *piVal and SQLITE_OK returned. Otherwise, an SQLite error
204605 ** Otherwise, an SQLite error code is returned.
204902 ** Reset SQL statement pStmt. If the sqlite3_reset() call returns an error,
204903 ** and RtreeCheck.rc==SQLITE_OK, set RtreeCheck.rc to the error code.
204916 ** NULL is returned and an error code left in RtreeCheck.rc.
204968 ** This function is a no-op if there is already an error code stored
204974 ** If no error occurs, a pointer to the buffer is returned and (*pnNode)
204977 ** Or, if an error does occur, NULL is returned and an error code left
205068 ** x1>x2 conditions) and adds an error message to the RtreeCheck object
205074 ** sets of coordinates are mutually consistent and an error message added
205079 i64 iNode, /* Node id to use in error messages */
205080 int iCell, /* Cell number to use in error messages */
205120 ** If any problems are discovered, an error message is appended to the
205183 ** an error message to the report in the RtreeCheck object indicated
205569 ** If any error occurs, return NULL.
205646 ** polygon, put an error message in sqlite3_context and return NULL.
205649 sqlite3_context *pCtx, /* Context for error messages */
205651 int *pRc /* Write error here */
205977 sqlite3_context *context, /* For recording the error */
207401 ** the implementation of an SQL scalar function returns an error.
207404 ** loaded with an error message based on the following two args.
207412 sqlite3_snprintf(128, zBuf, "ICU error: %s(): %s", zName, u_errorName(e));
207579 ** Otherwise, return an error.
208242 ** other error occurs, the RBU extension will keep throwing errors. It's
208410 ** do so results in an SQLITE_MISMATCH error.
208519 ** to do so is an error (SQLITE_ERROR).
208527 ** the suspended RBU update is also an error (SQLITE_BUSY).
208533 /* #include "sqlite3.h" ** Required for error code definitions ** */
208601 ** With an RBU vacuum, it is an SQLITE_MISUSE error if the name of the
208634 ** error is returned.
208668 ** If an error has occurred, either while opening or stepping the RBU object,
208669 ** this function may return NULL. The error code and message may be collected
208681 ** SQLITE_OK if no error occurs but there remains work to do to apply
208682 ** the RBU update. If an error does occur, some other error code is
208699 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
208707 ** as fully applied. Otherwise, assuming no error has occurred, save the
208710 ** If an error has already occurred as part of an sqlite3rbu_step()
208712 ** SQLite error code is returned. Additionally, if pzErrmsg is not NULL,
208714 ** English language error message. It is the responsibility of the caller to
208717 ** Otherwise, if no error occurs, this function returns SQLITE_OK if the
208799 ** An error has occurred. Any subsequent calls to sqlite3rbu_step() will
208800 ** immediately return the SQLite error code associated with the error.
208824 ** success. If an error occurs, it should return an SQLite error code.
208825 ** In this case the RBU operation will be abandoned and the error returned
208854 ** multiplexor (error checking omitted):
208873 ** that does not include the RBU layer results in an error.
209111 ** 0: Table does not exist (error)
209482 ** patch and the second the patch to apply. If no error occurs, this
209533 ** Otherwise, if an error does occur, set *ppStmt to NULL and return
209534 ** an SQLite error code. Additionally, set output variable *pzErrmsg to
209535 ** point to a buffer containing an error message. It is the responsibility
209556 ** If an error has occurred, then set *pzErrmsg to point to a buffer
209557 ** containing an error message. It is the responsibility of the caller
209575 ** Otherwise, if an error occurs, *ppStmt is set to NULL and an error code
209576 ** returned. In this case, *pzErrmsg may also be set to point to an error
209577 ** message. It is the responsibility of the caller to free this error message
209668 ** If no error occurs, SQLITE_OK is returned and the iterator is left
209669 ** pointing to the next entry. Otherwise, an error code and message is
209671 ** error code is returned.
209784 ** If no error occurs, SQLITE_OK is returned and the iterator is left
209785 ** pointing to the first entry. Otherwise, an error code and message is
209787 ** error code is returned.
209817 ** an error code is stored in the RBU handle passed as the first argument.
209819 ** If an error has already occurred (p->rc is already set to something other
209821 ** stored error code. In this case it still calls sqlite3_free() on any
209845 ** If an error occurs, an error code and error message is stored in the
209846 ** RBU handle. If an error has already occurred when this function is
209870 ** If an error (i.e. an OOM condition) occurs, return NULL and leave an
209871 ** error code in the rbu handle passed as the first argument. Or, if an
209872 ** error has already occurred when this function is called, return NULL
209874 ** error code.
209894 ** error code in the RBU handle passed as the first argument.
209942 ** If the sqlite3_finalize() call indicates that an error occurs, and the
209943 ** rbu handle error code is not already set, set the error code and error
210022 /* Either an error, or no such table. */
210130 ** Return SQLITE_OK if successful, or an SQLite error code otherwise. If
210131 ** an error does occur, an error code and error message are also left in
210683 ** stored in the (p->nCol+1)'th column. Set the error code and error message
210703 ** If an OOM error is encountered when allocating space for the new
210704 ** string, an error code is left in the rbu handle passed as the first
210705 ** argument and NULL is returned. Or, if an error has already occurred
210707 ** attempting the allocation or modifying the stored error code.
210757 ** If an OOM error is encountered when allocating space for the new
210758 ** string, an error code is left in the rbu handle passed as the first
210759 ** argument and NULL is returned. Or, if an error has already occurred
210761 ** attempting the allocation or modifying the stored error code.
210904 ** If an error has already occurred when this function is called, it
210905 ** immediately returns zero (without doing any work). Or, if an error
210906 ** occurs during the execution of this function, it sets the error code
211392 ** is not an error. Output variable *ppStmt is set to NULL in this case.
211404 /* In case an error occurs */
211498 ** If an error occurs, leave an error code and message in the rbu handle
211576 ** error occurs, leave an error code and message in the RBU handle.
211732 ** This is an error. */
211825 /* Assuming no error has occurred, run a "restart" checkpoint with the
211844 ** error.
211846 ** As a result, unless an error (i.e. OOM or SQLITE_BUSY) occurs, the
211956 ** successful, or an SQLite error code otherwise.
212010 ** If an error occurs, leave an error code and error message in the rbu
212090 ** If the rbu_control field contains an invalid value, an error code and
212228 ** If no error occurs, SQLITE_OK is returned. Otherwise, an error code
212229 ** and message is left in the RBU handle and a copy of the error code
212603 ** If an error occurs, an error code and error message are left in the
212622 p->zErrmsg = sqlite3_mprintf("rbu_state mismatch error");
212636 ** target database in the file-system, delete it. If an error occurs,
212637 ** leave an error code and error message in the rbu handle.
212748 /* Check for the rbu_count table. If it does not exist, or if an error
212941 ** error code, which is set to SQLITE_MISUSE.
212996 ** If the error code currently stored in the RBU handle is SQLITE_CONSTRAINT,
212997 ** then edit any error message string so as to remove all occurrences of
213043 ** successfully or encountered an error, delete the contents of the
213278 ** fails with an SQLITE_BUSY error. This is to stop RBU connections
213656 ** one is found, this is an error. */
213661 pRbu->zErrmsg = sqlite3_mprintf("rbu/zipvfs setup error");
214009 ** utf-8 string describing the most recent error encountered associated
214717 ** if successful, or an SQLite error code otherwise.
215366 ** request this page from the page is an SQLITE_CORRUPT error. */
215564 int rc; /* Non-zero if an error has occurred */
215612 int rc; /* Iterator error code */
215879 ** If no error occurs, SQLITE_OK is returned. Or, if an OOM error occurs
216022 ** new.* row currently available and, assuming no error occurs, writes it to
216026 ** If an error occurs, an SQLite error code is returned and the final values
216432 ** (part of the session pSession). If a fatal OOM error occurs, set the
216436 ** It is possible that a non-fatal OOM error occurs in this function. In
216611 ** free any allocation made. An error code will be returned in this case.
216634 ** If an error occurs, an error code is stored in sqlite3_session.rc and
216635 ** non-zero returned. Or, if no error occurs but the table has no primary
216812 ** Unless one is already present or an error occurs, an entry is added
216898 ** be converted to utf-8 and an OOM error occurs while doing so. */
216954 /* If an error has occurred, mark the session object as failed. */
217356 /* Zero the output value in case an error occurs. */
217552 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code
217959 ** error code (e.g. SQLITE_NOMEM) otherwise.
218029 ** changeset format) to buffer *pBuf. If an error occurs, set *pRc to an
218030 ** SQLite error code before returning.
218050 ** If no error occurs, SQLITE_OK is returned and the new changeset/patchset
218051 ** stored in output variables *pnChangeset and *ppChangeset. Or, if an error
218052 ** occurs, an SQLite error code is returned and both output variables set
218071 /* Zero the output variables in case an error occurs. If this session
218072 ** object is already in the error state (sqlite3_session.rc != SQLITE_OK),
218341 /* Zero the output variable in case an error occurs. */
218424 ** Return an SQLite error code if an error occurs, or SQLITE_OK otherwise.
218478 ** error occurs.
218489 ** error. Hence the code to create the copy externally. */
218502 ** to deserialize. Assuming no error occurs, *paChange is set to point to
218518 ** If an error occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.
218598 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code.
218641 ** the record in bytes. Otherwise, an SQLite error code is returned. The
218684 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code
218750 /* If the iterator is in the error-state, return immediately. */
218883 ** error code if an error occurs, or SQLITE_DONE if there are no further
219007 ** they omit all error checking and return a pointer to the requested value.
219020 ** If value iVal is out-of-range or some other error occurs, an SQLite error
219096 /* Zero the output variables in case an error occurs. */
219659 ** An SQLite error code is returned if an error occurs. Otherwise, SQLITE_OK.
219698 ** and SQLITE_ROW is returned. Otherwise, if no row is found and no error
219700 ** error occurs, the statement is reset and an SQLite error code is returned.
219743 ** Return SQLITE_OK if successful, or an SQLite error code otherwise.
219914 ** returns SQLITE_ABORT. Otherwise, if no error occurs, SQLITE_OK is
219994 /* A NOTFOUND or DATA error. Search the table to see if it contains
220781 ** If successful, SQLITE_OK is returned. Or, if an error occurs, an SQLite
220782 ** error code. If an error occurs and xOutput is NULL, (*ppOut) and (*pnOut)
220993 int *pRc /* IN/OUT: error code */
221093 ** object passed as the first argument. If no error occurs and argument xOutput
221101 ** If an error occurs, an SQLite error code is returned. If ppOut and
221397 sqlite3_context *pCtx, /* Context for returning result/error */
221422 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
221423 ** an OOM condition or IO error), an appropriate SQLite error code is
221436 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
221437 ** an OOM condition or IO error), an appropriate SQLite error code is
221448 ** if an error occurs, an SQLite error code is returned and the final values
221461 ** an error code (i.e. SQLITE_NOMEM) if an error occurs.
221476 ** first token of the phrase. Returns SQLITE_OK if successful, or an error
221477 ** code (i.e. SQLITE_NOMEM) if an error occurs.
221506 ** Otherwise, the error code is propagated upwards.
221509 ** Or, if some error occurs before the query completes or is aborted by
221510 ** the callback, an SQLite error code is returned.
221533 ** If an error (e.g. an OOM condition) occurs within this function,
221534 ** the auxiliary data is set to NULL and an error code returned. If the
221683 ** returned. If an error occurs, some value other than SQLITE_OK should
221741 ** if an error occurs with the xTokenize() implementation itself, it
221742 ** may abandon the tokenization and return any error code other than
221814 ** It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time
222000 ** less than 32. If it is set to anything large than that, an #error
222097 ** decent error message if it encounters a file-format version it does
222836 ** Disable all error recovery processing in the parser push-down
222917 ** fts5YYERRORSYMBOL is the code number of the error symbol. If not
222918 ** defined, then do no error processing.
222925 ** fts5YY_ERROR_ACTION The fts5yy_action[] code for syntax error
223003 ** N == fts5YY_ERROR_ACTION A syntax error has occurred.
223100 ** the parse is retried before an error is thrown.
223144 int fts5yyerrcnt; /* Shifts left before out of the error */
223375 ** reduce or during error processing or when a parser is
223493 ** (2) is not a syntax error.
223955 /* It is not possible for a REDUCE to be followed by an error */
223991 ** The following code executes when a syntax error first occurs.
223995 int fts5yymajor, /* The major type of the error token */
223996 sqlite3Fts5ParserFTS5TOKENTYPE fts5yyminor /* The minor type of the error token */
224005 pParse, "fts5: syntax error near \"%.*s\"",FTS5TOKEN.n,FTS5TOKEN.p
224068 int fts5yyerrorhit = 0; /* True if fts5yymajor has invoked an error */
224164 /* A syntax error has occurred.
224165 ** The response to an error depends upon whether or not the
224166 ** grammar defines an error token "ERROR".
224173 ** it is legal to shift the error symbol, then shift
224174 ** the error symbol.
224176 ** * Set the error count to three.
224178 ** * Begin accepting and shifting new tokens. No new error
224220 ** do any kind of error recovery. Instead, simply invoke the syntax
224221 ** error routine and continue going as if nothing had happened.
224224 ** they intend to abandon the parse upon the first syntax error seen.
224232 ** * Report an error message, and throw away the input token.
224236 ** As before, subsequent error messages are suppressed until
224334 ** an SQLite error code if an error occurs, or SQLITE_OK otherwise.
224413 ** called, it is a no-op. If an error (i.e. an OOM condition) is encountered,
224414 ** *pRc is set to an error code before returning.
224488 sqlite3_context *pCtx, /* Context for returning result/error */
224546 ** error occurs.
224660 sqlite3_context *pCtx, /* Context for returning result/error */
224919 sqlite3_context *pCtx, /* Context for returning result/error */
224958 ** error has occurred, throw an exception. */
225037 ** pBuf. If an OOM error occurs, set the error code in p.
225056 ** Append buffer nData/pData to buffer pBuf. If an OOM error occurs, set
225057 ** the error code in p. If an error has already occurred when this function
225149 ** Set the buffer to contain nData/pData. If an OOM error occurs, leave an
225150 ** the error code in p. If an error has already occurred when this function
225277 ** buffer using sqlite3_free(). If an OOM error occurs, NULL is returned.
225636 ** an error occurs, an SQLite error code is returned and an error message
225638 ** eventually free any such error message using sqlite3_free().
225730 *pzErr = sqlite3_mprintf("parse error in tokenize directive");
225801 ** Fts5Config.pTokenizer. Return SQLITE_OK if successful, or an SQLite error
225802 ** code if an error occurs.
225822 ** set if a parse error (failed to find close quote) occurs.
225920 ** new Fts5Config object. If an error occurs, an SQLite error code is
225921 ** returned, *ppOut is set to NULL and an error message may be left in
225923 ** such error message using sqlite3_free().
225984 *pzErr = sqlite3_mprintf("parse error in \"%s\"", zOrig);
226074 ** an SQLite error code if an error occurs.
226115 ** This function returns SQLITE_OK if successful or an SQLite error code
226116 ** if an error occurs. If the tokenization was abandoned early because
226117 ** the callback returned SQLITE_DONE, this is not an error and this function
226120 ** to be an SQLite error code and returned to the caller.
226139 ** NULL to indicate a parse error.
226571 sqlite3Fts5ParseError(pParse, "fts5: syntax error near \"%.1s\"", z);
226669 ** GLOB. If successful, SQLITE_OK is returned. Otherwise, an SQLite error
226908 ** SQLITE_OK is returned if an error occurs, or an SQLite error code
226909 ** otherwise. It is not considered an error code if the current rowid is
227042 ** function is called, it is a no-op. Or, if an error (e.g. SQLITE_NOMEM)
227046 ** If no error occurs and non-zero (a match) is returned, the position-list
227146 ** an error occurs, set *pRc to an error code. If either *pbEof or *pRc
227260 ** If an error occurs, return an SQLite error code. Otherwise, return
227261 ** SQLITE_OK. It is not considered an error if some term matches zero
227397 ** SQLITE_OK is returned if an error occurs, or an SQLite error code
227398 ** otherwise. It is not considered an error code if an iterator reaches
227466 ** variable *pbEof to true if it reaches EOF or if an error occurs.
227468 ** Return SQLITE_OK if successful, or an SQLite error code if an error
227512 ** error has occurred. */
227797 ** Return an SQLite error code if an error occurs, or SQLITE_OK otherwise.
227798 ** It is not an error if there are no matches.
227856 ** Return SQLITE_OK if successful, or an SQLite error code otherwise. It
227857 ** is not considered an error if the query does not match any documents.
227887 ** Return SQLITE_OK if successful, or an SQLite error code otherwise. It
227888 ** is not considered an error if the query does not match any documents.
227957 ** If an OOM error occurs, both the pNear and pPhrase objects are freed and
228047 /* If an error has already occurred, this is a no-op */
228286 ** is expected. If token pTok does not contain "NEAR", store an error
228292 pParse, "fts5: syntax error near \"%.*s\"", pTok->n, pTok->p
228329 ** If an OOM error occurs, store an error code in pParse and return NULL.
228640 ** OOM error), leave an error code in pParse and return NULL.
230059 # error "FTS5_MAX_PREFIX_INDEXES is too large"
230297 int rc; /* Current error code */
230572 ** If an OOM error is encountered, return NULL and set the error code in
230636 ** If an error occurs, NULL is returned and an error left in the
230853 ** an error occurs, (*pRc) is set to an SQLite error code before returning.
230893 ** If an error occurs, *ppOut is set to NULL and an SQLite error code
231094 ** If an error occurs, NULL is returned and an error code left in the
231095 ** Fts5Index handle. If an error has already occurred when this function
231177 ** If an error occurs, leave an error code in the Fts5Index object. If an
231178 ** error has already occurred, this function is a no-op.
231756 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. If
231757 ** an error has already occurred when this function is called, it is a no-op.
232029 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. It
232030 ** is not considered an error if the iterator reaches EOF. If an error has
232288 Fts5Index *p, /* Leave any error code here */
232429 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. If
232430 ** an error has already occurred when this function is called, it is a no-op.
232494 ** 1) an error has occurred, or
232512 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. If
232513 ** an error has already occurred when this function is called, it is a no-op.
232730 ** It is an error if leaf iLeafPgno does not exist or contains no rowids.
232915 ** If an error occurs, an error code is left in Fts5Index.rc. It is not
232916 ** considered an error if the iterator reaches EOF, or if it is already at
233216 ** called. If an OOM error is encountered, *pRc is set to SQLITE_NOMEM
233522 ** aFirst[] array. Or, if an error has occurred, free the iterator
233594 ** Return true if the iterator is at EOF or if an error has occurred.
233649 ** If an error has already occurred, this function is a no-op. 0 is
233834 ** If an error occurs, an error code is left in Fts5Index.rc. If an error
233986 ** If an error occurs, set the Fts5Index.rc error code. If an error has
234498 ** If an error occurs, set the Fts5Index.rc error code. If an error has
234575 ** If an error occurs, set the Fts5Index.rc error code. If an error has
235407 ** Otherwise, set *pp to NULL and return an SQLite error code.
235757 ** Return SQLITE_OK if successful, or an SQLite error code if an error
236228 ** error, or some other SQLite error code if another error (e.g. OOM)
236369 int *pRc, /* IN/OUT: error code */
236400 int *pRc, /* IN/OUT: error code */
236427 int *pRc, /* IN/OUT: error code */
236507 ** no-op. If an OOM or other error occurs within this function, *pRc is
236508 ** set to an SQLite error code before returning. The final state of buffer
236792 ** If successful, SQLITE_OK is returned. If an error occurs, some other
236793 ** SQLite error code is returned instead.
237122 /* The following assert() can fail if another vtab strikes an error
237191 char **pzErr /* Write any error message here */
237256 char **pzErr /* OUT: sqlite3_malloc'd error message */
237266 char **pzErr /* OUT: sqlite3_malloc'd error message */
237692 ** error code if an error occurred.
237899 /* An unrecognized directive. Return an error message. */
237997 "parse error in rank function: %s", z
238278 ** Return SQLITE_OK if no error occurs, or an SQLite error code otherwise.
238280 ** If argument bErrormsg is true and an error occurs, an error message may
238339 ** error code if an error occurs.
238737 ** SQLite error code otherwise.
239565 if( pzErr ) *pzErr = sqlite3_mprintf("error in tokenizer constructor");
239785 # error "FTS5_STMT_SCAN_ASC mismatch"
239788 # error "FTS5_STMT_SCAN_DESC mismatch"
239791 # error "FTS5_STMT_LOOKUP mismatch"
239806 ** Return SQLITE_OK if successful, or an SQLite error code if an error
239937 ** Drop all shadow tables. Return SQLITE_OK if successful or an SQLite error
239996 ** SQLITE_OK if successful, or an SQLite error code otherwise.
240017 "fts5: error creating shadow table %q_%s: %s",
240031 ** Otherwise, set *pp to NULL and return an SQLite error code.
240243 ** Return SQLITE_OK if successful, or an SQLite error code if an error
240259 ** Return SQLITE_OK if successful, or an SQLite error code if an error
240640 ** some other SQLite error code if an error occurs while attempting to
240810 ** An SQLite error code is returned if an error occurs, or SQLITE_OK
243565 ** value and return SQLITE_OK. Otherwise, set *pzErr to an error message
243639 char **pzErr /* Write any error message here */
243701 char **pzErr /* OUT: sqlite3_malloc'd error message */
243711 char **pzErr /* OUT: sqlite3_malloc'd error message */
244916 CODEC_STATIC void sqlite3CodecSetError(CodecContext *ctx, int error){
244918 ctx->pBt->pBt->pPager->errCode = error;
244919 ctx->pBt->pBt->db->errCode = error;
245619 sqlite3_log(SQLITE_ERROR, "codec: check hmac error at page %d, hmac %d, kdf %d, pageSize %d.",
245835 sqlite3_log(SQLITE_WARNING, "sqlite3_rekey_v2: error when writing page %d: errno = %d.", pgno, rc);
245838 sqlite3_log(SQLITE_WARNING, "sqlite3_rekey_v2: error when reading page %d: errno = %d.", pgno, rc);
245871 // Each configuration setting operation should be done before read/write DB file or there might be some error.