Feature #14582 » class.t3lib_db.php.patch2_for_380rc1.diff

Administrator Admin, 2005-05-18 15:31

View differences:

class.t3lib_db.php Wed May 18 15:21:25 2005
136 136
		// Debug:
137 137
	var $debugOutput = FALSE;			// Set "TRUE" if you want database errors outputted.
138 138
	var $debug_lastBuiltQuery = '';		// Internally: Set to last built query (not necessarily executed...)
139
	var $store_lastBuiltQuery = FALSE;  // Set "TRUE" if you want the last built query to be stored in $debug_lastBuiltQuery independent of $debugOutput
139 140

  
140 141
		// Default link identifier:
141 142
	var $link;
142 143

  
143 144

  
144 145

  
145

  
146 146
	/************************************
147 147
	 *
148 148
	 * Query execution
......
351 351
				)';
352 352

  
353 353
				// Return query:
354
			if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
354
			if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
355 355
			return $query;
356 356
		}
357 357
	}
......
388 388
						'.$where : '');
389 389

  
390 390
					// Return query:
391
				if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
391
				if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
392 392
				return $query;
393 393
			}
394 394
		} else {
......
414 414
				WHERE
415 415
					'.$where : '');
416 416

  
417
			if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
417
			if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
418 418
			return $query;
419 419
		} else {
420 420
			die('<strong>TYPO3 Fatal Error:</strong> "Where" clause argument for DELETE query was not a string in $this->DELETEquery() !');
......
461 461
		}
462 462

  
463 463
			// Return query:
464
		if ($this->debugOutput) $this->debug_lastBuiltQuery = $query;
464
		if ($this->debugOutput || $this->store_lastBuiltQuery) $this->debug_lastBuiltQuery = $query;
465 465
		return $query;
466 466
	}
467 467

  
(3-3/3)