Package org.jruby.pg.internal.messages

Examples of org.jruby.pg.internal.messages.ErrorResponse


    }

    @JRubyMethod(name = {"error_field", "result_error_field"})
    public IRubyObject error_field(ThreadContext context, IRubyObject arg0) {
      byte errorCode = (byte) ((RubyFixnum) arg0).getLongValue();
      ErrorResponse error = jdbcResultSet.getError();
      if (error == null)
        return context.nil;
      String field = error.getFields().get(errorCode);
      return field == null ? context.nil : context.runtime.newString(field);
    }
View Full Code Here


      inProgress.appendRow(dataRow);
      break;
    case ErrorResponse:
      if (inProgress == null)
        inProgress = new ResultSet();
      ErrorResponse error = (ErrorResponse) message;
      inProgress.setErrorResponse(error);
      break;
    case ReadyForQuery:
      lastResultSet.add(inProgress);
      inProgress = null;
View Full Code Here

TOP

Related Classes of org.jruby.pg.internal.messages.ErrorResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.