diff options
author | danielk1977 <danielk1977@noemail.net> | 2005-01-24 10:25:59 +0000 |
---|---|---|
committer | danielk1977 <danielk1977@noemail.net> | 2005-01-24 10:25:59 +0000 |
commit | a21c6b6fe0416aa43ef95e28f9ca7ebd59400708 (patch) | |
tree | 86a9df9e7c8b46dfa1e578bbb06e450d3795f521 /src/main.c | |
parent | d5a71b5de3803c82c8cb4454c9339a0997893442 (diff) | |
download | sqlite-a21c6b6fe0416aa43ef95e28f9ca7ebd59400708.tar.gz sqlite-a21c6b6fe0416aa43ef95e28f9ca7ebd59400708.zip |
Modifications and bugfixes so that the test suite passes with the TCL statement cache turned on. (CVS 2271)
FossilOrigin-Name: d5233e0747789dea04d35a8350b408321d23a64d
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index e2ffd31a3..9ab3d7562 100644 --- a/src/main.c +++ b/src/main.c @@ -14,7 +14,7 @@ ** other files are for internal use by SQLite and should not be ** accessed by users of the library. ** -** $Id: main.c,v 1.273 2005/01/21 08:13:15 danielk1977 Exp $ +** $Id: main.c,v 1.274 2005/01/24 10:25:59 danielk1977 Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -1287,6 +1287,14 @@ int sqlite3_create_collation( ); return SQLITE_ERROR; } + + /* If removing a collation sequence, then set the expired flag for + ** all precompiled statements. + */ + if( !xCompare ){ + sqlite3ExpirePreparedStatements(db); + } + pColl = sqlite3FindCollSeq(db, (u8)enc, zName, strlen(zName), 1); if( 0==pColl ){ rc = SQLITE_NOMEM; |