diff options
author | Marko Kreen | 2012-10-18 08:13:40 +0000 |
---|---|---|
committer | Marko Kreen | 2012-10-18 08:13:40 +0000 |
commit | 1d8c2701306e559244011efec8827816e450788b (patch) | |
tree | a4de3c10a3585cb94e606bebf0ead3c14c9dcd6b | |
parent | e58919702426c3ccdf8aca69aaa38b4e0381e309 (diff) |
Fix compare expression - md5() was in wrong place
-rw-r--r-- | python/londiste/compare.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/londiste/compare.py b/python/londiste/compare.py index f2d253ab..067a6b49 100644 --- a/python/londiste/compare.py +++ b/python/londiste/compare.py @@ -36,7 +36,7 @@ class Comparator(Syncer): v1 = src_db.server_version v2 = dst_db.server_version if (v1 < 80400 or v2 < 80400) and v1 != v2: - q = "select count(1) as cnt, sum(md5('x'||substr(md5(_COLS_::text),1,16))::bit(64)::bigint) as chksum from only _TABLE_" + q = "select count(1) as cnt, sum(('x'||substr(md5(_COLS_::text),1,16))::bit(64)::bigint) as chksum from only _TABLE_" else: q = "select count(1) as cnt, sum(hashtext(_COLS_::text)::bigint) as chksum from only _TABLE_" |