6.0.0-beta1
7/18/25

[#7701] "DELETE FROM horde_cache" error
Summary "DELETE FROM horde_cache" error
Queue Horde Framework Packages
Queue Version FRAMEWORK_3
Type Bug
State Resolved
Priority 2. Medium
Owners
Requester bigmichi1 (at) bigmichi1 (dot) de
Created 11/18/2008 (6086 days ago)
Due
Updated 12/14/2008 (6060 days ago)
Assigned 11/20/2008 (6084 days ago)
Resolved 12/14/2008 (6060 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/14/2008 03:57:38 PM Chuck Hagenbuch Comment #8
State ⇒ Resolved
Reply to this comment
No feedback, assuming resolved.
11/25/2008 07:16:58 AM bigmichi1 (at) bigmichi1 (dot) de Comment #7 Reply to this comment
I'm testing right now, i report back when eighter horde_cache table 
get smaller or the error still appears in the log
11/22/2008 03:58:42 AM CVS Commit Comment #6 Reply to this comment
11/22/2008 03:58:17 AM Chuck Hagenbuch Comment #5
Taken from Michael Slusarz
Taken from Horde DevelopersHorde Developers
Reply to this comment
Change made - can the reporter please test?
11/22/2008 03:57:39 AM CVS Commit Comment #4 Reply to this comment
11/20/2008 06:55:17 AM Matt Selsky Comment #3 Reply to this comment
         $query = 'DELETE FROM ' . $this->_params['table']
             . ' WHERE cache_expiration < ? AND cache_expiration != 0';
Try switching "!=" to "<>".  The '!' might be confusing the prepare() 
function since '!' is a valid placeholder.
11/20/2008 02:57:35 AM Michael Slusarz Comment #2
State ⇒ Feedback
Assigned to Horde DevelopersHorde Developers
Reply to this comment
I really have no idea.  This is the query:



         $query = 'DELETE FROM ' . $this->_params['table']

             . ' WHERE cache_expiration < ? AND cache_expiration != 0';

         $values = array(time());

         $result = $this->_write_db->query($query, $values);



I'm not the DB expert, but that looks OK to me (unless time() is 
really returning an empty string).




11/18/2008 10:29:56 AM Jan Schneider Assigned to Michael Slusarz
State ⇒ Assigned
 
11/18/2008 08:21:42 AM bigmichi1 (at) bigmichi1 (dot) de Comment #1
State ⇒ Unconfirmed
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ "DELETE FROM horde_cache" error
Type ⇒ Bug
Priority ⇒ 2. Medium
Reply to this comment
From time to time i got the following entrie in my horde.log file



HORDE [error] [horde] DB Error: mismatch: DELETE FROM horde_cache 
WHERE cache_expiration <   AND cache_expiration  = 0 [DB Error: 
mismatch] [pid 9579 on line 395 of 
"/var/www/horde/lib/Horde/Cache/sql.php"]



it seems there is a missing value for cache_expiration, also my cache 
table is now near 100MB

Saved Queries