bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public static void doStoredProcedures(Connection conn) throws SQLException { // Note: it is safe to cast the long varchar column "javaclassname" // to varchar(128) because it is defined to correspond to the // 'aliasid' column for a given stored procedure; since the aliasid // column is varchar(128), javaclassnam... | public static void doStoredProcedures(Connection conn) throws SQLException { // Note: it is safe to cast the long varchar column "javaclassname" // to varchar(128) because it is defined to correspond to the // 'aliasid' column for a given stored procedure; since the aliasid // column is varchar(128), javaclassnam... | 1,103,367 |
public void free() throws SQLException { throw SQLExceptionFactory.notImplemented("free()"); } | public void free() throws SQLException { if (!isValid) return; isValid = false; if(isBinaryStream()) { try { binaryStream_.close(); } catch(IOException ioe) { throw new SqlException(null, new ClientMessageId(SQLState.IO_ERROR_UPON_LOB_FREE)).getSQLException(); } } else { binaryString_ = null; } ... | 1,103,368 |
public void grantRevokeAfterSettingSQLAuthProperty() throws SQLException{ // Shutdown the database for derby.database.sqlAuthorization property // to take effect. This was set by DatabasePropertyTestSetup decorator. try{ TestUtil.getConnection("wombat", "shutdown=true"); fail("FAIL: Failed to shutdown databas... | public void grantRevokeAfterSettingSQLAuthProperty() throws SQLException{ // Shutdown the database for derby.database.sqlAuthorization property // to take effect. This was set by DatabasePropertyTestSetup decorator. try{ getDefaultConnection("shutdown=true"); fail("FAIL: Failed to shutdown database"); } catc... | 1,103,376 |
public JobEntryJobRunner(Job job, Result result, int entryNr) { this.job = job; this.result = result; this.log = LogWriter.getInstance(); this.entryNr = entryNr; finished=false; } | public JobEntryJobRunner(Job job, Result result, int entryNr) { this.job = job; this.result = result; this.log = LogWriter.getInstance(); this.entryNr = entryNr; finished=false; } | 1,103,377 |
void raiseCloseEvent() { try { ps_close = conn.prepareStatement("create table temp(n int)"); //call the close method on this prepared statement object //this should result in a statement event being generated //control is transferred to the sattementCLosed functio... | void raiseCloseEvent() { try { ps_close = conn.prepareStatement("values 1"); //call the close method on this prepared statement object //this should result in a statement event being generated //control is transferred to the sattementCLosed function ps_... | 1,103,378 |
void raiseErrorEvent() { try { ps_error = conn.prepareStatement("create table temp(n int)"); //close the connection associated with this prepared statement conn.close(); //Now execute the prepared statement this should cause an error ps_error... | void raiseErrorEvent() { try { ps_error = conn.prepareStatement("values 1"); //close the connection associated with this prepared statement conn.close(); //Now execute the prepared statement this should cause an error ps_error.execute(); ... | 1,103,379 |
public void setUp() throws SQLException { ConnectionPoolDataSource cpds = getConnectionPoolDataSource(); pooledConnection = cpds.getPooledConnection(); //register this class as a event listener for the //statement events pooledConnection.addStatementEventListener(this); ... | public void setUp() throws SQLException { ConnectionPoolDataSource cpds = getConnectionPoolDataSource(); pooledConnection = cpds.getPooledConnection(); //register this class as a event listener for the //statement events pooledConnection.addStatementEventListener(this); ... | 1,103,380 |
private void shutdownServerCheckDBShutDown(boolean dbShutDown) throws Exception { // connect to database createDatabase(); // shut down the server shutdownServer(); // check if db.lck exists String fileName = getSystemProperty("derby.system.home") + ... | private void shutdownServerCheckDBShutDown(boolean dbShutDown) throws Exception { // connect to database createDatabase(); // shut down the server shutdownServer(); // check if db.lck exists String fileName = getSystemProperty("derby.system.home") + ... | 1,103,381 |
public BaseTestCase(String name) { super(name); } | public BaseTestCase(String name) { super(name); } | 1,103,382 |
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the // row ... so it can be thrown away. // REVISIT: does this need to be in a finally // block, to ensure that it is executed? clearCurrentRow(); currentRo... | public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { // we don't want to keep around a pointer to the // row ... so it can be thrown away. // REVISIT: does this need to be in a finally // block, to ensure that it is executed? clearCurrentRow(); ... | 1,103,383 |
public Optimizable modifyAccessPath(JBitSet outerTables, PredicateList predList) throws StandardException { // When we optimized this node we attempted to push predicates down to // the children, which means the best access path for the children // might depend on those predicates. So now that we're preparing //... | public Optimizable modifyAccessPath(JBitSet outerTables, PredicateList predList) throws StandardException { // When we optimized this node we attempted to push predicates down to // the children, which means the best access path for the children // might depend on those predicates. So now that we're preparing //... | 1,103,384 |
public ResultSetNode enhanceRCLForInsert(int numTargetColumns, int[] colMap, DataDictionary dataDictionary, TableDescriptor targetTD, FromVTI targetVTI) throws StandardException { // our newResultCols are put into the bound form straight away. Resu... | public void enhanceRCLForInsert(int numTargetColumns, int[] colMap, DataDictionary dataDictionary, TableDescriptor targetTD, FromVTI targetVTI) throws StandardException { // our newResultCols are put into the bound form straight away. ResultColumnL... | 1,103,385 |
public ResultSetNode enhanceRCLForInsert(int numTargetColumns, int[] colMap, DataDictionary dataDictionary, TableDescriptor targetTD, FromVTI targetVTI) throws StandardException { // our newResultCols are put into the bound form straight away. Resu... | public ResultSetNode enhanceRCLForInsert(int numTargetColumns, int[] colMap, DataDictionary dataDictionary, TableDescriptor targetTD, FromVTI targetVTI) throws StandardException { // our newResultCols are put into the bound form straight away. Resu... | 1,103,386 |
public ResultSetNode enhanceRCLForInsert(int numTargetColumns, int[] colMap, DataDictionary dataDictionary, TableDescriptor targetTD, FromVTI targetVTI) throws StandardException { // our newResultCols are put into the bound form straight away. Resu... | public ResultSetNode enhanceRCLForInsert(int numTargetColumns, int[] colMap, DataDictionary dataDictionary, TableDescriptor targetTD, FromVTI targetVTI) throws StandardException { // our newResultCols are put into the bound form straight away. Resu... | 1,103,387 |
public LogAccessFileBuffer( int size) { buffer = new byte[size]; prev = null; next = null; init(); } | public LogAccessFileBuffer( int size) { buffer = new byte[size]; prev = null; next = null; init(0); } | 1,103,388 |
public void init() { bytes_free = buffer.length; position = 0; } | public void init(int reserve) { bytes_free = buffer.length; position = 0; } | 1,103,389 |
public void init() { bytes_free = buffer.length; position = 0; } | public void init() { bytes_free = buffer.length; position = 0; } | 1,103,390 |
private void setBinaryStreamInternal(int parameterIndex, InputStream x, final boolean lengthLess, long length) throws SQLException { if ( !lengthLess && length < 0 ) throw newSQLException(SQLState.NEGATIVE_STREAM_LENGTH); int jdbcTypeId = getPar... | private void setBinaryStreamInternal(int parameterIndex, InputStream x, final boolean lengthLess, long length) throws SQLException { if ( !lengthLess && length < 0 ) throw newSQLException(SQLState.NEGATIVE_STREAM_LENGTH); int jdbcTypeId = getPar... | 1,103,394 |
private void setCharacterStreamInternal(int parameterIndex, Reader reader, final boolean lengthLess, long length) throws SQLException { // Check for negative length if length i... | private void setCharacterStreamInternal(int parameterIndex, Reader reader, final boolean lengthLess, long length) throws SQLException { // Check for negative length if length i... | 1,103,395 |
private void setCharacterStreamInternal(int parameterIndex, Reader reader, final boolean lengthLess, long length) throws SQLException { // Check for negative length if length i... | private void setCharacterStreamInternal(int parameterIndex, Reader reader, final boolean lengthLess, long length) throws SQLException { // Check for negative length if length i... | 1,103,396 |
private void setCharacterStreamInternal(int parameterIndex, Reader reader, final boolean lengthLess, long length) throws SQLException { // Check for negative length if length i... | private void setCharacterStreamInternal(int parameterIndex, Reader reader, final boolean lengthLess, long length) throws SQLException { // Check for negative length if length i... | 1,103,397 |
public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length >= 0) { setLimit(length); if (length <= 31) { encodedLength = new byte[1]; encodedLength[0] = (byte) (0x80 | (length & 0xff)); } el... | public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length < 0) { throw new IllegalArgumentException( "Stream length cannot be negative: " + length); } this.length = length; this.maximumLength = -1; this.typeName = null; if (length >= 0) { setLimit(length); if (length... | 1,103,398 |
public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length >= 0) { setLimit(length); if (length <= 31) { encodedLength = new byte[1]; encodedLength[0] = (byte) (0x80 | (length & 0xff)); } el... | public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length >= 0) { setLimit(length); if (length <= 31) { encodedLength = new byte[1]; encodedLength[0] = (byte) (0x80 | (length & 0xff)); } el... | 1,103,399 |
public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length >= 0) { setLimit(length); if (length <= 31) { encodedLength = new byte[1]; encodedLength[0] = (byte) (0x80 | (length & 0xff)); } el... | public RawToBinaryFormatStream(InputStream in, int length) { super(in); if (length >= 0) { setLimit(length); if (length <= 31) { encodedLength = new byte[1]; encodedLength[0] = (byte) (0x80 | (length & 0xff)); } el... | 1,103,400 |
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ... | public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ... | 1,103,401 |
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ... | public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ... | 1,103,402 |
public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); } if (SanityManager.DEBUG && valueLength == UNKNOWN_LENGTH) { // Number ... | public ReaderToUTF8Stream(Reader appReader, int valueLength,int numCharsToTruncate) { this.reader = new LimitReader(appReader); if (valueLength != UNKNOWN_LENGTH) { reader.setLimit(valueLength); this.maximumLength = -1; this.typeName = typeName; } if (SanityManager.DEBUG && val... | 1,103,403 |
public NetXAConnection(NetLogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientDataSource dataSource, int rmId, boolean isXAConn) throws SqlException { ... | public NetXAConnection(NetLogWriter netLogWriter, String user, String password, org.apache.derby.jdbc.ClientDataSource dataSource, int rmId, boolean isXAConn) throws SqlException { ... | 1,103,404 |
private void checkPlatformVersion() throws SqlException { int supportedVersion; supportedVersion = 8; if (xaHostVersion_ >= supportedVersion) { // supported version, return return; } // unsupported version for platform String platform = null; platform = "L... | private void checkPlatformVersion() throws SqlException { int supportedVersion; supportedVersion = 8; if (netCon.xaHostVersion_ >= supportedVersion) { // supported version, return return; } // unsupported version for platform String platform = null; platfo... | 1,103,405 |
private void checkPlatformVersion() throws SqlException { int supportedVersion; supportedVersion = 8; if (xaHostVersion_ >= supportedVersion) { // supported version, return return; } // unsupported version for platform String platform = null; platform = "L... | private void checkPlatformVersion() throws SqlException { int supportedVersion; supportedVersion = 8; if (xaHostVersion_ >= supportedVersion) { // supported version, return return; } // unsupported version for platform String platform = null; platform = "L... | 1,103,406 |
protected void finalize() throws java.lang.Throwable { super.finalize(); } | protected void finalize() throws java.lang.Throwable { netCon.finalize(); } | 1,103,407 |
public byte[] getCorrelatorToken() { return crrtkn_; } | public byte[] getCorrelatorToken() { return netCon.crrtkn_; } | 1,103,408 |
public int getPort(Xid xid) { NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) indoubtTransactions_.get(xid); if (indoubtTxn == null) { return -1; } return indoubtTxn.getPort(); } | public int getPort(Xid xid) { NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) netCon.indoubtTransactions_.get(xid); if (indoubtTxn == null) { return -1; } return indoubtTxn.getPort(); } | 1,103,409 |
public byte[] getUOWID(Xid xid) { NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) indoubtTransactions_.get(xid); if (indoubtTxn == null) { return null; } byte[] uowid = indoubtTxn.getUOWID(); return uowid; } | public byte[] getUOWID(Xid xid) { NetIndoubtTransaction indoubtTxn = (NetIndoubtTransaction) netCon.indoubtTransactions_.get(xid); if (indoubtTxn == null) { return null; } byte[] uowid = indoubtTxn.getUOWID(); return uowid; } | 1,103,410 |
public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL if (xaState == XA... | public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL if (xaState == XA... | 1,103,411 |
public void readLocalXACommit_() throws SqlException { netAgent_.netConnectionReply_.readLocalXACommit(this); } | public void readLocalXACommit_() throws SqlException { netCon.netAgent_.netConnectionReply_.readLocalXACommit(netCon); } | 1,103,413 |
public void readLocalXARollback_() throws SqlException { netAgent_.netConnectionReply_.readLocalXARollback(this); } | public void readLocalXARollback_() throws SqlException { netCon.netAgent_.netConnectionReply_.readLocalXARollback(netCon); } | 1,103,414 |
public void readLocalXAStart_() throws SqlException { netAgent_.netConnectionReply_.readLocalXAStart(this); } | public void readLocalXAStart_() throws SqlException { netCon.netAgent_.netConnectionReply_.readLocalXAStart(netCon); } | 1,103,415 |
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet... | public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet... | 1,103,416 |
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet... | public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet... | 1,103,417 |
public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet... | public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = XAResource.XA_OK; // initialize XARETVAL readLocalXARollback_(); if (callInfo.xaRet... | 1,103,418 |
public void setCorrelatorToken(byte[] crttoken) { crrtkn_ = crttoken; } | public void setCorrelatorToken(byte[] crttoken) { netCon.crrtkn_ = crttoken; } | 1,103,419 |
void setNetXAResource(NetXAResource xares) { xares_ = xares; } | void setNetXAResource(NetXAResource xares) { netCon.xares_ = xares; } | 1,103,420 |
public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if (xaState == XA_T0_NOT_ASSOCIATED){ xares_.callInfoArray_[xares_.conn_.currXA... | public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if (xaState == XA_T0_NOT_ASSOCIATED){ xares_.callInfoArray_[xares_.conn_.currXA... | 1,103,421 |
public void writeLocalXACommit_() throws SqlException { netAgent_.netConnectionRequest_.writeLocalXACommit(this); } | public void writeLocalXACommit_() throws SqlException { netCon.netAgent_.netConnectionRequest_.writeLocalXACommit(netCon); } | 1,103,422 |
public void writeLocalXARollback_() throws SqlException { netAgent_.netConnectionRequest_.writeLocalXARollback(this); } | public void writeLocalXARollback_() throws SqlException { netCon.netAgent_.netConnectionRequest_.writeLocalXARollback(netCon); } | 1,103,423 |
public void writeLocalXAStart_() throws SqlException { netAgent_.netConnectionRequest_.writeLocalXAStart(this); } | public void writeLocalXAStart_() throws SqlException { netCon.netAgent_.netConnectionRequest_.writeLocalXAStart(netCon); } | 1,103,424 |
public void writeRollback() throws SqlException { if (isXAConnection_) { xares_.callInfoArray_[xares_.conn_.currXACallInfoOffset_].xid_ = xares_.nullXid; writeLocalXARollback_(); } else { writeLocalRollback_(); // non-XA } } | public void writeRollback() throws SqlException { if (isXAConnection_) { xares_.callInfoArray_[xares_.conn_.currXACallInfoOffset_].xid_ = xares_.nullXid; writeLocalXARollback_(); } else { writeLocalRollback_(); // non-XA } } | 1,103,425 |
public void writeTransactionStart(Statement statement) throws SqlException { //KATHEY remove below after checking that we don't need it. if (!isXAConnection_) { return; // not a XA connection } // this is a XA connection int xaState = getXAState(); xares_.except... | public void writeTransactionStart(Statement statement) throws SqlException { //KATHEY remove below after checking that we don't need it. if (!netCon.isXAConnection()) { return; // not a XA connection } // this is a XA connection int xaState = getXAState(); xares... | 1,103,426 |
public void writeTransactionStart(Statement statement) throws SqlException { //KATHEY remove below after checking that we don't need it. if (!isXAConnection_) { return; // not a XA connection } // this is a XA connection int xaState = getXAState(); xares_.except... | public void writeTransactionStart(Statement statement) throws SqlException { //KATHEY remove below after checking that we don't need it. if (!isXAConnection_) { return; // not a XA connection } // this is a XA connection int xaState = getXAState(); xares_.except... | 1,103,427 |
public NumberDataValue minus(NumberDataValue result) throws StandardException; | public NumberDataValue minus(NumberDataValue left, NumberDataValue right, NumberDataValue result) throws StandardException; | 1,103,428 |
protected CallableStatement createFloatCallForStateChecking(Connection conn, String sql) throws SQLException { CallableStatement s = internalCreateFloatCallForStateChecking(conn, sql); //DERBY-1036 - need a new name //s.setCursorName("StokeNewington"); s.setCursorName("districtInLondon"); s.setFetchDirection(Resu... | protected CallableStatement createFloatCallForStateChecking(Connection conn, String sql) throws SQLException { CallableStatement s = internalCreateFloatCallForStateChecking(conn, sql); //DERBY-1036 - need a new name //s.setCursorName("StokeNewington"); s.setCursorName("StokeNewington"); s.setFetchDirection(Result... | 1,103,429 |
private static void resultSetQuery(String tag, ResultSet rs) throws SQLException { String cursorName = rs.getCursorName(); // DERBY-1183 client cursor name is not correct. // need to truncate the cursor number of the generated name as it might // not be consistent. if (hasGetCursorNameBug && cursorName.startsWith... | private static void resultSetQuery(String tag, ResultSet rs) throws SQLException { String cursorName = rs.getCursorName(); // DERBY-1183 client cursor name is not correct. // need to truncate the cursor number of the generated name as it might // not be consistent. if (hasGetCursorNameBug && cursorName.startsWith... | 1,103,430 |
public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,int type,int concurrency, int holdability) throws SqlException { return new CallableStatement40(agent,connection,sql,type,concurrency, holdab... | public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,int type,int concurrency, int holdability,ClientPooledConnection cpc) throws SqlException { return new CallableStatement40(agent,connection,sql,type,concurr... | 1,103,432 |
public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,int type,int concurrency, int holdability) throws SqlException { return new CallableStatement40(agent,connection,sql,type,concurrency, holdab... | public CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,int type,int concurrency, int holdability) throws SqlException { return new CallableStatement40(agent,connection,sql,type,concurrency, holdab... | 1,103,433 |
public PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,Section section) throws SqlException { return new PreparedStatement40(agent,connection,sql,section); } | public PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,Section section) throws SqlException { return new PreparedStatement40(agent,connection,sql,section); } | 1,103,434 |
CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type,int concurrency,int holdability) throws SqlException; | CallableStatement newCallableStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql, int type,int concurrency,int holdability, ClientPooledConnection cpc) throws SqlException; | 1,103,435 |
public CallableStatement40(Agent agent, Connection connection, String sql, int type, int concurrency, int holdability) throws SQLException { super(agent, connection, sql, type, concurrency, holdability); ps = new PreparedStatement40(agent, connection, sql, type, concurrency, holda... | public CallableStatement40(Agent agent, Connection connection, String sql, int type, int concurrency, int holdability) throws SqlException { super(agent, connection, sql, type, concurrency, holdability); ps = new PreparedStatement40(agent, connection, sql, type, concurrency, holda... | 1,103,436 |
public ClientPooledConnection40(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password) throws SqlException { super(ds,logWriter,user,password); } | public ClientPooledConnection40(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password) throws SQLException { super(ds,logWriter,user,password); } | 1,103,437 |
public NetConnection40(NetLogWriter netLogWriter, String databaseName, java.util.Properties properties) throws SQLException { super(netLogWriter,databaseName,properties); } | public NetConnection40(NetLogWriter netLogWriter, String databaseName, java.util.Properties properties) throws SqlException { super(netLogWriter,databaseName,properties); } | 1,103,438 |
PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,Section section) throws SqlException; | PreparedStatement newPreparedStatement(Agent agent, org.apache.derby.client.am.Connection connection, String sql,Section section,ClientPooledConnection cpc) throws SqlException; | 1,103,439 |
public RealNestedLoopJoinStatistics( int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, int rowsSeenLeft, int rowsSeenRight, int rowsReturned, long ... | public RealNestedLoopJoinStatistics( int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, int rowsSeenLeft, int rowsSeenRight, int rowsReturned, long ... | 1,103,446 |
final void writeBigDecimal(java.math.BigDecimal v, int declaredPrecision, int declaredScale) throws SqlException { ensureLength(offset_ + 16); try { int length = org.apache.derby.client.am.Decimal.bigDecimalToPackedDecimalBytes(byt... | final void writeBigDecimal(java.math.BigDecimal v, int declaredPrecision, int declaredScale) throws SqlException { ensureLength(offset_ + 16); try { int length = org.apache.derby.client.am.Decimal.bigDecimalToPackedDecimalBytes(byt... | 1,103,448 |
final void writeDate(java.sql.Date date) throws SqlException { try { ensureLength(offset_ + 10); org.apache.derby.client.am.DateTime.dateToDateBytes(bytes_, offset_, date); offset_ += 10; } catch (org.apache.derby.client.am.ConversionException e) { throw new... | final void writeDate(java.sql.Date date) throws SqlException { try { ensureLength(offset_ + 10); org.apache.derby.client.am.DateTime.dateToDateBytes(bytes_, offset_, date); offset_ += 10; } catch (org.apache.derby.client.am.ConversionException e) { throw new... | 1,103,449 |
final void writeTimestamp(java.sql.Timestamp timestamp) throws SqlException { try { ensureLength(offset_ + 26); org.apache.derby.client.am.DateTime.timestampToTimestampBytes(bytes_, offset_, timestamp); offset_ += 26; } catch (org.apache.derby.client.am.ConversionExcep... | final void writeTimestamp(java.sql.Timestamp timestamp) throws SqlException { try { ensureLength(offset_ + 26); org.apache.derby.client.am.DateTime.timestampToTimestampBytes(bytes_, offset_, timestamp); offset_ += 26; } catch (org.apache.derby.client.am.ConversionExcep... | 1,103,450 |
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | 1,103,451 |
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | 1,103,452 |
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | 1,103,453 |
public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | public static final int bigDecimalToPackedDecimalBytes(byte[] buffer, int offset, java.math.BigDecimal b, int declaredPrecision, ... | 1,103,454 |
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ... | void pushExpressionsIntoSelect(SelectNode select, boolean copyPredicate) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVis... | 1,103,455 |
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ... | void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ... | 1,103,456 |
void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ... | void pushExpressionsIntoSelect(SelectNode select) throws StandardException { /* Walk list backwards since we can delete while * traversing the list. */ for (int index = size() - 1; index >= 0; index--) { Predicate predicate; predicate = (Predicate) elementAt(index); CollectNodesVisitor getCRs = ... | 1,103,457 |
ColumnReference getColumnOperand(int tableNumber, int columnPosition); | ColumnReference getColumnOperand(Optimizable optTable, int columnPosition); | 1,103,459 |
public LastIndexKeyResultSet ( Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCou... | public LastIndexKeyResultSet ( Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCou... | 1,103,460 |
public LastIndexKeyResultSet ( Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCou... | public LastIndexKeyResultSet ( Activation activation, int resultSetNumber, GeneratedMethod resultRowAllocator, long conglomId, String tableName, String userSuppliedOptimizerOverrides, String indexName, int colRefItem, int lockMode, boolean tableLocked, int isolationLevel, double optimizerEstimatedRowCou... | 1,103,461 |
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if (isOpen) { isOpen = false; currentRow = null; clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } super.close(); } else { if (SanityManager.DE... | public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if (isOpen) { isOpen = false; clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } super.close(); } else { if (SanityManager.DEBUG) { Sanity... | 1,103,462 |
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if (isOpen) { isOpen = false; currentRow = null; clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } super.close(); } else { if (SanityManager.DE... | public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if (isOpen) { isOpen = false; currentRow = null; clearCurrentRow(); if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } super.close(); } else { if (SanityManager.DE... | 1,103,463 |
public ExecRow getNextRowCore() throws StandardException { if (returnedRow || !isOpen) { currentRow = null; clearCurrentRow(); } else { returnedRow = true; } return currentRow; } | public ExecRow getNextRowCore() throws StandardException { if (returnedRow || !isOpen) { clearCurrentRow(); } else { returnedRow = true; } return currentRow; } | 1,103,464 |
public void openCore() throws StandardException { ExecRow candidateCopy = candidate.getClone(); beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) { SanityManager.ASSERT(!isOpen, "LastIndexKeyResultSet already open"); } isOpen = true; TransactionController tc = activation.getTransactionController... | public void openCore() throws StandardException { ExecRow candidateCopy = candidate.getClone(); beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) { SanityManager.ASSERT(!isOpen, "LastIndexKeyResultSet already open"); } isOpen = true; TransactionController tc = activation.getTransactionController... | 1,103,465 |
private void addSPSParams(SPSDescriptor spsd, TransactionController tc, boolean wait) throws StandardException { UUID uuid = spsd.getUUID(); DataTypeDescriptor[] params = spsd.getParams(); Object[] parameterDefaults = spsd.getParameterDefaults(); if (params == null) return; /* Create the columns */ int ... | private void addSPSParams(SPSDescriptor spsd, TransactionController tc, boolean wait) throws StandardException { UUID uuid = spsd.getUUID(); DataTypeDescriptor[] params = spsd.getParams(); Object[] parameterDefaults = spsd.getParameterDefaults(); if (params == null) return; /* Create the columns */ int ... | 1,103,467 |
private ColumnDescriptor makeColumnDescriptor( SystemColumn column, TableDescriptor td ) throws StandardException { DataTypeDescriptor typeDesc; TypeId typeId; if (column.builtInType()) { typeId = TypeId.getBuiltInTypeId(column.getDataType()); } else { typeId = TypeId.getUserDefinedTy... | private ColumnDescriptor makeColumnDescriptor( SystemColumn column, TableDescriptor td ) throws StandardException { DataTypeDescriptor typeDesc; TypeId typeId; if (column.builtInType()) { typeId = TypeId.getBuiltInTypeId(column.getDataType()); } else { typeId = TypeId.getUserDefinedTy... | 1,103,468 |
public void updateSPS( SPSDescriptor spsd, TransactionController tc, boolean recompile, boolean updateParamDescriptors, boolean wait, boolean firstCompilation) throws StandardException { ExecIndexRow keyRow1 = null; ExecRow row; DataValueDescript... | public void updateSPS( SPSDescriptor spsd, TransactionController tc, boolean recompile, boolean updateParamDescriptors, boolean wait, boolean firstCompilation) throws StandardException { ExecIndexRow keyRow1 = null; ExecRow row; DataValueDescript... | 1,103,469 |
private void checkTypeForSetAsciiStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if ( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_ASCIISTREAM.checkType( paramType ) ) { ... | private void checkTypeForSetAsciiStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if ( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_ASCIISTREAM.checkType( paramType ) ) { ... | 1,103,470 |
private void checkTypeForSetBinaryStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_BINARYSTREAM. checkType(par... | private void checkTypeForSetBinaryStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_BINARYSTREAM. checkType(par... | 1,103,471 |
private void checkTypeForSetBlob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_BLOB.checkType( paramType ) ){ ... | private void checkTypeForSetBlob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_BLOB.checkType( paramType ) ){ ... | 1,103,472 |
private void checkTypeForSetCharacterStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM. checkTy... | private void checkTypeForSetCharacterStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM. checkTy... | 1,103,473 |
private void checkTypeForSetClob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CLOB.checkType( paramType ) ){ ... | private void checkTypeForSetClob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CLOB.checkType( paramType ) ){ ... | 1,103,474 |
private ParameterMetaData getParameterMetaDataX() throws SqlException { ParameterMetaData pm = ClientDriver.getFactory().newParameterMetaData ( getColumnMetaDataX() ); if (escapedProcedureCallWithResult_) { pm.escapedProcedureCallWithResult_ = true; } return pm; ... | private ParameterMetaData getParameterMetaDataX() throws SqlException { ParameterMetaData pm = ClientDriver.getFactory().newParameterMetaData ( getColumnMetaDataX() ); if (escapedProcedureCallWithResult_) { pm.escapedProcedureCallWithResult_ = true; } return pm; ... | 1,103,475 |
public void setArray(int parameterIndex, java.sql.Array x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setArray", parameterIndex, x); } parameterIn... | public void setArray(int parameterIndex, java.sql.Array x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setArray", parameterIndex, x); } ... | 1,103,476 |
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt... | public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt... | 1,103,477 |
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ... | public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ... | 1,103,478 |
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ... | public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ... | 1,103,479 |
protected void setBinaryStreamX(int parameterIndex, java.io.InputStream x, int length) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java... | protected void setBinaryStreamX(int parameterIndex, java.io.InputStream x, int length) throws SqlException { parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.BLOB; if (x == null) { setNullX(pa... | 1,103,480 |
public void setBlobX(int parameterIndex, java.sql.Blob x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.BLOB; if (x == null) { setNullX(parameterIndex, java.sql.Types.B... | public void setBlobX(int parameterIndex, java.sql.Blob x) throws SqlException { parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.BLOB; if (x == null) { setNullX(parameterIndex, java.sql.Types.BLOB); return; } setInput(parameterInde... | 1,103,481 |
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ... | public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ... | 1,103,482 |
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ... | public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ... | 1,103,483 |
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i... | public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i... | 1,103,484 |
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i... | public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i... | 1,103,485 |
public void setBytes(int parameterIndex, byte[] x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBytes", parameterIndex, x); } fin... | public void setBytes(int parameterIndex, byte[] x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBytes", parameterIndex, x); } fin... | 1,103,486 |
public void setBytesX(int parameterIndex, byte[] x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.LONGVARBINARY; if (x == null) { setNullX(parameterIndex, java.sql.Type... | public void setBytesX(int parameterIndex, byte[] x) throws SqlException { parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.LONGVARBINARY; if (x == null) { setNullX(parameterIndex, java.sql.Types.LONGVARBINARY); return; } setInput(p... | 1,103,487 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.