--- class.t3lib_db.php.orig Wed May 18 14:47:56 2005 +++ class.t3lib_db.php Wed May 18 15:21:25 2005 @@ -136,13 +136,13 @@ // Debug: var $debugOutput = FALSE; // Set "TRUE" if you want database errors outputted. var $debug_lastBuiltQuery = ''; // Internally: Set to last built query (not necessarily executed...) + var $store_lastBuiltQuery = FALSE; // Set "TRUE" if you want the last built query to be stored in $debug_lastBuiltQuery independent of $debugOutput // Default link identifier: var $link; - /************************************ * * Query execution @@ -351,7 +351,7 @@ )'; // Return query: - if ($this->debugOutput) $this->debug_lastBuiltQuery = $query; + if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query; return $query; } } @@ -388,7 +388,7 @@ '.$where : ''); // Return query: - if ($this->debugOutput) $this->debug_lastBuiltQuery = $query; + if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query; return $query; } } else { @@ -414,7 +414,7 @@ WHERE '.$where : ''); - if ($this->debugOutput) $this->debug_lastBuiltQuery = $query; + if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query; return $query; } else { die('TYPO3 Fatal Error: "Where" clause argument for DELETE query was not a string in $this->DELETEquery() !'); @@ -461,7 +461,7 @@ } // Return query: - if ($this->debugOutput) $this->debug_lastBuiltQuery = $query; + if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query; return $query; }