Changeset 816 for trunk/includes/Database.php
- Timestamp:
- Feb 22, 2015, 11:20:50 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Database.php
r800 r816 40 40 function __construct() 41 41 { 42 43 44 45 46 47 42 $this->Functions = array('NOW()', 'CURDATE()', 'CURTIME()', 'UUID()'); 43 $this->Type = 'mysql'; // mysql, pgsql 44 $this->ShowSQLError = false; 45 $this->ShowSQLQuery = false; 46 $this->LogSQLQuery = false; 47 $this->LogFile = dirname(__FILE__).'/../Query.log'; 48 48 } 49 49 … … 63 63 function query($Query) 64 64 { 65 65 if(($this->ShowSQLQuery == true) or ($this->LogSQLQuery == true)) $QueryStartTime = microtime(); 66 66 $this->LastQuery = $Query; 67 67 $Result = new DatabaseResult(); … … 167 167 function quote($Text) 168 168 { 169 169 return($this->PDO->quote($Text)); 170 170 } 171 171
Note:
See TracChangeset
for help on using the changeset viewer.