rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
return new BrokeredStatement40(statementControl, getJDBCLevel()); | try { return new BrokeredStatement40(statementControl, getJDBCLevel()); } catch (SQLException sqle) { notifyException(sqle); throw sqle; } | public BrokeredStatement newBrokeredStatement (BrokeredStatementControl statementControl) throws SQLException { return new BrokeredStatement40(statementControl, getJDBCLevel()); } |
public <T> T unwrap(java.lang.Class<T> interfaces) | public final <T> T unwrap(java.lang.Class<T> interfaces) | public <T> T unwrap(java.lang.Class<T> interfaces) throws SQLException{ checkIfClosed(); //Derby does not implement non-standard methods on //JDBC objects try { return interfaces.cast(this); } catch (ClassCastException cce) { thro... |
for (int i = 0; i < 65532; i++) | for (int i = 0; i < 32765; i++) | private static void jira428Test(Connection conn) throws Exception { Statement stmt = conn.createStatement(); PreparedStatement ps ; try { stmt.execute("drop table jira428"); } catch (Throwable t) { } stmt.execute("create table jira428 (i integer)"); boolean savedAutoComm... |
if (stmt.getQryprctyp() == CodePoint.LMTBLKPRC) { | if (stmt.getQryprctyp() == CodePoint.LMTBLKPRC && stmt.getQryrowset() != 0) { | private void processCommands() throws DRDAProtocolException { DRDAStatement stmt = null; int updateCount = 0; boolean PRPSQLSTTfailed = false; boolean checkSecurityCodepoint = session.requiresSecurityCodepoint(); do { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint(); ... |
systemStartupProperties = props; | private TestConfiguration(Properties props) throws NumberFormatException { dbName = props.getProperty(KEY_DBNAME, DEFAULT_DBNAME); userName = props.getProperty(KEY_USER_NAME, DEFAULT_USER_NAME); userPassword = props.getProperty(KEY_USER_PASSWORD, ... | |
public DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException | public DateTimeDataValue getTimestamp( DataValueDescriptor operand) throws StandardException | public DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException { return new SQLTimestamp( date, time); } |
return new SQLTimestamp( date, time); | return SQLTimestamp.computeTimestampFunction( operand, this); | public DateTimeDataValue getTimestamp( DataValueDescriptor date, DataValueDescriptor time) throws StandardException { return new SQLTimestamp( date, time); } |
reader.setLimit(valueLength); | if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { SanityManager.ASSERT(numCharsToTruncate == 0); } | public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); reader.setLimit(valueLength); buffer = new byte[BUFSIZE]; blen = -1; this.charsToTruncate = numCharsToTruncate; this.valueLength = valueLeng... |
return new EmbedSQLException( MessageService.getCompleteMessage(messageId, args), messageId, next, severity, t, args); | String message = MessageService.getCompleteMessage (messageId, args); return exceptionFactory.getSQLException ( message, messageId, next, severity, t, args); | private static SQLException newEmbedSQLException(String messageId, Object[] args, SQLException next, int severity, Throwable t) { return new EmbedSQLException( MessageService.getCompleteMessage(messageId, args), messageId, next, severity, t, args); } |
XADataSource xadatasource = getXADataSource(); ConnectionPoolDataSource cpds = getConnectionPoolDataSource(); | XADataSource xadatasource = TestDataSourceFactory.getXADataSource(); ConnectionPoolDataSource cpds = TestDataSourceFactory.getConnectionPoolDataSource(); | public void setUp() throws SQLException { XADataSource xadatasource = getXADataSource(); ConnectionPoolDataSource cpds = getConnectionPoolDataSource(); pooledConnection = cpds.getPooledConnection(); xaconnection = xadatasource.getXAConnection(); //register this class as a ... |
getGoal(name).attain(); | getProject().attainGoal(name); | public void doTag(final XMLOutput output) throws Exception { log.debug( "Trying to invoke target: " + name ); // attain the goal and throw up any exception to be caught by parent tags getGoal(name).attain(); } |
createTestDatabase(); | createTestDatabase(dbCreationScript_1); | protected void doTest() { try { createTestDatabase(); // Don't let error stream ruin the diff. System.err.close(); // The only test we need to run is the one for // Network Server; see functionTests/tools/ // dblook_test.java. runTest(3, testDBName, testDBName + "_new"); } catch (Exception e) { Syste... |
"22005".equals(sqle.getSQLState())|| | private static void testSetStringInvalidValue(int type, PreparedStatement psi) { // Do not perform this test for string types. // Only test for types wich will fail with setString("InvalidValue"); switch (jdbcTypes[type]) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: ... | |
Enumeration enum; | Enumeration e; | public String getUniqueConnectionName() { int newNum = 0; boolean newConnectionNameOk = false; String newConnectionName = ""; Enumeration enum; while (!newConnectionNameOk){ newConnectionName = Session.DEFAULT_NAME + newNum; newConnectionNameOk = true; enum = sessions.keys(); while ... |
enum = sessions.keys(); while (enum.hasMoreElements() && newConnectionNameOk){ if (((String)enum.nextElement()).equals(newConnectionName)) | e = sessions.keys(); while (e.hasMoreElements() && newConnectionNameOk){ if (((String)e.nextElement()).equals(newConnectionName)) | public String getUniqueConnectionName() { int newNum = 0; boolean newConnectionNameOk = false; String newConnectionName = ""; Enumeration enum; while (!newConnectionNameOk){ newConnectionName = Session.DEFAULT_NAME + newNum; newConnectionNameOk = true; enum = sessions.keys(); while ... |
getCompilerContext().addRequiredColumnPriv(cd); | if (isPrivilegeCollectionRequired()) getCompilerContext().addRequiredColumnPriv(cd); | protected void bind(DDLStatementNode ddlNode, DataDictionary dd) throws StandardException { super.bind(ddlNode, dd); refTableSd = getSchemaDescriptor(refTableName.getSchemaName()); if (refTableSd.isSystemSchema()) { throw StandardException.newException(SQLState.LANG_NO_FK_ON_SYSTEM_SCHEMA); } // check the refe... |
TransactionController tc = activation.getTransactionController(); | private void insertToPositionIndex(int position, RowLocation rl ) throws StandardException { if(!positionIndexCreated) { int numKeys = 2; position_sqllong = new SQLLongint(); positionIndexRow = new DataValueDescriptor[numKeys]; positionIndexRow[0] = position_sqllong; positionIndexRow[1] = rl; Proper... | |
TransactionController tc = activation.getTransactionController(); | private boolean isRowAlreadyExist(ExecRow inputRow) throws StandardException { DataValueDescriptor rlColumn; RowLocation baseRowLocation; rlColumn = inputRow.getColumn(inputRow.nColumns()); if(CID!=0 && rlColumn instanceof SQLRef) { baseRowLocation = (RowLocation) (rlColumn).getObject(); if(!uniqueInd... | |
return (connection_.xaState_ == Connection.XA_LOCAL) || (connection_.xaState_ == Connection.XA_LOCAL_START_SENT); | return (connection_.xaState_ == Connection.XA_LOCAL) ; | private boolean willTickleServer(int number, boolean allowAutoCommits) throws SqlException { boolean requiresAutocommit = false; if (resultSetList_ != null) { for (int i = 0; i < number; i++) { if (resultSetList_[i] != null) { if (resultSetList_[i].openOnSe... |
Enumeration enum = attributes.elements(); while (enum.hasMoreElements()) { AttributeHolder anAttribute = (AttributeHolder)enum.nextElement(); | Enumeration e = attributes.elements(); while (e.hasMoreElements()) { AttributeHolder anAttribute = (AttributeHolder)e.nextElement(); | public void check(){ Enumeration enum = attributes.elements(); while (enum.hasMoreElements()) { AttributeHolder anAttribute = (AttributeHolder)enum.nextElement(); //The check for duplicate must be done at the URLCheck level //and not by each specific attribute. Only URLCheck knowns about //... |
} | public void check(){ Enumeration enum = attributes.elements(); while (enum.hasMoreElements()) { AttributeHolder anAttribute = (AttributeHolder)enum.nextElement(); //The check for duplicate must be done at the URLCheck level //and not by each specific attribute. Only URLCheck knowns about //... | |
getCompilerContext().popCurrentPrivType(); | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); /* If any underlying ResultSetNode is a SelectNode, then we * need to do a full bind(), in... | |
DropConstraintConstantAction.dropConstraintAndIndex( getDataDictionary().getDependencyManager(), table, getDataDictionary(), this, lcc.getTransactionExecute(), lcc, true); | public void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException { if (action == DependencyManager.REVOKE_PRIVILEGE) { //for now, ignore revoke privilege action return; } /* ** SET_CONSTRAINTS/TRIGGERS is the only valid action */ if ((action != DependencyManager.SET_CONSTRAINTS... | |
if (SanityManager.DEBUG) checkIndexNumber(indexNumber); | public ExecIndexRow buildEmptyIndexRow( int indexNumber, RowLocation rowLocation) throws StandardException { if (SanityManager.DEBUG) checkIndexNumber(indexNumber); /* Build the row */ ExecIndexRow row = getExecutionFactory().getIndexableRow(2); /* 1st column is TABLEID (char(36)) */ row.setColumn... | |
if (!add) { rf.setUUIDOfThePassedDescriptor(existingRow, perm); } | public void addRemovePermissionsDescriptor( boolean add, PermissionsDescriptor perm, String grantee, TransactionController tc) throws StandardException { // It is p... | |
if (aliasType == null) { nullable = 0; return; } if (isFunction) { nullable = (short) JDBC40Translation.FUNCTION_NULLABLE; sqlType = procedure.getReturnType(); columnName = ""; columnType = (short) JDBC40Translation.FUNCTION_RETURN; paramCursor = -2; return; } nullable = (short) DatabaseMetaData.procedureNullable; pa... | public GetProcedureColumns(AliasInfo aliasInfo, String aliasType) throws SQLException { // compile time aliasInfo will be null. if (aliasInfo != null) { isProcedure = aliasType.equals("P"); procedure = (RoutineAliasInfo) aliasInfo; method_count = (short) procedure.getParameterCount(); } } | |
return (short) (procedure.getParameterModes()[paramCursor]); | return columnType; | public short getShort(int column) throws SQLException { switch (column) { case 2: // COLUMN_TYPE: return (short) (procedure.getParameterModes()[paramCursor]); case 3: // DATA_TYPE: if (sqlType != null) return (short)sqlType.getJDBCTypeId(); els... |
return (short)java.sql.DatabaseMetaData.procedureNullable; | return nullable; | public short getShort(int column) throws SQLException { switch (column) { case 2: // COLUMN_TYPE: return (short) (procedure.getParameterModes()[paramCursor]); case 3: // DATA_TYPE: if (sqlType != null) return (short)sqlType.getJDBCTypeId(); els... |
return procedure.getParameterNames()[paramCursor]; | return columnName; | public String getString(int column) throws SQLException { switch (column) { case 1: // COLUMN_NAME: return procedure.getParameterNames()[paramCursor]; case 4: //_TYPE_NAME: return sqlType.getTypeName(); case 10: // REMARKS: return null; ... |
sqlType = procedure.getParameterTypes()[paramCursor]; | if (paramCursor > -1) { sqlType = procedure.getParameterTypes()[paramCursor]; columnName = procedure.getParameterNames()[paramCursor]; columnType = (short)translate(procedure.getParameterModes()[paramCursor]); } | public boolean next() throws SQLException { if (++paramCursor >= procedure.getParameterCount()) return false; sqlType = procedure.getParameterTypes()[paramCursor]; param_number = (short) paramCursor; return true; } |
protected PreparedStatement getPreparedStatement() | protected PreparedStatement getPreparedStatement() throws SQLException | protected PreparedStatement getPreparedStatement() { return ps; } |
return ps; | if (ps instanceof BrokeredPreparedStatement) return (PreparedStatement)( ((BrokeredPreparedStatement) ps).getStatement()); else return ps; | protected PreparedStatement getPreparedStatement() { return ps; } |
holdValue = ((Integer) sh.invoke(ps,null)).intValue(); | holdValue = ((Integer) sh.invoke(rsstmt,null)).intValue(); | protected int getResultSetHoldability() throws SQLException { Statement rsstmt = null; ResultSet rs = getResultSet(); int holdValue = -1; if (rs != null) rsstmt = rs.getStatement(); else rsstmt = getPreparedStatement(); Class[] getResultSetHoldabilityParam = {}; try { Method sh = rsstmt.getClass(... |
this.blksize = blksize; this.qryprctyp = qryblkctl; this.maxblkext = maxblkext; this.outovropt = outovropt; this.qryrowset = qryrowset; | protected void setOPNQRYOptions(int blksize, int qryblkctl, int maxblkext, int outovropt,int qryrowset,int qryclsimpl) { currentDrdaRs.setOPNQRYOptions( blksize, qryblkctl, maxblkext, outovropt, qryrowset, qryclsimpl); } | |
} | private int parseACCSEC() throws DRDAProtocolException { int securityCheckCode = 0; int securityMechanism = 0; byte [] publicKeyIn = null; reader.markCollection(); int codePoint = reader.getCodePoint(); while (codePoint != -1) { switch(codePoint) { //optional case CodePoint.SECMGRNM: // this is d... | |
String answer = null; switch (questionIndex) { case 1: answer = fillForm.getUnique1(); break; case 2: answer = fillForm.getUnique2(); break; case 3: answer = fillForm.getUnique3(); break; case 4: answer = fillForm.getUnique4(); default: answer = fillForm.getUnique5(); break; } | private String findMatch(FillForm fillForm, HttpSession session, ArrayList<String> commands) { String nextPos = null; Iterator iter = commands.iterator(); while (iter.hasNext() && nextPos == null) { // StringTokenizer st = new StringTokenizer((String) iter.next(), " "); LineParser st = new LineParser((String)... | |
if (answer.equals(condition.substring(internalPos + 2))) { | if (isEqualTo(questionIndex, condition .substring(internalPos + 2), section, fillForm)) { | private String findMatch(FillForm fillForm, HttpSession session, ArrayList<String> commands) { String nextPos = null; Iterator iter = commands.iterator(); while (iter.hasNext() && nextPos == null) { // StringTokenizer st = new StringTokenizer((String) iter.next(), " "); LineParser st = new LineParser((String)... |
int ans = Integer.parseInt(answer); int res = Integer.parseInt(condition .substring(internalPos + 2)); if (ans >= res) { | if (this.isGreaterOrEqual(questionIndex, condition .substring(internalPos + 2), section, fillForm)) { | private String findMatch(FillForm fillForm, HttpSession session, ArrayList<String> commands) { String nextPos = null; Iterator iter = commands.iterator(); while (iter.hasNext() && nextPos == null) { // StringTokenizer st = new StringTokenizer((String) iter.next(), " "); LineParser st = new LineParser((String)... |
int ans = Integer.parseInt(answer); int res = Integer.parseInt(condition .substring(internalPos + 2)); if (ans <= res) { | if (this.isLessOrEqual(questionIndex, condition .substring(internalPos + 2), section, fillForm)) { | private String findMatch(FillForm fillForm, HttpSession session, ArrayList<String> commands) { String nextPos = null; Iterator iter = commands.iterator(); while (iter.hasNext() && nextPos == null) { // StringTokenizer st = new StringTokenizer((String) iter.next(), " "); LineParser st = new LineParser((String)... |
if (!answer.equals(condition.substring(internalPos + 2))) { | if (!this.isEqualTo(questionIndex, condition .substring(internalPos + 2), section, fillForm)) { | private String findMatch(FillForm fillForm, HttpSession session, ArrayList<String> commands) { String nextPos = null; Iterator iter = commands.iterator(); while (iter.hasNext() && nextPos == null) { // StringTokenizer st = new StringTokenizer((String) iter.next(), " "); LineParser st = new LineParser((String)... |
logger.info("Error on line of script, ignoring it"); | logger.info("Error on line of script, ignoring it: " + e.getMessage()); | private String findMatch(FillForm fillForm, HttpSession session, ArrayList<String> commands) { String nextPos = null; Iterator iter = commands.iterator(); while (iter.hasNext() && nextPos == null) { // StringTokenizer st = new StringTokenizer((String) iter.next(), " "); LineParser st = new LineParser((String)... |
pos = Integer.parseInt(nextSection); | pos = Integer.parseInt(nextSection) - 1; | public FlowManageDTO getNextStep(FillForm fillForm, HttpSession session) { FlowManageDTO flowDTO = null; Survey survey = (Survey) session.getAttribute("CurrentClientSurvey"); Section section = (Section) session.getAttribute("CurrentClientSection"); String quotaScript = section.getQuotaMgmtScript(); String flowScr... |
flowDTO = new FlowManageDTO(NEXT, SUBMIT, pos); | flowDTO = new FlowManageDTO(NEXT, SUBMIT, pos + 1); | public FlowManageDTO getNextStep(FillForm fillForm, HttpSession session) { FlowManageDTO flowDTO = null; Survey survey = (Survey) session.getAttribute("CurrentClientSurvey"); Section section = (Section) session.getAttribute("CurrentClientSection"); String quotaScript = section.getQuotaMgmtScript(); String flowScr... |
flowDTO = new FlowManageDTO(FINISH, CLOSE, pos); | flowDTO = new FlowManageDTO(FINISH, CLOSE, pos + 1); | public FlowManageDTO getNextStep(FillForm fillForm, HttpSession session) { FlowManageDTO flowDTO = null; Survey survey = (Survey) session.getAttribute("CurrentClientSurvey"); Section section = (Section) session.getAttribute("CurrentClientSection"); String quotaScript = section.getQuotaMgmtScript(); String flowScr... |
protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) | private void flushScalarStreamSegment ( boolean lastSegment, OutputStream out) | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... |
int newBytesToRead = bytesToRead; | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... | |
if (leftToRead != 0) { | if (! lastSegment) { | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... |
if ((Math.min (2 + leftToRead, 32767)) > (bytes.length - offset)) { | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... | |
sendBytes (agent.getOutputStream()); } catch (java.io.IOException ioe) { | sendBytes (out, false); }catch (java.io.IOException ioe) { | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... |
} else { endDss(false); } | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... | |
newBytesToRead = Math.min (leftToRead,32765); | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... | |
} return newBytesToRead; | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... | |
} | protected int flushScalarStreamSegment (int leftToRead, int bytesToRead) throws DRDAProtocolException { int newBytesToRead = bytesToRead; // either at end of data, end of dss segment, or both. if (leftToRead != 0) { // 32k segment filled and not at end of data. if ((Math.min (2 + leftToRead, 32767)) >... | |
protected int prepScalarStream (boolean chainedWithSameCorrelator, | private int prepScalarStream( boolean chainedWithSameCorrelator, | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... |
boolean writeNullByte, int leftToRead) throws DRDAProtocolException | boolean writeNullByte) throws DRDAProtocolException | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... |
int extendedLengthByteCount; | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... | |
int nullIndicatorSize = 0; if (writeNullByte) nullIndicatorSize = 1; extendedLengthByteCount = calculateExtendedLengthByteCount (leftToRead + 4 + nullIndicatorSize); | ensureLength( DEFAULT_BUFFER_SIZE - offset ); final int nullIndicatorSize = writeNullByte ? 1:0; | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... |
if (10 + extendedLengthByteCount + nullIndicatorSize + leftToRead + offset > DssConstants.MAX_DSS_LENGTH) { | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... | |
} | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... | |
if (extendedLengthByteCount > 0) { writeLengthCodePoint (0x8004 + extendedLengthByteCount, codePoint); | writeLengthCodePoint(0x8004,codePoint); | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... |
if (writeNullByte) writeExtendedLengthBytes (extendedLengthByteCount, leftToRead + 1); else writeExtendedLengthBytes (extendedLengthByteCount, leftToRead); } else { if (writeNullByte) writeLengthCodePoint (leftToRead + 4 + 1, codePoint); else writeLengthCodePoint (leftToRead + 4, codePoint); } | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... | |
int bytesToRead; | return DssConstants.MAX_DSS_LENGTH - 6 - 4 - nullIndicatorSize; | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... |
if (writeNullByte) bytesToRead = Math.min (leftToRead, DssConstants.MAX_DSS_LENGTH - 6 - 4 - 1 - extendedLengthByteCount); else bytesToRead = Math.min (leftToRead, DssConstants.MAX_DSS_LENGTH - 6 - 4 - extendedLengthByteCount); | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... | |
return bytesToRead; | protected int prepScalarStream (boolean chainedWithSameCorrelator, int codePoint, boolean writeNullByte, int leftToRead) throws DRDAProtocolException { int extendedLengthByteCount; int nullIndicatorSize = 0; ... | |
private void sendBytes (java.io.OutputStream socketOutputStream) throws java.io.IOException { resetChainState(); try { socketOutputStream.write (bytes, 0, offset); socketOutputStream.flush(); | private void sendBytes (java.io.OutputStream socketOutputStream) throws java.io.IOException{ sendBytes(socketOutputStream, true); | private void sendBytes (java.io.OutputStream socketOutputStream) throws java.io.IOException { resetChainState(); try { socketOutputStream.write (bytes, 0, offset); socketOutputStream.flush(); } finally { if ((dssTrace != null) && dssTrace.isComBufferTraceOn()) { dssTrace.writeComBufferData (byt... |
finally { if ((dssTrace != null) && dssTrace.isComBufferTraceOn()) { dssTrace.writeComBufferData (bytes, 0, offset, DssTrace.TYPE_TRACE_SEND, "Reply", "flush", 5); } clearBuffer(); } } | private void sendBytes (java.io.OutputStream socketOutputStream) throws java.io.IOException { resetChainState(); try { socketOutputStream.write (bytes, 0, offset); socketOutputStream.flush(); } finally { if ((dssTrace != null) && dssTrace.isComBufferTraceOn()) { dssTrace.writeComBufferData (byt... | |
protected int writeScalarStream (boolean chainedWithSameCorrelator, | protected void writeScalarStream (boolean chainedWithSameCorrelator, | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
int length, java.io.InputStream in, | EXTDTAInputStream in, | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
int leftToRead = length; int bytesToRead = prepScalarStream (chainedWithSameCorrelator, | int spareDssLength = prepScalarStream( chainedWithSameCorrelator, | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
writeNullByte, leftToRead); if (length == 0) return 0; | writeNullByte); | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
do { do { | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... | |
bytesRead = in.read (bytes, offset, bytesToRead); | OutputStream out = placeLayerBStreamingBuffer( agent.getOutputStream() ); boolean isLastSegment = false; while( !isLastSegment ){ int spareBufferLength = bytes.length - offset; if( SanityManager.DEBUG ){ if( PropertyUtil.getSystemProperty("derby.debug.suicideOfLayerBStreaming") != null ) throw new IOException(); }... | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
} catch (java.io.IOException e) { padScalarStreamForError (leftToRead, bytesToRead); return totalBytesRead; } if (bytesRead == -1) { padScalarStreamForError (leftToRead, bytesToRead); return totalBytesRead; } else { bytesToRead -= bytesRead; | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... | |
leftToRead -= bytesRead; } } while (bytesToRead > 0); | spareDssLength -= bytesRead; spareBufferLength -= bytesRead; | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
bytesToRead = flushScalarStreamSegment (leftToRead, bytesToRead); } while (leftToRead > 0); try { if (in.read() != -1) { totalBytesRead += 1; | isLastSegment = peekStream(in) < 0; if(isLastSegment || spareDssLength == 0){ flushScalarStreamSegment (isLastSegment, out); if( ! isLastSegment ) spareDssLength = DssConstants.MAX_DSS_LENGTH - 2; | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
catch (java.io.IOException e) { | out.flush(); }catch(IOException e){ agent.markCommunicationsFailure ("DDMWriter.writeScalarStream()", "", e.getMessage(), "*"); | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... |
return totalBytesRead; | protected int writeScalarStream (boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte) throws DRDAProtocolException { // Stream equivalent of "beginDss"... int leftToRead = length; int bytesToRead = prepScalarStream (c... | |
if (isPrivilegeCollectionRequired()) { cc.pushCurrentPrivType(Authorizer.SELECT_PRIV); cc.addRequiredTablePriv(lockTableDescriptor); cc.popCurrentPrivType(); } | public QueryTreeNode bind() throws StandardException { CompilerContext cc = getCompilerContext(); ConglomerateDescriptor cd; DataDictionary dd = getDataDictionary(); SchemaDescriptor sd; String schemaName = tableName.getSchemaName(); sd = getSchemaDescriptor(schemaName); // Users are not allowed to lock sy... | |
throw new IOException(ALREADY_CLOSED_ERR_MEASSAGE); | throw new IOException(ALREADY_CLOSED_ERR_MESSAGE); | public int available() throws IOException{ if(closed){ throw new IOException(ALREADY_CLOSED_ERR_MEASSAGE); } return super.available(); } |
throw new IOException(ALREADY_CLOSED_ERR_MEASSAGE); | throw new IOException(ALREADY_CLOSED_ERR_MESSAGE); | public int read() throws IOException { if(closed){ throw new IOException(ALREADY_CLOSED_ERR_MEASSAGE); } return super.read(); } |
throw new IOException(ALREADY_CLOSED_ERR_MEASSAGE); | throw new IOException(ALREADY_CLOSED_ERR_MESSAGE); | public long skip(long n) throws IOException{ if(closed){ throw new IOException(ALREADY_CLOSED_ERR_MEASSAGE); } return super.skip(n); } |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getHoldability() { try { int i = rs.getHoldability(); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getNClob1() { try { rs.getNClob(0); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getNClob2() { try { rs.getNClob(null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getRowId1() { try { rs.getRowId(0); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getRowId2(){ try { rs.getRowId(null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getSQLXML1() { try { rs.getSQLXML(0); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_getSQLXML2() { try { rs.getSQLXML(null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_isClosed(){ try { boolean b = rs.isClosed(); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_updateNClob1() { try { rs.updateNClob(0,null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_updateNClob2() { try { rs.updateNClob(null,null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_updateNString1() { try { rs.updateNString(0,null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_updateNString2() { try { rs.updateNString(null,null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_updateRowId1() { try { rs.updateRowId(0,null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_updateRowId2(){ try { rs.updateRowId(null,null); System.out.println("unImplemented Exception not thrown in code"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
s.execute("CREATE PROCEDURE NONAME(TIMESTAMP, IN P2 VARCHAR(10)) LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL NAME 'org.apache.derbyTesting.functionTests.util.ProcedureTest.noname2'"); s.execute("{call noname(current_timestamp, 'foo')}"); s.execute("DROP PROCEDURE NONAME"); | public static void testNoParameterNames(Connection conn) throws SQLException { System.out.println("testNoParameterNames"); Statement s = conn.createStatement(); s.execute("CREATE PROCEDURE NONAME(IN INT, IN VARCHAR(10)) LANGUAGE JAVA PARAMETER STYLE JAVA EXTERNAL NAME 'org.apache.derbyT... | |
byte wakeupReason = waitingLock.waitForGrant(actualTimeout); ActiveLock nextWaitingLock = null; Object[] deadlockData = null; try { boolean willQuitWait; Enumeration timeoutLockTable = null; long currentTime = 0; synchronized (this) { if (control.isGrantable(control.firstWaiter() == waitingLock, compatabilitySpace,... | byte wakeupReason = waitingLock.waitForGrant(actualTimeout); ActiveLock nextWaitingLock = null; Object[] deadlockData = null; try { boolean willQuitWait; Enumeration timeoutLockTable = null; long currentTime = 0; synchronized (this) { if (control.isGrantable( control.firstWaiter() == waitingLock, compatabilitySpace... | public Lock lockObject(Object compatabilitySpace, Lockable ref, Object qualifier, int timeout, Latch latch) throws StandardException { if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("memoryLeakTrace")) { if (size() > 1000) System.out.println("memoryLeakTrace:LockSet: " + size()); } } Control gc... |
if (SanityManager.DEBUG_ON("DeadlockTrace")) | deadlockData = Deadlock.look( factory, this, control, waitingLock, wakeupReason); if (deadlockData == null) { deadlockWait = false; actualTimeout = timeout; startWaitTime = 0; willQuitWait = false; } else { willQuitWait = true; } } nextWaitingLock = control.getNextWaiter( waitingLock, willQuitWait, this); if (w... | public Lock lockObject(Object compatabilitySpace, Lockable ref, Object qualifier, int timeout, Latch latch) throws StandardException { if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("memoryLeakTrace")) { if (size() > 1000) System.out.println("memoryLeakTrace:LockSet: " + size()); } } Control gc... |
SanityManager.showTrace(new Throwable()); lockDebug = | if (SanityManager.DEBUG_ON("DeadlockTrace")) { SanityManager.showTrace(new Throwable()); lockDebug = | public Lock lockObject(Object compatabilitySpace, Lockable ref, Object qualifier, int timeout, Latch latch) throws StandardException { if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("memoryLeakTrace")) { if (size() > 1000) System.out.println("memoryLeakTrace:LockSet: " + size()); } } Control gc... |
} } if(!deadlockWait) | } } if (deadlockTrace && (deadlockData == null)) { currentTime = System.currentTimeMillis(); timeoutLockTable = factory.makeVirtualLockTable(); } } } if (willQuitWait) { if (SanityManager.DEBUG) | public Lock lockObject(Object compatabilitySpace, Lockable ref, Object qualifier, int timeout, Latch latch) throws StandardException { if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("memoryLeakTrace")) { if (size() > 1000) System.out.println("memoryLeakTrace:LockSet: " + size()); } } Control gc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.