- Remove references to temporary registers from cache on release (#463061)

This commit is contained in:
Panu Matilainen 2008-09-30 05:50:50 +00:00
parent f49c6fb850
commit 7da2dac19b
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,11 @@
diff -up sqlite-3.5.9/src/expr.c.remove-temp sqlite-3.5.9/src/expr.c
--- sqlite-3.5.9/src/expr.c.remove-temp 2008-05-13 15:50:50.000000000 +0300
+++ sqlite-3.5.9/src/expr.c 2008-09-22 18:04:39.000000000 +0300
@@ -3428,6 +3428,7 @@ int sqlite3GetTempReg(Parse *pParse){
}
void sqlite3ReleaseTempReg(Parse *pParse, int iReg){
if( iReg && pParse->nTempReg<ArraySize(pParse->aTempReg) ){
+ sqlite3ExprWritableRegister(pParse, iReg, iReg);
pParse->aTempReg[pParse->nTempReg++] = iReg;
}
}

View File

@ -6,12 +6,13 @@
Summary: Library that implements an embeddable SQL database engine
Name: sqlite
Version: 3.5.9
Release: 1%{?dist}
Release: 2%{?dist}
License: Public Domain
Group: Applications/Databases
URL: http://www.sqlite.org/
Source: http://www.sqlite.org/sqlite-%{version}.tar.gz
Patch1: sqlite-3.5.8-pkgconfig-version.patch
Patch2: sqlite-3.5.9-remove-temporary.patch
Obsoletes: sqlite3 sqlite3-devel
BuildRequires: ncurses-devel readline-devel glibc-devel
BuildRequires: /usr/bin/tclsh
@ -52,6 +53,7 @@ This package contains the tcl modules for %{name}.
%prep
%setup -q
%patch1 -p1 -b .pkgconf
%patch2 -p1 -b .remove-temp
%build
export CFLAGS="$RPM_OPT_FLAGS -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_DISABLE_DIRSYNC=1 -Wall"
@ -109,6 +111,9 @@ rm -rf $RPM_BUILD_ROOT
%endif
%changelog
* Tue Sep 30 2008 Panu Matilainen <pmatilai@redhat.com> - 3.5.9-2
- Remove references to temporary registers from cache on release (#463061)
* Tue Jun 17 2008 Stepan Kasal <skasal@redhat.com> - 3.5.9-1
- update to 3.5.9