diff options
author | drh <drh@noemail.net> | 2001-09-23 19:46:51 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2001-09-23 19:46:51 +0000 |
commit | 90bfcdace37be8d7029c42abb778988b2cfcc439 (patch) | |
tree | 021a8c424c5bed44d33330945c01e53a957712c1 /src/build.c | |
parent | ecdc7530dda7a793c96df4010313792de4a6390c (diff) | |
download | sqlite-90bfcdace37be8d7029c42abb778988b2cfcc439.tar.gz sqlite-90bfcdace37be8d7029c42abb778988b2cfcc439.zip |
Additional test cases with locking fixes. Also, make the code thread-safe. (CVS 262)
FossilOrigin-Name: bd7d6a64afa03cc64f6537f828d6c94975bf5f02
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/build.c b/src/build.c index 24862028c..2a7ee3168 100644 --- a/src/build.c +++ b/src/build.c @@ -25,7 +25,7 @@ ** ROLLBACK ** PRAGMA ** -** $Id: build.c,v 1.39 2001/09/23 02:35:53 drh Exp $ +** $Id: build.c,v 1.40 2001/09/23 19:46:52 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -445,7 +445,7 @@ void sqliteAddDefaultValue(Parse *pParse, Token *pVal, int minusFlag){ */ static void changeCookie(sqlite *db){ if( db->next_cookie==db->schema_cookie ){ - db->next_cookie = db->schema_cookie + sqliteRandomByte() + 1; + db->next_cookie = db->schema_cookie + sqliteRandomByte(db) + 1; db->flags |= SQLITE_InternChanges; } } |