[Issue#] N/A
[Feature/Bug] N/A
[Problem] N/A
[Cause] In ALTER TABLE ADD COLUMN function the table name was not properly
extracted.
[Solution] Fixed.
[Verification] Run migration tests:
ckm-tests-internal --run_test=DBCRYPTO_MIGRATION_TEST
Change-Id: Ie81a2ec01adc17328bc493ad0aa56bf70dcc1fe5
assert( sqlcipher3BtreeHoldsAllMutexes(db) );
iDb = sqlcipher3SchemaToIndex(db, pNew->pSchema);
zDb = db->aDb[iDb].zName;
- zTab = &pNew->zName[16]; /* Skip the "sqlcipher_altertab_" prefix on the name */
+ zTab = &pNew->zName[19]; /* Skip the "sqlcipher_altertab_" prefix on the name */
pCol = &pNew->aCol[pNew->nCol-1];
pDflt = pCol->pDflt;
pTab = sqlcipher3FindTable(db, zTab, zDb);