def format_insert_value(self, value, datatype):
    'Format value for an insert statement.'
    v = Engine.format_insert_value(self, value, datatype)
    if (v is None):
        return ''
    try:
        if ((len(v) > 1) and (v[0] == v[(- 1)] == "'")):
            v = ('"%s"' % v[1:(- 1)])
    except BaseException:
        pass
    return v
Format value for an insert statement.
def format_insert_value(self, value, datatype):
    
    v = Engine.format_insert_value(self, value, datatype)
    if (v is None):
        return 
    try:
        if ((len(v) > 1) and (v[0] == v[(- 1)] == "'")):
            v = ('"%s"' % v[1:(- 1)])
    except BaseException:
        pass
    return v