aboutsummaryrefslogtreecommitdiff
path: root/src/sqlite.h.in
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-07-07 19:52:09 +0000
committerdrh <drh@noemail.net>2008-07-07 19:52:09 +0000
commitbd0b1b50f4bb78d79c25bb471ec2b8ed35a4debe (patch)
treefbe22f280a5dff4e40969ea98f73508844d80b99 /src/sqlite.h.in
parentda8c8f2f8f9b44f18109f985a166e7ee3727f103 (diff)
downloadsqlite-bd0b1b50f4bb78d79c25bb471ec2b8ed35a4debe.tar.gz
sqlite-bd0b1b50f4bb78d79c25bb471ec2b8ed35a4debe.zip
Make check-in (5356) compatible with builds that do not enable memory
management. Remove unnecessary code from main.c. Add out-of-memory tests for sqlite3_complete16(). (CVS 5357) FossilOrigin-Name: 28f8b6bfcc3e169f8a54a6681395f2c85bf99cab
Diffstat (limited to 'src/sqlite.h.in')
-rw-r--r--src/sqlite.h.in11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/sqlite.h.in b/src/sqlite.h.in
index 9bca7ebf2..916e84dcd 100644
--- a/src/sqlite.h.in
+++ b/src/sqlite.h.in
@@ -30,7 +30,7 @@
** the version number) and changes its name to "sqlite3.h" as
** part of the build process.
**
-** @(#) $Id: sqlite.h.in,v 1.363 2008/07/07 17:53:08 drh Exp $
+** @(#) $Id: sqlite.h.in,v 1.364 2008/07/07 19:52:10 drh Exp $
*/
#ifndef _SQLITE3_H_
#define _SQLITE3_H_
@@ -1405,11 +1405,16 @@ void sqlite3_interrupt(sqlite3*);
**
** INVARIANTS:
**
-** {F10511} The sqlite3_complete() and sqlite3_complete16() functions
-** return true (non-zero) if and only if the last non-whitespace
+** {F10511} A successful evaluation of [sqlite3_complete()] or
+** [sqlite3_complete16()] functions shall
+** return a numeric 1 if and only if the last non-whitespace
** token in their input is a semicolon that is not in between
** the BEGIN and END of a CREATE TRIGGER statement.
**
+** {F10512} If a memory allocation error occurs during an invocation
+** of [sqlite3_complete()] or [sqlite3_complete16()] then the
+** routine shall return [SQLITE_NOMEM].
+**
** LIMITATIONS:
**
** {A10512} The input to [sqlite3_complete()] must be a zero-terminated