@check_precondition
def validate_check_constraint(self, gid, sid, did, scid, tid, cid):
    '\n        Validate check constraint.\n        Args:\n            gid: Server Group Id\n            sid: Server Id\n            did: Database Id\n            scid: Schema Id\n            tid: Table Id\n            cid: Check Constraint Id\n\n        Returns:\n\n        '
    data = {}
    try:
        data['schema'] = self.schema
        data['table'] = self.table
        sql = render_template('/'.join([self.template_path, 'get_name.sql']), cid=cid)
        (status, res) = self.conn.execute_scalar(sql)
        if (not status):
            return internal_server_error(errormsg=res)
        data['name'] = res
        sql = render_template('/'.join([self.template_path, 'validate.sql']), data=data)
        (status, res) = self.conn.execute_dict(sql)
        if (not status):
            return internal_server_error(errormsg=res)
        return make_json_response(success=1, info=_('Check constraint updated.'), data={'id': cid, 'tid': tid, 'scid': scid, 'did': did})
    except Exception as e:
        return internal_server_error(errormsg=str(e))
Validate check constraint.
Args:
    gid: Server Group Id
    sid: Server Id
    did: Database Id
    scid: Schema Id
    tid: Table Id
    cid: Check Constraint Id

Returns:
@check_precondition
def validate_check_constraint(self, gid, sid, did, scid, tid, cid):
    '\n        Validate check constraint.\n        Args:\n            gid: Server Group Id\n            sid: Server Id\n            did: Database Id\n            scid: Schema Id\n            tid: Table Id\n            cid: Check Constraint Id\n\n        Returns:\n\n        '
    data = {}
    try:
        data['schema'] = self.schema
        data['table'] = self.table
        sql = render_template('/'.join([self.template_path, 'get_name.sql']), cid=cid)
        (status, res) = self.conn.execute_scalar(sql)
        if (not status):
            return internal_server_error(errormsg=res)
        data['name'] = res
        sql = render_template('/'.join([self.template_path, 'validate.sql']), data=data)
        (status, res) = self.conn.execute_dict(sql)
        if (not status):
            return internal_server_error(errormsg=res)
        return make_json_response(success=1, info=_('Check constraint updated.'), data={'id': cid, 'tid': tid, 'scid': scid, 'did': did})
    except Exception as e:
        return internal_server_error(errormsg=str(e))