/** * Locks connection and calls initializer for a new CopyOperation * Called via startCopy -> processCopyResults * @param op an unitialized CopyOperation * @throws SQLException on locking failure * @throws IOException on database connection failure */ private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException { pgStream.ReceiveInteger4(); // length not used int rowFormat = pgStream.ReceiveChar(); int numFields = pgStream.ReceiveInteger2(); int[] fieldFormats = new int[numFields]; for(int i=0; i<numFields; i++) fieldFormats[i] = pgStream.ReceiveInteger2(); lock(op); op.init(this, rowFormat, fieldFormats); }
private Field[] receiveFields() throws IOException { int l_msgSize = pgStream.ReceiveInteger4(); int size = pgStream.ReceiveInteger2(); Field[] fields = new Field[size]; if (logger.logDebug()) logger.debug(" <=BE RowDescription(" + size + ")"); for (int i = 0; i < fields.length; i++) { String columnLabel = pgStream.ReceiveString(); int tableOid = pgStream.ReceiveInteger4(); short positionInTable = (short)pgStream.ReceiveInteger2(); int typeOid = pgStream.ReceiveInteger4(); int typeLength = pgStream.ReceiveInteger2(); int typeModifier = pgStream.ReceiveInteger4(); int formatType = pgStream.ReceiveInteger2(); fields[i] = new Field(columnLabel, "", /* name not yet determined */ typeOid, typeLength, typeModifier, tableOid, positionInTable); fields[i].setFormat(formatType); } return fields; }
private Field[] receiveFields() throws IOException { int size = pgStream.ReceiveInteger2(); Field[] fields = new Field[size]; if (logger.logDebug()) logger.debug(" <=BE RowDescription(" + fields.length + ")"); for (int i = 0; i < fields.length; i++) { String columnLabel = pgStream.ReceiveString(); int typeOid = pgStream.ReceiveInteger4(); int typeLength = pgStream.ReceiveInteger2(); int typeModifier = pgStream.ReceiveInteger4(); fields[i] = new Field(columnLabel, columnLabel, typeOid, typeLength, typeModifier, 0, 0); } return fields; }
int l_nf = ReceiveInteger2(); byte[][] answer = new byte[l_nf][];
String origStatementName = (String)describeData[3]; int numParams = pgStream.ReceiveInteger2();
/** * Locks connection and calls initializer for a new CopyOperation * Called via startCopy -> processCopyResults * @param op an unitialized CopyOperation * @throws SQLException on locking failure * @throws IOException on database connection failure */ private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException { pgStream.ReceiveInteger4(); // length not used int rowFormat = pgStream.ReceiveChar(); int numFields = pgStream.ReceiveInteger2(); int[] fieldFormats = new int[numFields]; for(int i=0; i<numFields; i++) fieldFormats[i] = pgStream.ReceiveInteger2(); lock(op); op.init(this, rowFormat, fieldFormats); }
/** * Locks connection and calls initializer for a new CopyOperation * Called via startCopy -> processCopyResults * @param op an unitialized CopyOperation * @throws SQLException on locking failure * @throws IOException on database connection failure */ private synchronized void initCopy(CopyOperationImpl op) throws SQLException, IOException { pgStream.ReceiveInteger4(); // length not used int rowFormat = pgStream.ReceiveChar(); int numFields = pgStream.ReceiveInteger2(); int[] fieldFormats = new int[numFields]; for(int i=0; i<numFields; i++) fieldFormats[i] = pgStream.ReceiveInteger2(); lock(op); op.init(this, rowFormat, fieldFormats); }
private Field[] receiveFields() throws IOException { int l_msgSize = pgStream.ReceiveInteger4(); int size = pgStream.ReceiveInteger2(); Field[] fields = new Field[size]; if (logger.logDebug()) logger.debug(" <=BE RowDescription(" + size + ")"); for (int i = 0; i < fields.length; i++) { String columnLabel = pgStream.ReceiveString(); int tableOid = pgStream.ReceiveInteger4(); short positionInTable = (short)pgStream.ReceiveInteger2(); int typeOid = pgStream.ReceiveInteger4(); int typeLength = pgStream.ReceiveInteger2(); int typeModifier = pgStream.ReceiveInteger4(); int formatType = pgStream.ReceiveInteger2(); fields[i] = new Field(columnLabel, null, /* name not yet determined */ typeOid, typeLength, typeModifier, tableOid, positionInTable); fields[i].setFormat(formatType); } return fields; }
private Field[] receiveFields() throws IOException { int l_msgSize = pgStream.ReceiveInteger4(); int size = pgStream.ReceiveInteger2(); Field[] fields = new Field[size]; if (logger.logDebug()) logger.debug(" <=BE RowDescription(" + size + ")"); for (int i = 0; i < fields.length; i++) { String columnLabel = pgStream.ReceiveString(); int tableOid = pgStream.ReceiveInteger4(); short positionInTable = (short)pgStream.ReceiveInteger2(); int typeOid = pgStream.ReceiveInteger4(); int typeLength = pgStream.ReceiveInteger2(); int typeModifier = pgStream.ReceiveInteger4(); int formatType = pgStream.ReceiveInteger2(); fields[i] = new Field(columnLabel, "", /* name not yet determined */ typeOid, typeLength, typeModifier, tableOid, positionInTable); fields[i].setFormat(formatType); } return fields; }
private Field[] receiveFields() throws IOException { int size = pgStream.ReceiveInteger2(); Field[] fields = new Field[size]; if (logger.logDebug()) logger.debug(" <=BE RowDescription(" + fields.length + ")"); for (int i = 0; i < fields.length; i++) { String columnLabel = pgStream.ReceiveString(); int typeOid = pgStream.ReceiveInteger4(); int typeLength = pgStream.ReceiveInteger2(); int typeModifier = pgStream.ReceiveInteger4(); fields[i] = new Field(columnLabel, columnLabel, typeOid, typeLength, typeModifier, 0, 0); } return fields; }
private Field[] receiveFields() throws IOException { int size = pgStream.ReceiveInteger2(); Field[] fields = new Field[size]; if (logger.logDebug()) logger.debug(" <=BE RowDescription(" + fields.length + ")"); for (int i = 0; i < fields.length; i++) { String columnLabel = pgStream.ReceiveString(); int typeOid = pgStream.ReceiveInteger4(); int typeLength = pgStream.ReceiveInteger2(); int typeModifier = pgStream.ReceiveInteger4(); fields[i] = new Field(columnLabel, columnLabel, typeOid, typeLength, typeModifier, 0, 0); } return fields; }
int l_nf = ReceiveInteger2(); byte[][] answer = new byte[l_nf][];
int l_nf = ReceiveInteger2(); byte[][] answer = new byte[l_nf][];
String origStatementName = (String)describeData[3]; int numParams = pgStream.ReceiveInteger2();
String origStatementName = (String)describeData[3]; int numParams = pgStream.ReceiveInteger2();