diff options
author | drh <drh@noemail.net> | 2008-03-20 14:03:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2008-03-20 14:03:29 +0000 |
commit | bb4957f858126b6e149cbf815f3c124cf14398b6 (patch) | |
tree | 273773f6f09ba21005fcaa640931f4188285125e /src/sqliteLimit.h | |
parent | f653d78282b61b9ea5940453d0065cbdbdd6ffb2 (diff) | |
download | sqlite-bb4957f858126b6e149cbf815f3c124cf14398b6.tar.gz sqlite-bb4957f858126b6e149cbf815f3c124cf14398b6.zip |
Initial implementation of per-connection limits and the sqlite3_limit() API.
The sqllimits1.test script crashes. SQLITE_LIMIT_PAGE_COUNT and
SQLITE_LIMIT_VDBE_OP are currently ignored. (CVS 4897)
FossilOrigin-Name: 60c77882b2de9f6a45f8bd87c9c6a0cc613f8373
Diffstat (limited to 'src/sqliteLimit.h')
-rw-r--r-- | src/sqliteLimit.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/src/sqliteLimit.h b/src/sqliteLimit.h index 64cf1ca1d..182575c6c 100644 --- a/src/sqliteLimit.h +++ b/src/sqliteLimit.h @@ -12,7 +12,7 @@ ** ** This file defines various limits of what SQLite can process. ** -** @(#) $Id: sqliteLimit.h,v 1.6 2007/12/17 16:20:07 drh Exp $ +** @(#) $Id: sqliteLimit.h,v 1.7 2008/03/20 14:03:29 drh Exp $ */ /* @@ -49,18 +49,24 @@ /* ** The maximum length of a single SQL statement in bytes. -** A value of zero means there is no limit. +** +** It used to be the case that setting this value to zero would +** turn the limit off. That is no longer true. It is not possible +** to turn this limit off. */ #ifndef SQLITE_MAX_SQL_LENGTH -# define SQLITE_MAX_SQL_LENGTH 0 +# define SQLITE_MAX_SQL_LENGTH 1000000000 #endif /* ** The maximum depth of an expression tree. This is limited to ** some extent by SQLITE_MAX_SQL_LENGTH. But sometime you might ** want to place more severe limits on the complexity of an -** expression. A value of 0 (the default) means do not enforce -** any limitation on expression tree depth. +** expression. +** +** A value of 0 used to mean that the limit was not enforced. +** But that is no longer true. The limit is now strictly enforced +** at all times. */ #ifndef SQLITE_MAX_EXPR_DEPTH # define SQLITE_MAX_EXPR_DEPTH 1000 |