mirror of
https://github.com/php/php-src.git
synced 2025-08-20 01:14:28 +02:00
Upgraded sqlite2 lib to 2.8.16
This commit is contained in:
parent
49cf0eff6a
commit
2195f7ec74
17 changed files with 270 additions and 189 deletions
|
@ -1537,7 +1537,7 @@ void sqliteCreateIndex(
|
|||
if( pName && !db->init.busy ){
|
||||
Index *pISameName; /* Another index with the same name */
|
||||
Table *pTSameName; /* A table with same name as the index */
|
||||
zName = sqliteStrNDup(pName->z, pName->n);
|
||||
zName = sqliteTableNameFromToken(pName);
|
||||
if( zName==0 ) goto exit_create_index;
|
||||
if( (pISameName = sqliteFindIndex(db, zName, 0))!=0 ){
|
||||
sqliteErrorMsg(pParse, "index %s already exists", zName);
|
||||
|
@ -1557,7 +1557,7 @@ void sqliteCreateIndex(
|
|||
sqliteSetString(&zName, "(", pTab->zName, " autoindex ", zBuf, (char*)0);
|
||||
if( zName==0 ) goto exit_create_index;
|
||||
}else{
|
||||
zName = sqliteStrNDup(pName->z, pName->n);
|
||||
zName = sqliteTableNameFromToken(pName);
|
||||
}
|
||||
|
||||
/* Check for authorization to create an index.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue