diff options
author | drh <drh@noemail.net> | 2017-02-16 14:48:08 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-02-16 14:48:08 +0000 |
commit | 44266ec651506ff7409a65852f21e5ebab5e5c94 (patch) | |
tree | 0571e227c122ce2f19ade2cab7fa55ce17a6942d /src/insert.c | |
parent | 3a3b420abba7630d47eb28636bd59ca1fb319819 (diff) | |
download | sqlite-44266ec651506ff7409a65852f21e5ebab5e5c94.tar.gz sqlite-44266ec651506ff7409a65852f21e5ebab5e5c94.zip |
Always use the IsVirtual() macro to determine if a Table object is a virtual
table. Slightly smaller and faster code.
FossilOrigin-Name: 6affb1c89d87288cad87dde5a533832cdf06b8aa
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c index 897a048ac..f1f380724 100644 --- a/src/insert.c +++ b/src/insert.c @@ -1979,7 +1979,7 @@ static int xferOptimization( return 0; /* tab1 must not have triggers */ } #ifndef SQLITE_OMIT_VIRTUALTABLE - if( pDest->tabFlags & TF_Virtual ){ + if( IsVirtual(pDest) ){ return 0; /* tab1 must not be a virtual table */ } #endif @@ -2041,7 +2041,7 @@ static int xferOptimization( return 0; /* source and destination must both be WITHOUT ROWID or not */ } #ifndef SQLITE_OMIT_VIRTUALTABLE - if( pSrc->tabFlags & TF_Virtual ){ + if( IsVirtual(pSrc) ){ return 0; /* tab2 must not be a virtual table */ } #endif |