Browse Source

Fixing failing tests when using identifier quoting

Jose Lorenzo Rodriguez 11 years ago
parent
commit
90160be8c8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/ORM/ResultSet.php

+ 1 - 0
src/ORM/ResultSet.php

@@ -363,6 +363,7 @@ class ResultSet implements ResultSetInterface
     {
         $map = [];
         foreach ($this->_query->clause('select') as $key => $field) {
+            $key = trim($key, '"`[]');
             if (strpos($key, '__') > 0) {
                 $parts = explode('__', $key, 2);
                 $map[$parts[0]][$key] = $parts[1];