diff options
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c index 84464bfbf..df9015ff3 100644 --- a/src/build.c +++ b/src/build.c @@ -22,7 +22,7 @@ ** COMMIT ** ROLLBACK ** -** $Id: build.c,v 1.406 2006/06/21 07:34:11 danielk1977 Exp $ +** $Id: build.c,v 1.407 2006/06/21 12:36:25 danielk1977 Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -2304,6 +2304,12 @@ void sqlite3CreateIndex( goto exit_create_index; } #endif +#ifndef SQLITE_OMIT_VIRTUALTABLE + if( IsVirtual(pTab) ){ + sqlite3ErrorMsg(pParse, "virtual tables may not be indexed"); + goto exit_create_index; + } +#endif /* ** Find the name of the index. Make sure there is not already another |