Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

ident_prefix & caching bugfix

git-svn-id: svn://dklab.ru/lib/DbSimple/trunk@226 78bb956b-1e24-0410-b8d0-c528fdc9eae3
  • Loading branch information...
commit aeb02212f9958624c9348dca398ff6657ca2b5b5 1 parent 1e4160c
dk authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/DbSimple/Generic.php
2  lib/DbSimple/Generic.php
@@ -701,7 +701,7 @@ function _expandPlaceholders(&$queryAndArgs, $useNative=false)
701 701 $cacheCode = null;
702 702 if ($this->_logger) {
703 703 // Serialize is much faster than placeholder expansion. So use caching.
704   - $cacheCode = crc32(serialize($queryAndArgs) . $useNative);
  704 + $cacheCode = md5(serialize($queryAndArgs) . '|' . $useNative . '|' . $this->_identPrefix);
705 705 if (isset($this->_placeholderCache[$cacheCode])) {
706 706 $queryAndArgs = $this->_placeholderCache[$cacheCode];
707 707 return;

0 comments on commit aeb0221

Please sign in to comment.
Something went wrong with that request. Please try again.