Index: includes/database/log.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database/log.inc,v
retrieving revision 1.3
diff -u -p -8 -r1.3 log.inc
--- includes/database/log.inc	19 Oct 2008 20:22:07 -0000	1.3
+++ includes/database/log.inc	20 Oct 2008 19:54:24 -0000
@@ -140,17 +140,17 @@ class DatabaseLog {
    *   entry before it so that we get the function and args of the function that
    *   called into the database system, not the function and args of the
    *   database call itself.
    */
   public function findCaller() {
     $stack = debug_backtrace();
     $stack_count = count($stack);
     for ($i = 0; $i < $stack_count; ++$i) {
-      if (strpos($stack[$i]['file'], 'includes/database') === FALSE) {
+      if (strpos($stack[$i]['file'], 'includes/database') === FALSE && strpos($stack[$i]['file'], 'includes\database') === FALSE) {
         return array(
           'file' => $stack[$i]['file'],
           'line' => $stack[$i]['line'],
           'function' => $stack[$i + 1]['function'],
           'args' => $stack[$i + 1]['args'],
         );
         return $stack[$i];
       }
