1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-06 15:49:35 +03:00

Extend the influence of a couple of SQLITE_OMIT_** macros a little bit. (CVS 2243)

FossilOrigin-Name: 5b1a9bf6aa5a5c466b88f649e322e81b8466851f
This commit is contained in:
danielk1977
2005-01-20 11:32:23 +00:00
parent 1ad7f64aac
commit b84f96f854
7 changed files with 40 additions and 18 deletions

View File

@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** in order to generate code for DELETE FROM statements.
**
** $Id: delete.c,v 1.98 2005/01/19 23:24:50 drh Exp $
** $Id: delete.c,v 1.99 2005/01/20 11:32:24 danielk1977 Exp $
*/
#include "sqliteInt.h"
@@ -43,10 +43,12 @@ int sqlite3IsReadOnly(Parse *pParse, Table *pTab, int viewOk){
sqlite3ErrorMsg(pParse, "table %s may not be modified", pTab->zName);
return 1;
}
#ifndef SQLITE_OMIT_VIEW
if( !viewOk && pTab->pSelect ){
sqlite3ErrorMsg(pParse,"cannot modify %s because it is a view",pTab->zName);
return 1;
}
#endif
return 0;
}