diff options
author | danielk1977 <danielk1977@noemail.net> | 2004-05-29 02:37:19 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2004-05-29 02:37:19 +0000 |
commit | ef2cb63e9e15a749c7ae0b0a3ce3dd6fd6cd9029 (patch) | |
tree | 7cc9e572a27b78381fc2c51636c88a2d0d1d02a0 /src/sqliteInt.h | |
parent | 51846b56edaba72e986cd7128f38547690c48671 (diff) | |
download | sqlite-ef2cb63e9e15a749c7ae0b0a3ce3dd6fd6cd9029.tar.gz sqlite-ef2cb63e9e15a749c7ae0b0a3ce3dd6fd6cd9029.zip |
Allow CREATE and DROP TRIGGER on attached databases. (CVS 1488)
FossilOrigin-Name: 4060a37d0baaa60c50f2dde4a1ab344133fcabbb
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r-- | src/sqliteInt.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h index c19a6cc35..f1d13b52f 100644 --- a/src/sqliteInt.h +++ b/src/sqliteInt.h @@ -11,7 +11,7 @@ ************************************************************************* ** Internal interface definitions for SQLite. ** -** @(#) $Id: sqliteInt.h,v 1.260 2004/05/28 16:00:22 drh Exp $ +** @(#) $Id: sqliteInt.h,v 1.261 2004/05/29 02:37:19 danielk1977 Exp $ */ #include "config.h" #include "sqlite.h" @@ -229,7 +229,7 @@ extern int sqlite3_iMallocFail; /* Fail sqliteMalloc() after this many calls * /* ** The name of the schema table. */ -#define SCHEMA_TABLE(x) (x?TEMP_MASTER_NAME:MASTER_NAME) +#define SCHEMA_TABLE(x) (x==1?TEMP_MASTER_NAME:MASTER_NAME) /* ** A convenience macro that returns the number of elements in @@ -1221,7 +1221,8 @@ void sqlite3SrcListAddAlias(SrcList*, Token*); void sqlite3SrcListAssignCursors(Parse*, SrcList*); void sqlite3IdListDelete(IdList*); void sqlite3SrcListDelete(SrcList*); -void sqlite3CreateIndex(Parse*,Token*,Token*,Token*,IdList*,int,Token*,Token*); +void sqlite3CreateIndex(Parse*,Token*,Token*,SrcList*,IdList*,int,Token*, + Token*); void sqlite3DropIndex(Parse*, SrcList*); void sqlite3AddKeyType(Vdbe*, ExprList*); void sqlite3AddIdxKeyType(Vdbe*, Index*); @@ -1286,7 +1287,8 @@ int sqlite3SafetyOn(sqlite*); int sqlite3SafetyOff(sqlite*); int sqlite3SafetyCheck(sqlite*); void sqlite3ChangeCookie(sqlite*, Vdbe*, int); -void sqlite3BeginTrigger(Parse*, Token*,int,int,IdList*,SrcList*,int,Expr*,int); +void sqlite3BeginTrigger(Parse*, Token*,Token*,int,int,IdList*,SrcList*, + int,Expr*,int); void sqlite3FinishTrigger(Parse*, TriggerStep*, Token*); void sqlite3DropTrigger(Parse*, SrcList*); void sqlite3DropTriggerPtr(Parse*, Trigger*, int); @@ -1352,3 +1354,4 @@ void sqlite3Error(sqlite *, int, const char*,...); int sqlite3utfTranslate(const void *, int , u8 , void **, int *, u8); u8 sqlite3UtfReadBom(const void *zData, int nData); void *sqlite3HexToBlob(const char *z); +int sqlite3TwoPartName(Parse *, Token *, Token *, Token **); |