rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (conn_.isPhysicallyClosed()) {
if (conn_.isPhysicalConnClosed()) {
public synchronized void start(Xid xid, int flags) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "start", xid, flags); } if...
conn_.setXAState(Connection.XA_GLOBAL);
conn_.setXAState(Connection.XA_T1_ASSOCIATED);
public synchronized void start(Xid xid, int flags) throws XAException { NetAgent netAgent = conn_.netAgent_; int rc = XAResource.XA_OK; exceptionsOnXA = null; if (conn_.agent_.loggingEnabled()) { conn_.agent_.logWriter_.traceEntry(this, "start", xid, flags); } if...
return "tablePerms: grantee=" + getGrantee() +
return "tablePerms: grantee=" + getGrantee() + ",tablePermsUUID=" + getUUID() +
public String toString() { return "tablePerms: grantee=" + getGrantee() + ",grantor=" + getGrantor() + ",tableUUID=" + getTableUUID() + ",selectPriv=" + getSelectPriv() + ",deletePriv=" + getDeletePriv() + ",insertPriv=" + getInsertPriv() + ",updatePriv=" + getUpdatePri...
if (jvmName.startsWith("j9")&& testType.equals("java")) { copyOutDir = outDir; }else copyOutDir = runDir;
copyOutDir = runDir;
private static String createPropString() throws ClassNotFoundException, FileNotFoundException, IOException { // Check for existence of app properties and/or derby.properties files // Copy the derby.properties to the db base directory // Then create the -p string for the test String p...
&& other.rightOperand.isEquivalent(rightOperand));
&& ( (rightOperand == null && other.rightOperand == null) || (other.rightOperand != null && other.rightOperand.isEquivalent(rightOperand)) ) );
protected boolean isEquivalent(ValueNode o) throws StandardException { if (isSameNodeType(o)) { TernaryOperatorNode other = (TernaryOperatorNode)o; return (other.methodName.equals(methodName) && other.receiver.isEquivalent(receiver) && other.leftOperand.isEquivalent(leftOperand) && ot...
clientMessageIds.add(SQLState.DATA_TYPE_NOT_SUPPORTED);
static void initClientMessageIds() { // Add message ids that don't start with XJ here clientMessageIds.add(SQLState.NO_CURRENT_CONNECTION); clientMessageIds.add(SQLState.NOT_IMPLEMENTED); clientMessageIds.add(SQLState.CANNOT_CLOSE_ACTIVE_CONNECTION); clientMessageIds.add(SQLSta...
if ((leftOperand instanceof UnaryOperatorNode) && ((UnaryOperatorNode)leftOperand).isUnaryMinusOrPlusWithParameter()) throw StandardException.newException(SQLState.LANG_NON_BOOLEAN_WHERE_CLAUSE, "PARAMETER" ); if ((rightOperand instanceof UnaryOperatorNode) && ((UnaryOperatorNode)rightOperand).isUnaryMinusOrPlusWithPar...
public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { //following is to check if we have something like "? AND 1=1" or "2>1 OR ?" if (leftOperand.isParameterNode() || rightOperand.isParameterNode()) throw StandardException.newExceptio...
optimizerToBestPlanMap = null;
bestPlanMap = null;
public void init(Object correlationName, Object tableProperties) { this.correlationName = (String) correlationName; this.tableProperties = (Properties) tableProperties; tableNumber = -1; optimizerToBestPlanMap = null; }
addOrLoadBestPlanMapping(true, this);
updateBestPlanMap(ADD_PLAN, this);
public CostEstimate optimizeIt( Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { // It's possible that a call to optimize the left/right will cause // a new "truly the best" plan to be stored in the underlyin...
addOrLoadBestPlanMapping(true, optimizer);
updateBestPlanMap(ADD_PLAN, optimizer);
public void rememberAsBest(int planType, Optimizer optimizer) throws StandardException { AccessPath bestPath = null; switch (planType) { case Optimizer.NORMAL_PLAN: bestPath = getBestAccessPath(); break; case Optimizer.SORT_AVOIDANCE_PLAN: bestPath = getBestSortAvoidancePath(); break; default: i...
if (usingEmbedded()) { assertEquals("Unexpected SQL state for performing " + "operations on a closed statement.", SQLState.NO_CURRENT_CONNECTION, sqle.getSQLState()); } else { assertEquals("Unexpected SQL state for performing " + "operations on a closed statement.", "Invalid operation: statement closed", sqle.getMessa...
assertEquals("Unexpected SQL state for performing " + "operations on a closed statement.", SQLStateConstants.CONNECTION_EXCEPTION_CONNECTION_DOES_NOT_EXIST, sqle.getSQLState());
public void testStatementExecuteAfterConnectionClose() throws SQLException { con.close(); assertTrue("Connection should be closed after close()", con.isClosed()); try { stmt.executeQuery("select count(*) from stmtTable"); } catch (SQLException sqle) { ...
rs.next();
public static void testLevelsAndPrintStatistics(Connection con, String sql, boolean makeNewStatements) throws SQLException { System.out.println("***testLevelsAndPrintStatistics sql:" + sql + " makenewStatements:" + makeNewStatements); PreparedStatement ps = con.prepareStatement(sql); State...
SQLException ex = new SQLException(message, sqlState, severity, t);
t = wrapArgsForTransportAcrossDRDA( message, messageId, next, severity, t, args ); SQLException ex = new SQLException(message, sqlState, severity, t);
public SQLException getSQLException(String message, String messageId, SQLException next, int severity, Throwable t, Object[] args) { String sqlState = StandardException.getSQLStateFromIdentifier(messageId); SQLException ex = new SQLException(message, sqlState, severity, t); if (sqlSt...
String fullTableName;
TableName fullTableName;
public void expandAllsAndNameColumns(FromList fromList) throws StandardException { boolean expanded = false; ResultColumnList allExpansion; String fullTableName; /* First walk result column list looking for *'s to expand */ for (int index = 0; index < size(); index++) { ResultColumn rc = (ResultColumn)...
fullTableName = ((AllResultColumn) rc).getFullTableName();
TableName temp = rc.getTableNameObject(); if(temp != null) { String sName = temp.getSchemaName(); String tName = temp.getTableName(); fullTableName = makeTableName(sName,tName); } else fullTableName = null;
public void expandAllsAndNameColumns(FromList fromList) throws StandardException { boolean expanded = false; ResultColumnList allExpansion; String fullTableName; /* First walk result column list looking for *'s to expand */ for (int index = 0; index < size(); index++) { ResultColumn rc = (ResultColumn)...
optimizerEstimatedCost, closeCleanup);
optimizerEstimatedCost, userSuppliedOptimizerOverrides, closeCleanup);
public NestedLoopJoinResultSet(NoPutResultSet leftResultSet, int leftNumCols, NoPutResultSet rightResultSet, int rightNumCols, Activation activation, GeneratedMethod restriction, int resultSetNumber, boolean oneRowRightSide, boolean not...
throw Util.notImplemented();
return false;
public boolean autoCommitFailureClosesAllResultSets() throws SQLException { throw Util.notImplemented(); }
public ResultSet getClientInfoProperties() throws SQLException { throw Util.notImplemented();
public ResultSet getClientInfoProperties() throws SQLException { return getSimpleQuery("getClientInfoProperties");
public ResultSet getClientInfoProperties() throws SQLException { throw Util.notImplemented(); }
throw Util.notImplemented();
return RowIdLifetime.ROWID_UNSUPPORTED;
public RowIdLifetime getRowIdLifetime() throws SQLException { throw Util.notImplemented(); }
throw Util.notImplemented();
PreparedStatement s = getPreparedQuery("getSchemasWithParams"); s.setString(1, swapNull(catalog)); s.setString(2, swapNull(schemaPattern)); return s.executeQuery();
public ResultSet getSchemas(String catalog, String schemaPattern) throws SQLException { throw Util.notImplemented(); }
throw Util.notImplemented();
return false;
public boolean providesQueryObjectGenerator() throws SQLException { throw Util.notImplemented(); }
throw Util.notImplemented();
return true;
public boolean supportsStoredFunctionsUsingCallSyntax() throws SQLException { throw Util.notImplemented(); }
((AllocPage)undoPage).compressSpace(
((AllocPage)undoPage).undoCompressSpace(
public void undoMe( Transaction xact, BasePage undoPage, LogInstant CLRInstant, LimitObjectInput in) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT(undoPage != null, "undo Page null"); SanityManager.ASSERT( undoPage...
setContextClassLoader(jarURL);
public void testDatabaseInClasspath() throws SQLException, MalformedURLException { String dbName = "classpath:dbro"; DataSource ds = JDBCDataSource.getDataSource(dbName); try { ds.getConnection(); fail("opened database before it was on classpath"); } catc...
setContextClassLoader(null);
public void testDatabaseInClasspath() throws SQLException, MalformedURLException { String dbName = "classpath:dbro"; DataSource ds = JDBCDataSource.getDataSource(dbName); try { ds.getConnection(); fail("opened database before it was on classpath"); } catc...
cliParamDrdaTypes = null; cliParamLens = null; cliParamExtPositions = null;
drdaParamState_.clear(true);
protected void close() throws SQLException { if (ps != null) ps.close(); if (stmt != null) stmt.close(); currentDrdaRs.close(); resultSetTable = null; resultSetKeyList = null; ps = null; stmtPmeta = null; stmt = null; rslsetflg = null; procName = null; outputTypes = null; cliParamDrdaTypes = null; cl...
protected int getParamDRDAType(int index) { return ((Byte)cliParamDrdaTypes.get(index -1)).intValue(); }
protected int getParamDRDAType(int index) { return drdaParamState_.getDrdaType(index-1); }
protected int getParamDRDAType(int index) { return ((Byte)cliParamDrdaTypes.get(index -1)).intValue(); }
return ((Integer) cliParamLens.elementAt(index -1)).intValue();
return drdaParamState_.getDrdaLen(index-1);
protected int getParamLen(int index) { return ((Integer) cliParamLens.elementAt(index -1)).intValue(); }
cliParamDrdaTypes = new Vector(); cliParamLens = new Vector(); cliParamExtPositions = null;
drdaParamState_.clear(false);
protected void reset() { setTypDefValues(); withHoldCursor = -1; scrollType = ResultSet.TYPE_FORWARD_ONLY; concurType = ResultSet.CONCUR_READ_ONLY;; rowCount = 0; rslsetflg = null; maxrslcnt = 0; ps = null; stmtPmeta = null; isCall = false; procName = null; outputTypes = null; outputExpected = false; ...
hasJava5FairLocks = false;
RAFContainer(BaseDataFileFactory factory) { super(factory); // If Java 1.5 fair locks are available, construct one. if (hasJava5FairLocks) { try { // construct a lock with fairness set to true fairLock = fairLockConstructor.newInstance( new Object[] { Boolean.TRUE ...
hasJava5FairLocks = false;
protected void readPage(long pageNumber, byte[] pageData) throws IOException, StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT(!getCommittedDropState()); } long pageOffset = pageNumber * pageSize; // Use Java 1.5 fair locks if they are available. if (hasJava5FairLocks) { try { lock.inv...
DocumentBuilderFactory dBF = DocumentBuilderFactory.newInstance();
DocumentBuilderFactory dBF = null; try { dBF = DocumentBuilderFactory.newInstance(); } catch (Throwable e) { throw StandardException.newException( SQLState.LANG_MISSING_XML_CLASSES, "JAXP"); }
public SqlXmlUtil() throws StandardException { try { /* Note: Use of DocumentBuilderFactory means that we get * whatever XML parser is the "default" for the JVM in * use--and thus, we don't have to hard-code the parser * name, nor do we have to require that t...
} catch (StandardException se) { throw se;
public SqlXmlUtil() throws StandardException { try { /* Note: Use of DocumentBuilderFactory means that we get * whatever XML parser is the "default" for the JVM in * use--and thus, we don't have to hard-code the parser * name, nor do we have to require that t...
splitQRYDTA = null;
protected void close() throws SQLException { if (rs != null) rs.close(); rs = null; gotPrctyp = false; outovr_drdaType = null; scrollType = ResultSet.TYPE_FORWARD_ONLY; concurType = 0; rowCount = 0; rsLens = null; rsDRDATypes = null; rsPrecision = null; rsScale = null; extDtaObjects = null; rsExtPosit...
rowHolder = new TemporaryRowHolderImpl(tc, properties, resultDescription);
rowHolder = new TemporaryRowHolderImpl(activation, properties, resultDescription);
protected void openCore() throws StandardException { /* We must instantiate the VTI on each execution if any of the * parameters contain a ?. */ if (ps == null) { ps = (PreparedStatement) vtiRS.getVTIConstructor().invoke(activation); } if( ps instanceof DeferModification) { try ...
throw StandardException.newException(SQLState.LANG_FILE_ERROR, ioe.toString(),ioe);
throw StandardException.newException(SQLState.LANG_FILE_ERROR, ioe, ioe.toString());
public Object readJarFile(String schemaName, String sqlName) throws StandardException { DataDictionaryContext ddc = (DataDictionaryContext) ContextService.getContext(DataDictionaryContext.CONTEXT_ID); DataDictionary dd = ddc.getDataDictionary(); SchemaDescriptor sd = dd.getSchemaDescriptor(schemaName, null, true...
try
if ( connString == null )
public String toString() { try { return getRealConnection().toString(); } catch ( SQLException e ) { return "<no connection>"; } }
return getRealConnection().toString();
String wrappedString; try { wrappedString = getRealConnection().toString(); } catch ( SQLException e ) { wrappedString = "<none>"; } connString = this.getClass().getName() + "@" + this.hashCode() + ", Wrapped Connection = " + wrappedString;
public String toString() { try { return getRealConnection().toString(); } catch ( SQLException e ) { return "<no connection>"; } }
catch ( SQLException e ) { return "<no connection>"; }
return connString;
public String toString() { try { return getRealConnection().toString(); } catch ( SQLException e ) { return "<no connection>"; } }
if (pvs != null && pvs.getParameterCount() != 0) pvs.initialize(ps.getParameterTypes());
public final void setupActivation(ExecPreparedStatement ps, boolean scrollable) { preStmt = ps; if (ps != null) { // get the result set description resultDescription = ps.getResultDescription(); this.scrollable = scrollable; } else { resultDescription = null; this.scrollable = false; } }
System.setProperty("database", "jdbc:derby:net: + NETWORKSERVER_PORT + "/wombat;create=true");
System.setProperty("database", TestUtil.getJdbcUrlPrefix("localhost", NETWORKSERVER_PORT) + "wombat;create=true");
public void setProperties() { // Set required server properties. System.setProperty("database", "jdbc:derby:net://localhost:" + NETWORKSERVER_PORT + "/wombat;create=true"); System.setProperty("ij.user", "EDWARD"); System.setProperty("ij.password", "noodle"); }
DriverManager.getConnection("jdbc:derby:net: NETWORKSERVER_PORT + "/wombat;shutdown=true",
DriverManager.getConnection(TestUtil.getJdbcUrlPrefix("localhost", NETWORKSERVER_PORT) + "wombat;shutdown=true",
public void shutdown() { try { DriverManager.getConnection("jdbc:derby:net://localhost:" + NETWORKSERVER_PORT + "/wombat;shutdown=true", "EDWARD", "noodle"); System.out.println("FAIL - Shutdown returned connection"); } catch (SQLException sqle) { System.out.println("EXPECTED SHUTDOWN " + sqle.getMessage(...
for (Enumeration enum = eventListener.elements(); enum.hasMoreElements(); )
for (Enumeration e = eventListener.elements(); e.hasMoreElements(); )
public synchronized void notifyError(SQLException exception) { // only report fatal error to the connection pool manager if (exception.getErrorCode() < ExceptionSeverity.SESSION_SEVERITY) return; // tell my listeners an exception is about to be thrown if (eventListener != null && eventListener.size() > 0) { ...
(ConnectionEventListener)enum.nextElement();
(ConnectionEventListener)e.nextElement();
public synchronized void notifyError(SQLException exception) { // only report fatal error to the connection pool manager if (exception.getErrorCode() < ExceptionSeverity.SESSION_SEVERITY) return; // tell my listeners an exception is about to be thrown if (eventListener != null && eventListener.size() > 0) { ...
}
public synchronized void notifyError(SQLException exception) { // only report fatal error to the connection pool manager if (exception.getErrorCode() < ExceptionSeverity.SESSION_SEVERITY) return; // tell my listeners an exception is about to be thrown if (eventListener != null && eventListener.size() > 0) { ...
userSuppliedOptimizerOverrides,
public BulkTableScanResultSet(long conglomId, StaticCompiledOpenConglomInfo scoci, Activation activation, GeneratedMethod resultRowAllocator, int resultSetNumber, GeneratedMethod startKeyGetter, int startSearchOperator, GeneratedMethod stopKeyGetter, int stopSearchOperator, boolean sameStartStopPosition, Q...
BufferedReader logFile =
BufferedReader dumpFile =
private void dumpFileToSysOut(String fName) { try { BufferedReader logFile = new BufferedReader(new FileReader(fName)); if (logFile.readLine() != null) System.out.println("File " + fName + " was NOT " + "empty; refer to that file (in the test " + "directory) to see its contents."); else System....
if (logFile.readLine() != null)
String line = dumpFile.readLine(); if (line != null) {
private void dumpFileToSysOut(String fName) { try { BufferedReader logFile = new BufferedReader(new FileReader(fName)); if (logFile.readLine() != null) System.out.println("File " + fName + " was NOT " + "empty; refer to that file (in the test " + "directory) to see its contents."); else System....
"empty; refer to that file (in the test " + "directory) to see its contents.");
"empty. Contents are:\n" + "############## Begin File Contents ################\n"); do { System.out.println(line); line = dumpFile.readLine(); } while (line != null); System.out.println( "############## End File Contents ################"); }
private void dumpFileToSysOut(String fName) { try { BufferedReader logFile = new BufferedReader(new FileReader(fName)); if (logFile.readLine() != null) System.out.println("File " + fName + " was NOT " + "empty; refer to that file (in the test " + "directory) to see its contents."); else System....
System.out.println("FAILED: to dump log file."); e.printStackTrace();
System.out.println("FAILED: to dump file '" + fName + "'"); e.printStackTrace(System.out);
private void dumpFileToSysOut(String fName) { try { BufferedReader logFile = new BufferedReader(new FileReader(fName)); if (logFile.readLine() != null) System.out.println("File " + fName + " was NOT " + "empty; refer to that file (in the test " + "directory) to see its contents."); else System....
String [] fullArgs = new String[args.length+3];
String [] fullArgs = new String[args.length+2];
private void go(String dbName, String [] args) { jdbcProtocol = "jdbc:derby:"; String sourceDBUrl = jdbcProtocol + dbPath + separator + dbName; String [] fullArgs = new String[args.length+3]; fullArgs[0] = "-d"; fullArgs[1] = sourceDBUrl; fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fu...
fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fullArgs[i] = args[i-3];
for (int i = 2; i < fullArgs.length; i++) fullArgs[i] = args[i-2];
private void go(String dbName, String [] args) { jdbcProtocol = "jdbc:derby:"; String sourceDBUrl = jdbcProtocol + dbPath + separator + dbName; String [] fullArgs = new String[args.length+3]; fullArgs[0] = "-d"; fullArgs[1] = sourceDBUrl; fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fu...
dblook looker = new dblook(fullArgs);
private void go(String dbName, String [] args) { jdbcProtocol = "jdbc:derby:"; String sourceDBUrl = jdbcProtocol + dbPath + separator + dbName; String [] fullArgs = new String[args.length+3]; fullArgs[0] = "-d"; fullArgs[1] = sourceDBUrl; fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fu...
looker.go(sourceDBUrl, dbPath + separator + dbName);
new dblook(fullArgs);
private void go(String dbName, String [] args) { jdbcProtocol = "jdbc:derby:"; String sourceDBUrl = jdbcProtocol + dbPath + separator + dbName; String [] fullArgs = new String[args.length+3]; fullArgs[0] = "-d"; fullArgs[1] = sourceDBUrl; fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fu...
System.out.println("FAILED: "); e.printStackTrace();
System.out.println("FAILED: to run dblook: "); e.printStackTrace(System.out);
private void go(String dbName, String [] args) { jdbcProtocol = "jdbc:derby:"; String sourceDBUrl = jdbcProtocol + dbPath + separator + dbName; String [] fullArgs = new String[args.length+3]; fullArgs[0] = "-d"; fullArgs[1] = sourceDBUrl; fullArgs[2] = "-append"; for (int i = 3; i < fullArgs.length; i++) fu...
dblook looker = new dblook(new String[] {
new dblook(new String[] {
private void lookSix(String dbName) throws Exception { printAsHeader("\nDumping DDL w/ invalid url, and " + "writing\nerror to the log:\n"); // Url is intentionally incorrect; it will cause an error. dblook looker = new dblook(new String[] { "-o", dbName + ".sql", "-d", dbName } ); try { looker.go(dbNam...
try { looker.go(dbName, dbName); } catch (Exception e) { }
private void lookSix(String dbName) throws Exception { printAsHeader("\nDumping DDL w/ invalid url, and " + "writing\nerror to the log:\n"); // Url is intentionally incorrect; it will cause an error. dblook looker = new dblook(new String[] { "-o", dbName + ".sql", "-d", dbName } ); try { looker.go(dbNam...
dblook looker = new dblook(new String[] { "-d", sourceDBUrl, "-o", dbName + ".sql", "-td", "" } );
new dblook(new String[] { "-d", sourceDBUrl, "-o", dbName + ".sql", "-td", "" } );
private void lookThree(String dbName) throws Exception { printAsHeader("\nDumping DDL for all objects, " + "using\nNetwork Server:\n"); jdbcProtocol = "jdbc:derby:net://localhost:" + SERVER_PORT + "/"; String sourceDBUrl = jdbcProtocol + "\"" + dbPath + separator + dbName + "\":user=someusr;password=somepwd...
try { looker.go(sourceDBUrl, dbPath + separator + dbName);
private void lookThree(String dbName) throws Exception { printAsHeader("\nDumping DDL for all objects, " + "using\nNetwork Server:\n"); jdbcProtocol = "jdbc:derby:net://localhost:" + SERVER_PORT + "/"; String sourceDBUrl = jdbcProtocol + "\"" + dbPath + separator + dbName + "\":user=someusr;password=somepwd...
e.printStackTrace();
e.printStackTrace(System.out);
private void lookThree(String dbName) throws Exception { printAsHeader("\nDumping DDL for all objects, " + "using\nNetwork Server:\n"); jdbcProtocol = "jdbc:derby:net://localhost:" + SERVER_PORT + "/"; String sourceDBUrl = jdbcProtocol + "\"" + dbPath + separator + dbName + "\":user=someusr;password=somepwd...
parms[position].setStorableDataValue(sdv, jdbcTypeId, className);
parms[position].initialize(sdv, jdbcTypeId, className);
public void setStorableDataValue(DataValueDescriptor sdv, int position, int jdbcTypeId, String className) { if (SanityManager.DEBUG) { if (!(position >= 0 && position < parms.length)) { SanityManager.THROWASSERT("position value of " + position + " is out of range (0 to " + parms.length + ")"); } if ...
testEncryptionAlgorithm = parentProps.getProperty("testEncryptionAlgorithm");
public static Properties locateSuiteProperties(String suiteName, Properties parentProps, boolean isParent, boolean isTop) throws ClassNotFoundException, IOException, Exception { // Check for suite properties //System.out.println("Checking for suite properties"); String suitePr...
if (testEncryptionAlgorithm != null) jvmProps.addElement("testEncryptionAlgorithm=" + testEncryptionAlgorithm);
private static void runTests(Properties suiteProps, String suite) throws IOException, Exception { // save a copy of the system properties at this point; when runing with // java threads we need to reset the system properties to this list; // otherwise we start to accumulate extraneous properti...
if ( parentProperties.getProperty("testEncryptionAlgorithm") != null ) p.put("testEncryptionAlgorithm", testEncryptionAlgorithm); else testEncryptionAlgorithm = p.getProperty("testEncryptionAlgorithm");
private static void setSuiteProperties(Properties p, String suiteName, Properties parentProperties, boolean isParent, boolean isTop) throws ClassNotFoundException, IOException { // Some properties may have been set by the top suite // jvm, jvmflags, classpath, systemdiff, verbose, etc...
testEncryptionAlgorithm = suiteProperties.getProperty("testEncryptionAlgorithm");
private static void setTopSuiteProperties() throws ClassNotFoundException, IOException { framework = suiteProperties.getProperty("framework"); jversion = suiteProperties.getProperty("jversion"); //System.out.println("RunList top jversion= " + jversion); jvmName = suiteProperties.getProperty("jvm")...
DatabaseMetaData met; Connection con; Statement s;
public static void main(String[] args) { DatabaseMetaData met; Connection con; Statement s; try { // Using this for now instead of ij because ij.startJBMS() // returns null for classes built against JDK 1.6 con = new TestConnection().createEmbeddedConnection(); con.setAutoC...
con = new TestConnection().createEmbeddedConnection(); con.setAutoCommit(true); s = con.createStatement(); met = con.getMetaData(); if ( ! met.supportsStoredFunctionsUsingCallSyntax() ) { throw new Exception("FAIL: supportsStoredFunctionsUsingCallSyntax() " + "should return true"); } if ( met.autoCommitFailureClos...
runTests(new TestConnection().createEmbeddedConnection()); runTests(new TestConnection().createClientConnection()); } catch (SQLException e) { dumpSQLExceptions(e); } catch (Throwable e) { System.out.println("FAIL -- unexpected exception:"); e.printStackTrace(System.out); }
public static void main(String[] args) { DatabaseMetaData met; Connection con; Statement s; try { // Using this for now instead of ij because ij.startJBMS() // returns null for classes built against JDK 1.6 con = new TestConnection().createEmbeddedConnection(); con.setAutoC...
return null;
return new HeapRowLocation();
public DataValueDescriptor getNewNull() { return null; }
for (Enumeration e = newValues.propertyNames(); e.hasMoreElements();) { String key = (String) e.nextElement(); if (oldValues.getProperty(key) == null) { setDBP.setString(1, key); setDBP.executeUpdate(); }
try { for (Enumeration e = newValues.propertyNames(); e.hasMoreElements();) { String key = (String) e.nextElement(); if (oldValues.getProperty(key) == null) { setDBP.setString(1, key); setDBP.executeUpdate(); } } } catch (SQLException sqle) { if(!sqle.getSQLState().equals(SQLStateConstants.PROPERTY_UNSUPPORTED_CHANGE))...
protected void tearDown() throws java.lang.Exception { Connection conn = getConnection(); conn.setAutoCommit(false); CallableStatement setDBP = conn.prepareCall( "CALL SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY(?, NULL)"); // Clear all the system properties set by the new set ...
return costEstimate;
return getCurrentAccessPath().getCostEstimate();
public CostEstimate optimizeIt( Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { optimizer.costOptimizable( this, tableDescriptor, getCurrentAccessPath().getConglomerateDescriptor(), predList, ...
if (true) return false;
public boolean usesSqlStandardPermissions() throws StandardException { // RESOLVE use getDefaultAccessLevel() when SQL standard permissions are fully implemented // GrantRevoke TODO: May need to make database property value override system value PersistentSet tc = lcc.getTransactionExecute(); String modeS = ...
private static void checkTypeForSetAsciiStream( final int paramType, LogWriter logWriter ) throws SqlException {
private void checkTypeForSetAsciiStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
private static void checkTypeForSetAsciiStream( final int paramType, LogWriter logWriter ) throws SqlException { if ( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_ASCIISTREAM.checkType( paramType ) ) { PossibleTypes.throw22005E...
PossibleTypes.throw22005Exception(logWriter,
PossibleTypes.throw22005Exception(agent_.logWriter_,
private static void checkTypeForSetAsciiStream( final int paramType, LogWriter logWriter ) throws SqlException { if ( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_ASCIISTREAM.checkType( paramType ) ) { PossibleTypes.throw22005E...
private static void checkTypeForSetBlob(final int paramType, LogWriter logWriter ) throws SqlException {
private void checkTypeForSetBlob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
private static void checkTypeForSetBlob(final int paramType, LogWriter logWriter ) throws SqlException { if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_BLOB.checkType( paramType ) ){ PossibleTypes.throw22005Exception(logWriter, ...
PossibleTypes.throw22005Exception(logWriter,
PossibleTypes.throw22005Exception(agent_.logWriter_,
private static void checkTypeForSetBlob(final int paramType, LogWriter logWriter ) throws SqlException { if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_BLOB.checkType( paramType ) ){ PossibleTypes.throw22005Exception(logWriter, ...
private static void checkTypeForSetCharacterStream(final int paramType, LogWriter logWriter) throws SqlException{ if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM.checkType( paramType ) ){ PossibleTypes.throw22005Exception(logWriter,
private void checkTypeForSetCharacterStream(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex)); if (!PossibleTypes.POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM. checkType(paramType)) { PossibleTypes.throw22005Exception(agen...
private static void checkTypeForSetCharacterStream(final int paramType, LogWriter logWriter) throws SqlException{ if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CHARACTERSTREAM.checkType( paramType ) ){ PossibleTypes.throw2200...
private static void checkTypeForSetClob( int paramType, LogWriter logWriter ) throws SqlException {
private void checkTypeForSetClob(int parameterIndex) throws SqlException, SQLException { int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex));
private static void checkTypeForSetClob( int paramType, LogWriter logWriter ) throws SqlException { if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CLOB.checkType( paramType ) ){ PossibleTypes.throw22005Exception(logWriter, ...
PossibleTypes.throw22005Exception(logWriter,
PossibleTypes.throw22005Exception(agent_.logWriter_,
private static void checkTypeForSetClob( int paramType, LogWriter logWriter ) throws SqlException { if( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_CLOB.checkType( paramType ) ){ PossibleTypes.throw22005Exception(logWriter, ...
private ColumnMetaData getColumnMetaDataX() {
private ColumnMetaData getColumnMetaDataX() throws SqlException { checkForClosedStatement();
private ColumnMetaData getColumnMetaDataX() { return parameterMetaData_ != null ? parameterMetaData_ : ClientDriver.getFactory().newColumnMetaData(agent_.logWriter_, 0); }
super.checkForClosedStatement();
private ParameterMetaData getParameterMetaDataX() throws SqlException { super.checkForClosedStatement(); ParameterMetaData pm = ClientDriver.getFactory().newParameterMetaData ( getColumnMetaDataX() ); if (escapedProcedureCallWithResult_) { pm.escapedProcedureCallWithResult...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setArray(int parameterIndex, java.sql.Array x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setArray", parameterIndex, x); } parameterIn...
checkTypeForSetAsciiStream(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ), agent_.logWriter_);
checkTypeForSetAsciiStream(parameterIndex);
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBigDecimal(int parameterIndex, java.math.BigDecimal x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBigDecimal", parameterIndex, x); } ...
final int paramType = getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) );
checkTypeForSetBinaryStream(parameterIndex);
public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.trace...
if ( ! PossibleTypes.POSSIBLE_TYPES_IN_SET_BINARYSTREAM.checkType( paramType ) ){ PossibleTypes.throw22005Exception(agent_.logWriter_, java.sql.Types.VARBINARY, paramType ); }
public void setBinaryStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.trace...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
protected void setBinaryStreamX(int parameterIndex, java.io.InputStream x, int length) throws SqlException { parameterIndex = checkSetterPreconditions(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql....
checkTypeForSetBlob(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ), agent_.logWriter_);
checkTypeForSetBlob(parameterIndex);
public void setBlob(int parameterIndex, java.sql.Blob x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBlob", parameterIndex, x); } ...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBlobX(int parameterIndex, java.sql.Blob x) throws SqlException { parameterIndex = checkSetterPreconditions(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.BLOB; if (x == null) { setNullX(parameterIndex, java.sql.Types.BLOB);...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBoolean(int parameterIndex, boolean x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBoolean", parameterIndex, x); } ...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setByte(int parameterIndex, byte x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setByte", parameterIndex, x); } final i...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setBytesX(int parameterIndex, byte[] x) throws SqlException { parameterIndex = checkSetterPreconditions(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.LONGVARBINARY; if (x == null) { setNullX(parameterIndex, java.sql.Types.LON...
checkTypeForSetCharacterStream(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ), agent_.logWriter_); parameterIndex = checkSetterPreconditions(parameterIndex);
checkTypeForSetCharacterStream(parameterIndex); parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setCharacterStream", parameterIndex, x); } try {...
checkTypeForSetClob(getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ), agent_.logWriter_);
checkTypeForSetClob(parameterIndex);
public void setClob(int parameterIndex, java.sql.Clob x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setClob", parameterIndex, x); } ...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
void setClobX(int parameterIndex, java.sql.Clob x) throws SqlException { parameterIndex = checkSetterPreconditions(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.CLOB; if (x == null) { this.setNullX(parameterIndex, Types.CLOB); ...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setDate(int parameterIndex, java.sql.Date x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDate", parameterIndex, x); } ...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setDouble(int parameterIndex, double x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setDouble", parameterIndex, x); } f...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setFloat(int parameterIndex, float x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setFloat", parameterIndex, x); } fina...
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
void setIntX(int parameterIndex, int x) throws SqlException { parameterIndex = checkSetterPreconditions(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.INTEGER; setInput(parameterIndex, new Integer(x)); }
parameterIndex = checkSetterPreconditions(parameterIndex);
parameterIndex = checkForEscapedCallWithResult(parameterIndex);
public void setLong(int parameterIndex, long x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setLong", parameterIndex, x); } final i...