Changeset 1743:a659700da036 for inc/core
- Timestamp:
- 09/06/13 21:36:57 (12 years ago)
- Branch:
- default
- Location:
- inc/core
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inc/core/class.dc.blog.php
r1689 r1743 658 658 if (!$rs->isEmpty()) 659 659 { 660 if ($this->con->driver() == 'mysql' ) {660 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 661 661 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 662 662 } elseif ($this->con->driver() == 'pgsql') { … … 1828 1828 if (!$rs->isEmpty()) 1829 1829 { 1830 if ($this->con->driver() == 'mysql' ) {1830 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 1831 1831 $clause = "REGEXP '^".$this->con->escape($url)."[0-9]+$'"; 1832 1832 } elseif ($this->con->driver() == 'pgsql') { … … 2187 2187 2188 2188 # mySQL uses "JOIN" synthax 2189 if ($this->con->driver() == 'mysql' ) {2189 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 2190 2190 $strReq .= 2191 2191 'JOIN '.$this->prefix.'post tp ON tc.post_id = tp.post_id '; … … 2196 2196 2197 2197 # pgSQL uses "FROM" synthax 2198 if ($this->con->driver() != 'mysql' ) {2198 if ($this->con->driver() != 'mysql' || $this->con->driver() == 'mysqli') { 2199 2199 $strReq .= 2200 2200 'FROM '.$this->prefix.'post tp '; … … 2206 2206 2207 2207 # add pgSQL "WHERE" clause 2208 if ($this->con->driver() != 'mysql' ) {2208 if ($this->con->driver() != 'mysql' || $this->con->driver() == 'mysqli') { 2209 2209 $strReq .= 2210 2210 'AND tc.post_id = tp.post_id '; … … 2265 2265 2266 2266 # mySQL uses "INNER JOIN" synthax 2267 if ($this->con->driver() == 'mysql' ) {2267 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 2268 2268 $strReq = 2269 2269 'DELETE FROM tc '. … … 2302 2302 2303 2303 # mySQL uses "INNER JOIN" synthax 2304 if ($this->con->driver() == 'mysql' ) {2304 if ($this->con->driver() == 'mysql' || $this->con->driver() == 'mysqli') { 2305 2305 $strReq = 2306 2306 'DELETE FROM tc '. -
inc/core/class.dc.core.php
r1698 r1743 64 64 if ($this->con instanceof mysqlConnection) { 65 65 mysqlConnection::$weak_locks = true; 66 } elseif ($this->con instanceof mysqliConnection) { 67 mysqliConnection::$weak_locks = true; 66 68 } 67 69
Note: See TracChangeset
for help on using the changeset viewer.