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

Add the experimental and scary pragma "writable_schema". (CVS 2027)

FossilOrigin-Name: 39f7870a54d90d5163fcad3f08cd63699c4bb567
This commit is contained in:
drh
2004-10-22 20:29:21 +00:00
parent 887dc4c275
commit f404083e56
5 changed files with 16 additions and 15 deletions

View File

@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle DELETE FROM statements.
**
** $Id: delete.c,v 1.82 2004/10/05 02:41:42 drh Exp $
** $Id: delete.c,v 1.83 2004/10/22 20:29:22 drh Exp $
*/
#include "sqliteInt.h"
@@ -38,7 +38,7 @@ Table *sqlite3SrcListLookup(Parse *pParse, SrcList *pSrc){
** writable return 0;
*/
int sqlite3IsReadOnly(Parse *pParse, Table *pTab, int viewOk){
if( pTab->readOnly ){
if( pTab->readOnly && (pParse->db->flags & SQLITE_WriteSchema)==0 ){
sqlite3ErrorMsg(pParse, "table %s may not be modified", pTab->zName);
return 1;
}