aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <>2021-02-18 14:27:43 +0000
committerdrh <>2021-02-18 14:27:43 +0000
commit39065807dd997113d2d88df1dd36a40da1e698d0 (patch)
tree1bf15e2d2c7fd04f1a53d528c7b415201af9c772 /src/insert.c
parentfadc0e34beb88868dab7109a833f9c1552597662 (diff)
downloadsqlite-39065807dd997113d2d88df1dd36a40da1e698d0.tar.gz
sqlite-39065807dd997113d2d88df1dd36a40da1e698d0.zip
Disable the optimization of [16ac213c57196361] when the
SQLITE_ENABLE_HIDDEN_COLUMN compile-time option is used, as the optimization does not work in that case. FossilOrigin-Name: 5168b06bcf283ef64cb9fd76330a743baf8bb0cd747c14eae23e607e0491cbce
Diffstat (limited to 'src/insert.c')
-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++;
}