Ticket #13295: postgresql_name_seq.diff
File postgresql_name_seq.diff, 1.1 KB (added by , 15 years ago) |
---|
-
sql/compiler.
old new 785 785 return 786 786 if self.connection.features.can_return_id_from_insert: 787 787 return self.connection.ops.fetch_returned_insert_id(cursor) 788 return self.connection.ops.last_insert_id(cursor, 788 if 'db_seq' in self.query.model._meta.__dict__: 789 return self.connection.ops.last_insert_id(cursor, 790 self.query.model._meta.db_seq, '') 791 else: 792 return self.connection.ops.last_insert_id(cursor, 789 793 self.query.model._meta.db_table, self.query.model._meta.pk.column) 790 794 791 795 -
options.
old new 30 30 self.module_name, self.verbose_name = None, None 31 31 self.verbose_name_plural = None 32 32 self.db_table = '' 33 self.db_seq = '' 33 34 self.ordering = [] 34 35 self.unique_together = [] 35 36 self.permissions = []