1. idank
  2. sqlalchemy

Commits

Mike Bayer  committed 4c00966

cleanup

  • Participants
  • Parent commits 74e83cd
  • Branches default

Comments (0)

Files changed (2)

File lib/sqlalchemy/orm/mapper.py

View file
  • Ignore whitespace
                     l.append(k)
                     
         if len(self.pks_by_table[self.mapped_table]) == 0:
-            raise exceptions.ArgumentError("Could not assemble any primary key columsn from given tables for table '%s'" % (self.mapped_table.name))
+            raise exceptions.ArgumentError("Could not assemble any primary key columns for mapped table '%s'" % (self.mapped_table.name))
             
         # make table columns addressable via the mapper
         self.columns = util.OrderedProperties()

File lib/sqlalchemy/sql_util.py

View file
  • Ignore whitespace
             sorted = self._sorted
         except AttributeError, e:
             self._sorted = self._do_sort()
-            return self.sort(reverse=reverse)
+            sorted = self._sorted
         if reverse:
             x = sorted[:]
             x.reverse()