| Path: | doc/release_notes/3.30.0.txt |
| Last Update: | Thu Jan 26 13:58:47 +0000 2012 |
This change should not affect applications, but may affect custom extensions or adapters that dealt with literalization of objects. Most literalization methods now have a method with an _append suffix that does the actual literalization, which takes the sql string to append to as the first argument. If you were overriding a literalization method, you now probably need to override the _append version instead. If you have this literalization method:
def foo_sql(bar)
"BAR #{literal(bar.baz)}"
end
You need to change the code to:
def foo_sql_append(sql, bar)
sql << "BAR "
literal_append(sql, bar.baz)
end
def foo_sql(bar)
sql = ""
foo_sql_append(sql, bar)
sql
end
If you have questions about modifying your custom adapter or extension, please ask on the Google Group or the IRC channel.
foo1.set_server(:server_a).save foo2.set_server(:server_a).destroy