Development

Changeset 1336

You must first sign up to be able to contribute.

Changeset 1336

Show
Ignore:
Timestamp:
05/10/06 20:54:03 (2 years ago)
Author:
fabien
Message:

fixed problem with mysql 5 in Propel

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/vendor/propel/util/BasePeer.php

    r497 r1336  
    833833        .($selectModifiers ? implode(" ", $selectModifiers) . " " : "") 
    834834        .implode(", ", $selectClause) 
    835         ." FROM ".implode(", ", $fromClause
     835        ." FROM ".(count($fromClause) > 1 ? "(".implode(", ", $fromClause).")" : $fromClause[0]
    836836                .($joinClause ? ' ' . implode(' ', $joinClause) : '') 
    837837        .($whereClause ? " WHERE ".implode(" AND ", $whereClause) : "")