RUBY_CLASS_NAME, superClass, CONNECTION_ALLOCATOR);
connectionClass.defineAnnotatedMethods(Connection.class);
setDriverDefinition(connectionClass, runtime, driver);
if (driver.supportsConnectionEncodings()) {
connectionClass.defineFastMethod("character_set", new Callback() {
public Arity getArity() {
return Arity.NO_ARGUMENTS;
}
public IRubyObject execute(final IRubyObject recv, final IRubyObject[] args, Block block) {
return recv.getInstanceVariables().fastGetInstanceVariable("@encoding");