aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/insert.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/insert.c b/src/insert.c
index c7db81a4d..9746cef48 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -934,7 +934,10 @@ void sqlite3Insert(
/* Make sure the number of columns in the source data matches the number
** of columns to be inserted into the table.
*/
- if( IsVirtual(pTab) || (pTab->tabFlags & TF_HasGenerated)!=0 ){
+#ifndef SQLITE_ENABLE_HIDDEN_COLUMNS
+ if( IsVirtual(pTab) || (pTab->tabFlags & TF_HasGenerated)!=0 )
+#endif
+ {
for(i=0; i<pTab->nCol; i++){
if( pTab->aCol[i].colFlags & COLFLAG_NOINSERT ) nHidden++;
}