Ticket #12634: sql.patch
File sql.patch, 615 bytes (added by , 15 years ago) |
---|
-
compiler.py
677 677 return cursor 678 678 if result_type == SINGLE: 679 679 if self.query.ordering_aliases: 680 return cursor.fetchone()[:-len(self.query.ordering_aliases)] 680 row = cursor.fetchone() 681 if row: 682 return row[:-len(self.query.ordering_aliases)] 683 else: 684 return 681 685 return cursor.fetchone() 682 686 683 687 # The MULTI case.