def sql_default(column):
    """Return an acceptable default value for the given column.
    col is an ipydb.model.Column.
    """
    if column.default_value:
        return column.default_value % "'%s'"
    if column.nullable:
        return 'NULL'
    typ = str(column.type).lower().strip()
    value = ''
    if redate.search(typ):
        log.debug('%s is a date', typ)
        head = typ.split()[0]
        if head == 'date':
            value = "current_date"
        elif head == 'time':
            value = "current_time"
        elif head in ('datetime', 'timestamp'):
            value = "current_timestamp"
    elif restr.search(typ):
        log.debug('%s is a string', typ)
        value = "'hello'"
    elif renumeric.search(typ):
        log.debug('%s is a number', typ)
        value = "0"
    else:
        log.debug('no match for type: %s', typ)
    return value
dataset/ETHPy150Open jaysw/ipydb/ipydb/metadata/model.py/sql_default/swapped operands of `%`