1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Always use the IsVirtual() macro to determine if a Table object is a virtual

table.  Slightly smaller and faster code.

FossilOrigin-Name: 6affb1c89d87288cad87dde5a533832cdf06b8aa
This commit is contained in:
drh
2017-02-16 14:48:08 +00:00
parent 3a3b420abb
commit 44266ec651
5 changed files with 19 additions and 21 deletions

View File

@@ -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