aboutsummaryrefslogtreecommitdiff
path: root/ext/expert/sqlite3expert.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/expert/sqlite3expert.c')
-rw-r--r--ext/expert/sqlite3expert.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/ext/expert/sqlite3expert.c b/ext/expert/sqlite3expert.c
index 3ee74b571..8cacc9d70 100644
--- a/ext/expert/sqlite3expert.c
+++ b/ext/expert/sqlite3expert.c
@@ -28,9 +28,13 @@ typedef struct IdxStatement IdxStatement;
typedef struct IdxTable IdxTable;
typedef struct IdxWrite IdxWrite;
+/*
+** A temp table name that we assume no user database will actually use.
+** If this assumption proves incorrect triggers on the table with the
+** conflicting name will be ignored.
+*/
#define UNIQUE_TABLE_NAME "t592690916721053953805701627921227776"
-
/*
** A single constraint. Equivalent to either "col = ?" or "col < ?" (or
** any other type of single-ended range constraint on a column).
@@ -238,6 +242,10 @@ static int idxHashAdd(
return 0;
}
+/*
+** If zKey/nKey is present in the hash table, return a pointer to the
+** hash-entry object.
+*/
static IdxHashEntry *idxHashFind(IdxHash *pHash, const char *zKey, int nKey){
int iHash;
IdxHashEntry *pEntry;