@check_precondition
def msql(self, gid, sid, did, scid, tid, cid=None):
    '\n        Returns the modified SQL.\n\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            Check Constraint object in json format.\n        '
    data = {}
    for (k, v) in request.args.items():
        try:
            data[k] = json.loads(v, encoding='utf-8')
        except ValueError:
            data[k] = v
    data['schema'] = self.schema
    data['table'] = self.table
    try:
        (sql, name) = self.get_sql(gid, sid, data, scid, tid, cid)
        if (not sql):
            return name
        sql = sql.strip('\n').strip(' ')
        if (sql == ''):
            sql = '--modified SQL'
        return make_json_response(data=sql, status=200)
    except Exception as e:
        return internal_server_error(errormsg=str(e))
Returns the modified SQL.

Args:
    gid: Server Group Id
    sid: Server Id
    did: Database Id
    scid: Schema Id
    tid: Table Id
    cid: Check Constraint Id

Returns:
    Check Constraint object in json format.
@check_precondition
def msql(self, gid, sid, did, scid, tid, cid=None):
    '\n        Returns the modified SQL.\n\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            Check Constraint object in json format.\n        '
    data = {}
    for (k, v) in request.args.items():
        try:
            data[k] = json.loads(v, encoding='utf-8')
        except ValueError:
            data[k] = v
    data['schema'] = self.schema
    data['table'] = self.table
    try:
        (sql, name) = self.get_sql(gid, sid, data, scid, tid, cid)
        if (not sql):
            return name
        sql = sql.strip('\n').strip(' ')
        if (sql == ):
            sql = '--modified SQL'
        return make_json_response(data=sql, status=200)
    except Exception as e:
        return internal_server_error(errormsg=str(e))