couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxepal <>
Subject [GitHub] couchdb-couch pull request: Add IS_OLD_RECORD macro
Date Mon, 15 Dec 2014 19:48:24 GMT
Github user kxepal commented on a diff in the pull request:
    --- Diff: include/couch_db.hrl ---
    @@ -23,6 +23,8 @@
     -define(JSON_ENCODE(V), couch_util:json_encode(V)).
     -define(JSON_DECODE(V), couch_util:json_decode(V)).
    +-define(IS_OLD_RECORD(V, R), (tuple_size(V) /= tuple_size(R))).
    --- End diff --
    But wouldn't it get false positive result if we just change some record field name / remove
some field and add new one?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message