aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-03-20 18:00:49 +0000
committerdrh <drh@noemail.net>2008-03-20 18:00:49 +0000
commitf47ce56c493d91554f52ff39f5bd9af258f2985d (patch)
tree8ae8b6c4422a4881770b45772a0948b89a40c045 /src/main.c
parentb1a6c3c1cc41f16693c0b0855c27e5429e6867a2 (diff)
downloadsqlite-f47ce56c493d91554f52ff39f5bd9af258f2985d.tar.gz
sqlite-f47ce56c493d91554f52ff39f5bd9af258f2985d.zip
In the sqlite3_limit() interface, take out the feature where zero means
use the hard upper bound. If an application wants the hard upper bound, it can set the limit to 0x7fffffff and the bound will be automatically truncated. (CVS 4900) FossilOrigin-Name: d6be1f495ec57158f7bcca3e32145a9a8fde723a
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index c472ba320..140e64a62 100644
--- a/src/main.c
+++ b/src/main.c
@@ -14,7 +14,7 @@
** other files are for internal use by SQLite and should not be
** accessed by users of the library.
**
-** $Id: main.c,v 1.427 2008/03/20 16:30:18 drh Exp $
+** $Id: main.c,v 1.428 2008/03/20 18:00:49 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1001,9 +1001,7 @@ int sqlite3_limit(sqlite3 *db, int limitId, int newLimit){
}
oldLimit = db->aLimit[limitId];
if( newLimit>=0 ){
- if( newLimit==0 ){
- newLimit = aHardLimit[limitId];
- }else if( aHardLimit[limitId]>0 && newLimit>aHardLimit[limitId] ){
+ if( newLimit>aHardLimit[limitId] ){
newLimit = aHardLimit[limitId];
}
db->aLimit[limitId] = newLimit;