aboutsummaryrefslogtreecommitdiff
path: root/src/analyze.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-05-29 20:24:20 +0000
committerdrh <drh@noemail.net>2014-05-29 20:24:20 +0000
commitff14013496b17cb697d34b21574a9898a38bbd2c (patch)
tree10d8dc7da780b6dd056f1943cb4abc527436f882 /src/analyze.c
parent79045882c94a21ddb2c2f829d0a515266555f527 (diff)
parentb463fef3fda4d233ba634d81bfc9c3bf001f0513 (diff)
downloadsqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.tar.gz
sqlite-ff14013496b17cb697d34b21574a9898a38bbd2c.zip
Merge changes from the trunk into the threads branch.
FossilOrigin-Name: 416cb091267de91b9cadee9f7453b8627570b7d3
Diffstat (limited to 'src/analyze.c')
-rw-r--r--src/analyze.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/analyze.c b/src/analyze.c
index 2952b364c..4dcd7e8b8 100644
--- a/src/analyze.c
+++ b/src/analyze.c
@@ -1002,7 +1002,7 @@ static void analyzeOneTable(
if( aGotoChng==0 ) continue;
/* Populate the register containing the index name. */
- if( pIdx->autoIndex==2 && !HasRowid(pTab) ){
+ if( IsPrimaryKeyIndex(pIdx) && !HasRowid(pTab) ){
zIdxName = pTab->zName;
}else{
zIdxName = pIdx->zName;