rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_setNString() { try { cs.setNString(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } } catch... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_setRowId() { try { cs.setRowId(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } ... |
if(!message.equals(e.getMessage())) { | if(SQLState.NOT_IMPLEMENTED.equals (e.getSQLState())) { | void t_setSQLXML() { try { cs.setSQLXML(null,null); System.out.println("Not Implemented Exception not thrown"); } catch(SQLException e) { if(!message.equals(e.getMessage())) { System.out.println("Unexpected SQLException"+e); } } catch(E... |
assertStatementError("42X62", cSt); | assertStatementError(JDBC.vmSupportsJDBC4() ? "38000" : "42X62", cSt); | private void checkIllegalUses(Statement st, String vtiTableName, String vtiMethodName, String args, String colName) throws SQLException { assertStatementError("42X05", st, "select * from syscs_diag." + vtiTableName); assertStatementError("42X01", st, "select * f... |
thenElseList.bindExpression(fromList, | if (thisIsNullIfNode) { BinaryComparisonOperatorNode bcon = (BinaryComparisonOperatorNode)testCondition; QueryTreeNode cast = getNodeFactory().getNode( C_NodeTypes.CAST_NODE, thenElseList.elementAt(0), bcon.getLeftOperand().getTypeServices(), getContextManager()); thenElseList.setElementAt(cast,0); } thenElseList.bi... | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { testCondition = testCondition.bindExpression(fromList, subqueryList, aggregateVector); thenElseList.bindExpression(fromList, subqueryList, aggregateVector); // Can't get the... |
public void init(Object testCondition, Object thenElseList) | public void init(Object testCondition, Object thenElseList, Object thisIsNullIfNode) | public void init(Object testCondition, Object thenElseList) { this.testCondition = (ValueNode) testCondition; this.thenElseList = (ValueNodeList) thenElseList; } |
this.thisIsNullIfNode = ((Boolean) thisIsNullIfNode).booleanValue(); | public void init(Object testCondition, Object thenElseList) { this.testCondition = (ValueNode) testCondition; this.thenElseList = (ValueNodeList) thenElseList; } | |
"Skipping access path due to excess memory usage of " + doubleParam + " bytes - maximum is " + | "Skipping access path due to excess memory usage, maximum is " + | public void trace(int traceFlag, int intParam1, int intParam2, double doubleParam, Object objectParam1) { ConglomerateDescriptor cd; String cdString; String traceString = null; // We can get called from outside optimizer when tracing is off if (!optimizerTrace) { return; } switch (traceFlag) { case ... |
Activation act) | LanguageConnectionContext lcc) | public static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, Activation act) throws StandardException { LanguageConnectionContext lcc = act.getLanguageConnectionContext(); if (SanityManager.DEBUG... |
LanguageConnectionContext lcc = act.getLanguageConnectionContext(); | public static void dropIndex(DependencyManager dm, DataDictionary dd, TransactionController tc, ConglomerateDescriptor cd, TableDescriptor td, Activation act) throws StandardException { LanguageConnectionContext lcc = act.getLanguageConnectionContext(); if (SanityManager.DEBUG... | |
dropIndex(dm, dd, tc, cd, td, activation); | dropIndex(dm, dd, tc, cd, td, activation.getLanguageConnectionContext()); | public void executeConstantAction(Activation activation) throws StandardException { TableDescriptor td; ConglomerateDescriptor cd; LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyManager(); Transac... |
org.apache.derby.client.am.Configuration.checkForExceptionsFromLoadConfiguration(logWriter); | protected void initConnection(org.apache.derby.client.am.LogWriter logWriter, String user, org.apache.derby.jdbc.ClientBaseDataSource dataSource) throws SqlException { if (logWriter != null) { ... | |
if (rs != null) { rs.clearWarnings(); } | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); ... | |
if (SanityManager.DEBUG) SanityManager.ASSERT(ret_fraction >= 0 && ret_fraction <= 1); | if (ret_fraction > 1) ret_fraction = 1; | public void getScanCost( int scan_type, long row_count, int group_size, boolean forUpdate, FormatableBitSet scanColumnList, DataValueDescriptor[] template, DataValueDescriptor[] startKeyValue, int ... |
throws StandardException | protected double booleanSelectivity(Optimizable optTable) { TypeId typeId = null; double retval = -1.0d; int columnSide; columnSide = columnOnOneSide(optTable); if (columnSide == LEFT) typeId = leftOperand.getTypeId(); else if (columnSide == RIGHT) typeId = rightOperand.getTypeId(); if (typeId != nul... | |
((node.isParameterNode()) && | ((node.requiresTypeFromContext()) && | public boolean compareWithKnownConstant(Optimizable optTable, boolean considerParameters) { ValueNode node = null; node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (considerParameters) { return (node instanceof ConstantNode) || ((node.isParameterNode()) && (((ParameterNode)node).getDe... |
else if (node.isParameterNode()) | else if (node.requiresTypeFromContext()) | public DataValueDescriptor getCompareValue(Optimizable optTable) throws StandardException { ValueNode node = null; /* The value being compared to is on the opposite side from ** the key column. */ node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (node instanceof ConstantNode) { retur... |
return ((ParameterNode)node).getDefaultValue(); | ParameterNode pn; if (node instanceof UnaryOperatorNode) pn = ((UnaryOperatorNode)node).getParameterOperand(); else pn = (ParameterNode) (node); return pn.getDefaultValue(); | public DataValueDescriptor getCompareValue(Optimizable optTable) throws StandardException { ValueNode node = null; /* The value being compared to is on the opposite side from ** the key column. */ node = keyColumnOnLeft(optTable) ? rightOperand : leftOperand; if (node instanceof ConstantNode) { retur... |
throws StandardException | public double selectivity(Optimizable optTable) { double retval = booleanSelectivity(optTable); if (retval >= 0.0d) return retval; switch (operatorType) { case RelationalOperator.EQUALS_RELOP: return 0.1; case RelationalOperator.NOT_EQUALS_RELOP: case RelationalOperator.LESS_THAN_RELOP: case Rela... | |
** xact severity. It is probably an unexpected | ** session severity. It is probably an unexpected | public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :... |
*/ | ** Store layer treats JVM error as session severity, ** hence to be consistent and to avoid getting rawstore ** protocol violation errors, we treat java errors here ** to be of session severity. */ | public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :... |
ExceptionSeverity.TRANSACTION_SEVERITY; | ExceptionSeverity.SESSION_SEVERITY; | public void cleanupOnError(Throwable error) throws StandardException { /* ** If it isn't a StandardException, then assume ** xact severity. It is probably an unexpected ** java error somewhere in the language. */ int severity = (error instanceof StandardException) ? ((StandardException) error).getSeverity() :... |
columnList[ ROUTINPERMSID_COL_NUM - 1] = | columnList[ ROUTINEPERMSID_COL_NUM - 1] = | public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ ROUTINPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), ROUTINPERMSID_COL_NUM, ... |
ROUTINPERMSID_COL_NUM, | ROUTINEPERMSID_COL_NUM, | public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ ROUTINPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "ROUTINEPERMSID"), ROUTINPERMSID_COL_NUM, ... |
row.setColumn( ROUTINPERMSID_COL_NUM, dvf.getCharDataValue(routinePermID)); | row.setColumn( ROUTINEPERMSID_COL_NUM, dvf.getCharDataValue(routinePermID)); | public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException { UUID oid; String routinePermID = null; DataValueDescriptor grantee = null; DataValueDescriptor grantor = null; String routineID = null; if( td == null) { grantee =... |
if (TestUtil.isEmbeddedFramework()) tester.runTest(args); | tester.runTest(args); | public static void main(String[] args) throws Exception { checkDataSource30 tester = new checkDataSource30(); // portions of this test do not run yet with client and so // are enabled only for embedded with // if (TestUtil.isEmbeddedFramework())blocks if (TestUtil.isEmbeddedFramework()) tester.runTest(args); ... |
if (! inOrder || resultSet.resultColumns.size() < numTableColumns) { resultSet = resultSet.enhanceRCLForInsert(numTableColumns, colMap, dataDictionary, targetTableDescriptor, targetVTI); } if (resultSet instanceof UnionNode) { resultColumnList.checkAutoincrementUnion(resultSet); } else resultColumnList.checkA... | enhanceAndCheckForAutoincrement(resultSet, inOrder, numTableColumns, colMap, dataDictionary, targetTableDescriptor, targetVTI); | public void bindStatement() throws StandardException { // We just need select privilege on the expressions getCompilerContext().pushCurrentPrivType( Authorizer.SELECT_PRIV); FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), ... |
if (seenLast && row > lastPosition) { return setAfterLastRow(); } | public ExecRow getAbsoluteRow(int row) throws StandardException { if ( ! isOpen ) { throw StandardException.newException(SQLState.LANG_RESULT_SET_NOT_OPEN, "absolute"); } attachStatementContext(); if (SanityManager.DEBUG) { if (!isTopResultSet) { SanityManager.THROWASSERT( this + "expected to be... | |
if (seenLast && currentPosition == lastPosition) { return setAfterLastRow(); } | public ExecRow getNextRowCore() throws StandardException { ExecRow result = null; beginTime = getCurrentTimeMillis(); if (!isOpen) throw StandardException.newException(SQLState.LANG_RESULT_SET_NOT_OPEN, "next"); /* Should we get the next row from the source or the hash table? */ if (currentPosition == positionI... | |
currentPosition = lastPosition + 1; afterLast = true; | if (lastPosition == 0) { currentPosition = 0; afterLast = false; } else { currentPosition = lastPosition + 1; afterLast = true; } | public ExecRow setAfterLastRow() throws StandardException { if (! seenLast) { getLastRow(); } currentPosition = lastPosition + 1; afterLast = true; beforeFirst = false; currentRow = null; return null; } |
String tableName, String selectStatement | String tableName, String selectQuery | public ExportResultSetForObject(Connection con, String schemaName, String tableName, String selectStatement ) { this.con = con; if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; } |
if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; | if( selectQuery == null) { this.schemaName = schemaName; this.tableName = tableName; this.selectQuery = "select * from " + (schemaName == null ? "\"" + tableName + "\"" : "\"" + schemaName + "\"" + "." + "\"" + tableName + "\""); } else { this.selectQuery = selectQuery; } | public ExportResultSetForObject(Connection con, String schemaName, String tableName, String selectStatement ) { this.con = con; if( selectStatement == null) this.entityName = (schemaName == null ? tableName : schemaName + "." + tableName); this.selectStatement = selectStatement; } |
private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numColumns; i++) { int ... | private void getMetaDataInfo() throws SQLException { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths ... | private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numC... |
} | private void getMetaDataInfo() throws Exception { ResultSetMetaData metaData = rs.getMetaData(); columnCount = metaData.getColumnCount(); int numColumns = columnCount; columnNames = new String[numColumns]; columnTypes = new String[numColumns]; columnLengths = new int[numColumns]; for (int i=0; i<numC... | |
public ResultSet getResultSet() throws Exception { rs = null; String queryString = getQuery(); Statement expStmt = con.createStatement(); rs = expStmt.executeQuery(queryString); getMetaDataInfo(); return rs; } | public ResultSet getResultSet() throws SQLException { rs = null; expStmt = con.createStatement(); rs = expStmt.executeQuery(selectQuery); getMetaDataInfo(); return rs; } | public ResultSet getResultSet() throws Exception { rs = null; String queryString = getQuery(); //execute select on passed enitity and keep it's meta data info ready Statement expStmt = con.createStatement(); rs = expStmt.executeQuery(queryString); getMetaDataInfo(); return rs; } |
{ if (!grant) { TablePermsDescriptor tempTablePermsDesc = dd.getTablePermissions(td.getUUID(), grantee); tablePermsDesc.setUUID(tempTablePermsDesc.getUUID()); } | public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll... | |
} | public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll... | |
{ if (!grant) { ColPermsDescriptor tempColPermsDescriptor = dd.getColumnPermissions(td.getUUID(), colPermsDescs[i].getType() ,grant, grantee); colPermsDescs[i].setUUID(tempColPermsDescriptor.getUUID()); } | public void executeGrantRevoke( Activation activation, boolean grant, List grantees) throws StandardException { LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); String currentUser = lcc.getAuthorizationId(); TransactionControll... | |
writeChecksum = logFactory.checkVersion(RawStoreFactory.DERBY_STORE_MAJOR_VERSION_10, RawStoreFactory.DERBY_STORE_MINOR_VERSION_1); | public LogAccessFile(LogToFile logFactory, StorageRandomAccessFile log, int bufferSize) { if (SanityManager.DEBUG) { if(SanityManager.DEBUG_ON("LogBufferOff")) bufferSize = 10; // make it very tiny } this.log = log; logFileSemaphore = log; this.logFactory ... | |
deleteString += (getTableName() + " WHERE CURRENT OF " + getServerCursorName()); | deleteString += (getTableName() + " WHERE CURRENT OF \"" + getServerCursorName() + "\""); | private String buildDeleteString() throws SqlException { String deleteString = "DELETE FROM "; // build the update string using the server's cursor name deleteString += (getTableName() + " WHERE CURRENT OF " + getServerCursorName()); if (isRowsetCursor_) { deleteString += " FO... |
if (!isValidCursorPosition_) throw new SqlException(agent_.logWriter_, "Invalid operation " + "at current cursor position."); | public void cancelRowUpdates() throws SqlException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "cancelRowUpdates"); } checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.... | |
if (!isValidCursorPosition_) throw new SqlException(agent_.logWriter_, "Invalid operation to " + "update at current cursor position"); | private final void checkUpdatePreconditions(int column) throws SqlException { checkForClosedResultSet(); checkForValidColumnIndex(column); if (resultSetConcurrency_ != java.sql.ResultSet.CONCUR_UPDATABLE) { throw new SqlException(agent_.logWriter_, "ResultSet is not updatable."); ... | |
isValidCursorPosition_ = false; | public void deleteRow() throws java.sql.SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "deleteRow"); } deleteRowX(); } } | |
private String getTableName() { | private String getTableName() throws SqlException { | private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_... |
if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) | int baseTableColumn = 0; int totalColumns = resultSetMetaData_.getColumnCount(); for (; baseTableColumn < totalColumns; baseTableColumn++) { if (resultSetMetaData_.sqlxSchema_[baseTableColumn] != null) break; } if (baseTableColumn == totalColumns) baseTableColumn = 0; if (resultSetMetaData_.sqlxRdbnam_[baseTableColu... | private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_... |
tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; | tableName += "\"" + resultSetMetaData_.sqlxRdbnam_[baseTableColumn] + "\"."; | private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_... |
if (!resultSetMetaData_.sqlxSchema_[0].equals("")) { tableName += resultSetMetaData_.sqlxSchema_[0].trim() + "."; | if (resultSetMetaData_.sqlxSchema_[baseTableColumn] != null && !resultSetMetaData_.sqlxSchema_[baseTableColumn].equals("")) { tableName += "\"" + resultSetMetaData_.sqlxSchema_[baseTableColumn] + "\"."; | private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_... |
tableName += resultSetMetaData_.sqlxBasename_[0].trim(); | if (resultSetMetaData_.sqlxBasename_[baseTableColumn] != null) { tableName += "\"" + resultSetMetaData_.sqlxBasename_[baseTableColumn] + "\""; } | private String getTableName() { String tableName = ""; if (resultSetMetaData_.sqlxRdbnam_[0] != null && !resultSetMetaData_.sqlxRdbnam_[0].equals("")) // catalog { tableName += resultSetMetaData_.sqlxRdbnam_[0].trim() + "."; } if (!resultSetMetaData_... |
updateRowX(); | if (updateRowX()) isValidCursorPosition_ = false; | public void updateRow() throws java.sql.SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "updateRow"); } updateRowX(); } } |
private void updateRowX() throws java.sql.SQLException { | private boolean updateRowX() throws java.sql.SQLException { | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... |
if (!isValidCursorPosition_) throw new SqlException(agent_.logWriter_, "Invalid operation to " + "update at current cursor position"); | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... | |
return; | return false; | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... |
if (preparedStatementForUpdate_ == null) { getPreparedStatementForUpdate(); | boolean didAnyColumnGetUpdated = false; for (int i=0; i < updatedColumns_.length; i++) { if (columnUpdated_[i]) { didAnyColumnGetUpdated = true; break; } | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... |
preparedStatementForUpdate_.setInput(i + 1, updatedColumns_[i]); | preparedStatementForUpdate_.setInput(paramNumber, updatedColumns_[i]); | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... |
preparedStatementForUpdate_.setInput(i + 1, null); | preparedStatementForUpdate_.setInput(paramNumber, null); | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... |
preparedStatementForUpdate_.setInput(i + 1, agent_.crossConverters_.setObject(resultSetMetaData_.types_[i], originalObj)); | preparedStatementForUpdate_.setInput(paramNumber, agent_.crossConverters_.setObject(resultSetMetaData_.types_[i], originalObj)); | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... |
return true; | private void updateRowX() throws java.sql.SQLException { checkForClosedResultSet(); if (isOnInsertRow_ || resultSetConcurrency_ == java.sql.ResultSet.CONCUR_READ_ONLY) { throw new SqlException(agent_.logWriter_, "This method cannot be invoked while the cursor is on the insert " + ... | |
throws SQLException { | throws Exception { | public void embeddedUpdateBlob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[] bytes1 = new by... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void embeddedUpdateBlob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byte[] bytes1 = new by... |
throws SQLException { | throws Exception { | public void embeddedUpdateBlobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byt... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void embeddedUpdateBlobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Blob)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted byt... |
throws SQLException { | throws Exception { | public void embeddedUpdateClob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted byte[] byt... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void embeddedUpdateClob() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserted byte[] byt... |
throws SQLException { | throws Exception { | public void embeddedUpdateClobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserte... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void embeddedUpdateClobStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol Clob)"); //Initial set of bytes used to create the Ascii Stream for the Clob //that has to be inserte... |
throws SQLException { | throws Exception { | public void testUpdateAsciiStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted byte[] bytes... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void testUpdateAsciiStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted byte[] bytes... |
throws SQLException { | throws Exception { | public void testUpdateAsciiStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted ... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void testUpdateAsciiStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); //Initial set of bytes used to create the Ascii Stream that has to //be inserted ... |
throws SQLException { | throws Exception { | public void testUpdateBinaryStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted ... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void testUpdateBinaryStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to //be inserted ... |
throws SQLException { | throws Exception { | public void testUpdateBinaryStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to ... |
try { is_ret.read(bytes_ret); is_ret.close(); } catch(IOException ioe) { fail("Error in the InputStream"); } | is_ret.read(bytes_ret); is_ret.close(); | public void testUpdateBinaryStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR FOR BIT DATA)"); //Initial set of bytes used to create the Binary Stream that has to ... |
throws SQLException { | throws Exception { | public void testUpdateCharacterStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; StringRead... |
try { r_ret.read(c_ret); } catch(IOException ioe) { fail("Error in reading the InputStream"); } | r_ret.read(c_ret); | public void testUpdateCharacterStream() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"; StringRead... |
throws SQLException { | throws Exception { | public void testUpdateCharacterStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"... |
try { r_ret.read(c_ret); } catch(IOException ioe) { fail("Error in reading the InputStream"); } | r_ret.read(c_ret); | public void testUpdateCharacterStreamStringParameterName() throws SQLException { //create the table stmt.execute("create table UpdateTestTable_ResultSet (sno int, " + "datacol LONG VARCHAR)"); String str = "Test data"; String str_for_update = "Test data used for update"... |
return suite; | return new NetworkServerTestSetup(suite); | public static Test suite() { TestSuite suite = new TestSuite("jdbcapi"); suite.addTest(ConcurrencyTest.suite()); suite.addTest(HoldabilityTest.suite()); suite.addTest(ProcedureTest.suite()); suite.addTest(SURQueryMixTest.suite()); suite.addTest(SURTest.suite()); suite.addTest(UpdateXXXTest.suite()); suite.addT... |
dvd.data2c = this.data2c; dvd.sqlScale = this.sqlScale; | if (this.data2c != null) { dvd.data2c = new byte[data2c.length]; System.arraycopy(data2c, 0, dvd.data2c, 0, data2c.length); dvd.sqlScale = sqlScale; } | public DataValueDescriptor getClone() { BinaryDecimal dvd = (BinaryDecimal) getNewNull(); dvd.data2c = this.data2c; dvd.sqlScale = this.sqlScale; return dvd; } |
DataValueDescriptor[] sourceRowArray = sourceRow.getRowArrayClone(); | DataValueDescriptor[] sourceRowArray = sourceRow.getRowArray(); | private void addRowToHashTable(ExecRow sourceRow, int position, RowLocation rowLoc, boolean rowUpdated) throws StandardException { DataValueDescriptor[] hashRowArray = new DataValueDescriptor[sourceRowWidth + extraColumns]; // 1st element is the key hashRowArray[0] = new SQLInteger(position); if (isForUpdat... |
ht.put(false, hashRowArray); | ht.put(true, hashRowArray); | private void addRowToHashTable(ExecRow sourceRow, int position, RowLocation rowLoc, boolean rowUpdated) throws StandardException { DataValueDescriptor[] hashRowArray = new DataValueDescriptor[sourceRowWidth + extraColumns]; // 1st element is the key hashRowArray[0] = new SQLInteger(position); if (isForUpdat... |
ht.put(false, hashRowArray); | ht.put(true, hashRowArray); | public void markRowAsDeleted() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); RowLocation rowLoc = (RowLocation) hashRowArray[POS_ROWLOCATION]; ht.remove(new SQLInteger(currentPosition)); ((SQ... |
int[] keyCols = new int[1]; | final int[] keyCols = new int[] { 0 }; | public void openCore() throws StandardException { beginTime = getCurrentTimeMillis(); if (SanityManager.DEBUG) SanityManager.ASSERT( ! isOpen, "ScrollInsensitiveResultSet already open"); source.openCore(); isOpen = true; numOpens++; /* Create the hash table. We pass * null in as the row source a... |
ExecRow newRow = row.getClone(); | ExecRow newRow = row; boolean undoProjection = false; | public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row.getClone(); if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(newRow); } positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (Da... |
doBaseRowProjection(newRow); | doBaseRowProjection(row); undoProjection = true; | public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row.getClone(); if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(newRow); } positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (Da... |
if (undoProjection) { final DataValueDescriptor[] newRowData = newRow.getRowArray(); final int[] origPos =((ProjectRestrictResultSet)source). getBaseProjectMapping(); final DataValueDescriptor[] backedData = getRowArrayFromHashTable(currentPosition); for (int i=0; i<origPos.length; i++) { if (origPos[i]>=0) { row... | public void updateRow(ExecRow row) throws StandardException { ExecRow newRow = row.getClone(); if (source instanceof ProjectRestrictResultSet) { newRow = ((ProjectRestrictResultSet)source). doBaseRowProjection(newRow); } positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (Da... | |
}finally { synchronized(this) { inRemove = false; notifyAll(); } } | protected void removeContainer(LogInstant instant, boolean leaveStub) throws StandardException { // discard all of my pages in the cache pageCache.discard(identity); stubbify(instant); // RESOLVE: leaveStub false } | |
} | case BACKUP_CONTAINER_ACTION: { privBackupContainer(actionContainerHandle, actionBackupLocation); return null; } } | public Object run() throws StandardException { switch( actionCode) { case GET_FILE_NAME_ACTION: return privGetFileName( actionIdentity, actionStub, actionErrorOK, actionTryAlternatePath); case CREATE_CONTAINER_ACTION: { StorageFile file = privGetF... |
while(inBackup) { try { wait(); } catch (InterruptedException ie) { throw StandardException.interrupt(ie); } } | protected void truncatePages( long lastValidPagenum) throws StandardException { synchronized(this) { boolean inwrite = false; try { dataFactory.writeInProgress(); inwrite = true; fileData.setLength((lastValidPagenum... | |
public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException { ps.setBlob(position,null); | public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException { if (isNull()) { ps.setBlob(position, null); return; } ps.setBytes(position, getBytes()); | public void setInto(PreparedStatement ps, int position) throws SQLException, StandardException { ps.setBlob(position,null); } |
if (costEstimate == null) | if (finalCostEstimate == null) | public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; } |
"costEstimate is not expected to be null for " + | "finalCostEstimate is not expected to be null for " + | public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; } |
return costEstimate; | return finalCostEstimate; | public CostEstimate getFinalCostEstimate() { if (SanityManager.DEBUG) { if (costEstimate == null) { SanityManager.THROWASSERT( "costEstimate is not expected to be null for " + getClass().getName()); } } return costEstimate; } |
((OptimizerImpl)optimizer).prepForNextRound(); | optimizer.prepForNextRound(); | protected Optimizer getOptimizer( OptimizableList optList, OptimizablePredicateList predList, DataDictionary dataDictionary, RequiredRowOrdering requiredRowOrdering) throws StandardException { if (optimizer == null) { /* Get an optimizer. */ OptimizerFactory optimizerFactory = getLangua... |
private boolean oneAuthHasPermissionOnTable(DataDictionary dd, String authorizationId, boolean forGrant) | protected boolean oneAuthHasPermissionOnTable(DataDictionary dd, String authorizationId, boolean forGrant) | private boolean oneAuthHasPermissionOnTable(DataDictionary dd, String authorizationId, boolean forGrant) throws StandardException { TablePermsDescriptor perms = dd.getTablePermissions( tableUUID, authorizationId); if( perms == null) return false; String priv = null; switch( privType) { case Authorizer.SE... |
alloc_page.compress(this); | protected void compressContainer( RawTransaction ntt, BaseContainerHandle allocHandle) throws StandardException { AllocPage alloc_page = null; AllocPage prev_alloc_page = null; if (firstAllocPageNumber == ContainerHandle.INVALID_PAGE_NUMBER) { // no allocation pages in container... | |
lastUnfilledPage = ContainerHandle.INVALID_PAGE_NUMBER; lastAllocatedPage = ContainerHandle.INVALID_PAGE_NUMBER; alloc_page.compress(ntt, this); | protected void compressContainer( RawTransaction ntt, BaseContainerHandle allocHandle) throws StandardException { AllocPage alloc_page = null; AllocPage prev_alloc_page = null; if (firstAllocPageNumber == ContainerHandle.INVALID_PAGE_NUMBER) { // no allocation pages in container... | |
public LogAccessFile( StorageRandomAccessFile log, int bufferSize) throws IOException | public LogAccessFile(LogToFile logFactory, StorageRandomAccessFile log, int bufferSize) | public LogAccessFile( StorageRandomAccessFile log, int bufferSize) throws IOException { if (SanityManager.DEBUG) { if(SanityManager.DEBUG_ON("LogBufferOff")) bufferSize = 10; // make it very tiny } this.log = log; logFileSemaphore = log; if (SanityManager.DEBUG)... |
if(writeChecksum) { checksumLogOperation = new ChecksumOperation(); checksumLogOperation.init(); checksumLogRecord = new LogRecord(); checksumLogRecord.setValue(null, checksumLogOperation); checksumLength = checksumLogRecord.getStoredSize(checksumLogOperation.group(), null) + checksumLogOperation.getStoredSize(... | public LogAccessFile( StorageRandomAccessFile log, int bufferSize) throws IOException { if (SanityManager.DEBUG) { if(SanityManager.DEBUG_ON("LogBufferOff")) bufferSize = 10; // make it very tiny } this.log = log; logFileSemaphore = log; if (SanityManager.DEBUG)... | |
public void close() throws IOException | public void close() throws IOException, StandardException | public void close() throws IOException { if (SanityManager.DEBUG) { if (currentBuffer.position != 0) SanityManager.THROWASSERT( "Log file being closed with data still buffered " + currentBuffer.position + " " + currentBuffer.bytes_free); } flushLogAccessFile(); synchronized(log... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.