public Array createArray(int i) throws SQLException { checkResultSet(i); int oid = fields[i - 1].getOID(); String value = getFixedString(i); return new Jdbc4Array(connection, oid, value); }
public Array createArrayOf(String typeName, Object[] elements) throws SQLException { checkClosed(); int oid = getTypeInfo().getPGArrayType(typeName); if (oid == Oid.UNSPECIFIED) throw new PSQLException(GT.tr("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME); StringBuffer sb = new StringBuffer(); appendArray(sb, elements); // This will not work once we have a JDBC 5, // but it'll do for now. return new Jdbc4Array(this, oid, sb.toString()); }
public Array createArray(int i) throws SQLException { checkResultSet(i); int oid = fields[i - 1].getOID(); String value = getFixedString(i); return new Jdbc4Array(connection, oid, value); }
public Array createArrayOf(String typeName, Object[] elements) throws SQLException { int oid = getTypeInfo().getPGArrayType(typeName); if (oid == Oid.UNSPECIFIED) throw new PSQLException(GT.tr("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME); StringBuffer sb = new StringBuffer(); appendArray(sb, elements); // This will not work once we have a JDBC 5, // but it'll do for now. return new Jdbc4Array(this, oid, sb.toString()); }
public Array createArray(int i) throws SQLException { checkResultSet(i); int oid = fields[i - 1].getOID(); String value = getFixedString(i); return new Jdbc4Array(connection, oid, value); }
public Array createArrayOf(String typeName, Object[] elements) throws SQLException { checkClosed(); int oid = getTypeInfo().getPGArrayType(typeName); if (oid == Oid.UNSPECIFIED) throw new PSQLException(GT.tr("Unable to find server array type for provided name {0}.", typeName), PSQLState.INVALID_NAME); StringBuffer sb = new StringBuffer(); appendArray(sb, elements); // This will not work once we have a JDBC 5, // but it'll do for now. return new Jdbc4Array(this, oid, sb.toString()); }