aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2017-10-03 17:17:34 +0000
committerdrh <drh@noemail.net>2017-10-03 17:17:34 +0000
commitce2c482e5a3876c7ad9f594ef3f771e2ca24b058 (patch)
treebea22827e6536b2821df476525c9a340bfa7c72e /src/insert.c
parenta78d757c36f300ba0fdfefb11ae4a50ee8c0ccc0 (diff)
downloadsqlite-ce2c482e5a3876c7ad9f594ef3f771e2ca24b058.tar.gz
sqlite-ce2c482e5a3876c7ad9f594ef3f771e2ca24b058.zip
Remove an unused variable from sqlite3Insert() and fix harmless
compiler warnings associated with -DSQLITE_MUTATION_TEST. FossilOrigin-Name: 7be760e907274131bcd4acfaff9e72c9c59a05e7d411db3d9afe690fe0d64b4b
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/insert.c b/src/insert.c
index f8e9095ea..5da52e769 100644
--- a/src/insert.c
+++ b/src/insert.c
@@ -484,7 +484,6 @@ void sqlite3Insert(
){
sqlite3 *db; /* The main database structure */
Table *pTab; /* The table to insert into. aka TABLE */
- char *zTab; /* Name of the table into which we are inserting */
int i, j; /* Loop counters */
Vdbe *v; /* Generate code into this virtual machine */
Index *pIdx; /* For looping over indices of the table */
@@ -540,8 +539,6 @@ void sqlite3Insert(
/* Locate the table into which we will be inserting new information.
*/
assert( pTabList->nSrc==1 );
- zTab = pTabList->a[0].zName;
- if( NEVER(zTab==0) ) goto insert_cleanup;
pTab = sqlite3SrcListLookup(pParse, pTabList);
if( pTab==0 ){
goto insert_cleanup;