bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
public static void main(String[] args) { Connection conn, connreturn; Statement stmt, stmtreturn; System.out.println("Test connection20 starting"); try { // use the ij utility to read the property file and // make the initial connection. ij.getPropertyArg(args); conn = ij.startJBMS(); isDerbyNet = Te...
public static void main(String[] args) { Connection conn, connreturn; Statement stmt, stmtreturn; System.out.println("Test connection20 starting"); try { // use the ij utility to read the property file and // make the initial connection. ij.getPropertyArg(args); conn = ij.startJBMS(); isDerbyNet = Te...
1,107,983
public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the context is null, we return null, // per SQL/XML[2006] 6.17:GR.1.a.ii.1. if (result == null) result = (XMLDataValue)getNewNull(); ...
public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the context is null, we return null, // per SQL/XML[2006] 6.17:GR.1.a.ii.1. if (result == null) result = (XMLDataValue)getNewNull(); ...
1,107,984
public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the context is null, we return null, // per SQL/XML[2006] 6.17:GR.1.a.ii.1. if (result == null) result = (XMLDataValue)getNewNull(); ...
public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the context is null, we return null, // per SQL/XML[2006] 6.17:GR.1.a.ii.1. if (result == null) result = (XMLDataValue)getNewNull(); ...
1,107,985
public DataValueDescriptor getClone() { return new XML(xmlStringValue, getXType()); }
public DataValueDescriptor getClone() { return new XML(xmlStringValue, getXType(), hasTopLevelAttr()); }
1,107,987
private void add_row_to_hash_table( Hashtable hash_table, Object key, Object[] row) throws StandardException { Object duplicate_value = null; if ((duplicate_value = hash_table.put(key, row)) != null) { if (!remove_duplicates) { Vector...
private void add_row_to_hash_table( Hashtable hash_table, Object key, Object[] row) throws StandardException { Object duplicate_value = null; if ((duplicate_value = hash_table.put(key, row)) == null) doSpaceAccounting( row, false); else { if (!remove_duplicate...
1,107,990
private Object[] cloneRow(Object[] old_row) throws StandardException { Object[] new_row = new DataValueDescriptor[old_row.length]; // the only difference between getClone and cloneObject is cloneObject does // not objectify a stream. We use getClone here. Beetle 4896. for (int i = 0; i <...
static Object[] cloneRow(Object[] old_row) throws StandardException { Object[] new_row = new DataValueDescriptor[old_row.length]; // the only difference between getClone and cloneObject is cloneObject does // not objectify a stream. We use getClone here. Beetle 4896. for (int i = 0; i < ...
1,107,992
public Enumeration elements() throws StandardException { return(hash_table.elements()); }
public Enumeration elements() throws StandardException { if( diskHashtable == null) return(hash_table.elements()); return new BackingStoreHashtableEnumeration(); }
1,107,994
public Object get(Object key) throws StandardException { return(hash_table.get(key)); }
public Object get(Object key) throws StandardException { Object obj = hash_table.get(key); if( diskHashtable == null || obj != null) return obj; return diskHashtable.get( key); }
1,107,995
public Object remove( Object key) throws StandardException { return(hash_table.remove(key)); }
public Object remove( Object key) throws StandardException { Object obj = hash_table.remove(key); if( obj != null || diskHashtable == null) return obj; return diskHashtable.remove(key); }
1,107,996
public int size() throws StandardException { return(hash_table.size()); }
public int size() throws StandardException { if( diskHashtable == null) return(hash_table.size()); return hash_table.size() + diskHashtable.size(); }
1,107,997
public static javax.sql.DataSource getDataSource(Properties attrs) { String classname; if(HAVE_DRIVER_CLASS) { classname = getDataSourcePrefix() + REGULAR_DATASOURCE_STRING + "DataSource"; // The JDBC 4.0 implementation of the DataSource interface // is suffixed with "40". Use it if it is available and // t...
public static javax.sql.DataSource getDataSource(Properties attrs) { String classname; if(HAVE_DRIVER_CLASS) { classname = getDataSourcePrefix() + REGULAR_DATASOURCE_STRING + "DataSource"; // The JDBC 4.0 implementation of the DataSource interface // is suffixed with "40". Use it if it is available and // t...
1,107,999
private long getLastPageNumber(BaseContainerHandle handle) throws StandardException { long retval; synchronized(allocCache) { retval = allocCache.getLastPageNumber(handle, firstAllocPageNumber); } return retval; }
protected long getLastPageNumber(BaseContainerHandle handle) throws StandardException { long retval; synchronized(allocCache) { retval = allocCache.getLastPageNumber(handle, firstAllocPageNumber); } return retval; }
1,108,001
public static Test suite() { TestSuite suite = new TestSuite("Test for iceClient"); //$JUnit-BEGIN$ suite.addTestSuite(MainTest.class); //$JUnit-END$ return suite; }
public static Test suite() { TestSuite suite = new TestSuite("Test for iceClient"); //$JUnit-BEGIN$ //$JUnit-END$ return suite; }
1,108,002
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate( "create procedure checkConn2(in d...
protected void runTest(String[] args) throws Exception { // Check the returned type of the JDBC Connections. ij.getPropertyArg(args); Connection dmc = ij.startJBMS(); dmc.createStatement().executeUpdate("create table y(i int)"); dmc.createStatement().executeUpdate( "create procedure checkConn2(in d...
1,108,003
private void startNetworkServer() { String hostName = null; int serverPort; // Determines which host and port to run the network server on // This is based how it is done in the test testSecMec.java String serverName = TestUtil.getHostName(); if (serverName.equals("localhos...
private void startNetworkServer() { String hostName = null; int serverPort; // Determines which host and port to run the network server on // This is based how it is done in the test testSecMec.java String serverName = TestUtil.getHostName(); if (serverName.equals("localhos...
1,108,004
int getScanArgs(TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList storeRestrictionList, OptimizablePredicateList nonStoreRestrictionList, ExpressionClassBuilderInterface acb, int bulkFetch, MethodBuilder resultRowAllocator, int ...
int getScanArgs(TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList storeRestrictionList, OptimizablePredicateList nonStoreRestrictionList, ExpressionClassBuilderInterface acb, int bulkFetch, MethodBuilder resultRowAllocator, int ...
1,108,006
public final void closeX() throws SqlException { if (!openOnClient_) { return; } try { if (openOnServer_) { flowCloseAndAutoCommitIfNotAutoCommitted(); } else { flowAutoCommitIfNotAutoCommitted(); // in case of early close ...
public final void closeX() throws SqlException { if (!openOnClient_) { return; } try { if (openOnServer_) { flowCloseAndAutoCommitIfNotAutoCommitted(); } else { statement_.resultSetCommitting(this); // in case of early close ...
1,108,007
public final void closeX() throws SqlException { if (!openOnClient_) { return; } try { if (openOnServer_) { flowCloseAndAutoCommitIfNotAutoCommitted(); } else { flowAutoCommitIfNotAutoCommitted(); // in case of early close ...
public final void closeX() throws SqlException { if (!openOnClient_) { return; } try { if (openOnServer_) { flowCloseAndAutoCommitIfNotAutoCommitted(); } else { flowAutoCommitIfNotAutoCommitted(); // in case of early close ...
1,108,008
void flowCloseAndAutoCommitIfNotAutoCommitted() throws SqlException { agent_.beginWriteChain(statement_); writeCloseAndAutoCommitIfNotAutoCommitted(); agent_.flow(statement_); readCloseAndAutoCommitIfNotAutoCommitted(); agent_.endReadChain(); }
void flowCloseAndAutoCommitIfNotAutoCommitted() throws SqlException { agent_.beginWriteChain(statement_); boolean performedAutoCommit = writeCloseAndAutoCommit(); agent_.flow(statement_); readCloseAndAutoCommitIfNotAutoCommitted(); agent_.endReadChain(); }
1,108,009
void flowCloseAndAutoCommitIfNotAutoCommitted() throws SqlException { agent_.beginWriteChain(statement_); writeCloseAndAutoCommitIfNotAutoCommitted(); agent_.flow(statement_); readCloseAndAutoCommitIfNotAutoCommitted(); agent_.endReadChain(); }
void flowCloseAndAutoCommitIfNotAutoCommitted() throws SqlException { agent_.beginWriteChain(statement_); writeCloseAndAutoCommitIfNotAutoCommitted(); agent_.flow(statement_); readCloseAndAutoCommit(performedAutoCommit); agent_.endReadChain(); }
1,108,010
boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul...
boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul...
1,108,011
boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul...
boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul...
1,108,012
boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul...
boolean nextX() throws SqlException { checkForClosedResultSet(); clearWarningsX(); wasNull_ = ResultSet.WAS_NULL_UNSET; // discard all previous updates when moving the cursor resetUpdatedColumns(); // for TYPE_FORWARD_ONLY ResultSet, just call cursor.next() if (resul...
1,108,013
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,015
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,016
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,017
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,018
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,019
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,020
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,021
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,022
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,023
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,024
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,025
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,026
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
public ValueNode getScopedOperand(int whichSide, JBitSet parentRSNsTables, ResultSetNode childRSN) throws StandardException { ResultColumn rc = null; ColumnReference cr = whichSide == LEFT ? (ColumnReference)leftOperand : (ColumnReference)rightOperand; // The first thing we need to do is see if this Colu...
1,108,027
private static void blobTest8Trigger(Connection conn) { System.out.println(START + "blobTest8Trigger"); try { Statement stmt = conn.createStatement(); stmt.executeUpdate("CREATE TABLE blobTest8TriggerA (a BLOB(300k), b int, crc32 BIGINT)"); stmt.executeUpdate("CREAT...
private static void blobTest8Trigger(Connection conn) { System.out.println(START + "blobTest8Trigger"); try { Statement stmt = conn.createStatement(); stmt.executeUpdate("CREATE TABLE blobTest8TriggerA (a BLOB(300k), b int, crc32 BIGINT)"); stmt.executeUpdate("CREAT...
1,108,029
public void encryptAllContainers(RawTransaction t) throws StandardException { EncryptData ed = new EncryptData(this); // encrypt all the conatiners in the databse ed.encryptAllContainers(t); }
public void encryptAllContainers(RawTransaction t) throws StandardException { containerEncrypter = new EncryptData(this); // encrypt all the conatiners in the databse ed.encryptAllContainers(t); }
1,108,031
public void encryptAllContainers(RawTransaction t) throws StandardException { EncryptData ed = new EncryptData(this); // encrypt all the conatiners in the databse ed.encryptAllContainers(t); }
public void encryptAllContainers(RawTransaction t) throws StandardException { EncryptData ed = new EncryptData(this); // encrypt all the conatiners in the databse containerEncrypter.encryptAllContainers(t); }
1,108,032
private XAStatementControl(EmbedPooledConnection xaConnection) { this.xaConnection = xaConnection; this.realConnection = xaConnection.realConnection; this.applicationConnection = xaConnection.currentConnectionHandle; }
private XAStatementControl(EmbedXAConnection xaConnection) { this.xaConnection = xaConnection; this.realConnection = xaConnection.realConnection; this.applicationConnection = xaConnection.currentConnectionHandle; }
1,108,033
private void setSecurityMechanism(String s) throws Exception { allowOnlySecurityMechanism = getSecMecValue(s); if (allowOnlySecurityMechanism == INVALID_OR_NOTSET_SECURITYMECHANISM) consolePropertyMessage("DRDA_InvalidValue.U", new String [] {s, Property...
private void setSecurityMechanism(String s) throws Exception { allowOnlySecurityMechanism = getSecMecValue(s); if ((allowOnlySecurityMechanism == INVALID_OR_NOTSET_SECURITYMECHANISM) || (allowOnlySecurityMechanism == CodePoint.SECMEC_EUSRIDPWD && !SUPPORTS_EUSRIDPWD)) consoleP...
1,108,034
final void writeScalarStream(boolean chained, boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte, ...
final void writeScalarStream(boolean chained, boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte, ...
1,108,035
final void writeScalarStream(boolean chained, boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte, ...
final void writeScalarStream(boolean chained, boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte, ...
1,108,036
final void writeScalarStream(boolean chained, boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte, ...
final void writeScalarStream(boolean chained, boolean chainedWithSameCorrelator, int codePoint, int length, java.io.InputStream in, boolean writeNullByte, ...
1,108,037
public void executeConstantAction(Activation activation) throws StandardException { SPSDescriptor whenspsd = null; SPSDescriptor actionspsd; LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyMan...
public void executeConstantAction(Activation activation) throws StandardException { SPSDescriptor whenspsd = null; SPSDescriptor actionspsd; LanguageConnectionContext lcc = activation.getLanguageConnectionContext(); DataDictionary dd = lcc.getDataDictionary(); DependencyManager dm = dd.getDependencyMan...
1,108,038
private boolean addToThreadList(Thread me, ContextManager associateCM) { Object list = threadContextList.get(); if (associateCM == list) return true; if (list == null) { threadContextList.set(associateCM); return true; } java.util.Stack stack; if (list instanceof ContextManager) { ContextManager threads...
private boolean addToThreadList(Thread me, ContextManager associateCM) { ThreadLocal tcl = threadContextList; if (tcl == null) { return false; } Object list = tcl.get(); if (associateCM == list) return true; if (list == null) { threadContextList.set(associateCM); return true; } java.util.Stack stack; i...
1,108,039
private boolean addToThreadList(Thread me, ContextManager associateCM) { Object list = threadContextList.get(); if (associateCM == list) return true; if (list == null) { threadContextList.set(associateCM); return true; } java.util.Stack stack; if (list instanceof ContextManager) { ContextManager threads...
private boolean addToThreadList(Thread me, ContextManager associateCM) { Object list = threadContextList.get(); if (associateCM == list) return true; if (list == null) { tcl.set(associateCM); return true; } java.util.Stack stack; if (list instanceof ContextManager) { ContextManager threadsCM = (ContextM...
1,108,040
private boolean addToThreadList(Thread me, ContextManager associateCM) { Object list = threadContextList.get(); if (associateCM == list) return true; if (list == null) { threadContextList.set(associateCM); return true; } java.util.Stack stack; if (list instanceof ContextManager) { ContextManager threads...
private boolean addToThreadList(Thread me, ContextManager associateCM) { Object list = threadContextList.get(); if (associateCM == list) return true; if (list == null) { threadContextList.set(associateCM); return true; } java.util.Stack stack; if (list instanceof ContextManager) { ContextManager threads...
1,108,041
public ContextManager getCurrentContextManager() { Thread me = Thread.currentThread(); Object list = threadContextList.get(); if (list instanceof ContextManager) { ContextManager cm = (ContextManager) list; if (cm.activeThread == me) return cm; return null; } if (list == null) return null; java.uti...
public ContextManager getCurrentContextManager() { Thread me = Thread.currentThread(); ThreadLocal tcl = threadContextList; if (tcl == null) { return null; } Object list = tcl.get(); if (list instanceof ContextManager) { ContextManager cm = (ContextManager) list; if (cm.activeThread == me) return cm; ...
1,108,042
public void resetCurrentContextManager(ContextManager cm) { if (SanityManager.DEBUG) { if (Thread.currentThread() != cm.activeThread) { SanityManager.THROWASSERT("resetCurrentContextManager - mismatch threads - current" + Thread.currentThread() + " - cm's " + cm.activeThread); } if (getCurrentContextManager(...
public void resetCurrentContextManager(ContextManager cm) { if (SanityManager.DEBUG) { if (Thread.currentThread() != cm.activeThread) { SanityManager.THROWASSERT("resetCurrentContextManager - mismatch threads - current" + Thread.currentThread() + " - cm's " + cm.activeThread); } if (getCurrentContextManager(...
1,108,043
public void resetCurrentContextManager(ContextManager cm) { if (SanityManager.DEBUG) { if (Thread.currentThread() != cm.activeThread) { SanityManager.THROWASSERT("resetCurrentContextManager - mismatch threads - current" + Thread.currentThread() + " - cm's " + cm.activeThread); } if (getCurrentContextManager(...
public void resetCurrentContextManager(ContextManager cm) { if (SanityManager.DEBUG) { if (Thread.currentThread() != cm.activeThread) { SanityManager.THROWASSERT("resetCurrentContextManager - mismatch threads - current" + Thread.currentThread() + " - cm's " + cm.activeThread); } if (getCurrentContextManager(...
1,108,044
public void resetCurrentContextManager(ContextManager cm) { if (SanityManager.DEBUG) { if (Thread.currentThread() != cm.activeThread) { SanityManager.THROWASSERT("resetCurrentContextManager - mismatch threads - current" + Thread.currentThread() + " - cm's " + cm.activeThread); } if (getCurrentContextManager(...
public void resetCurrentContextManager(ContextManager cm) { if (SanityManager.DEBUG) { if (Thread.currentThread() != cm.activeThread) { SanityManager.THROWASSERT("resetCurrentContextManager - mismatch threads - current" + Thread.currentThread() + " - cm's " + cm.activeThread); } if (getCurrentContextManager(...
1,108,045
public void blockingStart(PrintWriter consoleWriter) throws Exception { startNetworkServer(); setLogWriter(consoleWriter); cloudscapeLogWriter = Monitor.getStream().getPrintWriter(); if (SanityManager.DEBUG && debugOutput) { memCheck.showmem(); mc = new memCheck(200000); mc.start(); } // Open a ser...
public void blockingStart(PrintWriter consoleWriter) throws Exception { startNetworkServer(); setLogWriter(consoleWriter); cloudscapeLogWriter = Monitor.getStream().getPrintWriter(); if (SanityManager.DEBUG && debugOutput) { memCheck.showmem(); mc = new memCheck(200000); mc.start(); } // Open a ser...
1,108,046
public void blockingStart(PrintWriter consoleWriter) throws Exception { startNetworkServer(); setLogWriter(consoleWriter); cloudscapeLogWriter = Monitor.getStream().getPrintWriter(); if (SanityManager.DEBUG && debugOutput) { memCheck.showmem(); mc = new memCheck(200000); mc.start(); } // Open a ser...
public void blockingStart(PrintWriter consoleWriter) throws Exception { startNetworkServer(); setLogWriter(consoleWriter); cloudscapeLogWriter = Monitor.getStream().getPrintWriter(); if (SanityManager.DEBUG && debugOutput) { memCheck.showmem(); mc = new memCheck(200000); mc.start(); } // Open a ser...
1,108,047
public void executeWork(String args[]) throws Exception { // For convenience just use NetworkServerControlImpls log writer for user messages logWriter = makePrintWriter(System.out); int command = 0; if (args.length > 0) command = findCommand(args); else { consolePropertyMessage("DRDA_NoArgs.U"); } // if...
public void executeWork(String args[]) throws Exception { // For convenience just use NetworkServerControlImpls log writer for user messages logWriter = makePrintWriter(System.out); int command = 0; if (args.length > 0) command = findCommand(args); else { consolePropertyMessage("DRDA_NoArgs.U"); } // if...
1,108,048
protected Vector getDefaultImplementations() { Properties moduleList = new Properties(); boolean firstList = true; try { for( Enumeration e = ClassLoader.getSystemResources( "org/apache/derby/modules.properties"); e.hasMoreElements() ;) { URL modulesPropertiesUR...
protected Vector getDefaultImplementations() { Properties moduleList = new Properties(); boolean firstList = true; try { for( Enumeration e = cl.getResources( "org/apache/derby/modules.properties"); e.hasMoreElements() ;) { URL modulesPropertiesURL = (URL) e.nex...
1,108,050
public RoutinePermsDescriptor getRoutinePermissions( UUID routineUUID, String authorizationId) throws StandardException { RoutinePermsDescriptor key = new RoutinePermsDescriptor( this, authorizationId, (String) null); return (RoutinePermsDescriptor) getPermissions( key); } // end of getRo...
public RoutinePermsDescriptor getRoutinePermissions( UUID routineUUID, String authorizationId) throws StandardException { RoutinePermsDescriptor key = new RoutinePermsDescriptor( this, authorizationId, (String) null, routineUUID); return (RoutinePermsDescriptor) getPermissions( key); } //...
1,108,051
protected void setUp() throws Exception { TestConfiguration config = TestConfiguration.getCurrent(); if (!config.getJDBCClient().isEmbedded()) { BaseTestCase.println("Starting network server:"); networkServerController = new NetworkServerControl (In...
protected void setUp() throws Exception { TestConfiguration config = TestConfiguration.getCurrent(); if (!config.getJDBCClient().isEmbedded()) { BaseTestCase.println("Starting network server:"); networkServerController = new NetworkServerControl (In...
1,108,052
public final Object run() throws Exception { switch( actionCode) { case BOOT_ACTION: readOnly = storageFactory.isReadOnlyDatabase(); supportsRandomAccess = storageFactory.supportsRandomAccess(); return null; case GET_TEMP_DIRECTORY_ACTION: ...
public final Object run() throws Exception { switch( actionCode) { case BOOT_ACTION: readOnly = storageFactory.isReadOnlyDatabase(); supportsRandomAccess = storageFactory.supportsRandomAccess(); return null; case GET_TEMP_DIRECTORY_ACTION: ...
1,108,054
public static Connection getConnection() throws SQLException { Connection con = null; JDBCClient client = CONFIG.getJDBCClient(); if (HAVE_DRIVER) { loadJDBCDriver(client.getJDBCDriverName()); con = DriverManager.getConnection( CONFIG.getJDBCUrl()...
public static Connection getConnection() throws SQLException { Connection con = null; JDBCClient client = CONFIG.getJDBCClient(); if (HAVE_DRIVER) { loadJDBCDriver(client.getJDBCDriverName()); con = DriverManager.getConnection( CONFIG.getJDBCUrl()...
1,108,055
private void generateMinion(ExpressionClassBuilder acb, MethodBuilder mb, boolean genChildResultSet) throws StandardException { MethodBuilder userExprFun; ValueNode searchClause = null; ValueNode equijoinClause = null; /* The tableProperties, if non-null, must be correct to get this far. * We si...
private void generateMinion(ExpressionClassBuilder acb, MethodBuilder mb, boolean genChildResultSet) throws StandardException { MethodBuilder userExprFun; ValueNode searchClause = null; ValueNode equijoinClause = null; /* The tableProperties, if non-null, must be correct to get this far. * We si...
1,108,057
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
public void setAsciiStream(int parameterIndex, java.io.InputStream x, long length) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEnt...
1,108,058
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setCharacterStream", parameterIndex, x); } try {...
public void setCharacterStream(int parameterIndex, Reader x) throws SQLException { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setCharacterStream", parameterIndex, x); } try {...
1,108,065
protected Message createMessage() throws Exception { String text = getBodyText(); return getConnection().createTextMessage(text); }
protected Message createMessage() throws Exception { String text = getBodyText(); return getConnection().createTextMessage(text); }
1,108,077
private void deleteRandomSampleOfNRecords(final ResultSet rs, final Map rows, final Set deletedRows, final int k) throws SQLException { List sampledKeys = createR...
private void deleteRandomSampleOfNRecords(final ResultSet rs, final Map rows, final Set deletedRows, final int k) throws SQLException { List sampledKeys = createR...
1,108,078
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ SYSCOLPERMS_COLPERMSID - 1] = new SystemColumnImpl( convertIdCase( "COLPERMSID"), SYSCOLPERMS_COLPERMSID, ...
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ COLPERMSID_COL_NUM - 1] = new SystemColumnImpl( convertIdCase( "COLPERMSID"), SYSCOLPERMS_COLPERMSID, ...
1,108,080
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ SYSCOLPERMS_COLPERMSID - 1] = new SystemColumnImpl( convertIdCase( "COLPERMSID"), SYSCOLPERMS_COLPERMSID, ...
public SystemColumn[] buildColumnList() { if (columnList == null) { columnList = new SystemColumn[ COLUMN_COUNT]; columnList[ SYSCOLPERMS_COLPERMSID - 1] = new SystemColumnImpl( convertIdCase( "COLPERMSID"), COLPERMSID_COL_NUM, ...
1,108,081
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO...
public TupleDescriptor buildDescriptor(ExecRow row, TupleDescriptor parentTuple, DataDictionary dataDictionary) throws StandardException { if( SanityManager.DEBUG) SanityManager.ASSERT( row.nColumns() == COLUMN_CO...
1,108,082
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException { UUID oid; String colPermID = null; DataValueDescriptor grantee = null; DataValueDescriptor grantor = null; String tableID = null; String type = null; FormatableBitSet colu...
public ExecRow makeRow(TupleDescriptor td, TupleDescriptor parent) throws StandardException { UUID oid; String colPermID = null; DataValueDescriptor grantee = null; DataValueDescriptor grantor = null; String tableID = null; String type = null; FormatableBitSet colu...
1,108,085
public boolean getNextPermutation() throws StandardException { /* Don't get any permutations if there is nothing to optimize */ if (numOptimizables < 1) { if (optimizerTrace) { trace(NO_TABLES, 0, 0, 0.0, null); } return false; } /* Make sure that all Optimizables init their access paths. * (They w...
public boolean getNextPermutation() throws StandardException { /* Don't get any permutations if there is nothing to optimize */ if (numOptimizables < 1) { if (optimizerTrace) { trace(NO_TABLES, 0, 0, 0.0, null); } return false; } /* Make sure that all Optimizables init their access paths. * (They w...
1,108,087
protected void prepForNextRound() { // We initialize reloadBestPlan to false so that if we end up // pulling an Optimizable before we find a best join order // (which can happen if there is no valid join order for this // round) we won't inadvertently reload the best plans based // on some previous round. reload...
public void prepForNextRound() { // We initialize reloadBestPlan to false so that if we end up // pulling an Optimizable before we find a best join order // (which can happen if there is no valid join order for this // round) we won't inadvertently reload the best plans based // on some previous round. reloadBes...
1,108,088
public static int getPrecision(DataTypeDescriptor dtd) { int typeId = dtd.getTypeId().getJDBCTypeId(); switch ( typeId ) { case Types.CHAR: // CHAR et alia return their # characters... case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: case Types.BINARY: // BINARY types return their # bytes... ...
public static int getPrecision(DataTypeDescriptor dtd) { int typeId = dtd.getTypeId().getJDBCTypeId(); switch ( typeId ) { case Types.CHAR: // CHAR et alia return their # characters... case Types.VARCHAR: case Types.LONGVARCHAR: case Types.CLOB: case Types.BINARY: // BINARY types return their # bytes... ...
1,108,091
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause) { this( logwriter, getMessageUtil().getCompleteMessage( msgid.msgid, args), ExceptionUtil.getSQLStateFromIdentifier(msgid.msgid), ...
public SqlException(LogWriter logwriter, ClientMessageId msgid, Object[] args, Throwable cause) { this( logwriter, getMessageUtil().getCompleteMessage( msgid.msgid, args), ExceptionUtil.getSQLStateFromIdentifier(msgid.msgid), ...
1,108,092
public void addAnswerToSession(HttpServletRequest request){ HttpSession session = request.getSession(); String answer = request.getParameter("answer"); ArrayList<String> answers; if(session.getAttribute("answers")==null) answers = new ArrayList<String>(); else answers = (ArrayList<String>) session.getAttrib...
public void addAnswerToSession(HttpServletRequest request){ HttpSession session = request.getSession(); String answer = request.getParameter("answer"); Collection answers; if(session.getAttribute("answers")==null) answers = new ArrayList<String>(); else answers = (ArrayList<String>) session.getAttribute("an...
1,108,093
public void addAnswerToSession(HttpServletRequest request){ HttpSession session = request.getSession(); String answer = request.getParameter("answer"); ArrayList<String> answers; if(session.getAttribute("answers")==null) answers = new ArrayList<String>(); else answers = (ArrayList<String>) session.getAttrib...
public void addAnswerToSession(HttpServletRequest request){ HttpSession session = request.getSession(); String answer = request.getParameter("answer"); ArrayList<String> answers; if(session.getAttribute("answers")==null) answers = new ArrayList<String>(); else answers = (ArrayList<String>) session.getAttrib...
1,108,094
public void addCheckBoxQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParamet...
public void addCheckBoxQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParamet...
1,108,095
public void addColumnToSession(HttpServletRequest request){ HttpSession session = request.getSession(); String column = request.getParameter("column"); ArrayList<String> columns; if(session.getAttribute("columns")==null) columns = new ArrayList<String>(); else columns = (ArrayList<String>) session.getAttribut...
public void addColumnToSession(HttpServletRequest request){ HttpSession session = request.getSession(); String column = request.getParameter("column"); ArrayList<String> columns; if(session.getAttribute("columns")==null) columns = new ArrayList<String>(); else columns = (ArrayList<String>) session.getAttribut...
1,108,096
public void addMatrixQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParameter...
public void addMatrixQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParameter...
1,108,097
public void addNumericQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String validationType = request.getParamete...
public void addNumericQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String validationType = request.getParamete...
1,108,098
public void addStringListQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParam...
public void addStringListQuestionToSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParam...
1,108,100
public void removeAnswerFromSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; ArrayList<String> answers = (ArrayList<String>) session.getAttribute("answers"); answers.remove(rowId); session.setAttribute("answers", ...
public void removeAnswerFromSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; Collection answers = (Collection) session.getAttribute("answers"); answers.remove(rowId); session.setAttribute("answers", answers); }
1,108,101
public void removeColumnFromSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; ArrayList<String> columns = (ArrayList<String>) session.getAttribute("columns"); columns.remove(rowId); session.setAttribute("columns", ...
public void removeColumnFromSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); rowId--; ArrayList<String> columns = null; Object obj = session.getAttribute("columns"); if(obj instanceof PersistentList){ Iterator iter = ((Persi...
1,108,102
public void updateAnswerInSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); String answer = request.getParameter("answer"); rowId--; ArrayList<String> answers = (ArrayList<String>) session.getAttribute("answers"); answers.s...
public void updateAnswerInSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); String answer = request.getParameter("answer"); rowId--; ArrayList<String> answers = null; Object obj = session.getAttribute("answers"); if(obj inst...
1,108,103
public void updateCheckBoxQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getPara...
public void updateCheckBoxQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getPara...
1,108,104
public void updateColumnInSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); String column = request.getParameter("column"); rowId--; ArrayList<String> columns = (ArrayList<String>) session.getAttribute("columns"); columns.s...
public void updateColumnInSession(HttpServletRequest request){ HttpSession session = request.getSession(); int rowId = Integer.parseInt(request.getParameter("row")); String column = request.getParameter("column"); rowId--; ArrayList<String> columns = null; Object obj = session.getAttribute("columns"); if(obj inst...
1,108,105
public void updateMatrixQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParame...
public void updateMatrixQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getParame...
1,108,106
public void updateNumericQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String validationType = request.getParam...
public void updateNumericQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String validationType = request.getParam...
1,108,107
public void updateSessionSurvey(HttpServletRequest request, SurveyForm sform){ Survey survey = null; HttpSession session = request.getSession(); if(sform.getFlowScript()!=null && sform.getFlowScript().length()>0){ // add a new section survey = addSectionToSurvey(request, sform); } else { // set survey's v...
public void updateSessionSurvey(HttpServletRequest request, SurveyForm sform){ Survey survey = null; HttpSession session = request.getSession(); if(sform.getMethod().equals("addSection")){ // add a new section survey = addSectionToSurvey(request, sform); } else { // set survey's values survey = updateSe...
1,108,109
public void updateStringListQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getPa...
public void updateStringListQuestionInSection(HttpServletRequest request){ HttpSession session = request.getSession(); Section section = (Section) session.getAttribute("currentSection"); String name = request.getParameter("name"); String image = request.getParameter("image"); String questionText = request.getPa...
1,108,110
ReaderToUTF8Stream(LimitReader reader) { this.reader = reader; buffer = new byte[4096]; blen = -1; }
ReaderToUTF8Stream(LimitReader reader) { this.reader = reader; buffer = new byte[BUFSIZE]; blen = -1; }
1,108,111
private static void testAutoCommitFailure(Connection con) throws SQLException { DatabaseMetaData dmd = con.getMetaData(); boolean shouldBeClosed = dmd.autoCommitFailureClosesAllResultSets(); con.setAutoCommit(true); Statement s1 = con.createStatement(ResultSet.TYPE_F...
private static void testAutoCommitFailure(Connection con) throws SQLException { DatabaseMetaData dmd = con.getMetaData(); boolean shouldBeClosed = dmd.autoCommitFailureClosesAllResultSets(); con.setAutoCommit(true); Statement s1 = con.createStatement(ResultSet.TYPE_F...
1,108,112
private static void testAutoCommitFailure(Connection con) throws SQLException { DatabaseMetaData dmd = con.getMetaData(); boolean shouldBeClosed = dmd.autoCommitFailureClosesAllResultSets(); con.setAutoCommit(true); Statement s1 = con.createStatement(ResultSet.TYPE_F...
private static void testAutoCommitFailure(Connection con) throws SQLException { DatabaseMetaData dmd = con.getMetaData(); boolean shouldBeClosed = dmd.autoCommitFailureClosesAllResultSets(); con.setAutoCommit(true); Statement s1 = con.createStatement(ResultSet.TYPE_F...
1,108,113
private static void testAutoCommitFailure(Connection con) throws SQLException { DatabaseMetaData dmd = con.getMetaData(); boolean shouldBeClosed = dmd.autoCommitFailureClosesAllResultSets(); con.setAutoCommit(true); Statement s1 = con.createStatement(ResultSet.TYPE_F...
private static void testAutoCommitFailure(Connection con) throws SQLException { DatabaseMetaData dmd = con.getMetaData(); boolean shouldBeClosed = dmd.autoCommitFailureClosesAllResultSets(); con.setAutoCommit(true); Statement s1 = con.createStatement(ResultSet.TYPE_F...
1,108,114
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
1,108,115
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = createStatement(); boolean success; try { stmt.execute(call); ...
1,108,116
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
1,108,117
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
private static void testStoredProcEscapeSyntax(Connection con) throws SQLException { con.setAutoCommit(false); String call = "{CALL SYSCS_UTIL.SYSCS_SET_RUNTIMESTATISTICS(0)}"; Statement stmt = con.createStatement(); boolean success; try { stmt.execute(call); ...
1,108,118
public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { DataTypeDescriptor dtd = getTypeServices(); if ((dtd != null) && dtd.getTypeId().isXMLTypeId()) { // We're a parameter that corresponds to an XML column/target, // which we don't allow. We thr...
public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { DataTypeDescriptor dtd = getTypeServices(); if ((dtd != null) && dtd.getTypeId().isXMLTypeId()) { // We're a parameter that corresponds to an XML column/target, // which we don't allow. We thr...
1,108,119
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions...
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions...
1,108,120
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions...
private void parseSQLDTA_work(DRDAStatement stmt) throws DRDAProtocolException,SQLException { String strVal; PreparedStatement ps = stmt.getPreparedStatement(); int codePoint; EngineParameterMetaData pmeta = null; Vector paramDrdaTypes = new Vector(); Vector paramLens = new Vector(); ArrayList paramExtPositions...
1,108,121