1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-10 01:02:56 +03:00

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
This commit is contained in:
drh
2008-03-20 18:00:49 +00:00
parent b1a6c3c1cc
commit f47ce56c49
5 changed files with 39 additions and 39 deletions

View File

@@ -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;