Plugin Directory

Changeset 976902


Ignore:
Timestamp:
09/02/2014 09:33:03 AM (11 years ago)
Author:
vnsavage
Message:

Add the DESC statement to the list of non-write queries. Fixes ticket #2256. Props @mpvanwinkle77

File:
1 edited

Legend:

Unmodified
Added
Removed
  • hyperdb/trunk/db.php

    r876552 r976902  
    306306        // Quick and dirty: only SELECT statements are considered read-only.
    307307        $q = ltrim($q, "\r\n\t (");
    308         return !preg_match('/^(?:SELECT|SHOW|DESCRIBE|EXPLAIN)\s/i', $q);
     308        return !preg_match('/^(?:SELECT|SHOW|DESCRIBE|DESC|EXPLAIN)\s/i', $q);
    309309    }
    310310
Note: See TracChangeset for help on using the changeset viewer.