LOGGER.log(Level.FINEST, "Forcing Sync, receive buffer full or batching disallowed"); sendSync(); processResults(resultHandler, flags); estimatedReceiveBufferBytes = 0; if (batchHandler != null) {
QueryExecutor.QUERY_NO_METADATA); sendSync(); processResults(handler, 0); estimatedReceiveBufferBytes = 0; } catch (IOException ioe) {
processResults(trackingHandler, flags); processResults(trackingHandler, flags);
sendSync(); processResults(handler, flags); estimatedReceiveBufferBytes = 0; } catch (PGBindException se) { processResults(handler, flags); estimatedReceiveBufferBytes = 0; handler
processResults(handler, 0);
sendSync(); processResults(handler, flags); estimatedReceiveBufferBytes = 0;
public synchronized void fetch(ResultCursor cursor, ResultHandler handler, int fetchSize) throws SQLException { waitOnLock(); final Portal portal = (Portal) cursor; // Insert a ResultHandler that turns bare command statuses into empty datasets // (if the fetch returns no rows, we see just a CommandStatus..) final ResultHandler delegateHandler = handler; handler = new ResultHandlerDelegate(delegateHandler) { public void handleCommandStatus(String status, int updateCount, long insertOID) { handleResultRows(portal.getQuery(), null, new ArrayList<byte[][]>(), null); } }; // Now actually run it. try { processDeadParsedQueries(); processDeadPortals(); sendExecute(portal.getQuery(), portal, fetchSize); sendSync(); processResults(handler, 0); estimatedReceiveBufferBytes = 0; } catch (IOException e) { abort(); handler.handleError( new PSQLException(GT.tr("An I/O error occurred while sending to the backend."), PSQLState.CONNECTION_FAILURE, e)); } handler.handleCompletion(); }
sendQuery((V3Query)query, (V3ParameterList)parameters, maxRows, fetchSize, flags, trackingHandler); sendSync(); processResults(handler, flags); processResults(handler, flags); handler.handleError(new PSQLException(GT.tr("Unable to bind parameter values for statement."), PSQLState.INVALID_PARAMETER_VALUE, se.getIOException()));
sendSync(); processResults(handler, 0);
processResults(handler, flags);
processResults(trackingHandler, flags); processResults(trackingHandler, flags);
processResults(trackingHandler, flags); processResults(trackingHandler, flags);
sendQuery((V3Query)query, (V3ParameterList)parameters, maxRows, fetchSize, flags, trackingHandler); sendSync(); processResults(handler, flags); processResults(handler, flags); handler.handleError(new PSQLException(GT.tr("Unable to bind parameter values for statement."), PSQLState.INVALID_PARAMETER_VALUE, se.getIOException()));
sendQuery((V3Query)query, (V3ParameterList)parameters, maxRows, fetchSize, flags, trackingHandler); sendSync(); processResults(handler, flags); processResults(handler, flags); handler.handleError(new PSQLException(GT.tr("Unable to bind parameter values for statement."), PSQLState.INVALID_PARAMETER_VALUE, se.getIOException()));
sendSync(); processResults(handler, 0);
sendSync(); processResults(handler, 0);
processResults(handler, flags);
processResults(handler, flags);