'Returns the query as a string of SQL with the parameter values
substituted in.
Parameter values won\'t necessarily be quoted correctly, since that is
done by the database interface at execution time.'

def __str__(self):

    (sql, params) = self.get_compiler(DEFAULT_DB_ALIAS).as_sql()
    return (sql % params)
