aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <>2022-08-09 16:13:21 +0000
committerdrh <>2022-08-09 16:13:21 +0000
commit626bcc88dd530ce4657b5cec9c1cf6b0c56a8915 (patch)
tree7674ea7a78abe6bb3b8d8b7e346d8d21c305dc2e /src
parentc8e9f6818b0d1420eb6989dfd3c69192f67e1aee (diff)
downloadsqlite-626bcc88dd530ce4657b5cec9c1cf6b0c56a8915.tar.gz
sqlite-626bcc88dd530ce4657b5cec9c1cf6b0c56a8915.zip
Allow the name of an index to collide with a table in a different schema.
FossilOrigin-Name: f963c2523872b59b8a7a14971f703f2eb0d021501b288597a958f6596885d0de
Diffstat (limited to 'src')
-rw-r--r--src/build.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/build.c b/src/build.c
index db69b611f..e3e79df05 100644
--- a/src/build.c
+++ b/src/build.c
@@ -4036,7 +4036,7 @@ void sqlite3CreateIndex(
}
if( !IN_RENAME_OBJECT ){
if( !db->init.busy ){
- if( sqlite3FindTable(db, zName, 0)!=0 ){
+ if( sqlite3FindTable(db, zName, pDb->zDbSName)!=0 ){
sqlite3ErrorMsg(pParse, "there is already a table named %s", zName);
goto exit_create_index;
}