Lines Matching defs:error

1423 ** ^If an error occurs while evaluating the SQL statements passed into
1426 ** is not NULL then any error message is written into memory obtained
1429 ** on error message strings returned through the 5th parameter of
1430 ** sqlite3_exec() after the error message string is no longer needed.
1480 ** New error codes may be added in future versions of SQLite.
1485 /* beginning-of-error-codes */
1486 #define SQLITE_ERROR 1 /* Generic error */
1487 #define SQLITE_INTERNAL 2 /* Internal logic error in SQLite */
1495 #define SQLITE_IOERR 10 /* Some kind of disk I/O error occurred */
1500 #define SQLITE_PROTOCOL 15 /* Database lock protocol error */
1516 /* end-of-error-codes */
1532 ** the most recent error can be obtained using
2034 ** the error message if the pragma fails. ^If the
2043 ** that the VFS encountered an error while handling the [PRAGMA] and the
2044 ** compilation of the PRAGMA fails with an error. ^The [SQLITE_FCNTL_PRAGMA]
2367 ** be created, and that it is an error if it already exists.
2389 ** non-zero error code if there is an I/O error or if the name of
2398 ** handled as a fatal error by SQLite, vfs implementations should endeavor
2423 ** simulate faults and error conditions that would otherwise be difficult
2569 ** as a mutex) it returns an [error code] other than [SQLITE_OK].
2606 ** must return [SQLITE_OK] on success and some other [error code] upon
2643 ** then this routine returns a non-zero [error code].
2752 ** non-zero [error code] if a discontinued or unsupported configuration option
2944 ** global [error log].
3134 ** non-zero [error code] if a discontinued or unsupported configuration option
3398 ** the [VACUUM] command will fail with an obscure error when attempting to
3912 ** memory might result in a segmentation fault or other severe error.
3913 ** Memory corruption, a segmentation fault, or other severe error
4035 ** rejected with an error. ^If the authorizer callback returns
4038 ** the authorizer will fail with an error message.
4043 ** authorizer will fail with an error message explaining that
4125 #define SQLITE_DENY 1 /* Abort the SQL statement with an error */
4126 #define SQLITE_IGNORE 2 /* Don't allow access, but don't generate an error */
4355 ** returned in *ppDb, even if an error occurs. The only exception is that
4359 ** [SQLITE_OK] is returned. Otherwise an [error code] is returned.)^ ^The
4361 ** an English language description of the error following a failure of any
4368 ** Whether or not an error occurs when it is opened, resources
4381 ** already exist, an error is returned.</dd>)^
4386 ** case the database must already exist, otherwise an error is returned.</dd>)^
4472 ** error is returned to the caller. ^The fragment component of a URI, if
4494 ** VFS is an error. ^If sqlite3_open_v2() is used and the vfs option is
4500 ** an error)^.
4509 ** or writes from disk is used. ^It is an error to specify a value for
4546 ** error. Future versions of SQLite might understand additional query
4561 ** An error. "darkstar" is not a recognized authority.
4576 ** An error. "readonly" is not a valid option for the "mode" parameter.
4757 ** If a memory allocation error occurs, sqlite3_create_filename() might
4807 ** change the value of the error code. The error-code preserving
4818 ** text that describes the error, as either UTF-8 or UTF-16 respectively.
4819 ** ^(Memory to hold the error message string is managed internally.
4821 ** However, the error string might be overwritten or deallocated by
4826 ** ^(Memory to hold the error message string is managed internally
4830 ** case that a second error occurs on a separate thread in between
4831 ** the time of the first error and the call to these interfaces.
4832 ** When that happens, the second error will be reported since these
4841 ** error code and message may or may not be set.
4948 ** in a single prepared statement, an SQLITE_NOMEM error is returned.</dd>)^
5017 ** to return an error (error code SQLITE_ERROR) if the statement uses
5070 ** executed using [sqlite3_step()]. ^If there is an error, *ppStmt is set
5078 ** otherwise an [error code] is returned.
5094 ** retries will occur before sqlite3_step() gives up and returns an error.
5098 ** ^When an error occurs, [sqlite3_step()] will return one of the detailed
5099 ** [error codes] or [extended error codes]. ^The legacy behavior was that
5103 ** interfaces, the underlying reason for the error is returned immediately.
5463 ** [error code] if anything goes wrong.
5639 ** NULL. ^These routines might also return NULL if a memory allocation error
5734 ** ^[SQLITE_ERROR] means that a run-time error (such as a constraint
5737 ** ^With the legacy interface, a more specific error code (for example,
5741 ** the more specific error code is returned directly by sqlite3_step().
5759 ** break because any application that ever receives an SQLITE_MISUSE error
5764 ** API always returns a generic error code, [SQLITE_ERROR], following any
5765 ** error other than [SQLITE_BUSY] and [SQLITE_MISUSE]. You must call
5767 ** specific [error codes] that better describes the error.
5773 ** then the more specific [error codes] are returned directly
6021 ** fail if an out-of-memory error occurs during a format conversion.
6033 ** If an out-of-memory error occurs, then the return value from these
6059 ** sqlite3_finalize(S) returns the appropriate [error code] or
6060 ** [extended error code].
6072 ** resource leaks. It is a grievous error for the application to try to use
6098 ** [prepared statement] S indicated an error, then
6099 ** [sqlite3_reset(S)] returns an appropriate [error code].
6485 ** fail if an out-of-memory error occurs during a format conversion.
6499 ** If an out-of-memory error occurs, then the return value from these
6573 ** allocate error occurs.
6660 ** allocation error occurs.)^ </ul>
6732 ** as the text of an error message. ^SQLite interprets the error
6737 ** or sqlite3_result_error16() is negative then SQLite takes as the error
6741 ** bytes (not characters) from the 2nd parameter as the error message.
6743 ** routines make a private copy of the error message text before
6746 ** ^The sqlite3_result_error_code() function changes the error code
6747 ** returned by SQLite as a result of an error in a function. ^By default,
6748 ** the error code is SQLITE_ERROR. ^A subsequent call to sqlite3_result_error()
6749 ** or sqlite3_result_error16() resets the error code to SQLITE_ERROR.
6752 ** error indicating that a string or BLOB is too long to represent.
6755 ** error indicating that a memory allocation failed.
7203 ** an error is to use this function.
7374 ** an error or constraint causes an implicit rollback to occur.
7457 ** successfully. An [error code] is returned otherwise.)^
7522 ** an [SQLITE_NOMEM] error. In other words, the soft heap limit
7534 ** error. ^If the argument N is negative
7636 ** ^If the specified table is actually a view, an [error code] is returned.
7654 ** parsed, if that has not already been done, and returns an error if
7692 ** ^If an error occurs and pzErrMsg is not 0, then the
7694 ** fill *pzErrMsg with error message text stored in memory
7702 ** otherwise an error will be returned.
7717 char **pzErrMsg /* Put error message here if not 0 */
7768 ** If the xEntryPoint routine encounters an error, it should make *pzErrMsg
7769 ** point to an appropriate error message (obtained from [sqlite3_mprintf()])
7770 ** and return an appropriate [error code]. ^SQLite ensures that *pzErrMsg
7773 ** xEntryPoint() returns an error, the [sqlite3_open()], [sqlite3_open16()],
8117 ** ^Virtual tables methods can set an error message by assigning a
8120 ** prior to assigning a new string to zErrMsg. ^After the error message
8230 ** in *ppBlob. Otherwise an [error code] is returned and, unless the error
8252 ** [database connection] error code and message accessible via
8313 ** it does not contain a blob or text value, or if another error occurs, an
8314 ** SQLite error code is returned and the blob handle is considered aborted.
8320 ** ^This function sets the database handle error code and message.
8329 ** unconditionally. Even if this routine returns an error code, the
8335 ** committed. ^If an error occurs while committing the transaction, an error
8378 ** error code of [SQLITE_ABORT].
8381 ** Otherwise, an [error code] or an [extended error code] is returned.)^
8401 ** Otherwise, an [error code] or an [extended error code] is returned.)^
8403 ** [database connection] error code and message accessible via
8419 ** error code of [SQLITE_ABORT]. ^Writes to the BLOB that occurred
8774 ** open database file, then SQLITE_ERROR is returned. ^This error
8927 ** error the returned object might be a special singleton that will
8986 ** These methods do not return a result code. ^If an error occurs, that fact
9005 ** an appropriate error code. ^The [sqlite3_str_errcode(X)] method returns
9006 ** [SQLITE_NOMEM] following any out-of-memory error, or
9048 ** SQLITE_OK on success and a non-zero [error code] on failure.
9162 ** non-zero [error code] on failure.
9178 ** The [sqlite3_db_status()] interface will return a non-zero error code
9258 ** If an IO or other error occurs while writing a page to disk, the effect
9665 ** an error.
9671 ** ^If an error occurs within sqlite3_backup_init(D,N,S,M), then NULL is
9672 ** returned and an error code and error message are stored in the
9674 ** ^The error code and message for the failed call to sqlite3_backup_init()
9692 ** ^If an error occurs while running sqlite3_backup_step(B,N),
9693 ** then an [error code] is returned. ^As well as [SQLITE_OK] and
9696 ** [SQLITE_IOERR_ACCESS | SQLITE_IOERR_XXX] extended error code.
9755 ** ^If an out-of-memory condition or IO error occurred during any prior
9757 ** sqlite3_backup_finish() returns the corresponding [error code].
9760 ** is not a permanent error and does not affect the return value of
9791 ** and so no error code is reported, but the operations may malfunction
9825 ** an [SQLITE_LOCKED] error if the required locks on the shared-cache or
9842 ** application receives an SQLITE_LOCKED error, it may call the
9929 ** One way around this problem is to check the extended error code returned
9931 ** extended error code is set to SQLITE_LOCKED_SHAREDCACHE. Otherwise, in
9932 ** the special "DROP TABLE/INDEX" case, the extended error code is just
9996 ** ^The [sqlite3_log()] interface writes a message into the [error log]
10035 ** The callback function should normally return [SQLITE_OK]. ^If an error
10036 ** code is returned, that error will propagate back up through the
10038 ** to report an error, though the commit will have still occurred. If the
10040 ** that does not correspond to any valid SQLite error code, the results
10152 ** of an error or because the database is not in [WAL mode]. ^If pnCkpt is not
10155 ** was called) or to -1 if the checkpoint could not run due to an error or
10180 ** an SQLITE_BUSY error is encountered when processing one or more of the
10183 ** error occurs while processing an attached database, processing is abandoned
10184 ** and the error code is returned to the caller immediately. ^If no error
10195 ** sets the error information that is queried by
10377 /* #define SQLITE_ABORT 4 // Also an error code */
10502 ** because locks cannot be obtained, but no other error occurs, this
10505 ** ^If any other error occurs while flushing dirty pages to disk (for
10506 ** example an IO error or out-of-memory condition), then processing is
10507 ** abandoned and an SQLite [error code] is returned to the caller immediately.
10509 ** ^Otherwise, if no error occurs, [sqlite3_db_cacheflush()] returns SQLITE_OK.
10511 ** ^This function does not set the database handle error code or message
10620 ** CAPI3REF: Low-level system error code
10623 ** ^Attempt to return the underlying operating system error code or error
10624 ** number that caused the most recent I/O error or failure to open a file.
10714 ** on success or an appropriate [error code] if it fails.
10731 ** is returned. If another error code - for example SQLITE_PROTOCOL or an
10732 ** SQLITE_IOERR error code - is returned, then the final state of the
10811 ** sqlite3_snapshot_open(). It is an error if there is already a read
10815 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
10853 ** allocation error occurs.
11111 ** returned. If an error occurs, *ppSession is set to NULL and an SQLite
11112 ** error code (e.g. SQLITE_NOMEM) is returned.
11133 ** attached database. It is not an error if database zDb is not attached
11227 ** It is not an error if the named table does not exist in the database. Nor
11228 ** is it an error if the named table does not have a PRIMARY KEY. However,
11234 ** SQLITE_OK is returned if the call completes without error. Or, if an error
11235 ** occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.
11298 ** SQLITE_OK. If an error occurs, set both *ppChangeset and *pnChangeset to
11299 ** zero and return an SQLite error code.
11409 ** an error).
11423 ** are compatible but do not have any PRIMARY KEY columns, it is not an error
11449 ** It an error if database zFrom does not exist or does not contain the
11453 ** error code. In this case, if argument pzErrMsg is not NULL, *pzErrMsg
11454 ** may be set to point to a buffer containing an English language error
11483 ** sqlite3changeset_xxx APIs also provokes an SQLITE_CORRUPT error.
11532 ** is returned. Otherwise, if an error occurs, *pp is set to zero and an
11533 ** SQLite error code is returned.
11588 ** It is an error to specify this flag with a patchset.
11607 ** no error occurs and the iterator points to a valid change after a call
11612 ** If an error occurs, an SQLite error code is returned. Possible error
11646 ** If no error occurs, SQLITE_OK is returned. If an error does occur, an
11647 ** SQLite error code is returned. The values of the output variables may not
11712 ** If some other error occurs (e.g. an OOM condition), an SQLite error code
11746 ** If some other error occurs (e.g. an OOM condition), an SQLite error code
11774 ** If some other error occurs (e.g. an OOM condition), an SQLite error code
11813 ** If an error was encountered within a call to an sqlite3changeset_xxx()
11815 ** [SQLITE_NOMEM] in [sqlite3changeset_new()]) then an error code corresponding
11816 ** to that error is returned by this function. Otherwise, SQLITE_OK is
11826 ** // An error has occurred
11850 ** SQLITE_OK is returned. If an error occurs, both *pnOut and *ppOut are
11851 ** zeroed and an SQLite error code returned.
11921 ** sqlite3changegroup_delete(). If an error occurs, an SQLite error code
12018 ** function returns SQLITE_NOMEM. In all cases, if an error occurs the state
12021 ** If no error occurs, SQLITE_OK is returned.
12043 ** If an error occurs, an SQLite error code is returned and the output
12091 ** If there is no compatible table, it is not an error, but none of the
12093 ** via the sqlite3_log() mechanism with the error code SQLITE_SCHEMA. At most
12198 ** If any other error (aside from a constraint failure when attempting to
12201 ** SQLite error code returned.
12264 ** applied, or rolled back if an error occurs. Specifying this flag
12272 ** an error to specify this flag with a patchset.
12478 ** point to the new object and return SQLITE_OK. Otherwise, if an error
12479 ** occurs, return an SQLite error code (e.g. SQLITE_NOMEM) and set (*ppNew)
12509 ** sqlite3_free(). Otherwise, if an error occurs, (*ppOut) and (*pnOut)
12510 ** are set to zero and an SQLite error code returned.
12573 ** error occurs the xInput method should copy up to (*pnData) bytes of data
12576 ** should be set to zero to indicate this. Or, if an error occurs, an SQLite
12577 ** error code should be returned. In all cases, if an xInput callback returns
12578 ** an error, all processing is abandoned and the streaming API function
12579 ** returns a copy of the error code to the caller.
12583 ** iterator. If such an xInput callback returns an error, the iterator enters
12584 ** an error state, whereby all subsequent calls to iterator functions
12585 ** immediately fail with the same error code as returned by xInput.
12610 ** it should return some other SQLite error code. In this case processing
12612 ** of the xOutput error code to the application.
12731 ** This function returns SQLITE_OK if successful, or an SQLite error code
12794 sqlite3_context *pCtx, /* Context for returning result/error */
12819 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
12820 ** an OOM condition or IO error), an appropriate SQLite error code is
12833 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
12834 ** an OOM condition or IO error), an appropriate SQLite error code is
12845 ** if an error occurs, an SQLite error code is returned and the final values
12858 ** an error code (i.e. SQLITE_NOMEM) if an error occurs.
12873 ** first token of the phrase. Returns SQLITE_OK if successful, or an error
12874 ** code (i.e. SQLITE_NOMEM) if an error occurs.
12903 ** Otherwise, the error code is propagated upwards.
12906 ** Or, if some error occurs before the query completes or is aborted by
12907 ** the callback, an SQLite error code is returned.
12930 ** If an error (e.g. an OOM condition) occurs within this function,
12931 ** the auxiliary data is set to NULL and an error code returned. If the
13080 ** returned. If an error occurs, some value other than SQLITE_OK should
13138 ** if an error occurs with the xTokenize() implementation itself, it
13139 ** may abandon the tokenization and return any error code other than
13211 ** It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time
13715 # error "Two or more of the following compile-time configuration options\
14352 #error Cannot use both SQLITE_MMAP_READWRITE and SQLITE_ENABLE_BATCH_ATOMIC_WRITE
16980 int errCode; /* Most recent error code (SQLITE_*) */
16982 int iSysErrno; /* Errno value from last system error */
16991 u8 suppressErr; /* Do not issue error messages if true */
17052 sqlite3_value *pErr; /* Most recent error message */
17094 ** tried to do recently failed with an SQLITE_LOCKED error due to locks
17235 #define SQLITE_MAGIC_ERROR 0xb5357930 /* An SQLITE_MISUSE error occurred */
17802 ** error. ROLLBACK processing means that a constraint violation
17807 ** the operation in progress stops and returns an error code. But prior
17810 ** error is not inserted or updated. Processing continues and no error
17813 ** update can proceed. Processing continues and no error is reported.
17835 #define OE_Ignore 4 /* Ignore the error. Do not do the INSERT or UPDATE */
18889 char *zErrMsg; /* An error message */
18893 u8 checkSchema; /* Causes schema cookie check after an error */
19207 u32 mInitFlags; /* Flags controlling error messages */
19344 const char *zType; /* Type of the container - used for error messages */
19345 const Token *pName; /* Name of the container - used for error messages */
19522 ** The SQLITE_*_BKPT macros are substitutes for the error codes with
19524 ** routines that report the line-number on which the error originated
20795 # error "Compile-time disabling of covering index scan using the\
20798 delete this #error macro to continue with your build."
21406 u8 errorAction; /* Recovery action to do in case of an error */
22151 ** of change in p->tz and return 0. If a parser error occurs,
22154 ** A missing specifier is not considered an error.
22190 ** Return 1 if there is a parsing error and 0 on success.
22230 ** Put the DateTime object into its error state.
22496 ** non-zero on any kind of error.
22538 ** (a.k.a. GMT) for the time value p where p is in UTC. If no error occurs,
22541 ** Or, if an error does occur, set *pRc to SQLITE_ERROR. The returned value
22546 sqlite3_context *pCtx, /* Write error here if one occurs */
22643 ** Return 0 on success and 1 if there is any kind of error. If the error
22644 ** is in a system call (i.e. localtime()), then an error message is written
22645 ** to context pCtx. If the error is an unrecognized modifier, no error is
23265 ** of code will give us the ability to simulate a disk I/O error. This
23271 SQLITE_API int sqlite3_io_error_pending = 0; /* Count down to first I/O error */
23387 ** as if a custom VFS (e.g. zipvfs) returns an error here, it probably
23388 ** means the commit really has failed and an error should be returned
23579 ** error in sqlite3_os_init() by the upper layers can be tested.
23705 ** abandons the current operation and returns an error code (usually
24473 ** the error.
25272 fprintf(out, "%p size error\n", &mem3.aPool[i]);
26321 ** that does error checking on mutexes to make sure they are being
26332 ** This routines provide no mutual exclusion or error checking.
26368 ** In this implementation, error checking is provided for testing
26623 ** will unwind its stack and return an error. The argument
26961 # error "The MEMORY_DEBUG macro is obsolete. Use SQLITE_DEBUG instead."
27078 ** of code will give us the ability to simulate a disk I/O error. This
27369 ** will unwind its stack and return an error. The argument
28362 ** Call this routine to record the fact that an OOM (out-of-memory) error
28397 ** Take actions at the end of an API call to deal with error codes.
28417 ** If an OOM as occurred, then the connection error-code (the value
28574 ** Set the StrAccum object to an error mode.
28603 ** of the output buffer in pAccum, then cause an SQLITE_TOOBIG error.
29447 ** pointer if any kind of error was encountered.
29476 ** an SQLITE_NOMEM error.
29495 /* Return any error code associated with p */
31126 ** desiredEnc. It is an error if the string is already of the desired
31414 ** NULL is returned if there is an allocation error.
31521 ** or to bypass normal error detection during testing in order to let
31592 ** Set the current error code to err_code and clear any prior error message.
31603 ** The equivalent of sqlite3Error(db, SQLITE_OK). Clear the error state
31604 ** and error message.
31614 ** to do based on the SQLite error code in rc.
31625 ** Set the most recent error code and error string for the sqlite
31626 ** handle "db". The error code is set to "err_code".
31629 ** error string in the style of the printf functions: The following
31641 ** To clear the most recent error for sqlite handle "db", sqlite3Error
31662 ** Add an error message to pParse->zErrMsg and increment pParse->nErr.
31671 ** This function should be used to report any error that occurs while
31673 ** last thing the sqlite3_prepare() function does is copy the error
31698 ** error code errCode to that parser if the parser has not already
31699 ** encountered some other kind of error.
31915 *pResult = 0.0; /* Default return value, in case of an error */
32364 ** success and false if there is an error.
32833 ** Log an error that is an API call on a connection pointer that should
33092 ** error occurs, the original VList returned and the
33311 ** a performance hit but it is not a fatal error. So mark the
33854 ** Only set the lastErrno if the error code is a real error and not
33889 int lastErrno; /* The unix errno from last I/O error */
33993 # error "The MEMORY_DEBUG macro is obsolete. Use SQLITE_DEBUG instead."
34110 ** of code will give us the ability to simulate a disk I/O error. This
34513 ** standard input, output, and error.
34736 /* random NFS retry error, unless during file system support
34825 ** If a memory allocation error occurs, return NULL.
35071 ** It is invoked after an error occurs in an OS function and errno has been
35076 ** The first argument passed to the macro should be the error code that
35084 int errcode, /* SQLite error code */
35086 const char *zPath, /* File path associated with error */
35087 int iLine /* Source line number where error occurred */
35090 int iErrno = errno; /* Saved syscall error number */
35093 ** the strerror() function to obtain the human-readable error message
35103 ** returns a pointer to a buffer containing the error message. That pointer
35106 ** strerror_r(), which always writes an error message into aErr[].
35109 ** available, the error message will often be an empty string. Not a
35141 ** error.
35145 ** So we don't even try to recover from an EINTR. Just log the error
35159 static void storeLastErrno(unixFile *pFile, int error){
35160 pFile->lastErrno = error;
35216 ** return value might be uninitialized if an error occurs.
35220 ** Return an appropriate error code.
35366 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
36094 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
36278 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
36303 /* unlock failed with an error */
36465 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
36708 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
36924 ** a critical I/O error
37259 storeLastErrno(pFile, 0); /* not a system error */
37269 ** pBuf to it. If an error occurs, return -1 and set *piErrno. Otherwise,
37278 int *piErrno /* OUT: Error number if error occurs */
37326 ** or some other error code on failure.
37400 storeLastErrno(pFile, 0); /* not a system error */
37539 ** SQLITE_OK is returned. If an error occurs, either SQLITE_NOMEM
37749 ** or an error number on failure". See the manpage for details. */
38308 ** take it now. Return SQLITE_OK if successful, or an SQLite error
38519 /* Jump here on any error */
38533 ** If an error occurs, an error code is returned and *pp is set to NULL.
38949 ** If unsuccessful, an error message is logged via sqlite3_log() and
39042 ** SQLITE_OK is returned if no error occurs (even if the mapping is not
39043 ** recreated as a result of outstanding references) or an SQLite error
39076 ** Or, if one cannot but no error occurs, set *pp to 0 and return SQLITE_OK.
39077 ** Finally, if an error does occur, return an SQLite error code. The final
39504 /* If an error occurred in findInodeInfo(), close the file descriptor
39518 ** If scenario (a) caused the error then things are not so safe. The
39658 /* It's odd to simulate an io-error here, but really this is just
39659 ** using the io-error infrastructure to test that SQLite handles this
39719 ** For this reason, if an error occurs in the stat() call here, it is
39721 ** descriptor on the same path, fail, and return an error to SQLite.
39774 ** to create new files with. If no error occurs, then SQLITE_OK is returned
39776 ** written to *pMode. If an IO error occurs, an SQLite error code is
40008 ** writable, change the error code to indicate that. */
40256 ** even if it returns an error. */
40326 /* It's odd to simulate an io-error here, but really this is just
40327 ** using the io-error infrastructure to test that SQLite handles this
40407 ** unixDlOpen() fails (returns a null pointer). If a more detailed error
40408 ** message is available, it is written to zBufOut. If no error message
40410 ** error message.
40593 ** low-level error message when operating-system problems come up
40737 ** Enables the logging of error messages during host id file
41021 sqlite3_snprintf(sizeof(errmsg),errmsg,"path error (len %d)",(int)pathLen);
41027 sqlite3_snprintf(sizeof(errmsg),errmsg,"read error (len %d)",(int)readLen);
41177 /* I/O error: lastErrno set by seekAndRead */
41392 ** *pConchPath is set to NULL if a memory allocation error occurs.
41656 ** is set to SQLITE_OK unless an I/O error occurs during lock checking.
41961 # error "The MEMORY_DEBUG macro is obsolete. Use SQLITE_DEBUG instead."
42078 ** of code will give us the ability to simulate a disk I/O error. This
42141 # error "WAL mode requires support from the Windows NT kernel, compile\
42146 # error "Memory mapped files require support from the Windows NT kernel,\
42171 # error "At least one of SQLITE_WIN32_HAS_ANSI and SQLITE_WIN32_HAS_WIDE\
42265 ** Maximum error message length (in chars) for WinRT.
42378 DWORD lastErrno; /* The Windows errno from the last I/O error */
44092 ** is zero if the error message fits in the buffer, or non-zero
44175 ** This routine is invoked after an error occurs in an OS function.
44177 ** error code and, if possible, the human-readable equivalent from
44180 ** The first argument passed to the macro should be the error code that
44187 int errcode, /* SQLite error code */
44188 DWORD lastErrno, /* Win32 last error */
44190 const char *zPath, /* File path associated with error */
44191 int iLine /* Source line number where error occurred */
44193 char zMsg[500]; /* Human readable error text */
44212 ** will be retried following a locking error - probably caused by
44227 ** error code obtained via GetLastError() is eligible to be retried. It
44228 ** must accept the error code DWORD as its only argument and should return
44229 ** non-zero if the error code is transient in nature and the operation
44230 ** responsible for generating the original error might succeed upon being
44236 ** may be used to include additional error codes in the set that should
44252 ** If a ReadFile() or WriteFile() error occurs, invoke this routine
44254 ** to give up with an error.
44283 ** Log a I/O error retry episode.
44708 ** whether an error has actually occurred, it is also necessary to call
44762 ** giving up and returning an error.
44899 ** or some other error code on failure.
44907 int rc = 0; /* True if error has occurred, else false */
45841 DWORD lastErrno; /* The Windows errno from the last I/O error */
45986 ** take it now. Return SQLITE_OK if successful, or an SQLite error
46117 /* Jump here on any error */
46296 ** If an error occurs, an error code is returned and *pp is set to NULL.
46508 ** SQLITE_OK is returned if no error occurs (even if the mapping is not
46509 ** recreated as a result of outstanding references) or an SQLite error
46565 /* Log the error, but continue normal operation using xRead/xWrite */
46583 /* Log the error, but continue normal operation using xRead/xWrite */
46603 ** Or, if one cannot but no error occurs, set *pp to 0 and return SQLITE_OK.
46604 ** Finally, if an error does occur, return an SQLite error code. The final
46838 /* It's odd to simulate an io-error here, but really this is just
46839 ** using the io-error infrastructure to test that SQLite handles this
47415 ** up and returning an error.
47759 /* It's odd to simulate an io-error here, but really this is just
47760 ** using the io-error infrastructure to test that SQLite handles this
48075 ** strerror_r() on Unix). After an error is returned by an OS
48078 ** buffer with a nul-terminated UTF-8 encoded error message
48079 ** describing the last IO error to have occurred within the calling
48082 ** If the error message is too large for the supplied buffer,
48084 ** is zero if the error message fits in the buffer, or non-zero
48089 ** Not supplying an error message will have no adverse effect
48091 ** returns an error message:
48098 ** However if an error message is supplied, it will be incorporated
48099 ** by sqlite into the error message available to the user using
48667 ** utf-8 string describing the most recent error encountered associated
49061 ** Set the i-th bit. Return 0 on success and an error code if
49232 ** confirm that error detection works.
49236 ** an error is returned. If they are the same, zero is returned.
49238 ** If a memory allocation error occurs, return -1.
49717 ** an OOM error.
50304 ** can cause a valgrind error if the unitialized gap is accessed. Using u16
50518 pX->pLruPrev = 0; /* Initializing this saves a valgrind error */
50666 p->pLruPrev = 0; /* Initializing this saves a valgrind error */
51290 /* It is an error to call this function if the page is already
51611 ** error occurs.
52423 ** If no error occurred, all that remains is to finalize the journal to
52424 ** commit the transaction. If an error did occur, the caller will need
52429 ** The ERROR state is entered when an IO or disk-full error (including
52437 ** For example, if an IO error occurs while performing a rollback,
52444 ** instead of READER following such an error.
52447 ** to read or write data returns an error. Eventually, once all
52454 ** from the error.
52458 ** 1. An error occurs while attempting a rollback. This happens in
52461 ** 2. An error occurs while attempting to finalize a journal file
52464 ** 3. An error occurs while attempting to write to the journal or
52468 ** In other cases, the error is returned to the b-tree layer. The b-tree
52469 ** layer then attempts a rollback operation. If the error condition
52473 ** statement executed within a transaction. In this case, if the error
52475 ** automatically attempt a rollback, as it assumes that an error in a
52494 ** executed), and when the pager is leaving the "error state".
52513 ** If the VFS xLock() or xUnlock() returns an error other than SQLITE_BUSY
52537 ** doesn't know it because of a previous error in xUnlock). If this happens
52660 ** by PagerCommitPhaseTwo or PagerRollback). If an IO error prevents the
53158 p->eState==PAGER_ERROR ? "ERROR" : "?error?"
53164 p->eLock==UNKNOWN_LOCK ? "UNKNOWN" : "?error?"
53171 p->journalMode==PAGER_JOURNALMODE_WAL ? "wal" : "?error?"
53242 ** error code is something goes wrong.
53263 ** on success or an error code is something goes wrong.
53443 ** If an error occurs while reading from the journal file, an SQLite
53444 ** error code is returned.
53532 ** If an IO error occurs, abandon processing and return the IO error code.
53701 ** cannot be read from the journal file an error code is returned.
53728 ** SQLITE_DONE. If an IO error occurs, return an error code. Otherwise,
53743 ** of the transaction. Return an error code if anything goes wrong.
53862 ** an error occurs, return the error code to the caller.
54012 ** without clearing the error code. This is intentional - the error
54044 ** This function is called whenever an IOERR or FULL error that requires
54047 ** the error-code about to be returned by a pager API function. The
54051 ** IOERR sub-codes, the pager enters the ERROR state and the error code
54058 ** the persistent error occurred, then the rollback journal may need
54106 ** after rollback of a hot-journal, or if an error occurs while opening
54147 ** SQLITE_OK is returned if no error occurs. If an error occurs during
54149 ** database then the IO error code is returned to the user. If the
54152 ** unlock operation fails as well, then the first error code related
54153 ** to the first error encountered (the journal finalization one) is
54299 ** malloc error occurs during a rollback, then this will itself cause
54367 ** and played back, then SQLITE_OK is returned. If an IO error occurs
54369 ** to the database file, then the IO error code is returned. If data
54420 ** file. Return an error code to the caller if an IO error occurs.
54468 ** not be in the pager cache. Later: if a malloc() or IO error occurs
54565 ** of an internal error resulting in an automatic call to
54621 ** If an IO error within this function, an error code is returned. This
54746 ** If successful, return SQLITE_OK. If an IO error occurs while modifying
54747 ** the database file, return the error code to the caller.
54882 ** If an I/O or malloc() error occurs, the journal-file is not deleted
54883 ** and an error code is returned.
54919 ** TODO: Technically the following is an error because it assumes that
54938 ** pager_playback_one_page() call returns SQLITE_DONE or an IO error
55019 /* If we are unable to rollback, quit and return the error
55020 ** code. This will cause the pager to enter the error state
55046 ** malloc error that occurred after the change-counter was updated but
55106 ** If an IO error occurs, then the IO error is returned to the caller.
55197 ** return an SQLite error code. Otherwise, SQLITE_OK.
55362 ** If no error occurs, SQLITE_OK is returned and the size of the database
55363 ** in pages is stored in *pnPage. Otherwise, an error code (perhaps
55415 ** if no error occurs, make sure Pager.journalMode is not set to
55418 ** Return SQLITE_OK or an error code.
55749 ** or some other error code if we fail. The OS will automatically
55796 ** retried. If it returns zero, then the SQLITE_BUSY error is
55817 ** If the pager is in the error state when this function is called, it
55818 ** is a no-op. The value returned is the error state error code (i.e.
55839 ** conditions above is not true, the pager was in error state when this
55850 ** At one point this function returned an error if the pager was in
55936 ** I/O error mechanism. These routines are used to avoid simulated
55968 ** If any IO error apart from SQLITE_IOERR_SHORT_READ is encountered,
55969 ** the error code is returned to the caller and the contents of the
56017 ** Return SQLITE_OK on success and an error code if we cannot obtain
56114 ** an SQLite error code.
56132 ** and return SQLITE_OK. Otherwise, return an SQLite error code and set
56206 ** to be on disk. Return non-zero (SQLITE_READONLY_DBMOVED or some other error
56239 ** is made to roll it back. If an error occurs during the rollback
56240 ** a hot journal may be left in the filesystem but no error is returned
56274 ** If an error occurs while trying to sync the journal, shift the pager
56349 ** error is encountered, then the IO error code is returned to the caller.
56490 ** If everything is successful, SQLITE_OK is returned. If an IO error
56491 ** occurs, an IO error code is returned. Or, if the EXCLUSIVE lock cannot
56582 ** SQLITE_IOERR_XXX error code is returned if a call to sqlite3OsOpen()
56607 ** error code if the attempt to write to the sub-journal fails, or
56669 ** SQLITE_OK returned. If an IO error occurs while trying to make the
56670 ** page clean, the IO error code is returned. If the page cannot be
56671 ** made clean for some other reason, but no error occurs, then SQLITE_OK
56690 ** Spilling is also prohibited when in an error state since that could
56693 ** while in the error state, hence it is impossible for this routine to
56694 ** be called in the error state. Nevertheless, we include a NEVER()
56695 ** test for the error state as a safeguard against future changes.
56795 ** the new pager object. If an error occurs, *ppPager is set to NULL
56796 ** and error code returned. This function may return SQLITE_NOMEM
56834 /* Set the output variable to NULL in case an error occurs. */
57100 /* If an error occurred above, free the Pager structure and close the file.
57208 ** set to 0 and SQLITE_OK returned. If an IO error occurs while trying
57209 ** to determine whether or not a hot-journal file exists, the IO error
57286 ** it has a zero header, that might be due to an I/O error, or
57323 ** no outstanding references to any pages, and is in the error state,
57324 ** then an attempt is made to clear the error state by discarding
57328 ** If everything is successful, SQLITE_OK is returned. If an IO error
57330 ** rolling back a journal file, the IO error code is returned.
57401 ** may mean that the pager was in the error-state when this
57442 /* This branch is taken if an error occurs while trying to open
57565 ** getPageError() -- Used if the pager is in an error state
57603 ** an appropriate error code is returned and *ppPage is set to NULL.
57655 ** be initialized. But first some error checks:
57677 ** to test the case where a malloc error occurs while trying to set
57783 /* The page getter method for when the pager is an error state */
57817 ** returns NULL if the page is not in cache or if a disk I/O error
57888 ** an IO error code if opening or writing the journal file fails.
57898 /* If already in the error state, this function is a no-op. But on
57900 ** an error state. */
58002 ** PAGER_RESERVED state. Otherwise, return an error code to the caller.
58064 /* Even if an IO or diskfull error occurs while journalling the
58068 ** in the database file. And if an IO error occurs while doing so,
58128 ** an error might occur and the pager would end up in WRITER_LOCKED state
58288 ** If an error occurs, SQLITE_NOMEM or an IO error code is returned
58455 ** function returns SQLITE_OK. Otherwise, an IO error code is returned.
58477 ** Otherwise, either SQLITE_BUSY or an SQLITE_IOERR_XXX error code is
58536 /* If a prior error occurred, report that error again. */
58539 /* Provide the ability to easily simulate an I/O error during testing */
58749 ** If an error occurs, an IO error code is returned and the pager
58750 ** moves into the error state. Otherwise, SQLITE_OK is returned.
58755 /* This routine should not be called if a prior error has occurred.
58756 ** But if (due to a coding error elsewhere in the system) it does get
58757 ** called, just return the same error code without doing anything. */
58796 ** state if an error occurs.
58824 ** attempted here. Instead, the error code is returned to the caller.
58839 /* This can happen using journal_mode=off. Move the pager to the error
58858 /* If an error occurs during a ROLLBACK, we can no longer trust the pager
58859 ** cache. So call pager_error() on the way out to make any error persistent.
58965 ** If a memory allocation fails, SQLITE_NOMEM is returned. If an error
58966 ** occurs while opening the sub-journal file, then an IO error code is
59054 ** or an IO error code if an IO error occurs while rolling back a
59108 ** back journal_mode=off, put the pager in the error state. This way,
59201 ** This function may return SQLITE_NOMEM or an IO error code if an error
59630 ** (e.g. due to malloc() failure), return an error code.
59651 ** return SQLITE_OK. If an error occurs or the VFS used by the pager does
59652 ** not support the xShmXXX() methods, return an error code. *pbOpen is
59695 ** error (SQLITE_BUSY) is returned and the log connection is not closed.
59741 ** Return an SQLite error code if an error occurs, or SQLITE_OK otherwise.
59765 ** currently open. Otherwise, return an error.
59778 ** identifies. If this is not a WAL database, return an error.
59795 ** is not a WAL database, return an error.
59815 ** the CHECKPOINTER lock cannot be obtained, SQLITE_BUSY. If any error
60323 u8 lockError; /* True if a locking error has occurred */
60415 ** page and SQLITE_OK is returned. If an error (an OOM or VFS error) occurs,
60416 ** then an SQLite error code is returned and *ppPage is set to 0.
61254 ** *ppWal is set to point to a new WAL handle. If an error occurs,
61255 ** an SQLite error code is returned and *ppWal is left unmodified.
61529 ** return SQLITE_OK. Otherwise, return an error code. If this routine
61530 ** returns an error, the value of *pp is undefined.
61644 ** an SQLite error code if an error occurs, or SQLITE_OK otherwise. It is not
61645 ** an error if blocking locks can not be enabled.
61975 ** it to exactly nMax bytes. If an error occurs while doing so, ignore it.
62143 ** Otherwise an SQLite error code.
62151 ** wal-index header) is mapped. Return early if an error occurs here.
62171 return rc; /* Any other non-OK return is just an error */
62267 ** If an error occurs, an SQLite error code is returned.
62311 ** or SQLITE_READONLY_CANTINIT or some error for all subsequent invocations,
62420 ** I/O error or an SQLITE_BUSY because another process is running
62421 ** recovery) return a positive error code.
62477 /* Take steps to avoid spinning forever if there is a protocol error.
62690 ** SQLITE_OK is returned if successful, or an SQLite error code if an
62691 ** error occurs. It is not an error if nBackfillAttempted cannot be
62885 ** Return SQLITE_OK if successful, or an error code if an error occurs. If an
62886 ** error does occur, the final value of *piRead is undefined.
62990 ** error code otherwise.
63097 ** other than SQLITE_OK, it is not invoked again and the error code is
63100 ** Otherwise, if the callback function does not return an error, this
63190 ** SQLITE_OK is returned if no error is encountered (regardless of whether
63191 ** or not pWal->hdr.mxFrame is modified). An SQLite error code is returned
63192 ** if an error occurs.
63306 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
63682 /* If no error occurred, set the output variables. */
63759 ** prior error while attempting to acquire are read-lock. This cannot
63762 ** upgrade to exclusive-mode following such an error.
63859 ** the CHECKPOINTER lock cannot be obtained, SQLITE_BUSY. If any error
64309 # error wrong numeric code for no-transaction
64312 # error wrong numeric code for read-transaction
64315 # error wrong numeric code for write-transaction
64452 ** FAULT skipNext holds the cursor fault error code.
64517 ** An unrecoverable error (an I/O error or a malloc failure) has occurred
64519 ** cursor. The error has left the cache in an inconsistent state.
64521 ** should return the error code stored in BtCursor.skipNext
64630 int bOomFault; /* A memory allocation error has occurred */
64634 StrAccum errMsg; /* Accumulate the error message text here */
65613 ** pCur->pKey. SQLITE_OK is returned if successful or an SQLite error
65950 ** a no-op. If an error occurs, the appropriate error code is written
66010 ** An error code is returned if something goes wrong, otherwise SQLITE_OK.
66588 ** an error code (usually SQLITE_CORRUPT).
66842 ** an error. */
67124 ** error, return ((unsigned int)-1).
67144 ** If an error occurs, then *ppPage is undefined. It
67235 ** release it and return an SQLITE_CURRUPT error.
67313 ** SQLITE_CONSTRAINT error. We cannot allow two or more BtShared
67665 ** does cause a valgrind error when the 1 or 2 bytes of unitialized
67666 ** data is passed to system call write(). So to avoid this error,
68317 ** if successful, or an SQLite error code otherwise.
68459 ** called and SQLITE_BUSY_SNAPSHOT is returned, change the error
68729 ** calling this function again), return SQLITE_DONE. Or, if an error
68730 ** occurs, return some other error code.
68740 ** or an error. bCommit is passed true for an auto-vacuum-on-commit
68862 ** SQLITE_DONE is returned. If it is not finished, but no error occurred,
68863 ** SQLITE_OK is returned. Otherwise an SQLite error code.
69061 ** Normally, if an error occurs while the pager layer is attempting to
69062 ** finalize the underlying journal file, this function returns an error and
69067 ** functions return code. So, even if an error occurs in the pager layer,
69070 ** transitioned to the error state.
69119 ** This routine sets the state to CURSOR_FAULT and the error
69137 ** If the writeOnly flag is true and an error is encountered while
69141 ** SQLITE_OK is returned if successful, or if an error occurs while
69142 ** saving a cursor position, an SQLite error code.
69190 ** a tripped cursor will result in an error.
69250 ** error occurs within the statement, the effect of that one statement
69648 ** If an error occurs an SQLite error code is returned. Otherwise:
69727 ** SQLITE_OK is returned on success, otherwise an error code.
69807 /* Trying to read or write past the end of the data is an error. The
69977 ** Return SQLITE_OK on success or an error code if anything goes
69978 ** wrong. An error is returned if "offset+amt" is larger than
70228 ** return an SQLITE_CORRUPT error.
70665 ** have been deleted? This API will need to change to return an error code
70702 ** otherwise some kind of error occurred
70812 ** otherwise some kind of error occurred
70900 ** an error. *ppPage is set to NULL in the event of an error.
71315 ** coded. But due to a coding error in versions of SQLite prior to
72331 ** be marked as dirty. Returning an error code will cause a
73304 ** to call releasePage() on *ppChild exactly once. If an error occurs,
73305 ** an error code is returned and *ppChild is set to 0.
73866 /* If no error has occurred and pPage has an overflow cell, call balance()
73932 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
74286 ** the new table (assuming an error did not occur). But we were
74673 ** Otherwise, if an error is encountered (i.e. an IO error or database
74674 ** corruption) an SQLite error code is returned.
74686 /* Unless an error occurs, the following loop runs one iteration for each
74737 /* An error has occurred. Return an error code. */
74751 ** Append a message to the error message string.
74799 ** reference to the page, add an error message to pCheck->zErrMsg.
74822 ** page iParent, pointer type ptrType. If not, append an error message
75029 "unable to get the page. error code=%d", rc);
75038 assert( rc==SQLITE_CORRUPT ); /* The only possible error from InitPage */
75040 "btreeInitPage() returns error code %d", rc);
75252 ** Write the number of error seen in *pnErr. Except for some memory
75253 ** allocation errors, an error message held in memory obtained from
75255 ** returned. If a memory allocation error occurs, NULL is returned.
75726 int rc; /* Backup process error code */
75771 ** a NULL pointer and write an error message to pErrorDb.
75774 ** function. If an error occurs while doing so, return 0 and write an
75775 ** error message to pErrorDb.
75817 ** is an open read-transaction, return SQLITE_ERROR and leave an error
75833 ** If an error occurs, NULL is returned and an error code and error message
75891 ** error was hit. Or there is a transaction open on the destination
75892 ** database. The error has already been written into the pDestDb
75909 ** Argument rc is an SQLite error code. Return true if this error is
75988 ** Return SQLITE_OK if everything is successful, or an SQLite error
75989 ** code if an error occurs.
76301 /* Set the error code of the destination database handle. */
76447 ** within a single call (unless an error occurs). The assert() statement
76449 ** or an error code. */
76758 ** Return SQLITE_OK on success or an error code (probably SQLITE_NOMEM)
76873 ** user and the latter is an internal programming error.
76906 ** Return SQLITE_ERROR if the finalizer reports an error. SQLITE_OK
76935 ** SQLITE_ERROR is returned if xValue() reports an error. SQLITE_OK
77391 ** error occurs.
77452 ** undefined so that we can quickly detect the shallow-copy error */
77842 ** error occurs, output parameter (*ppVal) is set to point to a value
77850 ** and sets (*ppVal) to NULL. Or, if an error occurs, (*ppVal) is set to
77851 ** NULL and an SQLite error code returned.
77943 ** If pCtx is NULL and an error occurs after the sqlite3_value object
78203 ** Unless an error is encountered, SQLITE_OK is returned. It is not an
78204 ** error if a value cannot be extracted from pExpr. If an error does
78205 ** occur, an SQLite error code is returned.
78247 ** SQLITE_OK. If no value can be extracted, but no other error occurs
78248 ** (e.g. OOM), return SQLITE_OK and set *ppVal to NULL. Or, if an error
78249 ** does occur, return an SQLite error code. The final value of *ppVal
78434 ** Change the error string stored in Vdbe.zErrMsg
78529 ** If an out-of-memory error occurs while resizing the array, return
79796 ** If a memory allocation error has occurred prior to the calling of this
79848 sqlite3 *db, /* Optional - Oom error reporting only */
81100 ** IO error while deleting or truncating a journal file. It is unlikely,
81101 ** but could happen. In this case abandon processing and return the error.
81168 ** super-journal file. If an error occurs at this point close
81206 ** an error occurs here, do not delete the super-journal file.
81208 ** If the error occurs during the first call to
81243 ** may be lying around. Returning an error code won't help matters.
81302 ** If an IO error occurs, an SQLITE_IOERR_XXX error code is returned.
81367 ** and write an error message to it. Then return SQLITE_ERROR.
81393 ** Return an error code. If the commit could not complete because of
81429 int mrc; /* Primary error code from p->rc */
81431 int isSpecialError; /* Set to true if a 'special' error */
81441 /* If the query was read-only and the error code is SQLITE_INTERRUPT,
81447 ** a statement or transaction rollback operation. If the error
81531 ** do so. If this operation returns an error, and the current statement
81532 ** error code is SQLITE_OK or SQLITE_CONSTRAINT, then promote the
81533 ** current statement error code.
81603 ** Copy the error code and error message belonging to the VDBE passed
81607 ** This function does not clear the VDBE error code or message, just
81650 ** Write any error messages into *pzErrMsg. Return the result code.
81668 ** error, then it might not have been halted properly. So halt
81673 /* If the VDBE has been run even partially, then transfer the error code
81674 ** and error message from the VDBE into the main database structure. But
81676 ** instructions yet, leave the main database error information unchanged.
81689 ** called), set the database error in this case as well.
81694 /* Reset register contents and reclaim error message memory.
81754 ** the result code. Write any error message text into *pzErrMsg.
81874 ** carried out. Seek the cursor now. If an error occurs, return
81875 ** the appropriate error code.
81916 ** if need be. Return any I/O error from the restore operation.
81928 ** was last positioned. Return an error code if an OOM fault or I/O error
82120 ** float in the wrong order. And that error has been propagated
82369 ** If an OOM error occurs, NULL is returned.
82852 ** SQLITE_CORRUPT and return 0. If an OOM error is encountered,
83274 ** Return SQLITE_OK if everything works, or an error code otherwise.
83487 ** Cause a function to throw an error if it was call from OP_PureFunc
83491 ** throw an error if it is given inputs that would make it non-deterministic.
83522 ** Transfer error message text from an sqlite3_vtab.zErrMsg (text stored
83663 ** an error and return true if it has been finalized (or is otherwise
83723 ** This routine sets the error code and string returned by
83750 ** This routine sets the error code and string returned by
83993 ** then sets the error code to SQLITE_TOOBIG
84012 sqlite3_context *pCtx /* Set a SQLITE_TOOBIG error if no NULL */
84177 /* Force an SQLITE_TOOBIG error. */
84185 /* An SQLITE_NOMEM error. */
84235 ** statement is completely executed or an error occurs.
84249 ** sqlite3_step() after any error or after SQLITE_DONE. But beginning
84251 ** be called automatically instead of throwing the SQLITE_MISUSE error.
84262 ** or SQLITE_BUSY error.
84287 ** error has occurred, then return the error code in p->rc to the
84288 ** caller. Set the error code in the database handle to the same value.
84349 ** error has occurred, then return the error code in p->rc to the
84350 ** caller. Set the error code in the database handle to the same value.
84373 ** sqlite3Step() to do most of the work. If a schema error occurs,
84394 ** The error message from the SQL compiler has already been loaded
84395 ** into the database handle. This block copies the error message
84398 ** finalized or reset the parser error message is available via
84878 # error "Must not define both SQLITE_OMIT_DECLTYPE \
84952 ** the mutex is released if any kind of error occurs.
84954 ** The error code stored in database p->db is overwritten with the return
85427 ** if successful, or a NULL pointer if an OOM error is encountered.
86633 u8 resetSchemaOnFault = 0; /* Reset schema after an error if positive */
87014 ** If P4 is not null then it is an error message string.
87298 ** left holding a NULL. It is an error for register ranges
87299 ** P1..P1+P3-1 and P2..P2+P3-1 to overlap. It is an error
87415 ** foreign key error in the statement, trigger the error now.
87418 ** immediate constraint count and throws an error if the count is
89118 ** No error checks or buffer enlargement is required */
89267 ** an error is returned to the user. */
89402 ** return an error indicating that the other VMs must complete first.
89458 ** VDBE to be rolled back after an error without having to roll back the
89459 ** entire transaction. If no error is encountered, the statement transaction
89469 ** generation counter, then an SQLITE_SCHEMA error is raised and execution
89645 ** It is an error for P1 to be negative.
90734 ** Or, if P2 is 0, raise an SQLITE_CORRUPT error. If P1 does contain
90758 ** SQLITE_CORRUPT error. If P1 does contain a record with rowid P3 then
90865 ** an SQLITE_FULL error is generated. The P3 register is updated with the '
91845 ** If P5 is not zero, then raise an SQLITE_CORRUPT_INDEX error
92124 ** This opcode throws an error if there are any active reader VMs when
92127 ** database. This error is thrown even if the database is not an AUTOVACUUM
92412 ** register P1 the text of an error message describing any problems.
92432 char *z; /* Text of the error report */
92791 ** This instruction throws an error if the memory cell is not initially
93114 ** completes into mem[P3+2]. However on an error, mem[P3+1] and
93362 ** used to generate an error message if the lock cannot be obtained.
93391 ** within a callback to a virtual table xSync() method. If it is, the error
93642 ** underlying implementation to return an error if one occurs during
93643 ** xNext(). Instead, if an error occurs, true is returned (indicating that
93644 ** data is available) and the error code returned when xColumn or
93720 ** P5 is the error actions (OE_Replace, OE_Fail, OE_Ignore, etc) to
93859 ** if they were, they throw an error.
93894 /* If the function returned an error, throw an exception */
93939 ** error is encountered.
94164 ** an error of some kind.
94279 ** If an error occurs, or if the specified row does not exist or does not
94281 ** blob handle was opened, then an error code is returned and *pzErr may
94282 ** be set to point to a buffer containing an error message. It is the
94283 ** responsibility of the caller to free the error message buffer using
94286 ** If an error does occur, then the b-tree cursor is closed. All subsequent
94487 ** locking and error handling infrastructure built into the vdbe.
94627 /* Request is out of range. Return a transient error. */
94708 ** If an error occurs, or if the specified row does not exist or does not
94709 ** contain a blob or text value, then an error code is returned and the
94710 ** database handle error code and message set. If this happens, then all
95162 int eFWErr; /* Non-zero if in an error state */
95227 ** and return SQLITE_OK. Otherwise, if an error occurs, return an SQLite
95228 ** error code.
95265 /* Readr data from the file. Return early if an error occurs. */
95357 ** Or, if an error occurs, return an SQLite error code. The final value of
95375 ** if successful, or an SQLite error code if an error occurs.
95422 ** no error occurs, or an SQLite error code if one does.
95528 ** If an OOM error is encountered, (pTask->pUnpacked->error_rc) is set
95673 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
96048 ** Otherwise, set *ppFd to 0 and return an SQLite error code.
96144 ** SQLITE_OK if successful, or an SQLite error code (i.e. SQLITE_NOMEM) if
96145 ** an error occurs.
96218 ** if successful, or an SQLite error code if an error occurs.
96248 ** required. Otherwise, return an SQLite error code.
96270 ** SQLITE_OK if successful, or an SQLite error code if an error occurs.
96282 ** successful, or an SQLite error code otherwise.
96355 ** Return SQLITE_OK if successful or an error code if an error occurs.
96698 ** SQLITE_OK is returned on success, or an SQLite error code otherwise.
96856 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
96932 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
97042 ** PMAs from pTask->file. If no error occurs, set *ppOut to point to
97043 ** the new object and return SQLITE_OK. Or, if an error does occur, set *ppOut
97044 ** to NULL and return an SQLite error code.
97047 ** first PMA to read from pTask->file. Assuming no error occurs, it is
97049 ** PMA before returning. If an error does occur, then the final value of
97106 ** If successful, SQLITE_OK is returned. If an error occurs, an SQLite error
97162 ** error occurs, an SQLite error code is returned and the final value
97242 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
97376 ** otherwise some kind of error.
97468 ** If an error occurs, return an SQLite error code (i.e. SQLITE_NOMEM).
97866 ** then return an SQLITE_CONSTRAINT error.
98105 /* No error has occurred. Free the in-memory buffers. */
98110 /* If an error occurred while creating or writing to the file, restore
98859 ** If the name cannot be resolved unambiguously, leave an error message
98893 ** resulting in an appropriate error message toward the end of this routine
99202 ** rather than causing an error, to the frustration of countless
99230 ** more matches. Either way, we have an error.
99329 ** Report an error that an expression is not valid for some set of
99333 ** Parse *pParse, // Leave error message here
99335 ** const char *zMsg, // Type of error
99337 ** Expr *pExpr // Invalidate this expression on error
99345 Parse *pParse, /* Leave error message here */
99347 const char *zMsg, /* Type of error */
99348 Expr *pExpr /* Invalidate this expression on error */
99386 ** This routine also does error checking and name resolution for
99833 Parse *pParse, /* Parsing context for error messages */
99870 ** If there is no match, return 0. Return -1 if an error occurs.
99873 Parse *pParse, /* Parsing context for error messages */
99917 ** Generate an ORDER BY or GROUP BY term out-of-range error.
99920 Parse *pParse, /* The error context into which to write the error */
99937 ** 1 through N generate an error. ORDER BY terms that are expressions
99946 Parse *pParse, /* Parsing context. Leave error messages here */
100060 ** If any errors are detected, add an error message to pParse and
100064 Parse *pParse, /* Parsing context. Leave error messages here */
100138 ** an appropriate error message might be left in pParse. (OOM errors
100372 ** than the right-most term, then that is a syntax error. But the error
100442 ** table columns and result-set columns. At the same time, do error
100485 ** An error message is left in pParse if anything is amiss. The number
100612 ** set to the column number. In case (4), TK_COLUMN nodes cause an error.
100614 ** Any errors cause an error message to be set in pParse.
100741 ** If a memory allocation error occurs, that fact is recorded in pParse->db
101333 ** expression depth allowed. If it is not, leave an error message in
101410 ** leave an error in pParse.
101526 ** If pRoot==NULL that means that a memory allocation error has occurred.
101556 ** Expr node. Or, if an OOM error occurs, set pParse->db->mallocFailed,
101659 ** If the function is not usable, create an error.
101817 ** The pExpr might be deleted immediately on an OOM error.
102317 ** If a memory allocation error occurs, the entire list is freed and
102467 ** pList might be NULL following an OOM error. But pName should never be
102502 ** pList might be NULL following an OOM error. But pSpan should never be
102526 ** leave an error message in pParse.
102681 ** an error for new statements, but is silently converted
102685 ** malformed schema error.
102748 ** sqlite3_prepare() causes an error */
102880 ** isInit is false, parameters raise an error. Parameters should not be
103456 ** Load the Parse object passed as the first argument with an error
103599 ** error will have been caught long before we reach this point. */
103699 ** Return 0 if an error occurs.
106669 ** If an error is found, the analysis is cut short.
106796 ** If the table is a system table, this function leaves an error message
106826 const char *zWhen, /* "when" part of error message */
106901 ** in database iDb. If so, this is an error.
107039 ** Write code that will raise an error if the table described by
107287 ** it loads an error message into pParse and returns non-zero.
107739 ** An error occured while parsing or otherwise processing a database
107741 ** ALTER TABLE RENAME COLUMN program. The error message emitted by the
107743 ** adds context to the error message and then stores it in pCtx.
107756 zErr = sqlite3_mprintf("error in %s %s%s%s: %s",
107834 /* Parse the SQL statement passed as the first argument. If no error
107872 ** true, then zNew is always quoted first. If no error occurs, the result
107875 ** Or, if an error occurs (i.e. an OOM condition), an error is left in
107876 ** pCtx and an SQLite error code returned.
107957 ** successful. Otherwise, return an SQLite error code and leave an error
107975 ** error would have been hit before this point */
108486 ** 5: "when" part of error message.
108489 ** Unless it finds an error, this function normally returns NULL. However, it
110189 /* Read the database schema. If an error occurs, leave an error message
110639 ** If an OOM error occurs, this function always sets db->mallocFailed.
110964 /* Return an error if we get here */
111243 ** to an object in a different database, an error message is added to
111371 ** will return with an error. SQLITE_IGNORE means that the SQL statement
111395 ** Write an error message into pParse->zErrMsg that explains that the
111410 ** is treated as SQLITE_DENY. In this case an error is left in pParse.
111446 ** then generate an error.
111502 ** is returned, then the error count and error message in pParse are
111707 ** Note that if an error occurred, it might be the case that
111882 ** an error */
111991 ** error message in pParse->zErrMsg.
111994 ** routine leaves an error message in pParse->zErrMsg where
112006 /* Read the database schema. If an error occurs, leave an error message
112503 /* Skip these error checks for writable_schema=ON */
112511 sqlite3ErrorMsg(pParse, ""); /* corruptSchema() will supply the error */
112709 ** index or table name in the same database. Issue an error message if
112830 /* Normal (non-error) return. */
112833 /* If an error occurs, we jump here */
113219 ** error.
113404 makeColumnPartOfPrimaryKey(pParse, pCol); /* For the error message */
113411 sqlite3ErrorMsg(pParse, "error in generated column \"%s\"",
113416 /* Throw and error for the GENERATED ALWAYS AS clause if the
113573 ** on success and SQLITE_NOMEM on an OOM error.
114266 int noErr /* Suppress error messages if VIEW already exists */
114337 ** of errors. If an error is seen leave an error message in pParse->zErrMsg.
114377 ** Actually, the error above is now caught prior to reaching this point.
115146 ** an explicit "NULLS FIRST" or "NULLS LAST" clause, leave an error in
115187 int ifNotExist, /* Omit error if index already exists */
115593 ** ON CONFLICT clauses this is an error. Otherwise, use the
116019 ** the original SrcList unchanged, return NULL, and leave an error message
116080 ** A SrcList is returned, or NULL if there is an OOM error or if the
116083 ** a new one. If an OOM error does occurs, then the prior value of pList
116281 ** SrcList. Or, if an error occurs, return NULL. In all cases, p1 and p2
116420 ** the number of errors. Leave any error messages in the pParse structure.
116544 ** error. The onError parameter determines which (if any) of the statement
116549 int errCode, /* extended error code */
116711 /* Read the database schema. If an error occurs, leave an error message
116870 ** not, store an error in the Parse structure. */
117069 ** if necessary and generates an error message if the collating sequence
117115 ** sequence can be found. If no collation is found, leave an error message.
117161 ** another error occurs, NULL is returned and an error message written into
117166 ** and generates an error message.
117476 ** return a pointer. Set an error message and return NULL if the table
117477 ** name is not found or if any other error occurs.
117532 ** writable, generate an error message and return 1. If it is
118319 sqlite3VdbeChangeP5(v, 1); /* Cause IdxDelete to error if no entry found */
118578 ** then abs(X) throws an integer overflow error since there is no
119059 ** Possible error returns from patternMatch()
119306 ** Otherwise, return an error.
120892 ** then non-zero is returned, and a "foreign key mismatch" error loaded
120893 ** into pParse. If an OOM error occurs, non-zero is returned and the
120897 Parse *pParse, /* Parse context to store any error in */
121460 ** violations, halt the VDBE and return an error at this point, before
121627 ** schema items cannot be located, set an error in pParse and return
123719 ** row is skipped, without throwing an error.
124875 ** error if pSelect reads from a CTE named "xxx". */
124904 ** there is no ORDER BY, we will get an error. */
125248 ** codes. Also write an error message into memory obtained from
125261 char **pzErrMsg /* Write error messages here */
125738 char **pzErrMsg, /* Used to set error string on failure. */
126538 ** If an error occurs and pzErrMsg is not 0, then fill *pzErrMsg with
126539 ** error message text. The calling function should free this memory
126546 char **pzErrMsg /* Put error message here if not 0 */
126662 *pzErrMsg = sqlite3_mprintf("error during initialization: %s", zErrmsg);
126687 char **pzErrMsg /* Put error message here if not 0 */
126852 ** If anything goes wrong, set an error in the database connection.
129112 /* Set the maximum error count */
130161 ** Fill the InitData structure with an error message that indicates
130173 /* A error message has already been generated. Do not overwrite it */
130176 "error in %s %s after %s: %s", azObj[0], azObj[1],
130331 ** auxiliary databases. Return one of the SQLITE_ error codes to
130432 ** For an attached db, it is an error if the encoding is not the same
130531 ** of the schema was loaded before the error occurred. The primary
130539 /* Jump here for an error that occurs after successfully allocating
130540 ** curMain and calling sqlite3BtreeEnter(). For an error that occurs
130564 ** error occurs, write an error message into *pzErrMsg.
130599 ** Otherwise, the schema is loaded. An error code is returned.
130733 ** If a memory allocation error occurs, then the cleanup happens immediately.
130937 ** or encounters a permanent error. A schema problem after one schema
130938 ** reset is considered a permanent error. */
130957 ** locked the sqlite3_schema table, return SQLITE_LOCKED. If any other error
131364 ** a join type, but put an error in the pParse structure.
131660 ** Report an error if any column mentioned in the USING clause is
131955 Parse *pParse, /* Leave any error here */
132068 /* This is an error condition that can result, for example, when a SELECT
132070 ** there are columns in the table on the left. The error will be caught
132549 ** Name of the connection operator, used for error messages.
133114 ** Return SQLITE_OK on success. If a memory allocation error occurs,
133312 ** If an error occurs, return NULL and leave a message in pParse.
133415 /* iCol must be less than p->pEList->nExpr. Otherwise an error would
134376 assert( v!=0 ); /* Already thrown the error if VDBE alloc failed */
135005 ** syntax error and return a detailed message.
135395 ** Not doing this may cause an error if a subsequent call to this
135753 Parse *pParse, /* Parse context (for malloc() and error reporting) */
135928 ** SQLITE_ERROR and leave an error in pParse. Otherwise, populate
136034 ** arguments. If it does, leave an error message in pParse and return
136113 ** Return 2 if an error condition is detected.
136147 ** recursive reference to CTE pCte. Leave an error in pParse and return
136299 ** SQLITE_OK is returned. Otherwise, if an OOM error is encountered,
136659 ** If anything goes wrong, an error message is written into pParse.
136890 testcase( nArg>1 ); /* Also an error */
137156 ** encountered, then an appropriate error message is left in
137237 ** In this case, it is an error if the target object (pSrc->a[0]) name
138284 /* The SELECT has been coded. If there is an error in the Parse structure,
138288 /* Control jumps to here if an error is encountered above, or upon
138350 char *zErrMsg; /* Error message text, if an error occurs */
138443 char **pzErrMsg /* Write error messages here */
138675 ** exist, the error is caught by the block below.
138833 Token nameToken; /* Trigger name for error reporting */
138947 ** If an OOM error occurs, NULL is returned and db->mallocFailed is set.
139350 ** list is of the form "*". Raise an error if the terms if of the
139578 ** (trigger program). If an error has occurred, transfer error information
139617 ** are freed if an error occurs, link them into the Parse.pTriggerPrg
141336 ** Return SQLITE_OK if everything works, or an error code is something
141679 /* Default behavior: Report an error if the argument to VACUUM is
141711 char **pzErrMsg, /* Write error message here */
141886 ** vacuum database and the main database. Assuming no error occurs,
142356 int ifNotExists /* No error if the table already exists */
142652 ** of the virtual table pTab. If an error occurs, an error code is returned
142653 ** and an error left in pParse.
142725 ** If an error occurs, *pzErr is set to point to an English language
142726 ** description of the error and an SQLITE_XXX error code is returned.
142744 ** error. Otherwise, do nothing.
142919 ** array. Return the error code for the first error that occurs, or
142922 ** If an error message is available, leave it in p->zErrMsg.
143023 ** If any virtual table method returns an error code other than SQLITE_OK,
143024 ** processing is abandoned and the error returned to the caller of this
143412 ** prevent a query solution - which is an error) and many terms of the
146450 ** allocation error. The memory allocation failure will be recorded in
149388 ** If an error occurs, pParse is populated with an error message and an
149389 ** appropriate error code is returned. A return of SQLITE_CONSTRAINT from
149390 ** xBestIndex is not considered an error. SQLITE_CONSTRAINT indicates that
149394 ** Whether or not an error is returned, it is the responsibility of the
149688 ** If an error occurs, an SQLite error code is returned. Otherwise,
149795 ** rows in the index. Assuming no error occurs, *pnOut is adjusted (reduced)
149981 ** for a UTF conversion required for comparison. The error is stored
150045 ** for a UTF conversion required for comparison. The error is stored
151628 ** error if they are not */
152447 ** error occurs.
152975 ** If an error occurs, this routine returns NULL.
154589 ** accordingly. If no such WINDOW clause can be found, leave an error
154997 /* Might actually be some other kind of error, but in that case
154999 ** the correct error message regardless. */
155184 ** leaves an error in pParse.
156311 ** If an OOM error occurs, this function sets the Parse.db.mallocFailed
157017 ** Disable all error recovery processing in the parser push-down
157078 ** Issue an error message if an ORDER BY or LIMIT clause occurs on an
157087 sqlite3ErrorMsg(pParse, "syntax error near \"ORDER BY\"");
157089 sqlite3ErrorMsg(pParse, "syntax error near \"LIMIT\"");
157193 ** list of identifiers. Report an error if the ID list contains
157195 ** error while parsing a legacy schema.
157208 sqlite3ErrorMsg(pParse, "syntax error after column name \"%.*s\"",
157216 # error too many tokens in the grammar
157444 ** YYERRORSYMBOL is the code number of the error symbol. If not
157445 ** defined, then do no error processing.
157452 ** YY_ERROR_ACTION The yy_action[] code for syntax error
157543 ** N == YY_ERROR_ACTION A syntax error has occurred.
158184 ** the parse is retried before an error is thrown.
158411 int yyerrcnt; /* Shifts left before out of the error */
159301 ** reduce or during error processing or when a parser is
159485 ** (2) is not a syntax error.
161259 sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &t);
161989 /* It is not possible for a REDUCE to be followed by an error */
162025 ** The following code executes when a syntax error first occurs.
162029 int yymajor, /* The major type of the error token */
162030 sqlite3ParserTOKENTYPE yyminor /* The minor type of the error token */
162039 sqlite3ErrorMsg(pParse, "near \"%T\": syntax error", &TOKEN);
162104 int yyerrorhit = 0; /* True if yymajor has invoked an error */
162200 /* A syntax error has occurred.
162201 ** The response to an error depends upon whether or not the
162202 ** grammar defines an error token "ERROR".
162209 ** it is legal to shift the error symbol, then shift
162210 ** the error symbol.
162212 ** * Set the error count to three.
162214 ** * Begin accepting and shifting new tokens. No new error
162257 ** do any kind of error recovery. Instead, simply invoke the syntax
162258 ** error routine and continue going as if nothing had happened.
162261 ** they intend to abandon the parse upon the first syntax error seen.
162269 ** * Report an error message, and throw away the input token.
162273 ** As before, subsequent error messages are suppressed until
163361 ** passed in. An SQLITE_ status code is returned. If an error occurs
163362 ** then an and attempt is made to write an error message into
163364 ** error message.
164286 ** initialize the mutex subsystem, return early with the error.
164325 ** the pInitMutex mutex. Return an error in either case. */
164597 /* now an error */
165434 sqlite3Error(db, SQLITE_OK); /* Deallocates any cached error strings. */
165514 ** Return a static string containing the name corresponding to the error code
165626 ** Return a static string that describes the kind of error specified in the
165631 /* SQLITE_OK */ "not an error",
165632 /* SQLITE_ERROR */ "SQL logic error",
165641 /* SQLITE_IOERR */ "disk I/O error",
165665 const char *zErr = "unknown error";
165749 ** returns 0, the operation aborts with an SQLITE_BUSY error.
165852 ** that if a malloc() fails in sqlite3_create_function(), an error code
166100 ** fails with an error message stating that the function is used in the
166125 ** a new one that always throws a run-time error.
166436 /* Initialize the output variables to -1 in case an error occurs. */
166496 ** an error occurs while running the checkpoint, an SQLite error code is
166504 ** checkpointed. If an error is encountered it is returned immediately -
166575 ** error.
166603 ** error.
166634 ** sqlite3ApiExit(), to avoid setting the database handle error message.
166644 ** Return the most recent error code generated by an SQLite routine. If NULL is
166670 ** Return a string that describes the kind of error specified in the
166778 # error SQLITE_MAX_LENGTH must be at least 100
166781 # error SQLITE_MAX_SQL_LENGTH must be at least 100
166784 # error SQLITE_MAX_SQL_LENGTH must not be greater than SQLITE_MAX_LENGTH
166787 # error SQLITE_MAX_COMPOUND_SELECT must be at least 2
166790 # error SQLITE_MAX_VDBE_OP must be at least 40
166793 # error SQLITE_MAX_FUNCTION_ARG must be between 0 and 127
166796 # error SQLITE_MAX_ATTACHED must be between 0 and 125
166799 # error SQLITE_MAX_LIKE_PATTERN_LENGTH must be at least 1
166802 # error SQLITE_MAX_COLUMN must not exceed 32767
166805 # error SQLITE_MAX_TRIGGER_DEPTH must be at least 1
166808 # error SQLITE_MAX_WORKER_THREADS must be between 0 and 50
166887 ** If an error occurs, then an SQLite error code is returned and *pzErrMsg
166888 ** may be set to point to a buffer containing an English language error
166938 ** common error, we are told, so we handle it as a special case. */
166993 /* If ENABLE_URI_00_ERROR is defined, "%00" in a URI is an error. */
167318 ** conversions. The only error that can occur here is a malloc() failure.
167335 ** Throw an error if any non-sense combination is used. If we
167667 ** SQLITE_MISUSE, SQLITE_CANTOPEN, SQLITE_NOMEM and possibly other error
167671 ** to detect when version error conditions occurs.
167674 ** a low-level error is first detected.
167708 return sqlite3ReportError(SQLITE_IOERR_NOMEM, lineno, "I/O OOM error");
167821 ** to whatever their local counterparts contain. If an error did occur,
167990 ** memory allocation error, 0 on success, or non-zero for an error.
168186 ** is useful to make it easier to reach strange internal error states
168408 ** error to call this routine with any parameter other than a pointer
168478 ** It is an error to pass this routine a filename string that was not
168481 ** an error that we cannot easily detect but that will likely cause memory
168863 ** but has received an SQLITE_LOCKED error because another connection
169004 ** This is a difficult situation to handle. Returning an error
169005 ** code to the caller is insufficient, as even if an error code
169475 ** This method should return either SQLITE_OK (0), or an SQLite error
169514 ** the end of the buffer has been reached, or an SQLite error code.
170383 ** Return the number of bytes read, or 0 on error.
170393 ** Return the number of bytes read, or 0 on error.
170559 ** Write an error message into *pzErr
170621 ** Otherwise, return an SQLite error code.
170633 ** Otherwise, if an error occurs, an SQLite error code is stored in *pRc
170753 ** Otherwise, if an error occurs, an SQLite error code is stored in *pRc
170886 ** a NULL pointer is returned). Otherwise, if an OOM error is encountered
170888 ** no error occurs, *pRc is left unmodified.
170943 ** a NULL pointer is returned). Otherwise, if an OOM error is encountered
170945 ** no error occurs, *pRc is left unmodified.
170972 ** consumed. If an overflow error occurs return a negative value.
171024 ** If no error occurs, SQLITE_OK is returned and *apIndex set to point to
171026 ** array. If an error does occur, an SQLite error code is returned.
171028 ** Regardless of whether or not an error is returned, it is the responsibility
171096 ** If the table cannot be found, an error code is returned and the output
171107 char **pzErr /* OUT: error message */
171182 char **pzErr /* Write any error message here */
171408 sqlite3Fts3ErrMsg(pzErr, "error parsing prefix parameter: %s", zPrefix);
171565 char **pzErr /* OUT: sqlite3_malloc'd error message */
171575 char **pzErr /* OUT: sqlite3_malloc'd error message */
171642 ** function MATCH in the requested context" error. To discourage
171668 ** context" error.
171813 ** it. If an error occurs, return an SQLite error code.
171859 /* If no row was found and no error has occurred, then the %_content
171888 ** If an OOM error occurs, SQLITE_NOMEM is returned. Otherwise, SQLITE_OK.
172014 ** If an error occurs, an error code other than SQLITE_OK is returned.
172585 ** If no error occurs, *paOut is set to point at an sqlite3_malloc'd buffer
172589 ** If an error occurs, an SQLite error code is returned. The output values
172813 ** If an OOM error occurs, return SQLITE_NOMEM. In this case it is
172869 ** SQLite error code (SQLITE_NOMEM) if an error occurs.
172966 ** This function returns SQLITE_OK if successful, or an SQLite error code
173073 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
173092 ** an SQLite error code.
173097 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
173098 ** Output parameter *ppSegcsr is set to 0 if an error occurs.
173570 ** to 0 or 1). Return SQLITE_OK if successful, or an SQLite error code
173571 ** if an error occurs.
173677 ** output variable *ppCsr and SQLITE_OK is returned. Otherwise, an error
173679 ** string passed via zFunc is used as part of the error message.
174129 /* An error has occurred. Delete the hash table and return the error code. */
174193 ** SQLITE_OK is returned if successful, or SQLITE_NOMEM if an error occurs.
174257 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
174294 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
174407 ** SQLITE_OK is returned if no error occurs, otherwise an SQLite error code.
174620 ** If an error occurs, return an SQLite error code. Otherwise, return
174668 ** If there is no "next" entry and no error occurs, then *pbEof is set to
174669 ** 1 before returning. Otherwise, if no error occurs and the iterator is
174672 ** If an error occurs, return an SQLite error code. Otherwise, return
174769 ** If an error occurs, return an SQLite error code. Otherwise, return
174772 ** If there is no "next" entry and no error occurs, then *pbEof is set to
174773 ** 1 before returning. Otherwise, if no error occurs and the iterator is
174812 ** If an error occurs within this function, *pRc is set to an SQLite error
174865 ** Otherwise, if an error occurs during execution, *pRc is set to an
174866 ** SQLite error code.
174914 ** an SQLite error code.
174979 ** If no error occurs, SQLITE_OK is returned and sqlite3Fts3DeferToken()
174980 ** called on each token to defer. Otherwise, an SQLite error code is
175239 ** If an error occurs, *pRc is set to an SQLite error code. Otherwise, if
175489 ** Assuming no error occurs or has occurred, It returns non-zero if the
175494 ** If an error occurs during execution of this function, *pRc is set to
175495 ** the appropriate SQLite error code. In this case the returned value is
175609 ** Or, if no error occurs and it seems the current row does match the FTS
175680 ** a no-op. If an error occurs within this function, *pRc is set to an
175681 ** SQLite error code before returning.
175766 ** populated. Otherwise, if an error occurs, an SQLite error code is returned.
175860 ** If no error occurs, SQLITE_OK is returned and the values for each column
176168 char **pzErr /* OUT: sqlite3_malloc'd error message */
176621 ** if successful or an error code if sqlite3_create_module() fails.
176760 sqlite3_context *pCtx; /* Write error message here */
176931 ** error) or SQLITE_ERROR (tokenization error) is returned and *ppExpr set
177048 ** Returns an SQLite error code. SQLITE_OK if everything works, SQLITE_NOMEM
177049 ** if a malloc failure occurs, or SQLITE_ERROR if a parse error is encountered.
177050 ** If SQLITE_ERROR is returned, pContext is populated with an error message.
177269 ** (out of memory error) or SQLITE_ERROR (parse error) is returned.
177321 ** isRequirePhrase is set, this is a syntax error.
177351 ** Return an error in either case.
177443 ** Otherwise, if an error occurs, an SQLite error code is returned and
177558 /* An error occurred. Delete the contents of the apLeaf[] array
177664 ** of the parsed expression tree and SQLITE_OK is returned. If an error
177665 ** occurs, either SQLITE_NOMEM (out-of-memory error) or SQLITE_ERROR (parse
177666 ** error) is returned and *ppExpr is set to 0.
178149 ** Return non-zero if a memory allocation error occurs.
179064 ** an error is returned.
179175 char **pzErr /* OUT: Set to malloced error message */
179323 zErr = "error in xCreate()";
179328 zErr = "error in xOpen()";
179341 zErr = "error in xClose()";
179345 zErr = "error in xDestroy()";
179871 ** in this case. Or, if an error occurs, an SQLite error code is returned.
179930 char **pzErr /* OUT: sqlite3_malloc'd error message */
180187 ** if successful or an error code if sqlite3_create_module() fails.
180505 ** Otherwise, an SQLite error code is returned and *pp is set to 0.
180717 ** SQLite error code otherwise.
180745 ** It is best to avoid this because if FTS3 returns any error when
180808 ** return SQLITE_OK. If an error occurs while preparing the statement,
180809 ** return an SQLite error code.
180859 ** if successful, or an SQLite error code otherwise.
180909 ** If an OOM error occurs, *pRc is set to SQLITE_NOMEM before returning.
180910 ** Zero is always returned in this case. Otherwise, if no OOM error occurs,
181011 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code.
181224 ** In FTS3, this is an error. It is an error to specify non-NULL values
181349 ** returned. Otherwise, an SQLite error code is returned.
181407 ** If an error occurs, or the table does not contain the specified row,
181408 ** an SQLite error code is returned. Otherwise, SQLITE_OK is returned. If
181535 ** SQLITE_DONE. Otherwise, an SQLite error code.
182161 ** *pnMax to this value and return SQLITE_OK. Otherwise, if an error occurs,
182162 ** set *pnMax to zero and return an SQLite error code.
182379 ** blocks were written to the db). Otherwise, an SQLite error code is
182449 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code.
182600 ** returned. Otherwise, an SQLite error code.
182655 ** error occurs, an SQLite error code is returned.
182682 ** Return SQLITE_OK if successful, or an SQLite error code if not.
182715 ** within its index. Assuming no error occurs, *pbMax is set to 1 if
182717 ** is returned. If an error occurs, an error code is returned and the
182778 ** SQLITE_OK is returned if successful, otherwise an SQLite error code.
182879 ** If successful, return SQLITE_OK. Otherwise, if an OOM error is encountered
183431 ** Otherwise, if successful, SQLITE_OK is returned. If an error occurs,
183432 ** an SQLite error code is returned.
183963 ** If an OOM error occurs, set *pRc to SQLITE_NOMEM and leave pBlob->a
183984 ** Return an error code if an error occurs (SQLITE_NOMEM is possible).
184042 ** error code is returned.
184169 ** If an error (i.e. OOM condition) occurs, an SQLite error code is
184221 ** Return SQLITE_OK if successful, or an SQLite error code otherwise.
184297 ** merge-writer object pWriter, and if no error has occurred, to flush
184304 ** Otherwise, if *pRc is initially SQLITE_OK and an error occurs while
184305 ** flushing buffers to disk, *pRc is set to an SQLite error code before
184414 ** NULL. If no error occurs and the entry is NULL, set *pbRes 1 before
184417 ** Or, if an error occurs while querying the database, return an SQLite
184418 ** error code. The final value of *pbRes is undefined in this case.
184599 ** level iAbsLevel+1. If no error occurs, set *piIdx to this value plus
184603 ** If an error occurs, return an SQLite error code. The final value of
184871 ** SQLite error code otherwise.
185031 ** table and return SQLITE_OK. Otherwise, if an error occurs, return an
185032 ** SQLite error code.
185067 ** If successful, leave *pRc set to SQLITE_OK and return. If an error occurs,
185068 ** set *pRc to an SQLite error code before returning.
185088 ** If no error occurs, return SQLITE_OK. If the hint blob in *pHint does
185412 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code. The
185486 ** content table. If no error occurs and the contents do match, set *pbOk
185490 ** If an error occurs (e.g. an OOM or IO error), return an SQLite error
185576 ** Run the integrity-check. If no error occurs and the current contents of
185580 ** Or, if an error (e.g. an OOM or IO error) occurs, return an SQLite
185581 ** error code.
185941 ** other error) while doing so, return immediately.
186299 ** the iteration is abandoned and the error code returned immediately.
187159 ** Otherwise, if an error occurs, an SQLite error code is returned and the
187248 ** Return SQLITE_OK if successful, or an SQLite error code if an error
188673 sqlite3_context *pCtx; /* Function context - put error messages here */
188678 u8 bErr; /* True if an error has been encountered */
188793 ** Return zero on success. Return non-zero on an OOM error
189348 ** Return negative for a syntax error. Special cases: return -2 if the
189501 return -1; /* Syntax error */
189507 ** are any errors. If an error occurs, free all memory associated with
189687 const char **pzErr /* Make *pzErr point to any syntax error in zPath */
189831 const char **pzErr /* Make this point to any syntax error */
189850 ** Return the text of a syntax error message on a JSON path. Space is
189854 return sqlite3_mprintf("JSON path error near '%q'", zErr);
189859 ** Return NULL if not found or if there is an error.
189861 ** On an error, write an error message into pCtx and increment the
190019 ** is a BLOB, throw an error.
190084 ** with the result from each path. Throw an error if the JSON or any PATH
190228 ** is not a string or if any value is a BLOB, throw an error.
190270 ** JSON or PATH arguments result in an error.
190303 ** this routine is a no-op. If JSON or PATH is malformed, throw an error.
190345 ** If JSON or PATH is malformed, throw an error.
190350 ** routine is a no-op. If JSON or PATH is malformed, throw an error.
190398 ** Return the top-level "type" of a JSON string. Throw an error if
191966 /* If no error has occurred so far, check if the "number of entries"
192953 ** *ppLeaf to 0 and return SQLITE_OK. If an error occurs, set *ppLeaf
192954 ** to zero and return an SQLite error code.
194332 ** Assuming no OOM error occurs, this function sets the error message
194807 ** is written to *piVal and SQLITE_OK returned. Otherwise, an SQLite error
194829 ** Otherwise, an SQLite error code is returned.
195120 ** Reset SQL statement pStmt. If the sqlite3_reset() call returns an error,
195121 ** and RtreeCheck.rc==SQLITE_OK, set RtreeCheck.rc to the error code.
195134 ** NULL is returned and an error code left in RtreeCheck.rc.
195186 ** This function is a no-op if there is already an error code stored
195192 ** If no error occurs, a pointer to the buffer is returned and (*pnNode)
195195 ** Or, if an error does occur, NULL is returned and an error code left
195286 ** x1>x2 conditions) and adds an error message to the RtreeCheck object
195292 ** sets of coordinates are mutually consistent and an error message added
195297 i64 iNode, /* Node id to use in error messages */
195298 int iCell, /* Cell number to use in error messages */
195338 ** If any problems are discovered, an error message is appended to the
195401 ** an error message to the report in the RtreeCheck object indicated
195788 ** If any error occurs, return NULL.
195865 ** polygon, put an error message in sqlite3_context and return NULL.
195868 sqlite3_context *pCtx, /* Context for error messages */
195870 int *pRc /* Write error here */
196191 sqlite3_context *context, /* For recording the error */
197610 ** the implementation of an SQL scalar function returns an error.
197613 ** loaded with an error message based on the following two args.
197621 sqlite3_snprintf(128, zBuf, "ICU error: %s(): %s", zName, u_errorName(e));
197788 ** Otherwise, return an error.
198450 ** other error occurs, the RBU extension will keep throwing errors. It's
198618 ** do so results in an SQLITE_MISMATCH error.
198727 ** to do so is an error (SQLITE_ERROR).
198735 ** the suspended RBU update is also an error (SQLITE_BUSY).
198741 /* #include "sqlite3.h" ** Required for error code definitions ** */
198809 ** With an RBU vacuum, it is an SQLITE_MISUSE error if the name of the
198842 ** error is returned.
198876 ** If an error has occurred, either while opening or stepping the RBU object,
198877 ** this function may return NULL. The error code and message may be collected
198889 ** SQLITE_OK if no error occurs but there remains work to do to apply
198890 ** the RBU update. If an error does occur, some other error code is
198907 ** SQLITE_OK is returned if successful, or an SQLite error code otherwise.
198915 ** as fully applied. Otherwise, assuming no error has occurred, save the
198918 ** If an error has already occurred as part of an sqlite3rbu_step()
198920 ** SQLite error code is returned. Additionally, if pzErrmsg is not NULL,
198922 ** English language error message. It is the responsibility of the caller to
198925 ** Otherwise, if no error occurs, this function returns SQLITE_OK if the
199007 ** An error has occurred. Any subsequent calls to sqlite3rbu_step() will
199008 ** immediately return the SQLite error code associated with the error.
199034 ** multiplexor (error checking omitted):
199053 ** that does not include the RBU layer results in an error.
199284 ** 0: Table does not exist (error)
199653 ** patch and the second the patch to apply. If no error occurs, this
199704 ** Otherwise, if an error does occur, set *ppStmt to NULL and return
199705 ** an SQLite error code. Additionally, set output variable *pzErrmsg to
199706 ** point to a buffer containing an error message. It is the responsibility
199727 ** If an error has occurred, then set *pzErrmsg to point to a buffer
199728 ** containing an error message. It is the responsibility of the caller
199746 ** Otherwise, if an error occurs, *ppStmt is set to NULL and an error code
199747 ** returned. In this case, *pzErrmsg may also be set to point to an error
199748 ** message. It is the responsibility of the caller to free this error message
199839 ** If no error occurs, SQLITE_OK is returned and the iterator is left
199840 ** pointing to the next entry. Otherwise, an error code and message is
199842 ** error code is returned.
199955 ** If no error occurs, SQLITE_OK is returned and the iterator is left
199956 ** pointing to the first entry. Otherwise, an error code and message is
199958 ** error code is returned.
199988 ** an error code is stored in the RBU handle passed as the first argument.
199990 ** If an error has already occurred (p->rc is already set to something other
199992 ** stored error code. In this case it still calls sqlite3_free() on any
200016 ** If an error occurs, an error code and error message is stored in the
200017 ** RBU handle. If an error has already occurred when this function is
200041 ** If an error (i.e. an OOM condition) occurs, return NULL and leave an
200042 ** error code in the rbu handle passed as the first argument. Or, if an
200043 ** error has already occurred when this function is called, return NULL
200045 ** error code.
200065 ** error code in the RBU handle passed as the first argument.
200113 ** If the sqlite3_finalize() call indicates that an error occurs, and the
200114 ** rbu handle error code is not already set, set the error code and error
200191 /* Either an error, or no such table. */
200299 ** Return SQLITE_OK if successful, or an SQLite error code otherwise. If
200300 ** an error does occur, an error code and error message are also left in
200850 ** stored in the (p->nCol+1)'th column. Set the error code and error message
200870 ** If an OOM error is encountered when allocating space for the new
200871 ** string, an error code is left in the rbu handle passed as the first
200872 ** argument and NULL is returned. Or, if an error has already occurred
200874 ** attempting the allocation or modifying the stored error code.
200924 ** If an OOM error is encountered when allocating space for the new
200925 ** string, an error code is left in the rbu handle passed as the first
200926 ** argument and NULL is returned. Or, if an error has already occurred
200928 ** attempting the allocation or modifying the stored error code.
201071 ** If an error has already occurred when this function is called, it
201072 ** immediately returns zero (without doing any work). Or, if an error
201073 ** occurs during the execution of this function, it sets the error code
201559 ** is not an error. Output variable *ppStmt is set to NULL in this case.
201571 /* In case an error occurs */
201665 ** If an error occurs, leave an error code and message in the rbu handle
201743 ** error occurs, leave an error code and message in the RBU handle.
201893 ** This is an error. */
201986 /* Assuming no error has occurred, run a "restart" checkpoint with the
202005 ** error.
202007 ** As a result, unless an error (i.e. OOM or SQLITE_BUSY) occurs, the
202155 ** If an error occurs, leave an error code and error message in the rbu
202246 ** If the rbu_control field contains an invalid value, an error code and
202384 ** If no error occurs, SQLITE_OK is returned. Otherwise, an error code
202385 ** and message is left in the RBU handle and a copy of the error code
202759 ** If an error occurs, an error code and error message are left in the
202778 p->zErrmsg = sqlite3_mprintf("rbu_state mismatch error");
202792 ** target database in the file-system, delete it. If an error occurs,
202793 ** leave an error code and error message in the rbu handle.
202904 /* Check for the rbu_count table. If it does not exist, or if an error
203088 ** error code, which is set to SQLITE_MISUSE.
203144 ** If the error code currently stored in the RBU handle is SQLITE_CONSTRAINT,
203145 ** then edit any error message string so as to remove all occurrences of
203191 ** successfully or encountered an error, delete the contents of the
203378 ** fails with an SQLITE_BUSY error. This is to stop RBU connections
203756 ** one is found, this is an error. */
203761 pRbu->zErrmsg = sqlite3_mprintf("rbu/zipvfs setup error");
204123 ** utf-8 string describing the most recent error encountered associated
205621 int rc; /* Non-zero if an error has occurred */
205668 int rc; /* Iterator error code */
205934 ** If no error occurs, SQLITE_OK is returned. Or, if an OOM error occurs
206077 ** new.* row currently available and, assuming no error occurs, writes it to
206081 ** If an error occurs, an SQLite error code is returned and the final values
206487 ** (part of the session pSession). If a fatal OOM error occurs, set the
206491 ** It is possible that a non-fatal OOM error occurs in this function. In
206650 ** free any allocation made. An error code will be returned in this case.
206673 ** If an error occurs, an error code is stored in sqlite3_session.rc and
206674 ** non-zero returned. Or, if no error occurs but the table has no primary
206748 ** Unless one is already present or an error occurs, an entry is added
206835 ** be converted to utf-8 and an OOM error occurs while doing so. */
206885 /* If an error has occurred, mark the session object as failed. */
207283 /* Zero the output value in case an error occurs. */
207463 ** Otherwise, if an error occurs, *pRc is set to an SQLite error code
207869 ** error code (e.g. SQLITE_NOMEM) otherwise.
207939 ** changeset format) to buffer *pBuf. If an error occurs, set *pRc to an
207940 ** SQLite error code before returning.
207960 ** If no error occurs, SQLITE_OK is returned and the new changeset/patchset
207961 ** stored in output variables *pnChangeset and *ppChangeset. Or, if an error
207962 ** occurs, an SQLite error code is returned and both output variables set
207980 /* Zero the output variables in case an error occurs. If this session
207981 ** object is already in the error state (sqlite3_session.rc != SQLITE_OK),
208205 /* Zero the output variable in case an error occurs. */
208288 ** Return an SQLite error code if an error occurs, or SQLITE_OK otherwise.
208342 ** error occurs.
208353 ** error. Hence the code to create the copy externally. */
208366 ** to deserialize. Assuming no error occurs, *paChange is set to point to
208382 ** If an error occurs, an SQLite error code (e.g. SQLITE_NOMEM) is returned.
208458 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code.
208501 ** the record in bytes. Otherwise, an SQLite error code is returned. The
208544 ** If successful, SQLITE_OK is returned. Otherwise, an SQLite error code
208610 /* If the iterator is in the error-state, return immediately. */
208727 ** error code if an error occurs, or SQLITE_DONE if there are no further
208851 ** they omit all error checking and return a pointer to the requested value.
208864 ** If value iVal is out-of-range or some other error occurs, an SQLite error
208940 /* Zero the output variables in case an error occurs. */
209503 ** An SQLite error code is returned if an error occurs. Otherwise, SQLITE_OK.
209542 ** and SQLITE_ROW is returned. Otherwise, if no row is found and no error
209544 ** error occurs, the statement is reset and an SQLite error code is returned.
209587 ** Return SQLITE_OK if successful, or an SQLite error code otherwise.
209758 ** returns SQLITE_ABORT. Otherwise, if no error occurs, SQLITE_OK is
209838 /* A NOTFOUND or DATA error. Search the table to see if it contains
210625 ** If successful, SQLITE_OK is returned. Or, if an error occurs, an SQLite
210626 ** error code. If an error occurs and xOutput is NULL, (*ppOut) and (*pnOut)
210837 int *pRc /* IN/OUT: error code */
210937 ** object passed as the first argument. If no error occurs and argument xOutput
210945 ** If an error occurs, an SQLite error code is returned. If ppOut and
211241 sqlite3_context *pCtx, /* Context for returning result/error */
211266 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
211267 ** an OOM condition or IO error), an appropriate SQLite error code is
211280 ** in the table, SQLITE_RANGE is returned. Or, if an error occurs (e.g.
211281 ** an OOM condition or IO error), an appropriate SQLite error code is
211292 ** if an error occurs, an SQLite error code is returned and the final values
211305 ** an error code (i.e. SQLITE_NOMEM) if an error occurs.
211320 ** first token of the phrase. Returns SQLITE_OK if successful, or an error
211321 ** code (i.e. SQLITE_NOMEM) if an error occurs.
211350 ** Otherwise, the error code is propagated upwards.
211353 ** Or, if some error occurs before the query completes or is aborted by
211354 ** the callback, an SQLite error code is returned.
211377 ** If an error (e.g. an OOM condition) occurs within this function,
211378 ** the auxiliary data is set to NULL and an error code returned. If the
211527 ** returned. If an error occurs, some value other than SQLITE_OK should
211585 ** if an error occurs with the xTokenize() implementation itself, it
211586 ** may abandon the tokenization and return any error code other than
211658 ** It is an error to specify the FTS5_TOKEN_COLOCATED flag the first time
211832 ** less than 32. If it is set to anything large than that, an #error
211929 ** decent error message if it encounters a file-format version it does
212665 ** Disable all error recovery processing in the parser push-down
212746 ** fts5YYERRORSYMBOL is the code number of the error symbol. If not
212747 ** defined, then do no error processing.
212754 ** fts5YY_ERROR_ACTION The fts5yy_action[] code for syntax error
212832 ** N == fts5YY_ERROR_ACTION A syntax error has occurred.
212929 ** the parse is retried before an error is thrown.
212973 int fts5yyerrcnt; /* Shifts left before out of the error */
213204 ** reduce or during error processing or when a parser is
213322 ** (2) is not a syntax error.
213784 /* It is not possible for a REDUCE to be followed by an error */
213820 ** The following code executes when a syntax error first occurs.
213824 int fts5yymajor, /* The major type of the error token */
213825 sqlite3Fts5ParserFTS5TOKENTYPE fts5yyminor /* The minor type of the error token */
213834 pParse, "fts5: syntax error near \"%.*s\"",FTS5TOKEN.n,FTS5TOKEN.p
213897 int fts5yyerrorhit = 0; /* True if fts5yymajor has invoked an error */
213993 /* A syntax error has occurred.
213994 ** The response to an error depends upon whether or not the
213995 ** grammar defines an error token "ERROR".
214002 ** it is legal to shift the error symbol, then shift
214003 ** the error symbol.
214005 ** * Set the error count to three.
214007 ** * Begin accepting and shifting new tokens. No new error
214050 ** do any kind of error recovery. Instead, simply invoke the syntax
214051 ** error routine and continue going as if nothing had happened.
214054 ** they intend to abandon the parse upon the first syntax error seen.
214062 ** * Report an error message, and throw away the input token.
214066 ** As before, subsequent error messages are suppressed until
214164 ** an SQLite error code if an error occurs, or SQLITE_OK otherwise.
214243 ** called, it is a no-op. If an error (i.e. an OOM condition) is encountered,
214244 ** *pRc is set to an error code before returning.
214318 sqlite3_context *pCtx, /* Context for returning result/error */
214376 ** error occurs.
214490 sqlite3_context *pCtx, /* Context for returning result/error */
214749 sqlite3_context *pCtx, /* Context for returning result/error */
214788 ** error has occurred, throw an exception. */
214867 ** pBuf. If an OOM error occurs, set the error code in p.
214886 ** Append buffer nData/pData to buffer pBuf. If an OOM error occurs, set
214887 ** the error code in p. If an error has already occurred when this function
214980 ** Set the buffer to contain nData/pData. If an OOM error occurs, leave an
214981 ** the error code in p. If an error has already occurred when this function
215102 ** buffer using sqlite3_free(). If an OOM error occurs, NULL is returned.
215461 ** an error occurs, an SQLite error code is returned and an error message
215463 ** eventually free any such error message using sqlite3_free().
215555 *pzErr = sqlite3_mprintf("parse error in tokenize directive");
215626 ** Fts5Config.pTokenizer. Return SQLITE_OK if successful, or an SQLite error
215627 ** code if an error occurs.
215647 ** set if a parse error (failed to find close quote) occurs.
215745 ** new Fts5Config object. If an error occurs, an SQLite error code is
215746 ** returned, *ppOut is set to NULL and an error message may be left in
215748 ** such error message using sqlite3_free().
215808 *pzErr = sqlite3_mprintf("parse error in \"%s\"", zOrig);
215894 ** an SQLite error code if an error occurs.
215935 ** This function returns SQLITE_OK if successful or an SQLite error code
215936 ** if an error occurs. If the tokenization was abandoned early because
215937 ** the callback returned SQLITE_DONE, this is not an error and this function
215940 ** to be an SQLite error code and returned to the caller.
215959 ** NULL to indicate a parse error.
216390 sqlite3Fts5ParseError(pParse, "fts5: syntax error near \"%.1s\"", z);
216488 ** GLOB. If successful, SQLITE_OK is returned. Otherwise, an SQLite error
216726 ** SQLITE_OK is returned if an error occurs, or an SQLite error code
216727 ** otherwise. It is not considered an error code if the current rowid is
216860 ** function is called, it is a no-op. Or, if an error (e.g. SQLITE_NOMEM)
216864 ** If no error occurs and non-zero (a match) is returned, the position-list
216964 ** an error occurs, set *pRc to an error code. If either *pbEof or *pRc
217078 ** If an error occurs, return an SQLite error code. Otherwise, return
217079 ** SQLITE_OK. It is not considered an error if some term matches zero
217215 ** SQLITE_OK is returned if an error occurs, or an SQLite error code
217216 ** otherwise. It is not considered an error code if an iterator reaches
217284 ** variable *pbEof to true if it reaches EOF or if an error occurs.
217286 ** Return SQLITE_OK if successful, or an SQLite error code if an error
217330 ** error has occurred. */
217615 ** Return an SQLite error code if an error occurs, or SQLITE_OK otherwise.
217616 ** It is not an error if there are no matches.
217674 ** Return SQLITE_OK if successful, or an SQLite error code otherwise. It
217675 ** is not considered an error if the query does not match any documents.
217705 ** Return SQLITE_OK if successful, or an SQLite error code otherwise. It
217706 ** is not considered an error if the query does not match any documents.
217775 ** If an OOM error occurs, both the pNear and pPhrase objects are freed and
217862 /* If an error has already occurred, this is a no-op */
218101 ** is expected. If token pTok does not contain "NEAR", store an error
218107 pParse, "fts5: syntax error near \"%.*s\"", pTok->n, pTok->p
218144 ** If an OOM error occurs, store an error code in pParse and return NULL.
218456 ** OOM error), leave an error code in pParse and return NULL.
219862 # error "FTS5_MAX_PREFIX_INDEXES is too large"
220100 int rc; /* Current error code */
220375 ** If an OOM error is encountered, return NULL and set the error code in
220436 ** If an error occurs, NULL is returned and an error left in the
220640 ** If an error occurs, *ppOut is set to NULL and an SQLite error code
220839 ** If an error occurs, NULL is returned and an error code left in the
220840 ** Fts5Index handle. If an error has already occurred when this function
220922 ** If an error occurs, leave an error code in the Fts5Index object. If an
220923 ** error has already occurred, this function is a no-op.
221501 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. If
221502 ** an error has already occurred when this function is called, it is a no-op.
221769 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. It
221770 ** is not considered an error if the iterator reaches EOF. If an error has
222026 Fts5Index *p, /* Leave any error code here */
222168 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. If
222169 ** an error has already occurred when this function is called, it is a no-op.
222233 ** 1) an error has occurred, or
222251 ** If an error occurs, Fts5Index.rc is set to an appropriate error code. If
222252 ** an error has already occurred when this function is called, it is a no-op.
222469 ** It is an error if leaf iLeafPgno does not exist or contains no rowids.
222654 ** If an error occurs, an error code is left in Fts5Index.rc. It is not
222655 ** considered an error if the iterator reaches EOF, or if it is already at
222951 ** called. If an OOM error is encountered, *pRc is set to SQLITE_NOMEM
223253 ** aFirst[] array. Or, if an error has occurred, free the iterator
223321 ** Return true if the iterator is at EOF or if an error has occurred.
223375 ** If an error has already occurred, this function is a no-op. 0 is
223560 ** If an error occurs, an error code is left in Fts5Index.rc. If an error
223712 ** If an error occurs, set the Fts5Index.rc error code. If an error has
224221 ** If an error occurs, set the Fts5Index.rc error code. If an error has
224298 ** If an error occurs, set the Fts5Index.rc error code. If an error has
225129 ** Otherwise, set *pp to NULL and return an SQLite error code.
225475 ** Return SQLITE_OK if successful, or an SQLite error code if an error
225946 ** error, or some other SQLite error code if another error (e.g. OOM)
226079 int *pRc, /* IN/OUT: error code */
226108 int *pRc, /* IN/OUT: error code */
226133 int *pRc, /* IN/OUT: error code */
226207 ** no-op. If an OOM or other error occurs within this function, *pRc is
226208 ** set to an SQLite error code before returning. The final state of buffer
226487 ** If successful, SQLITE_OK is returned. If an error occurs, some other
226488 ** SQLite error code is returned instead.
226810 /* The following assert() can fail if another vtab strikes an error
226879 char **pzErr /* Write any error message here */
226944 char **pzErr /* OUT: sqlite3_malloc'd error message */
226954 char **pzErr /* OUT: sqlite3_malloc'd error message */
227380 ** error code if an error occurred.
227587 /* An unrecognized directive. Return an error message. */
227685 "parse error in rank function: %s", z
227965 ** Return SQLITE_OK if no error occurs, or an SQLite error code otherwise.
227967 ** If argument bErrormsg is true and an error occurs, an error message may
228026 ** error code if an error occurs.
228424 ** SQLite error code otherwise.
229250 if( pzErr ) *pzErr = sqlite3_mprintf("error in tokenizer constructor");
229470 # error "FTS5_STMT_SCAN_ASC mismatch"
229473 # error "FTS5_STMT_SCAN_DESC mismatch"
229476 # error "FTS5_STMT_LOOKUP mismatch"
229491 ** Return SQLITE_OK if successful, or an SQLite error code if an error
229622 ** Drop all shadow tables. Return SQLITE_OK if successful or an SQLite error
229681 ** SQLITE_OK if successful, or an SQLite error code otherwise.
229702 "fts5: error creating shadow table %q_%s: %s",
229716 ** Otherwise, set *pp to NULL and return an SQLite error code.
229924 ** Return SQLITE_OK if successful, or an SQLite error code if an error
229940 ** Return SQLITE_OK if successful, or an SQLite error code if an error
230321 ** some other SQLite error code if an error occurs while attempting to
230491 ** An SQLite error code is returned if an error occurs, or SQLITE_OK
233242 ** value and return SQLITE_OK. Otherwise, set *pzErr to an error message
233316 char **pzErr /* Write any error message here */
233378 char **pzErr /* OUT: sqlite3_malloc'd error message */
233388 char **pzErr /* OUT: sqlite3_malloc'd error message */