From ae39a5d389965757876b022fb704b3bd849b3e08 Mon Sep 17 00:00:00 2001 From: "Roman S. Borschel" Date: Tue, 27 Apr 2010 20:11:42 +0200 Subject: [PATCH] Fixed svn dependency in build file and some weird issues where the oci8 driver loses spaces in the sql while transforming positional to named parameters. --- build.xml | 8 ++++---- lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php | 1 + lib/Doctrine/ORM/Persisters/BasicEntityPersister.php | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/build.xml b/build.xml index ca368eb5a..54693d2c2 100644 --- a/build.xml +++ b/build.xml @@ -142,16 +142,16 @@ - - + + - - + + diff --git a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php index 78b21796d..4ebdbec1c 100644 --- a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php +++ b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php @@ -60,6 +60,7 @@ class OCI8Statement implements \Doctrine\DBAL\Driver\Statement * placeholders and converted to a named parameter. * * @param string $statement The SQL statement to convert. + * @todo review and test for lost spaces. we experienced missing spaces with oci8 in some sql statements. */ private function _convertPositionalToNamedPlaceholders($statement) { diff --git a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php index 9b8609850..54c7e5195 100644 --- a/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php +++ b/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php @@ -815,7 +815,7 @@ class BasicEntityPersister : $baseTableAlias; $columnName = $this->_class->getQuotedColumnName($fieldName, $this->_platform); - $orderBySql .= $orderBySql ? ', ' : 'ORDER BY '; + $orderBySql .= $orderBySql ? ', ' : ' ORDER BY '; $orderBySql .= $tableAlias . '.' . $columnName . ' ' . $orientation; }