summaryrefslogtreecommitdiff
path: root/ext/sqlite/libsqlite/src/build.c
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2005-09-07 15:11:33 +0000
committerIlia Alshanetsky <iliaa@php.net>2005-09-07 15:11:33 +0000
commit7f293b91b425b4dc1c0342f688a05ec403ea9e89 (patch)
tree503c849c7a95a53e63d0f24534e3bcc4bda63981 /ext/sqlite/libsqlite/src/build.c
parentcaa9702a5a45b09c648a26e8651c5e0799e08acd (diff)
downloadphp-git-7f293b91b425b4dc1c0342f688a05ec403ea9e89.tar.gz
MFH: Upgraded SQLite 2 library in ext/sqlite to 2.8.16
Diffstat (limited to 'ext/sqlite/libsqlite/src/build.c')
-rw-r--r--ext/sqlite/libsqlite/src/build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sqlite/libsqlite/src/build.c b/ext/sqlite/libsqlite/src/build.c
index 4b5ed56139..a089bfe625 100644
--- a/ext/sqlite/libsqlite/src/build.c
+++ b/ext/sqlite/libsqlite/src/build.c
@@ -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.