Changeset 2507

Show
Ignore:
Timestamp:
09/03/2008 04:31:33 AM (3 months ago)
Author:
mikl
Message:

Workaround for slow meta data retrieval in MySQL<5.1.21

Location:
trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r2502 r2507  
    2020ENH: Added Prado.Validation.validateControl(id) on client side to validate a specific control (Michael) 
    2121ENH: Added MessageSource_Database to I18N (uses TDbConnection) (Michael) 
     22ENH: Workaround for slow meta data retrieval in MySQL<5.1.21 (Michael) 
    2223ENH: Ticket#823 - PromptText/PromptValue only populated if there is data (Knut) 
    2324ENH: Ticket#876 - Assign empty string to CssUrl on TTabPanel to avoid loading extra css (GoDZilla, Knut) 
  • trunk/framework/Data/Common/Mysql/TMysqlMetaData.php

    r2482 r2507  
    247247                                $primary[] = $row['Column_name']; 
    248248                } 
    249                 if($this->getServerVersion() > 5) 
     249        // MySQL version was increased to >=5.1.21 instead of 5.x 
     250        // due to a MySQL bug (http://bugs.mysql.com/bug.php?id=19588) 
     251                if($this->getServerVersion() >= 5.121) 
    250252                        $foreign = $this->getForeignConstraints($schemaName,$tableName); 
    251253                else