rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
logMsg("Value returned from ctssql.stmt: " + minBigDecimalVal); | logMsg("Value returned from stmt: " + minBigDecimalVal); | private static void test4975(Connection conn) throws Exception { BigDecimal minBigDecimalVal = null; BigDecimal rBigDecimalVal = null; String sminBigDecimalVal = null; PreparedStatement pstmt = null; ResultSet rs = null; Statement stmt = null; try { stmt = conn.createStatement(); String createTableSQL = "c... |
throw Util.generateCsSQLException(SQLState.COLUMN_NOT_FROM_BASE_TABLE, methodName); | throw Util.generateCsSQLException(SQLState.COLUMN_NOT_FROM_BASE_TABLE, methodName); if (!getMetaData().isWritable(columnIndex)) throw Util.generateCsSQLException(SQLState.LANG_COLUMN_NOT_UPDATABLE_IN_CURSOR, theResults.getResultDescription().getColumnDescriptor(columnIndex).getName(), getCursorName()); | protected void checksBeforeUpdateXXX(String methodName, int columnIndex) throws SQLException { checksBeforeUpdateOrDelete(methodName, columnIndex); //1)Make sure for updateXXX methods, the column position is not out of range ResultDescription rd = theResults.getResultDescription(); if (columnIndex ... |
* The subclass of SQLException thrown when the SQLState class value is * '42'. This indicates that the in-progress query has violated SQL * syntax rules. * | private void checkStatementValidity(SQLException sqle) throws SQLException { /* * The subclass of SQLException thrown when the SQLState class value is * '42'. This indicates that the in-progress query has violated SQL * syntax rules. * * Che... | |
* * This exception has the SQLState of 08003 which is represented * by the constant SQLState.ERROR_CLOSE | private void checkStatementValidity(SQLException sqle) throws SQLException { /* * The subclass of SQLException thrown when the SQLState class value is * '42'. This indicates that the in-progress query has violated SQL * syntax rules. * * Che... | |
if(bcc != null && (sqle.getSQLState().equals("08003") || sqle.getSQLState().startsWith(SQLState.LSE_COMPILATION_PREFIX)) ) { | if(bcc != null && isClosed()) { | private void checkStatementValidity(SQLException sqle) throws SQLException { /* * The subclass of SQLException thrown when the SQLState class value is * '42'. This indicates that the in-progress query has violated SQL * syntax rules. * * Che... |
bcc.onStatementErrorOccurred(this,sqle); | bcc.onStatementErrorOccurred((java.sql.PreparedStatement) applicationStatement,sqle); | private void checkStatementValidity(SQLException sqle) throws SQLException { /* * The subclass of SQLException thrown when the SQLState class value is * '42'. This indicates that the in-progress query has violated SQL * syntax rules. * * Che... |
if (bcc!=null) bcc.onStatementClose(this); | if (bcc!=null) { java.sql.PreparedStatement ps_app = (java.sql.PreparedStatement)applicationStatement; bcc.onStatementClose(ps_app); } | void closeActions() throws SQLException { if (bcc!=null) bcc.onStatementClose(this); //we release the resource for preparedStatement preparedStatement = null; try{ setupContextStack(); } catch (SQLException se) { //we may have already committed the transaction in which cas... |
Section section) throws SqlException { super(agent, connection,sql,section); | Section section,ClientPooledConnection cpc) throws SqlException { super(agent, connection,sql,section,cpc); | public PreparedStatement40(Agent agent, Connection connection, String sql, Section section) throws SqlException { super(agent, connection,sql,section); } |
if (!(leftOperand.isParameterNode()) && !(leftOperand.getTypeId().isStringTypeId())) | if (!(leftOperand.requiresTypeFromContext()) && !(leftOperand.getTypeId().isStringTypeId())) | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
!(rightOperand.isParameterNode()) && | !(rightOperand.requiresTypeFromContext()) && | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
if (receiver.isParameterNode()) { ((ParameterNode) receiver).setDescriptor( | if (receiver.requiresTypeFromContext()) { receiver.setType( | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
if (leftOperand.isParameterNode()) | if (leftOperand.requiresTypeFromContext()) | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
((ParameterNode) leftOperand).setDescriptor(receiver.getTypeServices()); | leftOperand.setType(receiver.getTypeServices()); | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
((ParameterNode) leftOperand).setDescriptor( | leftOperand.setType( | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
if (rightOperand != null && rightOperand.isParameterNode()) | if (rightOperand != null && rightOperand.requiresTypeFromContext()) | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
((ParameterNode) rightOperand).setDescriptor(receiver.getTypeServices()); | rightOperand.setType(receiver.getTypeServices()); | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
((ParameterNode) rightOperand).setDescriptor( | rightOperand.setType( | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); String pattern = null; // pattern cannot be a column if (leftOperand instanceof ColumnReference) throw StandardExcept... |
!(leftOperand.isParameterNode())) | !(leftOperand.requiresTypeFromContext())) | public ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException { boolean eliminateLikeComparison = false; String greaterEqualString = null; String lessThanString = null; String pattern; /* We... |
if ( lessThanString != null || ( leftOperand.isParameterNode() && | if ( lessThanString != null || ( leftOperand.requiresTypeFromContext() && | public ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException { boolean eliminateLikeComparison = false; String greaterEqualString = null; String lessThanString = null; String pattern; /* We... |
if (leftOperand.isParameterNode()) | if (leftOperand.requiresTypeFromContext()) | public ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException { boolean eliminateLikeComparison = false; String greaterEqualString = null; String lessThanString = null; String pattern; /* We... |
if (leftOperand.isParameterNode()) { | if (leftOperand.requiresTypeFromContext()) { | public ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException { boolean eliminateLikeComparison = false; String greaterEqualString = null; String lessThanString = null; String pattern; /* We... |
case C_NodeTypes.UNARY_DATE_TIMESTAMP_OPERATOR_NODE: return C_NodeNames.UNARY_DATE_TIMESTAMP_OPERATOR_NODE_NAME; | protected String nodeName(int nodeType) throws StandardException { switch (nodeType) { // WARNING: WHEN ADDING NODE TYPES HERE, YOU MUST ALSO ADD // THEM TO $WS/tools/release/config/dbms/cloudscapenodes.properties // xxxRESOLVE: why not make this a giant array and simply index into // it? manish Thu Feb ... | |
public void fetch(DataValueDescriptor[] row) | private void fetch(DataValueDescriptor[] row, boolean qualify) | public void fetch(DataValueDescriptor[] row) throws StandardException { if (scan_state != SCAN_INPROGRESS) throw StandardException.newException( SQLState.AM_SCAN_NOT_POSITIONED); if (SanityManager.DEBUG) { SanityManager.ASSERT(this.container != null, ... |
scan_position.current_slot, row, init_fetchDesc, | scan_position.current_slot, row, qualify ? init_fetchDesc : null, | public void fetch(DataValueDescriptor[] row) throws StandardException { if (scan_state != SCAN_INPROGRESS) throw StandardException.newException( SQLState.AM_SCAN_NOT_POSITIONED); if (SanityManager.DEBUG) { SanityManager.ASSERT(this.container != null, ... |
false); | false, this); | public ClientPooledConnection(ClientBaseDataSource ds, org.apache.derby.client.am.LogWriter logWriter, String user, String password) throws SQLException { try { logWriter_ = logWriter; ... |
true); | true, this); | protected NetXAConnection getNetXAConnection (ClientBaseDataSource ds, NetLogWriter logWriter, String user, String password, int rmId) throws SqlException { return new NetXACo... |
if(args.length != 2) { System.out.println("USAGE: java UpgradeTester_10_1_10_2 <location of old jars> <location of new jars>"); System.out.println("e.g: java UpgradeTester C:\\derby\\10.1\\lib C:\\derby\\trunk\\lib"); return; } String oldJarLoc = args[0]; String newJarLoc = args[1]; | String oldJarLoc = System.getProperty("derbyTesting.oldJarLocation"); boolean[] isJar = new boolean[1]; String newJarLoc = jvm.findCodeBase(isJar); | public static void main(String[] args) { // This test will use jar locations provided in command-line input till // the 10.1 jars are available in the repository (DERBY-1049) if(args.length != 2) { System.out.println("USAGE: java UpgradeTester_10_1_10_2 <location of old jars> <location of new jars>"); System... |
resultSet.bindResultColumns(targetTableDescriptor, targetVTI, resultSet.resultColumns, this, fromList); | getCompilerContext().pushCurrentPrivType(getPrivType()); resultSet.bindResultColumns(targetTableDescriptor, targetVTI, resultSet.resultColumns, this, fromList); getCompilerContext().popCurrentPrivType(); | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); ResultColumn rowLocationColumn = null; ValueNode rowLocationNode = null; T... |
readColsBitSet = new FormatableBitSet(); FromBaseTable fbt = getResultColumnList(resultSet.getResultColumns()); afterColumns = resultSet.getResultColumns().copyListAndObjects(); readColsBitSet = getReadMap(dataDictionary, | getCompilerContext().pushCurrentPrivType( Authorizer.NULL_PRIV); try { readColsBitSet = new FormatableBitSet(); FromBaseTable fbt = getResultColumnList(resultSet.getResultColumns()); afterColumns = resultSet.getResultColumns().copyListAndObjects(); readColsBitSet = getReadMap(dataDictionary, | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); ResultColumn rowLocationColumn = null; ValueNode rowLocationNode = null; T... |
afterColumns = fbt.addColsToList(afterColumns, readColsBitSet); resultColumnList = fbt.addColsToList(resultColumnList, readColsBitSet); int i = 1; int size = targetTableDescriptor.getMaxColumnID(); for (; i <= size; i++) { if (!readColsBitSet.get(i)) | afterColumns = fbt.addColsToList(afterColumns, readColsBitSet); resultColumnList = fbt.addColsToList(resultColumnList, readColsBitSet); int i = 1; int size = targetTableDescriptor.getMaxColumnID(); for (; i <= size; i++) | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); ResultColumn rowLocationColumn = null; ValueNode rowLocationNode = null; T... |
break; | if (!readColsBitSet.get(i)) { break; } | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); ResultColumn rowLocationColumn = null; ValueNode rowLocationNode = null; T... |
} if (i > size) { readColsBitSet = null; allColumns = true; } | if (i > size) { readColsBitSet = null; allColumns = true; } } finally { getCompilerContext().popCurrentPrivType(); } | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); ResultColumn rowLocationColumn = null; ValueNode rowLocationNode = null; T... |
getCompilerContext().popCurrentPrivType(); | public QueryTreeNode bind() throws StandardException { FromList fromList = (FromList) getNodeFactory().getNode( C_NodeTypes.FROM_LIST, getNodeFactory().doJoinOrderOptimization(), getContextManager()); ResultColumn rowLocationColumn = null; ValueNode rowLocationNode = null; T... | |
testNoParameterNames(conn); | public static void runTests( Connection conn) throws Throwable { try { testNegative(conn); testDelayedClassChecking(conn); testDuplicates(conn); ambigiousMethods(conn); zeroArgProcedures(conn); sqlProcedures(conn); dynamicResultSets(conn, ij.startJBMS()); testParameterTypes(conn); testOutparam... | |
} else if (sqlState.startsWith("08")) { | } else if (sqlState.startsWith(SQLState.CONNECTIVITY_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
} else if (sqlState.startsWith("22")) { | } else if (sqlState.startsWith(SQLState.SQL_DATA_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
} else if (sqlState.startsWith("23")) { | } else if (sqlState.startsWith(SQLState.INTEGRITY_VIOLATION_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
} else if (sqlState.startsWith("28")) { | } else if (sqlState.startsWith(SQLState.AUTHORIZATION_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
} else if (sqlState.startsWith("40")) { | } else if (sqlState.startsWith(SQLState.TRANSACTION_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
} else if (sqlState.startsWith("42")) { | } else if (sqlState.startsWith(SQLState.LSE_COMPILATION_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
} else if (sqlState.startsWith ("0A")) { | } else if (sqlState.startsWith (SQLState.UNSUPPORTED_PREFIX)) { | public SQLException getSQLException (String message, String sqlState, int errCode) { SQLException ex = null; if (sqlState == null) { ex = new SQLException(message, sqlState, errCode); } else if (sqlState.startsWith(... |
closeMethodArgument(acb, mb); | public void generateNormalizationResultSet( ActivationClassBuilder acb, MethodBuilder mb, int resultSetNumber, ResultDescription resultDescription) throws StandardException { int erdNumber = acb.addItem(resultDescription); // instance and first arg are pushed by caller mb.push(resultSetNumber... | |
ClassName.NoPutResultSet, 7); | ClassName.NoPutResultSet, 6); | public void generateNormalizationResultSet( ActivationClassBuilder acb, MethodBuilder mb, int resultSetNumber, ResultDescription resultDescription) throws StandardException { int erdNumber = acb.addItem(resultDescription); // instance and first arg are pushed by caller mb.push(resultSetNumber... |
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException{ getCallableStatement().setBlob(parameterName,inputStream,length); | public void setBlob(String parameterName, Blob x) throws SQLException { getCallableStatement().setBlob(parameterName, x); | public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException{ getCallableStatement().setBlob(parameterName,inputStream,length); } |
public void setClob(String parameterName, Reader reader, long length) throws SQLException{ getCallableStatement().setClob(parameterName,reader,length); | public void setClob(String parameterName, Clob x) throws SQLException { getCallableStatement().setClob(parameterName, x); | public void setClob(String parameterName, Reader reader, long length) throws SQLException{ getCallableStatement().setClob(parameterName,reader,length); } |
System.out.println("FAIL -- unexpected exception"); | static private void dumpSQLExceptions (SQLException se) { System.out.println("FAIL -- unexpected exception"); while (se != null) { JDBCTestDisplayUtil.ShowCommonSQLException(System.out, se); se = se.getNextException(); } } | |
public static void main(String[] args) { | public static void main(String[] args) throws Throwable { | public static void main(String[] args) { isDerbyNet = TestUtil.isNetFramework(); Connection con; ResultSetMetaData met; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "dc", "bi", "cbd", "vbd", "lvbd", "cl", "bl"}; System.out.println("Test resultset s... |
System.out.println("FAIL -- unexpected exception: " + e.toString()); | public static void main(String[] args) { isDerbyNet = TestUtil.isNetFramework(); Connection con; ResultSetMetaData met; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "dc", "bi", "cbd", "vbd", "lvbd", "cl", "bl"}; System.out.println("Test resultset s... | |
while (s.next()) | while (hasData) | 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... |
hasData = s.next(); | 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... | |
warnings_.setNextException(e); | warnings_.setNextWarning(e); | public void accumulateWarning(SqlWarning e) { if (warnings_ == null) { warnings_ = e; } else { warnings_.setNextException(e); } } |
return warnings_; | return warnings_ == null ? null : warnings_.getSQLWarning(); | public java.sql.SQLWarning getWarnings() throws SQLException { if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getWarnings", warnings_); } return warnings_; } |
Statement s = createStatementX(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, resultSetHoldability_); | Statement s = createStatementX(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, holdability()); | synchronized public java.sql.Statement createStatement() throws SQLException { try { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "createStatement"); } Statement s = createStatementX(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.Res... |
agent_.logWriter_.traceExit(this, "getHoldability", resultSetHoldability_); | agent_.logWriter_.traceExit(this, "getHoldability", holdability()); | public int getHoldability() throws SQLException { try { checkForClosedConnection(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getHoldability", resultSetHoldability_); } return resultSetHoldability_; } catc... |
return resultSetHoldability_; | return holdability(); | public int getHoldability() throws SQLException { try { checkForClosedConnection(); if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getHoldability", resultSetHoldability_); } return resultSetHoldability_; } catc... |
CallableStatement cs = prepareCallX(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, resultSetHoldability_); | CallableStatement cs = prepareCallX(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, holdability()); | synchronized public java.sql.CallableStatement prepareCall(String sql) throws SQLException { try { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "prepareCall", sql); } CallableStatement cs = prepareCallX(sql, java.sql.ResultSet.TYPE_F... |
PreparedStatement ps = newPreparedStatement_(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, resultSetHoldability_, java.sql.Statement.NO_GENERATED_KEYS, null); | PreparedStatement ps = newPreparedStatement_(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, holdability(), java.sql.Statement.NO_GENERATED_KEYS, null); | synchronized PreparedStatement prepareDynamicCatalogQuery(String sql) throws SqlException { PreparedStatement ps = newPreparedStatement_(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, resultSetHoldability_, java.sql.Statement.NO_GENERATED_KEYS, null); ps.isCatalogQuery... |
CallableStatement cs = prepareCallX(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, resultSetHoldability_); | CallableStatement cs = prepareCallX(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, holdability()); | synchronized public CallableStatement prepareMessageProc(String sql) throws SqlException { checkForClosedConnection(); CallableStatement cs = prepareCallX(sql, java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_ONLY, resultSetHoldability_); return cs; } |
resultSetHoldability_, | holdability(), | synchronized public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException { try { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "prepareStatement", sql); } PreparedStatement ps = prepareStatementX(sql, ... |
resultSetHoldability_); | holdability()); | synchronized public void releaseSavepoint(java.sql.Savepoint savepoint) throws SQLException { try { int saveXaState = xaState_; if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "releaseSavepoint", savepoint); } checkForClosedC... |
holdability = JDBC30Translation.HOLD_CURSORS_OVER_COMMIT; | protected void resetConnection(LogWriter logWriter, String user, ClientDataSource ds, boolean recomputeFromDataSource) throws SqlException { // clearWarningsX() will re-initialize the following properties ... | |
resultSetHoldability_ = holdability; } | this.holdability = holdability; } | synchronized public void setHoldability(int holdability) throws SQLException { try { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setHoldability", holdability); } checkForClosedConnection(); resultSetHoldability_ = holdab... |
resultSetHoldability_); | holdability()); | private Savepoint setSavepointX(Savepoint savepoint) throws SQLException { // Construct and flow a savepoint statement to server. Statement stmt = null; try { stmt = (Statement) createStatementX(java.sql.ResultSet.TYPE_FORWARD_ONLY, java.sql.ResultSet.CONCUR_READ_O... |
resultSetHoldability_); | holdability()); | synchronized public void setTransactionIsolation(int level) throws SQLException { try { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTransactionIsolation", level); } // Per jdbc spec (see java.sql.Connection.close() javadoc). ... |
rs.next(); | private static void testImplicitClose(Connection conn) throws SQLException { System.out.print("testImplicitClose(): "); final String proc = "org.apache.derbyTesting.functionTests.util.ProcedureTest." + "selectRows"; boolean savedAutoCommit = conn.getAutoCommit(); conn.setAutoCommit(false); Statement stmt =... | |
if ((xaState == XA_OPEN_IDLE) || (xaState == XA_LOCAL) || (xaState == XA_LOCAL_START_SENT)) { | if (xaState == XA_LOCAL) { | public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = NetXAResource.XARETVAL_XAOK; // initialize XARETVAL if ((x... |
setXAState(XA_OPEN_IDLE); | public void readCommit() throws SqlException { if (isXAConnection_) { // XA Connection int xaState = getXAState(); NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = NetXAResource.XARETVAL_XAOK; // initialize XARETVAL if ((x... | |
setXAState(XA_OPEN_IDLE); | setXAState(XA_LOCAL); | public void readRollback() throws SqlException { if (isXAConnection_) { // XA connections NetXACallInfo callInfo = xares_.callInfoArray_[currXACallInfoOffset_]; callInfo.xaRetVal_ = NetXAResource.XARETVAL_XAOK; // initialize XARETVAL readLocalXARollback_(); if (cal... |
if ((xaState == XA_OPEN_IDLE) || (xaState == XA_LOCAL) || (xaState == XA_LOCAL_START_SENT)) { | if (xaState == XA_LOCAL){ | public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if ((xaState == XA_OPEN_IDLE) || (xaState == XA_LOCAL) || ... |
xares_.nullXid; | NetXAResource.nullXid; | public void writeCommit() throws SqlException { // this logic must be in sync with willAutoCommitGenerateFlow() logic if (isXAConnection_) { // XA Connection int xaState = getXAState(); if ((xaState == XA_OPEN_IDLE) || (xaState == XA_LOCAL) || ... |
/* | 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... |
buffer = null; reader.close(); | buffer = null; | public void close() throws IOException { buffer = null; reader.close(); } |
return -1; | { close(); return -1; } | public int read() throws IOException { // first read if (blen < 0) fillBuffer(2); while (boff == blen) { // reached end of buffer, read more? if (eof) return -1; fillBuffer(0); } return buffer[boff++] & 0xff; } |
queryExpr.bindUntypedNullsToResultColumns(null); | private ProviderInfo[] bindViewDefinition( DataDictionary dataDictionary, CompilerContext compilerContext, LanguageConnectionContext lcc, NodeFactory nodeFactory, ResultSetNode queryExpr, ContextManager cm) throws StandardException { FromList fromList = (Fro... | |
columnInfo[ix].autoincInc, columnInfo[ix].autoincInc != 0 | columnInfo[ix].autoincInc | public void executeConstantAction( Activation activation ) throws StandardException { TableDescriptor td; UUID toid; SchemaDescriptor schemaDescriptor; ColumnDescriptor columnDescriptor; ViewDescriptor vd; LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictio... |
public ResultSetNode modifyAccessPaths() throws StandardException | public ResultSetNode modifyAccessPaths(PredicateList predList) throws StandardException | public ResultSetNode modifyAccessPaths() throws StandardException { int origFromListSize = fromList.size(); ResultColumnList leftRCList; ResultColumnList rightRCList; ResultSetNode leftResultSet; ResultSetNode rightResultSet; /* ** Modify the access path for each Optimizable, as necessary ** ** This sho... |
int origFromListSize = fromList.size(); ResultColumnList leftRCList; ResultColumnList rightRCList; ResultSetNode leftResultSet; ResultSetNode rightResultSet; | public ResultSetNode modifyAccessPaths() throws StandardException { int origFromListSize = fromList.size(); ResultColumnList leftRCList; ResultColumnList rightRCList; ResultSetNode leftResultSet; ResultSetNode rightResultSet; /* ** Modify the access path for each Optimizable, as necessary ** ** This sho... | |
optimizer.modifyAccessPaths(); costEstimate = optimizer.getFinalCost(); selectSubquerys.modifyAccessPaths(); if (whereSubquerys != null && whereSubquerys.size() > 0) | if (SanityManager.DEBUG) | public ResultSetNode modifyAccessPaths() throws StandardException { int origFromListSize = fromList.size(); ResultColumnList leftRCList; ResultColumnList rightRCList; ResultSetNode leftResultSet; ResultSetNode rightResultSet; /* ** Modify the access path for each Optimizable, as necessary ** ** This sho... |
whereSubquerys.modifyAccessPaths(); | SanityManager.ASSERT(optimizer != null, "SelectNode's optimizer not expected to be null when " + "modifying access paths."); | public ResultSetNode modifyAccessPaths() throws StandardException { int origFromListSize = fromList.size(); ResultColumnList leftRCList; ResultColumnList rightRCList; ResultSetNode leftResultSet; ResultSetNode rightResultSet; /* ** Modify the access path for each Optimizable, as necessary ** ** This sho... |
preJoinFL.removeAllElements(); preJoinFL.nondestructiveAppend(fromList); while (fromList.size() > 1) { leftResultSet = (ResultSetNode) fromList.elementAt(0); leftRCList = leftResultSet.getResultColumns(); leftResultSet.setResultColumns(leftRCList.copyListAndObjects()); leftRCList.genVirtualColumnNodes(leftResultSet,... | ((OptimizerImpl)optimizer).addPredicatesToList(predList); return modifyAccessPaths(); | public ResultSetNode modifyAccessPaths() throws StandardException { int origFromListSize = fromList.size(); ResultColumnList leftRCList; ResultColumnList rightRCList; ResultSetNode leftResultSet; ResultSetNode rightResultSet; /* ** Modify the access path for each Optimizable, as necessary ** ** This sho... |
if (predicateList != null) { if (wherePredicates == null) { wherePredicates = (PredicateList) getNodeFactory().getNode( C_NodeTypes.PREDICATE_LIST, getContextManager()); } Predicate pred = null; int sz = predicateList.size(); for (int i = sz - 1; i >= 0; i--) { pred = (Predicate)predicateList.getOptPredicate(i); i... | public ResultSetNode optimize(DataDictionary dataDictionary, PredicateList predicateList, double outerRows) throws StandardException { Optimizer optimizer; /* Optimize any subquerys before optimizing the underlying result set */ /* selectSubquerys is always allocated at bind() time */ if (S... | |
warnings_ = null; | try { checkForClosedResultSet(); } catch (SqlException se) { throw se.getSQLException(); } clearWarningsX(); | public final void clearWarnings() throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "clearWarnings"); } warnings_ = null; } } |
public java.sql.Statement getStatement() { | public java.sql.Statement getStatement() throws SQLException { try { checkForClosedResultSet(); } catch (SqlException se) { throw se.getSQLException(); } | public java.sql.Statement getStatement() { if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getStatement", statement_); } return statement_; } |
public final java.sql.SQLWarning getWarnings() { | public final java.sql.SQLWarning getWarnings() throws SQLException { try { checkForClosedResultSet(); } catch (SqlException se) { throw se.getSQLException(); } | public final java.sql.SQLWarning getWarnings() { if (agent_.loggingEnabled()) { agent_.logWriter_.traceExit(this, "getWarnings", warnings_); } return warnings_ == null ? null : warnings_.getSQLWarning(); } |
** xact severity. It is probably an unexpected | ** session severity. It is probably an unexpected | public void cleanupOnError(Throwable error) throws StandardException { if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("traceSavepoints")) { SanityManager.DEBUG_PRINT( "GenericStatementContext.cleanupOnError()", String.valueOf( hashCode() ) ); } } /* ** If it isn't a StandardException, th... |
*/ | ** 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 (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("traceSavepoints")) { SanityManager.DEBUG_PRINT( "GenericStatementContext.cleanupOnError()", String.valueOf( hashCode() ) ); } } /* ** If it isn't a StandardException, th... |
ExceptionSeverity.STATEMENT_SEVERITY; | ExceptionSeverity.SESSION_SEVERITY; | public void cleanupOnError(Throwable error) throws StandardException { if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("traceSavepoints")) { SanityManager.DEBUG_PRINT( "GenericStatementContext.cleanupOnError()", String.valueOf( hashCode() ) ); } } /* ** If it isn't a StandardException, th... |
return inUse && !rollbackParentContext && ((severity == ExceptionSeverity.STATEMENT_SEVERITY) || (severity == ExceptionSeverity.NO_APPLICABLE_SEVERITY)); | return inUse && !rollbackParentContext && ( severity == ExceptionSeverity.STATEMENT_SEVERITY ); | public boolean isLastHandler(int severity) { return inUse && !rollbackParentContext && ((severity == ExceptionSeverity.STATEMENT_SEVERITY) || (severity == ExceptionSeverity.NO_APPLICABLE_SEVERITY)); } |
cleanTestRepeatedStream(conn); | cleanTest(conn); | private static void executeTestOfRepeatedStream(Connection conn) throws SQLException, IOException { System.out.println("Test of RepeatedStream"); prepareTestRepeatedStream(conn); readFromRepeatedStream(conn); cleanTestRepeatedStream(conn); } |
prepareTestRepeatedReader(conn); readFromRepeatedReader(conn); cleanTest(conn); | private static void executeTestOfRepeatedStream(Connection conn) throws SQLException, IOException { System.out.println("Test of RepeatedStream"); prepareTestRepeatedStream(conn); readFromRepeatedStream(conn); cleanTestRepeatedStream(conn); } | |
xaConnection = xaDataSource.getXAConnection(userId,password); xaResource = xaConnection.getXAResource(); Connection conn = xaConnection.getConnection(); | Connection conn = getConnection(); if (conn == null) { xaConnection = xaDataSource.getXAConnection(userId,password); xaResource = xaConnection.getXAResource(); } else { conn.close(); } conn = xaConnection.getConnection(); | protected synchronized Connection makeConnection(Properties p) throws SQLException { if (xaDataSource == null) { xaDataSource = new EmbeddedXADataSource(); } xaDataSource.setDatabaseName(shortDbName); appendAttrString(p); if (attrString != null) xaDataSource.setConnectionAttributes(attrString); xaConnection... |
oldTimeout = getWaitTimeout(); setWaitTimeout(2); | protected void setUp() throws SQLException { Statement s = createStatement(); s.execute("create table EXCEPTION_TABLE1 (id integer " + "primary key, data varchar (5))"); s.execute("insert into EXCEPTION_TABLE1 (id, data)" + "values (1, 'data1')"); // low... | |
TestSuite testSuite = new TestSuite(TestJDBC40Exception.class, "TestJDBC40Exception suite"); return testSuite; | Test suite = TestConfiguration.defaultSuite(TestJDBC40Exception.class); return DatabasePropertyTestSetup.setLockTimeouts(suite, -1, 2); | public static Test suite() { TestSuite testSuite = new TestSuite(TestJDBC40Exception.class, "TestJDBC40Exception suite"); return testSuite; } |
setWaitTimeout(oldTimeout); | protected void tearDown() throws Exception { createStatement().execute("drop table EXCEPTION_TABLE1"); setWaitTimeout(oldTimeout); super.tearDown(); } | |
resultSet.getResultColumns().markColumnsInSelectListUpdatableByCursor( updatableColumns); | public QueryTreeNode bind() throws StandardException { DataDictionary dataDictionary; dataDictionary = getDataDictionary(); // This is how we handle queries like: SELECT A FROM T ORDER BY B. // We pull up the order by columns (if they don't appear in the SELECT // LIST) and let the bind() do the job. Note tha... | |
case 3: return activeFile.getInputStream(); | public final Object run() throws StandardException, InstantiationException, IllegalAccessException { try { switch(action) { case 1: Security.addProvider( (Provider)(Class.forName(cryptoProvider).newInstance())); break; case 2: // SECURITY PERMISSION - MP1 and/or OP4 // depends on the val... | |
verifyKeyFile = privAccessFile(sf,Attribute.CRYPTO_EXTERNAL_KEY_VERIFY_FILE,"r"); | verifyKeyInputStream = privAccessGetInputStream(sf,Attribute.CRYPTO_EXTERNAL_KEY_VERIFY_FILE); DataInputStream dis = new DataInputStream(verifyKeyInputStream); | public void verifyKey(boolean create, StorageFactory sf, Properties properties) throws StandardException { if(properties.getProperty(Attribute.CRYPTO_EXTERNAL_KEY) == null) return; // if firstTime ( ie during creation of database, initial key used ) // In order to allow for verifying the external key for future ... |
int checksumLen = verifyKeyFile.readInt(); | int checksumLen = dis.readInt(); | public void verifyKey(boolean create, StorageFactory sf, Properties properties) throws StandardException { if(properties.getProperty(Attribute.CRYPTO_EXTERNAL_KEY) == null) return; // if firstTime ( ie during creation of database, initial key used ) // In order to allow for verifying the external key for future ... |
verifyKeyFile.readFully(originalChecksum); | dis.readFully(originalChecksum); | public void verifyKey(boolean create, StorageFactory sf, Properties properties) throws StandardException { if(properties.getProperty(Attribute.CRYPTO_EXTERNAL_KEY) == null) return; // if firstTime ( ie during creation of database, initial key used ) // In order to allow for verifying the external key for future ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.