RubyString svalue = RubyString.objAsString(value);
if(type == runtime.newSymbol("binary") && col.getType().respondsTo("string_to_binary")) {
return quote_string_with_surround(runtime, "'", (RubyString)(col.getType().callMethod(runtime.getCurrentContext(), "string_to_binary", svalue)), "'");
} else if(type == runtime.newSymbol("integer") || type == runtime.newSymbol("float")) {
return RubyString.objAsString(((type == runtime.newSymbol("integer")) ?
svalue.callMethod(runtime.getCurrentContext(), "to_i") :
svalue.callMethod(runtime.getCurrentContext(), "to_f")));
} else {
return quote_string_with_surround(runtime, "'", svalue, "'");
}
} else if(value.isNil()) {