Method: Sequel::DB2::DatasetMethods#cast_sql_append
- Defined in:
- lib/sequel/adapters/shared/db2.rb
#cast_sql_append(sql, expr, type) ⇒ Object
DB2 casts strings using RTRIM and CHAR instead of VARCHAR.
253 254 255 256 257 258 259 260 261 |
# File 'lib/sequel/adapters/shared/db2.rb', line 253 def cast_sql_append(sql, expr, type) if(type == String) sql << CAST_STRING_OPEN literal_append(sql, expr) sql << CAST_STRING_CLOSE else super end end |