bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
private void initializePublicKeyForEncryption() throws SqlException { if (encryptionManager_ == null) { encryptionManager_ = new org.apache.derby.client.am.EncryptionManager(agent_); } publicKey_ = encryptionManager_.obtainPublicKey(); }
private void initializePublicKeyForEncryption() throws SqlException { if (encryptionManager_ == null) { encryptionManager_ = new EncryptionManager(agent_); } publicKey_ = encryptionManager_.obtainPublicKey(); }
1,103,602
void setAccessSecurityData(int secchkcd, int desiredSecmec, int[] secmecList, boolean sectknReceived, byte[] sectkn) throws DisconnectException { // - if the secchkcd is not 0, then map to ...
void setAccessSecurityData(int secchkcd, int desiredSecmec, int[] secmecList, boolean sectknReceived, byte[] sectkn) throws DisconnectException { // - if the secchkcd is not 0, then map to ...
1,103,604
void writeDeferredReset() throws SqlException { if (canUseCachedConnectBytes_ && cachedConnectBytes_ != null && (securityMechanism_ == NetConfiguration.SECMEC_USRIDPWD || securityMechanism_ == NetConfiguration.SECMEC_USRIDONL)) { writeDeferredResetFromCache(); ...
void writeDeferredReset() throws SqlException { if (canUseCachedConnectBytes_ && cachedConnectBytes_ != null && (securityMechanism_ == NetConfiguration.SECMEC_USRIDPWD || securityMechanism_ == NetConfiguration.SECMEC_USRIDONL)) { writeDeferredResetFromCache(); ...
1,103,605
void writeDeferredReset() throws SqlException { if (canUseCachedConnectBytes_ && cachedConnectBytes_ != null && (securityMechanism_ == NetConfiguration.SECMEC_USRIDPWD || securityMechanism_ == NetConfiguration.SECMEC_USRIDONL)) { writeDeferredResetFromCache(); ...
void writeDeferredReset() throws SqlException { if (canUseCachedConnectBytes_ && cachedConnectBytes_ != null && (securityMechanism_ == NetConfiguration.SECMEC_USRIDPWD || securityMechanism_ == NetConfiguration.SECMEC_USRIDONL)) { writeDeferredResetFromCache(); ...
1,103,606
void writeDeferredReset() throws SqlException { if (canUseCachedConnectBytes_ && cachedConnectBytes_ != null && (securityMechanism_ == NetConfiguration.SECMEC_USRIDPWD || securityMechanism_ == NetConfiguration.SECMEC_USRIDONL)) { writeDeferredResetFromCache(); ...
void writeDeferredReset() throws SqlException { if (canUseCachedConnectBytes_ && cachedConnectBytes_ != null && (securityMechanism_ == NetConfiguration.SECMEC_USRIDPWD || securityMechanism_ == NetConfiguration.SECMEC_USRIDONL)) { writeDeferredResetFromCache(); ...
1,103,607
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,608
protected URL createRelativeURL(URL rootURL, String relativeURI) throws MalformedURLException { String urlText = null; if (rootURL == null) { String userDir = System.getProperty("user.dir"); urlText = "file://" + userDir + relativeURI; } else { url...
protected URL createRelativeURL(URL rootURL, String relativeURI) throws MalformedURLException { if (rootURL == null) { String userDir = System.getProperty("user.dir"); urlText = "file://" + userDir + relativeURI; } else { urlText = rootURL.toStrin...
1,103,609
protected URL createRelativeURL(URL rootURL, String relativeURI) throws MalformedURLException { String urlText = null; if (rootURL == null) { String userDir = System.getProperty("user.dir"); urlText = "file://" + userDir + relativeURI; } else { url...
protected URL createRelativeURL(URL rootURL, String relativeURI) throws MalformedURLException { String urlText = null; if (rootURL == null) { String userDir = System.getProperty("user.dir"); urlText = "file://" + userDir + relativeURI; } else { url...
1,103,610
protected URL createRelativeURL(URL rootURL, String relativeURI) throws MalformedURLException { String urlText = null; if (rootURL == null) { String userDir = System.getProperty("user.dir"); urlText = "file://" + userDir + relativeURI; } else { url...
protected URL createRelativeURL(URL rootURL, String relativeURI) throws MalformedURLException { String urlText = null; if (rootURL == null) { String userDir = System.getProperty("user.dir"); urlText = "file://" + userDir + relativeURI; } else { url...
1,103,611
public static long diag_containerid_to_conglomid( Object module, long containerid) { String ret_string = null; AccessFactory store_module = null; long conglom_id = Long.MIN_VALUE; // Find the AccessFactory store_module = (AccessFacto...
public static long diag_containerid_to_conglomid( String db_name, long containerid) { String ret_string = null; AccessFactory store_module = null; long conglom_id = Long.MIN_VALUE; // Find the AccessFactory store_module = (Acc...
1,103,612
public static long diag_containerid_to_conglomid( Object module, long containerid) { String ret_string = null; AccessFactory store_module = null; long conglom_id = Long.MIN_VALUE; // Find the AccessFactory store_module = (AccessFacto...
public static long diag_containerid_to_conglomid( Object module, long containerid) { String ret_string = null; AccessFactory store_module = null; long conglom_id = Long.MIN_VALUE; // Find the AccessFactory store_module = (AccessFacto...
1,103,613
public static long diag_containerid_to_conglomid( Object module, long containerid) { String ret_string = null; AccessFactory store_module = null; long conglom_id = Long.MIN_VALUE; // Find the AccessFactory store_module = (AccessFacto...
public static long diag_containerid_to_conglomid( Object module, long containerid) { String ret_string = null; AccessFactory store_module = null; long conglom_id = Long.MIN_VALUE; // Find the AccessFactory store_module = (AccessFacto...
1,103,614
public boolean init(int initSize, int maxSize) { this.maxSize = maxSize; if (maxSize < initSize) initSize = maxSize; array = new Node[initSize]; if (array == null) return false; nAllocated = 0; return true; }
public boolean init() { this.maxSize = maxSize; if (maxSize < initSize) initSize = maxSize; array = new Node[initSize]; if (array == null) return false; nAllocated = 0; return true; }
1,103,615
public boolean init(int initSize, int maxSize) { this.maxSize = maxSize; if (maxSize < initSize) initSize = maxSize; array = new Node[initSize]; if (array == null) return false; nAllocated = 0; return true; }
public boolean init(int initSize, int maxSize) { this.maxSize = maxSize; if (maxSize < initSize) initSize = maxSize; array = new Node[initSize]; if (array == null) return false; nAllocated = 0; return true; }
1,103,616
public AssertFailure(String message, Throwable nestedError) { super(message); nestedException = nestedError; }
public AssertFailure(String message, Throwable nestedError) { super(message); nestedException = nestedError; }
1,103,617
public ValueNode bindConstraints ( DataDictionary dataDictionary, NodeFactory nodeFactory, TableDescriptor targetTableDescriptor, Dependent dependent, ResultColumnList sourceRCL, int[] changedColumnIds, FormatableBitSet readColsBitSet, boolean skipCheckConstraints, boolean includeTriggers ...
public ValueNode bindConstraints ( DataDictionary dataDictionary, NodeFactory nodeFactory, TableDescriptor targetTableDescriptor, Dependent dependent, ResultColumnList sourceRCL, int[] changedColumnIds, FormatableBitSet readColsBitSet, boolean skipCheckConstraints, boolean includeTriggers ...
1,103,618
public FKInfo( String[] fkConstraintNames, String tableName, int stmtType, int type, UUID refUUID, long refConglomNumber, UUID[] fkUUIDs, long[] fkConglomNumbers, boolean[] fkIsSelfReferencing, int[] colArray, RowLocation rowLocation, int[...
public FKInfo( String[] fkConstraintNames, String tableName, int stmtType, int type, UUID refUUID, long refConglomNumber, UUID[] fkUUIDs, long[] fkConglomNumbers, boolean[] fkIsSelfReferencing, int[] colArray, RowLocation rowLocation, int[...
1,103,620
public TriggerInfo ( TableDescriptor td, int[] changedCols, GenericDescriptorList triggers ) throws StandardException { this.columnIds = changedCols; if (columnIds != null) { /* ** Find the names of all the columns that are ** being changd. */ columnNames = new String[columnIds.length]; for (in...
public TriggerInfo ( TableDescriptor td, int[] changedCols, GenericDescriptorList triggers ) throws StandardException { this.columnIds = changedCols; if (columnIds != null) { /* ** Find the names of all the columns that are ** being changd. */ columnNames = new String[columnIds.length]; for (in...
1,103,621
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
1,103,622
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
1,103,623
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
1,103,624
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
public static void main(String args[]) { TestConnection tc=null; Connection conn_main=null; PreparedStatement ps_main=null; ResultSet rs_main=null; try { tc = new TestConnection(); conn_main = tc.createEmbeddedConnection(); } catch(Exception e)...
1,103,625
private void readAndSetExtParam( int i, DRDAStatement stmt, int drdaType, int extLen) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); drdaType = (drdaType & 0x000000ff); // need unsigned value boolean checkNullability = false; if (sqlamLevel >= MGR...
private void readAndSetExtParam( int i, DRDAStatement stmt, int drdaType, int extLen) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); drdaType = (drdaType & 0x000000ff); // need unsigned value boolean checkNullability = false; if (sqlamLevel >= MGR...
1,103,626
public int fetchNextGroup( DataValueDescriptor[][] row_array, RowLocation[] old_rowloc_array, RowLocation[] new_rowloc_array) throws StandardException { throw(StandardException.newException( SQLState.HEAP_UNIMPLEMENTED_FEATURE)); }
public int fetchNextGroup( DataValueDescriptor[][] row_array, RowLocation[] old_rowloc_array, RowLocation[] new_rowloc_array) throws StandardException { throw(StandardException.newException( SQLState.HEAP_UNIMPLEMENTED_FEATURE)); }
1,103,627
public int fetchNextGroup( DataValueDescriptor[][] row_array, RowLocation[] old_rowloc_array, RowLocation[] new_rowloc_array) throws StandardException { throw(StandardException.newException( SQLState.HEAP_UNIMPLEMENTED_FEATURE)); }
public int fetchNextGroup( DataValueDescriptor[][] row_array, RowLocation[] old_rowloc_array, RowLocation[] new_rowloc_array) throws StandardException { throw(StandardException.newException( SQLState.HEAP_UNIMPLEMENTED_FEATURE)); }
1,103,628
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RecordHandle rh) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(rh); } else { if (SanityMan...
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RowPosition pos) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(rh); } else { if (SanityMa...
1,103,629
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RecordHandle rh) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(rh); } else { if (SanityMan...
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RecordHandle rh) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(pos.current_rh); } else { i...
1,103,630
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RecordHandle rh) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(rh); } else { if (SanityMan...
protected void setRowLocationArray( RowLocation[] rowloc_array, int index, RecordHandle rh) throws StandardException { if (rowloc_array[index] == null) { rowloc_array[index] = new HeapRowLocation(rh); } else { if (SanityMan...
1,103,631
private void normalInsertCore(LanguageConnectionContext lcc, boolean firstExecute) throws StandardException { boolean firstDeferredRow = true; ExecRow deferredRowBuffer = null; /* Get or re-use the row changer. * NOTE: We need to set ourself as the top result set * if this is not the 1st execution. (Done in c...
private void normalInsertCore(LanguageConnectionContext lcc, boolean firstExecute) throws StandardException { boolean firstDeferredRow = true; ExecRow deferredRowBuffer = null; /* Get or re-use the row changer. * NOTE: We need to set ourself as the top result set * if this is not the 1st execution. (Done in c...
1,103,632
public void testAutoloading() throws Exception { //CONFIG.setVerbosity( true ); // // We expect that the connection to the database will fail for // one reason or another. // if ( autoloading() ) { println( "We ARE autoloading..." ); // // The DriverManager should have autoloaded the client driver. /...
public void testAutoloading() throws Exception { //CONFIG.setVerbosity( true ); // // We expect that the connection to the database will fail for // one reason or another. // if ( CONFIG.autoloading() ) { println( "We ARE autoloading..." ); // // The DriverManager should have autoloaded the client driv...
1,103,635
public NetXAConnection createControlConnection(NetLogWriter logWriter, String user, String password, org.apache.derby.jdbc.ClientDataSource dataSource, ...
public NetXAConnection createControlConnection(NetLogWriter logWriter, String user, String password, org.apache.derby.jdbc.ClientDataSource dataSource, ...
1,103,636
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
1,103,637
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
1,103,638
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
1,103,639
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
public ClientPooledConnection(ClientDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password, int rmId) throws SQLException { try { ...
1,103,640
public synchronized java.sql.Connection getConnection() throws SQLException { try { if (logWriter_ != null) { logWriter_.traceEntry(this, "getConnection"); } createLogicalConnection(); if (!newPC_) { physicalConnection_.reset(lo...
public synchronized java.sql.Connection getConnection() throws SQLException { try { if (logWriter_ != null) { logWriter_.traceEntry(this, "getConnection"); } createLogicalConnection(); if (!newPC_) { physicalConnection_.reset(lo...
1,103,641
public String getSourceTableName() { return ( ( tableName != null) ? tableName.getTableName() : ((source != null) ? source.getTableName() : null)); }
public String getSourceTableName() { return ( ( tableName != null) ? tableName.getTableName() : ((source != null) ? source.getTableName() : null)); }
1,103,642
public int getMaxColumnNameLength() { return 128; }
public int getMaxColumnNameLength() { return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH30; }
1,103,643
public int getMaxCursorNameLength() { return 128; }
public int getMaxCursorNameLength() { return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH18; }
1,103,644
public int getMaxProcedureNameLength() { return 128; }
public int getMaxProcedureNameLength() { return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH128; }
1,103,645
public int getMaxSchemaNameLength() { return 128; }
public int getMaxSchemaNameLength() { return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH30; }
1,103,646
public int getMaxTableNameLength() { return 128; }
public int getMaxTableNameLength() { return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH128; }
1,103,647
public int getMaxUserNameLength() { return 128; }
public int getMaxUserNameLength() { return DB2Limit.DB2_MAX_IDENTIFIER_LENGTH30; }
1,103,648
public boolean setBackupBlockingState() { if (!inBackupBlockingState) inBackupBlockingState = xactFactory.canStartBackupBlockingOperation(); return inBackupBlockingState; }
public boolean setBackupBlockingState(boolean wait) throws StandardException { if (!inBackupBlockingState) inBackupBlockingState = xactFactory.canStartBackupBlockingOperation(); return inBackupBlockingState; }
1,103,649
public boolean setBackupBlockingState() { if (!inBackupBlockingState) inBackupBlockingState = xactFactory.canStartBackupBlockingOperation(); return inBackupBlockingState; }
public boolean setBackupBlockingState() { if (!inBackupBlockingState) inBackupBlockingState = xactFactory.canStartBackupBlockingOperation(wait); } return inBackupBlockingState; }
1,103,650
public abstract boolean setBackupBlockingState();
public abstract boolean setBackupBlockingState(boolean wait) throws StandardException;
1,103,651
protected boolean canStartBackupBlockingOperation() { synchronized(backupSemaphore) { // do not allow backup blocking operations, if online backup is // is in progress. if (inBackup) { return false; } else { // not in online backup, allow backup blocking operations backupBlockingOperations++; retu...
protected boolean canStartBackupBlockingOperation(boolean wait) throws StandardException { synchronized(backupSemaphore) { // do not allow backup blocking operations, if online backup is // is in progress. if (inBackup) { return false; } else { // not in online backup, allow backup blocking operations ...
1,103,652
protected boolean canStartBackupBlockingOperation() { synchronized(backupSemaphore) { // do not allow backup blocking operations, if online backup is // is in progress. if (inBackup) { return false; } else { // not in online backup, allow backup blocking operations backupBlockingOperations++; retu...
protected boolean canStartBackupBlockingOperation() { synchronized(backupSemaphore) { // do not allow backup blocking operations, if online backup is // is in progress. if (inBackup) { return false; } else { // not in online backup, allow backup blocking operations backupBlockingOperations++; retu...
1,103,653
private void checkForInvalidXAStateOnCommitOrRollback() throws SqlException { if (disallowLocalCommitRollback_()) { throw new SqlException(agent_.logWriter_, "COMMIT or ROLLBACK invalid for application execution environment", SqlState._2D521, // Spec'ed by PRO...
private void checkForInvalidXAStateOnCommitOrRollback() throws SqlException { if (! allowLocalCommitRollback_()) { throw new SqlException(agent_.logWriter_, "COMMIT or ROLLBACK invalid for application execution environment", SqlState._2D521, // Spec'ed by PROT...
1,103,655
synchronized public void closeForReuse() throws SqlException { if (!open_) { return; } checkForTransactionInProgress(); resetConnectionAtFirstSql_ = false; // unset indicator of deferred reset SqlException accumulatedExceptions = null; try { flowClose(...
synchronized public void closeForReuse() throws SqlException { if (!open_) { return; } resetConnectionAtFirstSql_ = false; // unset indicator of deferred reset SqlException accumulatedExceptions = null; try { flowClose(); } catch (SqlException ...
1,103,656
public boolean getAutoCommit() throws SqlException { checkForClosedConnection(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getAutoCommit", autoCommit_); } if (disallowLocalCommitRollback_()) { // autoCommit is always false between xars.start() and xars....
public boolean getAutoCommit() throws SqlException { checkForClosedConnection(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getAutoCommit", autoCommit_); } if (! allowLocalCommitRollback_()) { // autoCommit is always false between xars.start() and xars.e...
1,103,657
public void readCommit() throws SqlException { if (isXAConnection_) { if ((xaState_ == XA_LOCAL) || (xaState_ == XA_LOCAL_START_SENT)) { readLocalXACommit_(); setXAState(XA_OPEN_IDLE); } } else { readLocalCommit_(); ...
public void readCommit() throws SqlException { if (isXAConnection_) { if ((xaState_ == XA_LOCAL) || (xaState_ == XA_LOCAL_START_SENT)) { readLocalXACommit_(); setXAState(XA_OPEN_IDLE); } } else { readLocalCommit_(); ...
1,103,658
public void readRollback() throws SqlException { if (isXAConnection_) { readLocalXARollback_(); setXAState(XA_OPEN_IDLE); } else { readLocalRollback_(); } }
public void readRollback() throws SqlException { if (isXAConnection_) { readLocalXARollback_(); } else { readLocalRollback_(); } }
1,103,659
synchronized public void releaseSavepoint(java.sql.Savepoint savepoint) throws SqlException { int saveXaState = xaState_; if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "releaseSavepoint", savepoint); } checkForClosedConnection(); if (savepoint == nul...
synchronized public void releaseSavepoint(java.sql.Savepoint savepoint) throws SqlException { int saveXaState = xaState_; if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "releaseSavepoint", savepoint); } checkForClosedConnection(); if (savepoint == nul...
1,103,660
protected void resetConnection(LogWriter logWriter, String user, ClientDataSource ds, boolean recomputeFromDataSource) throws SqlException { // clearWarningsX() will re-initialize the following properties ...
protected void resetConnection(LogWriter logWriter, String user, ClientDataSource ds, boolean recomputeFromDataSource) throws SqlException { // clearWarningsX() will re-initialize the following properties ...
1,103,661
synchronized public void setAutoCommit(boolean autoCommit) throws SqlException { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setAutoCommit", autoCommit); } checkForClosedConnection(); if (disallowLocalCommitRollback_()) { if (autoCommit) { // ...
synchronized public void setAutoCommit(boolean autoCommit) throws SqlException { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setAutoCommit", autoCommit); } checkForClosedConnection(); if (! allowLocalCommitRollback_()) { if (autoCommit) { // c...
1,103,662
synchronized public java.sql.Savepoint setSavepoint() throws SqlException { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setSavepoint"); } checkForClosedConnection(); if (autoCommit_) // Throw exception if auto-commit is on { throw new S...
synchronized public java.sql.Savepoint setSavepoint() throws SqlException { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setSavepoint"); } checkForClosedConnection(); if (autoCommit_) // Throw exception if auto-commit is on { throw new S...
1,103,663
public boolean willAutoCommitGenerateFlow() throws org.apache.derby.client.am.SqlException { if (!autoCommit_) { return false; } if (disallowLocalCommitRollback_()) { return false; } return true; }
public boolean willAutoCommitGenerateFlow() throws org.apache.derby.client.am.SqlException { if (!autoCommit_) { return false; } if (! allowLocalCommitRollback_()) { return false; } return true; }
1,103,664
public void writeCommit() throws SqlException { if (isXAConnection_) { if ((xaState_ == XA_LOCAL) || (xaState_ == XA_LOCAL_START_SENT)) { writeLocalXACommit_(); } } else { writeLocalCommit_(); } }
public void writeCommit() throws SqlException { if (isXAConnection_) { if ((xaState_ == XA_LOCAL) || (xaState_ == XA_LOCAL_START_SENT)) { writeLocalXACommit_(); } } else { writeLocalCommit_(); } }
1,103,665
public MaterializedResultSet(NoPutResultSet source, Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws StandardException { super(activation, resultSetNumber, optimizerEstimatedRowCount, optimizerE...
public MaterializedResultSet(NoPutResultSet source, Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws StandardException { super(activation, resultSetNumber, optimizerEstimatedRowCount, optimizerE...
1,103,666
public MaterializedResultSet(NoPutResultSet source, Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws StandardException { super(activation, resultSetNumber, optimizerEstimatedRowCount, optimizerE...
public MaterializedResultSet(NoPutResultSet source, Activation activation, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c) throws StandardException { super(activation, resultSetNumber, optimizerEstimatedRowCount, optimizerE...
1,103,667
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } currentRow = null; source.close(); if (materializedScan != null) materializedScan.close(); mat...
public void close() throws StandardException { beginTime = getCurrentTimeMillis(); if ( isOpen ) { if (closeCleanup != null) { closeCleanup.invoke(activation); // let activation tidy up } currentRow = null; source.close(); if (materializedScan != null) materializedScan.close(); mat...
1,103,668
private static void createTestTable() throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException { Connection conn = getConnection(); Statement createTableSt = conn.createStatement(); createTableSt.execute("create table TEST_TABLE( TEST_COL blob( 65536 ))")...
private static void createTestTable() throws SQLException, IllegalAccessException, ClassNotFoundException, InstantiationException { Connection conn = connectServer(); Statement createTableSt = conn.createStatement(); createTableSt.execute("create table TEST_TABLE( TEST_COL blob( 65536 ))")...
1,103,669
public static void main(String[] args){ try{ ij.getPropertyArg(args); startServer(); createTestTable(); testInterruptedReadOfLob(); shutdownServer(); }catch(Throwable t){ t.printStackTrace(); } }
public static void main(String[] args){ try{ setSystemProperty("derby.debug.suicideOfLayerBStreaming","true"); startServer(); createTestTable(); testInterruptedReadOfLob(); shutdownServer(); }catch(Throwable t){ t.printStackTrace(); } }
1,103,670
public static void main(String[] args){ try{ ij.getPropertyArg(args); startServer(); createTestTable(); testInterruptedReadOfLob(); shutdownServer(); }catch(Throwable t){ t.printStackTrace(); } }
public static void main(String[] args){ try{ ij.getPropertyArg(args); startServer(); createTestTable(); testInterruptedReadOfLob(); shutdownServer(); }catch(Throwable t){ examineThrowable(t); } }
1,103,671
private static void testInterruptedReadOfLob() throws SQLException, IOException, IllegalAccessException, ClassNotFoundException, InstantiationException { Connection conn = getConnection(); conn.setAutoCommit(false); PreparedStatement insertLobSt = conn.prepareStatement("...
private static void testInterruptedReadOfLob() throws SQLException, IOException, IllegalAccessException, ClassNotFoundException, InstantiationException { Connection conn = connectServer(); conn.setAutoCommit(false); PreparedStatement insertLobSt = conn.prepareStatement("...
1,103,672
public void generate(ActivationClassBuilder acb, MethodBuilder mb, ResultSetNode child) throws StandardException { /* ** If sorting is not required, don't generate a sort result set - ** just return the child result set. */ if ( ! sortNeeded) { child.generate(acb, mb); return; } /* Get...
public void generate(ActivationClassBuilder acb, MethodBuilder mb, ResultSetNode child) throws StandardException { /* ** If sorting is not required, don't generate a sort result set - ** just return the child result set. */ if ( ! sortNeeded) { child.generate(acb, mb); return; } /* Get...
1,103,674
public void generate(ActivationClassBuilder acb, MethodBuilder mb, ResultSetNode child) throws StandardException { /* ** If sorting is not required, don't generate a sort result set - ** just return the child result set. */ if ( ! sortNeeded) { child.generate(acb, mb); return; } /* Get...
public void generate(ActivationClassBuilder acb, MethodBuilder mb, ResultSetNode child) throws StandardException { /* ** If sorting is not required, don't generate a sort result set - ** just return the child result set. */ if ( ! sortNeeded) { child.generate(acb, mb); return; } /* Get...
1,103,675
public static void dumpRS(ResultSet s) throws SQLException { SecurityCheck.inspect(s, "java.sql.ResultSet"); if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); SecurityCheck.inspect(rsmd, "java.sql.ResultSetMetaData"); // Get the number of columns in the res...
public static void dumpRS(ResultSet s) throws SQLException { SecurityCheck.inspect(s, "java.sql.ResultSet"); if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); SecurityCheck.inspect(rsmd, "java.sql.ResultSetMetaData"); // Get the number of columns in the res...
1,103,676
public void free() throws SQLException { throw SQLExceptionFactory.notImplemented("free()"); }
public void free() throws SQLException { if (!isValid) return; isValid = false; if(isString()) { string_ = null; utf8String_ = null; } if(isAsciiStream()) { try { asciiStream_.close(); } catch(IOException ioe) { throw new SqlException(null, new ClientMessageId(SQLState.IO_ERROR_UPON_LOB_FREE)).get...
1,103,677
protected ResultSet(Agent agent, Statement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability) { agent_ = agent; statement_ = statement; ...
protected ResultSet(Agent agent, Statement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability) { agent_ = agent; statement_ = statement; ...
1,103,687
protected ResultSet(Agent agent, Statement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability) { agent_ = agent; statement_ = statement; ...
protected ResultSet(Agent agent, Statement statement, Cursor cursor, int resultSetType, int resultSetConcurrency, int resultSetHoldability) { agent_ = agent; statement_ = statement; ...
1,103,688
private int getRowX() throws SqlException { checkForClosedResultSet(); long row; checkThatResultSetIsNotDynamic(); if (resultSetType_ == java.sql.ResultSet.TYPE_FORWARD_ONLY) // for forward-only cursors, getRow() should return 0 if cursor is not on a valid row, // i.e. afte...
private int getRowX() throws SqlException { checkForClosedResultSet(); long row; checkThatResultSetIsNotDynamic(); if (resultSetType_ == java.sql.ResultSet.TYPE_FORWARD_ONLY) // for forward-only cursors, getRow() should return 0 if cursor is not on a valid row, // i.e. afte...
1,103,689
public final java.sql.SQLWarning getWarnings() { if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getWarnings", warnings_); } return warnings_; }
public final java.sql.SQLWarning getWarnings() { if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getWarnings", warnings_); } return warnings_ == null ? null : warnings_.getSQLWarning(); }
1,103,690
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
private void processCommand() throws IOException, DRDAProtocolException { Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = icmd.intValue(); i...
1,103,692
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
1,103,693
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
1,103,694
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
private void processCommand() throws IOException, DRDAProtocolException { int correlationId; Integer icmd = (Integer)commandTable.get(tkn.sval.toLowerCase(Locale.ENGLISH)); if (icmd == null) { System.err.println("Unknown command, " + tkn.sval + " in line " + tkn.lineno()); System.exit(1); } int cmd = i...
1,103,695
public void setNCharacterStream(int index, Reader value, long length) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setNCharacterStream " + "(int,Reader,long)"); }
public void setNCharacterStream(int index, Reader value, long length) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setNCharacterStream " + "(int,Reader,long)"); }
1,103,696
public void setNClob(int index, NClob value) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setNClob (int, NClob)"); }
public void setNClob(int index, NClob value) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setNClob (int, NClob)"); }
1,103,697
protected Statement getStatement() throws SQLException { return control.getRealStatement(); }
public Statement getStatement() throws SQLException { return control.getRealStatement(); }
1,103,698
private void checkSufficientData() throws IOException { if (!limitInPlace) return; int remainingBytes = clearLimit(); if (remainingBytes > 0) throw new IOException(MessageService.getTextMessage(SQLState.SET_STREAM_INSUFFICIENT_DATA)); // if we had a limit try reading one more byte. // JDBC 3.0 states the stre...
private void checkSufficientData() throws IOException { if (!limitInPlace) return; int remainingBytes = clearLimit(); if (remainingBytes > 0) throw new IOException(MessageService.getTextMessage(SQLState.SET_STREAM_INEXACT_LENGTH_DATA)); // if we had a limit try reading one more byte. // JDBC 3.0 states the st...
1,103,699
private static boolean getOutValue(CallableStatement cs, int param, int jdbcType) throws SQLException, IOException { switch (jdbcType) { case Types.BIT: System.out.print("cs.getBoolean=" + cs.getBoolean(param) + " was null " + cs.wasNull()); return true; case Types.TINYINT: System.out.print("cs.getByte=" + c...
private static boolean getOutValue(CallableStatement cs, int param, int jdbcType) throws SQLException, IOException { switch (jdbcType) { case Types.BIT: System.out.print("cs.getBoolean=" + cs.getBoolean(param) + " was null " + cs.wasNull()); return true; case Types.TINYINT: System.out.print("cs.getByte=" + c...
1,103,700
private static boolean getValidValue(PreparedStatement ps, int jdbcType) throws SQLException, IOException { ResultSet rs = ps.executeQuery(); rs.next(); switch (jdbcType) { case Types.SMALLINT: System.out.print("getShort=" + rs.getShort(1) + " was null " + rs.wasNull()); return true; case Types.INTEGER: Sy...
private static boolean getValidValue(PreparedStatement ps, int jdbcType) throws SQLException, IOException { ResultSet rs = ps.executeQuery(); rs.next(); switch (jdbcType) { case Types.SMALLINT: System.out.print("getShort=" + rs.getShort(1) + " was null " + rs.wasNull()); return true; case Types.INTEGER: Sy...
1,103,701
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
1,103,702
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
1,103,703
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
1,103,704
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
private static void getXXX(PreparedStatement ps, int type, boolean isNull) throws SQLException, java.io.IOException { { System.out.print(" getByte="); ResultSet rs = ps.executeQuery(); rs.next(); boolean worked; SQLException sqleResult = null;; try { System.out.print(rs.getByte(1)); System.out.print(" was ...
1,103,705
public static void main(String[] args) throws Exception { isDB2jNet = TestUtil.isNetFramework(); System.out.println("Test parameterMapping starting"); System.out.println("STILL TO RESOLVE -- Cloudscape getBoolean() allow conversion on strings to match JCC"); System.out.println("STILL TO RESOLVE -- Cloudscape getXX...
public static void main(String[] args) throws Exception { isDB2jNet = TestUtil.isNetFramework(); System.out.println("Test parameterMapping starting"); System.out.println("STILL TO RESOLVE -- Cloudscape getBoolean() allow conversion on strings to match JCC"); System.out.println("STILL TO RESOLVE -- Cloudscape getXX...
1,103,706
public static void main(String[] args) throws Exception { isDB2jNet = TestUtil.isNetFramework(); System.out.println("Test parameterMapping starting"); System.out.println("STILL TO RESOLVE -- Cloudscape getBoolean() allow conversion on strings to match JCC"); System.out.println("STILL TO RESOLVE -- Cloudscape getXX...
public static void main(String[] args) throws Exception { isDB2jNet = TestUtil.isNetFramework(); System.out.println("Test parameterMapping starting"); System.out.println("STILL TO RESOLVE -- Cloudscape getBoolean() allow conversion on strings to match JCC"); System.out.println("STILL TO RESOLVE -- Cloudscape getXX...
1,103,707
public static void main(String[] args) throws Exception { isDB2jNet = TestUtil.isNetFramework(); System.out.println("Test parameterMapping starting"); System.out.println("STILL TO RESOLVE -- Cloudscape getBoolean() allow conversion on strings to match JCC"); System.out.println("STILL TO RESOLVE -- Cloudscape getXX...
public static void main(String[] args) throws Exception { isDB2jNet = TestUtil.isNetFramework(); System.out.println("Test parameterMapping starting"); System.out.println("STILL TO RESOLVE -- Cloudscape getBoolean() allow conversion on strings to match JCC"); System.out.println("STILL TO RESOLVE -- Cloudscape getXX...
1,103,708
private static boolean setValidValue(PreparedStatement ps, int param, int jdbcType) throws SQLException { switch (jdbcType) { case Types.BIT: ps.setBoolean(param, true); return true; case Types.TINYINT: ps.setByte(param, (byte) 32); return true; case Types.SMALLINT: ps.setShort(param, (short) 32); ret...
private static boolean setValidValue(PreparedStatement ps, int param, int jdbcType) throws SQLException { switch (jdbcType) { case Types.BIT: ps.setBoolean(param, true); return true; case Types.TINYINT: ps.setByte(param, (byte) 32); return true; case Types.SMALLINT: ps.setShort(param, (short) 32); ret...
1,103,709
private static void setXXX(Statement s, PreparedStatement psi, PreparedStatement psq, int type) throws SQLException, java.io.IOException { boolean executeBatchTests = true; // DERBY-349 - Disable executeBatch on these target types as invald conversions // using setByte() and executeBatch lead to the test hanging....
private static void setXXX(Statement s, PreparedStatement psi, PreparedStatement psq, int type) throws SQLException, java.io.IOException { boolean executeBatchTests = true; // DERBY-349 - Disable executeBatch on these target types as invald conversions // using setByte() and executeBatch lead to the test hanging....
1,103,711
private static void setXXX(Statement s, PreparedStatement psi, PreparedStatement psq, int type) throws SQLException, java.io.IOException { boolean executeBatchTests = true; // DERBY-349 - Disable executeBatch on these target types as invald conversions // using setByte() and executeBatch lead to the test hanging....
private static void setXXX(Statement s, PreparedStatement psi, PreparedStatement psq, int type) throws SQLException, java.io.IOException { boolean executeBatchTests = true; // DERBY-349 - Disable executeBatch on these target types as invald conversions // using setByte() and executeBatch lead to the test hanging....
1,103,712
private static void setXXX(Statement s, PreparedStatement psi, PreparedStatement psq, int type) throws SQLException, java.io.IOException { boolean executeBatchTests = true; // DERBY-349 - Disable executeBatch on these target types as invald conversions // using setByte() and executeBatch lead to the test hanging....
private static void setXXX(Statement s, PreparedStatement psi, PreparedStatement psq, int type) throws SQLException, java.io.IOException { boolean executeBatchTests = true; // DERBY-349 - Disable executeBatch on these target types as invald conversions // using setByte() and executeBatch lead to the test hanging....
1,103,713
public static void doTables(Connection conn, HashMap tableIdToNameMap) throws SQLException { // Prepare some statements for general use by this class. getColumnInfoStmt = conn.prepareStatement("SELECT C.COLUMNNAME, C.REFERENCEID, " + "C.COLUMNNUMBER FROM SYS.SYSCOLUMNS C, SYS.SYSTABLES T WHERE T.TABLEID = ? " +...
public static void doTables(Connection conn, HashMap tableIdToNameMap) throws SQLException { // Prepare some statements for general use by this class. getColumnInfoStmt = conn.prepareStatement("SELECT C.COLUMNNAME, C.REFERENCEID, " + "C.COLUMNNUMBER FROM SYS.SYSCOLUMNS C, SYS.SYSTABLES T WHERE T.TABLEID = ? " +...
1,103,714
void startClientTestMethods( Connection conn_main ) { PreparedStatement ps_main = null; stmtIsClosed = false; try { ps_main = conn_main.prepareStatement("select count(*) from " + "sys.systables"); conn = conn_main; ps = ps_main; ...
void startClientTestMethods( Connection conn_main ) { PreparedStatement ps_main = null; stmtIsClosed = false; try { ps_main = conn_main.prepareStatement("select count(*) from " + "sys.systables"); conn = conn_main; ps = ps_main; ...
1,103,715
void startEmbeddedTestMethods( Connection conn_main ) { PreparedStatement ps_main = null; stmtIsClosed = false; try { Statement s = conn_main.createStatement(); s.execute("create table clobtable3 (n int,clobcol CLOB)"); File file = new File("...
void startEmbeddedTestMethods( Connection conn_main ) { PreparedStatement ps_main = null; stmtIsClosed = false; try { Statement s = conn_main.createStatement(); s.execute("create table clobtable3 (n int,clobcol CLOB)"); File file = new File("...
1,103,716
public void rememberAsBest(int planType) throws StandardException { super.rememberAsBest(planType); if (childResult instanceof Optimizable) ((Optimizable) childResult).rememberAsBest(planType); }
public void rememberAsBest(int planType, Optimizer optimizer) throws StandardException { super.rememberAsBest(planType); if (childResult instanceof Optimizable) ((Optimizable) childResult).rememberAsBest(planType); }
1,103,717
public void rememberAsBest(int planType) throws StandardException { super.rememberAsBest(planType); if (childResult instanceof Optimizable) ((Optimizable) childResult).rememberAsBest(planType); }
public void rememberAsBest(int planType) throws StandardException { super.rememberAsBest(planType, optimizer); if (childResult instanceof Optimizable) ((Optimizable) childResult).rememberAsBest(planType); }
1,103,718