1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-08 03:22:21 +03:00

Omit prototype for and calls to sqlite3MaterializeView() if !defined(SQLITE_OMIT_VIEW) && !defined(SQLITE_OMIT_TRIGGER). (CVS 5655)

FossilOrigin-Name: 9cf484fc17944ffa14335e391112d82d2390d116
This commit is contained in:
shane
2008-09-01 21:59:42 +00:00
parent 689aa852cb
commit fa4e62f3d8
5 changed files with 19 additions and 12 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.174 2008/08/29 02:14:03 drh Exp $
** $Id: delete.c,v 1.175 2008/09/01 21:59:43 shane Exp $
*/
#include "sqliteInt.h"
@@ -249,9 +249,11 @@ void sqlite3DeleteFrom(
/* If we are trying to delete from a view, realize that view into
** a ephemeral table.
*/
#if !defined(SQLITE_OMIT_VIEW) && !defined(SQLITE_OMIT_TRIGGER)
if( isView ){
sqlite3MaterializeView(pParse, pTab, pWhere, iCur);
}
#endif
/* Resolve the column names in the WHERE clause.
*/