Skip to content

Commit 7ae3dbc

Browse files
author
Richard Jones
committed
fixed rdbms table update detection logic [SF#703297]
1 parent e7dce1d commit 7ae3dbc

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGES.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ Fixed:
6666
2003-??-?? 0.5.7
6767
- fixed Interval maths (sf bug 665357)
6868
- fixed sqlite rollback/caching bug (sf bug 689383)
69+
- fixed rdbms table update detection logic (sf bug 703297)
6970

7071

7172
2003-02-27 0.5.6

roundup/backends/back_gadfly.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: back_gadfly.py,v 1.33 2003-03-09 21:37:37 richard Exp $
1+
# $Id: back_gadfly.py,v 1.34 2003-03-14 02:51:25 richard Exp $
22
''' Gadlfy relational database hypderb backend.
33
44
About Gadfly
@@ -154,6 +154,8 @@ def update_class(self, spec, old_spec):
154154
new_has = new_spec.properties.has_key
155155

156156
new_spec = new_spec.schema()
157+
new_spec[1].sort()
158+
old_spec[1].sort()
157159
if new_spec == old_spec:
158160
# no changes
159161
return 0

roundup/backends/rdbms_common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $Id: rdbms_common.py,v 1.42 2003-03-09 21:37:38 richard Exp $
1+
# $Id: rdbms_common.py,v 1.43 2003-03-14 02:51:25 richard Exp $
22
''' Relational database (SQL) backend common code.
33
44
Basics:
@@ -187,6 +187,8 @@ def update_class(self, spec, old_spec):
187187
new_has = new_spec.properties.has_key
188188

189189
new_spec = new_spec.schema()
190+
new_spec[1].sort()
191+
old_spec[1].sort()
190192
if new_spec == old_spec:
191193
# no changes
192194
return 0

0 commit comments

Comments
 (0)