We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cbec06 commit fb411c8Copy full SHA for fb411c8
tests/lib/bank_client.py
@@ -150,6 +150,7 @@ def create_extension(self):
150
151
def is_data_identic(self):
152
hashes = set()
153
+ hashes2 = set()
154
155
for dsn in self.dsns:
156
con = psycopg2.connect(dsn)
@@ -160,11 +161,17 @@ def is_data_identic(self):
160
161
from
162
(select * from bank_test order by uid) t;""")
163
hashes.add(cur.fetchone()[0])
164
+
165
+ cur.execute("""
166
+ select md5(string_agg(id, ','))
167
+ from (select id from insert_test order by id) t;""")
168
+ hashes2.add(cur.fetchone()[0])
169
cur.close()
170
con.close()
171
172
print(hashes)
- return (len(hashes) == 1)
173
+ print(hashes2)
174
+ return (len(hashes) == 1 and len(hashes2) == 1)
175
176
def no_prepared_tx(self):
177
n_prepared = 0
0 commit comments