mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-08 03:22:21 +03:00
Reinstate test cases for the limit tests. The sqlite3_limit() API is now
tested and working. (CVS 4899) FossilOrigin-Name: 4c4be4c3c8aae97f1d85442b25afba9f0b02c8b3
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
** This file contains routines used for analyzing expressions and
|
||||
** for generating VDBE code that evaluates expressions in SQLite.
|
||||
**
|
||||
** $Id: expr.c,v 1.355 2008/03/20 14:03:29 drh Exp $
|
||||
** $Id: expr.c,v 1.356 2008/03/20 16:30:18 drh Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
#include <ctype.h>
|
||||
@@ -696,10 +696,10 @@ no_mem:
|
||||
void sqlite3ExprListCheckLength(
|
||||
Parse *pParse,
|
||||
ExprList *pEList,
|
||||
int iLimit,
|
||||
const char *zObject
|
||||
){
|
||||
if( pEList && pEList->nExpr>iLimit ){
|
||||
int mx = pParse->db->aLimit[SQLITE_LIMIT_COLUMN];
|
||||
if( pEList && pEList->nExpr>mx ){
|
||||
sqlite3ErrorMsg(pParse, "too many columns in %s", zObject);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user