Project

General

Profile

« Previous | Next » 

Revision 1889

Added by Dietmar over 11 years ago

  1. bugfix solved sections block update
    ! update sections table change some varchar to int(11)
    + upgradeHelper class for better module upgrade

View differences:

WbDatabase.php
41 41
	private $_db_handle  = null; // readonly from outside
42 42
	private $_db_name    = '';
43 43
	protected $sTablePrefix = '';
44
	protected $sCharset     = 'utf8';
44
	protected $sCharset     = '';
45 45
	protected $connected    = false;
46 46
	protected $error        = '';
47 47
	protected $error_type   = '';
......
489 489
	// Run a query
490 490
	function query($statement, $dbHandle) {
491 491
		$this->_db_handle = $dbHandle;
492
		$this->result = mysql_query($statement, $this->_db_handle);
492
		$this->result = @mysql_query($statement, $this->_db_handle);
493
		if($this->result === false) {
494
			if(DEBUG) {
495
				throw new WbDatabaseException(mysql_error($this->_db_handle));
496
			}else{
497
				throw new WbDatabaseException('Error in SQL-Statement');
498
			}
499
		}
493 500
		$this->error = mysql_error($this->_db_handle);
494 501
		return $this->result;
495 502
	}

Also available in: Unified diff