WordPress.org

Plugin Directory

Changeset 160012


Ignore:
Timestamp:
10/02/09 19:45:56 (5 years ago)
Author:
apokalyptik
Message:

add show table status support

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hyperdb/trunk/db.php

    r142928 r160012  
    478478        if ( preg_match('/^\s*SELECT.*?\s+FOUND_ROWS\(\)/is', $q) ) 
    479479            return $this->last_table; 
     480 
     481        // SHOW TABLE STATUS LIKE and SHOW TABLE STATUS WHERE Name =  
     482        if ( preg_match('/^\s*' 
     483                . 'SHOW\s+TABLE\s+STATUS.+(?:LIKE\s+|WHERE\s+Name\s*=\s*)' 
     484                . '\W(\w+)\W/is', $q, $maybe) ) 
     485            return $maybe[1]; 
    480486 
    481487        // Big pattern for the rest of the table-related queries in MySQL 5.0 
Note: See TracChangeset for help on using the changeset viewer.