bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EmbedParameterSetMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EmbedParameterSetMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicator... | 1,107,263 |
public void run() { if (SanityManager.DEBUG) trace("Starting new connection thread"); Session prevSession; while(!closed()) { // get a new session prevSession = session; session = server.getNextSession(session); if (session == null) close(); if (closed()) break; if (session != prevSession) ... | public void run() { if (SanityManager.DEBUG) trace("Starting new connection thread"); Session prevSession; while(!closed()) { // get a new session prevSession = session; session = server.getNextSession(session); if (session == null) close(); if (closed()) break; if (session != prevSession) { initi... | 1,107,265 |
public void run() { if (SanityManager.DEBUG) trace("Starting new connection thread"); Session prevSession; while(!closed()) { // get a new session prevSession = session; session = server.getNextSession(session); if (session == null) close(); if (closed()) break; if (session != prevSession) ... | public void run() { if (SanityManager.DEBUG) trace("Starting new connection thread"); Session prevSession; while(!closed()) { // get a new session prevSession = session; session = server.getNextSession(session); if (session == null) close(); if (closed()) break; if (session != prevSession) ... | 1,107,266 |
private void sendUnexpectedException(Exception e) { DRDAProtocolException unExpDe; String dbname = null; try { if (database != null) dbname = database.dbName; println2Log(dbname,session.drdaID, e.getMessage()); server.consoleExceptionPrintTrace(e); unExpDe = DRDAProtocolException.newAgentError(t... | private void sendUnexpectedException(Exception e) { DRDAProtocolException unExpDe; String dbname = null; try { if (database != null) dbname = database.dbName; println2Log(dbname,session.drdaID, e.getMessage()); server.consoleExceptionPrintTrace(e); unExpDe = DRDAProtocolException.newAgentError(t... | 1,107,268 |
private void sessionInitialState() throws Exception { // process NetworkServerControl commands - if it is not either valid protocol let the // DRDA error handling handle it if (reader.isCmd()) { try { server.processCommands(reader, writer, session); // reset reader and writer reader.initial... | private void sessionInitialState() throws Exception { // process NetworkServerControl commands - if it is not either valid protocol let the // DRDA error handling handle it if (reader.isCmd()) { try { server.processCommands(reader, writer, session); // reset reader and writer reader.initial... | 1,107,269 |
private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt rec... | private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt rec... | 1,107,270 |
private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt rec... | private void writeACCSECRD(int securityCheckCode) throws DRDAProtocolException { writer.createDssReply(); writer.startDdm(CodePoint.ACCSECRD); if (securityCheckCode != CodePoint.SECCHKCD_NOTSUPPORTED) writer.writeScalar2Bytes(CodePoint.SECMEC, database.securityMechanism); else { // if server doesnt rec... | 1,107,271 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); i... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); i... | 1,107,272 |
private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); i... | private boolean writeFDODTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean hasdata = false; int blksize = stmt.getBlksize() > 0 ? stmt.getBlksize() : CodePoint.QRYBLKSZ_MAX; long rowCount = 0; ResultSet rs =null; boolean moreData = (stmt.getQryprctyp() == CodePoint.LMTBLKPRC); i... | 1,107,273 |
protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (ndrd... | protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (ndrd... | 1,107,274 |
private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); serve... | private void writeMGRLEVELS() throws DRDAProtocolException { int manager; int appLevel; int serverLevel; writer.startDdm(CodePoint.MGRLVLLS); for (int i = 0; i < knownManagers.size(); i++) { manager = ((Integer)knownManagers.elementAt(i)).intValue(); appLevel = appRequester.getManagerLevel(manager); serve... | 1,107,276 |
private void writeNullability(int drdaType, boolean valNull) { if(FdocaConstants.isNullable(drdaType)) { if (valNull) writer.writeByte(FdocaConstants.NULL_DATA); else { writer.writeByte(FdocaConstants.INDICATOR_NULLABLE); } } } | private void writeNullability(int drdaType, boolean valNull) { if(FdocaConstants.isNullable(drdaType)) { if (valNull) writer.writeByte(FdocaConstants.NULL_DATA); else { writer.writeByte(FdocaConstants.INDICATOR_NULLABLE); } } } | 1,107,277 |
private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(Cod... | private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(Cod... | 1,107,279 |
private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(Cod... | private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(Cod... | 1,107,280 |
private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(Cod... | private void writeOPNQRYRM(boolean isDssObject, DRDAStatement stmt) throws DRDAProtocolException, SQLException { if (SanityManager.DEBUG) trace("WriteOPNQRYRM"); if (isDssObject) writer.createDssObject(); else writer.createDssReply(); writer.startDdm(CodePoint.OPNQRYRM); writer.writeScalar2Bytes(Cod... | 1,107,281 |
private void writeQRYDSC(DRDAStatement stmt, boolean FDODSConly) throws DRDAProtocolException, SQLException { ResultSet rs = null; ResultSetMetaData rsmeta = null; EmbedParameterSetMetaData pmeta = null; if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); if (rs == null) // this is a CallableStatement... | private void writeQRYDSC(DRDAStatement stmt, boolean FDODSConly) throws DRDAProtocolException, SQLException { ResultSet rs = null; ResultSetMetaData rsmeta = null; EmbedParameterSetMetaData pmeta = null; if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); if (rs == null) // this is a CallableStatement... | 1,107,283 |
private void writeQRYDTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean getMoreData = true; boolean sentExtData = false; int startLength = 0; writer.createDssObject(); if (SanityManager.DEBUG) trace("Write QRYDTA"); writer.startDdm(CodePoint.QRYDTA); // Check to see if there was ... | private void writeQRYDTA (DRDAStatement stmt) throws DRDAProtocolException, SQLException { boolean getMoreData = true; boolean sentExtData = false; int startLength = 0; writer.createDssObject(); if (SanityManager.DEBUG) trace("Write QRYDTA"); writer.startDdm(CodePoint.QRYDTA); // Check to see if there was ... | 1,107,284 |
protected void writeRDBNAM(String rdbnam) throws DRDAProtocolException { int len = rdbnam.length(); if (len < CodePoint.RDBNAM_LEN) len = CodePoint.RDBNAM_LEN; writer.writeScalarHeader(CodePoint.RDBNAM, len); try { writer.writeScalarPaddedBytes(rdbnam.getBytes(server.DEFAULT_ENCODING), len, server.... | protected void writeRDBNAM(String rdbnam) throws DRDAProtocolException { int len = rdbnam.length(); if (len < CodePoint.RDBNAM_LEN) len = CodePoint.RDBNAM_LEN; writer.writeScalarHeader(CodePoint.RDBNAM, len); try { writer.writeScalarPaddedBytes(rdbnam.getBytes(server.DEFAULT_ENCODING), len, server.... | 1,107,285 |
private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); write... | private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); write... | 1,107,286 |
private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); write... | private void writeSQLCINRD(DRDAStatement stmt) throws DRDAProtocolException,SQLException { ResultSet rs = null; // todo ps is never used or closed - could this be a memory leak? PreparedStatement ps = stmt.getPreparedStatement(); if (!stmt.needsToSendParamData) rs = stmt.getResultSet(); write... | 1,107,287 |
private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ?... | private void writeSQLDAGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int elemNum, boolean rtnOutput) throws DRDAProtocolException, SQLException { //jdbc uses offset of 1 int jdbcElemNum = elemNum +1; // length to be retreived as output parameter int[] outlen = {-1}; int elemType = rtnOutput ?... | 1,107,288 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | 1,107,289 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | 1,107,290 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | 1,107,291 |
private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | private void writeSQLDTAGRP(DRDAStatement stmt, ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int colStart, int colEnd, boolean first) throws DRDAProtocolException, SQLException { int length = (FdocaConstants.SQLDTAGRP_COL_DSC_SIZE * ((colEnd+1) - colStart)) + 3; writer.writeByte(le... | 1,107,292 |
private void writeSQLDXGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput) throws DRDAProtocolException,SQLException { // Null indicator indicates we have data writer.writeByte(0); // SQLXKEYMEM; DRDA TYPE I2; ENVLID 0x04; Length Override 2 // Hard to get primary ... | private void writeSQLDXGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput) throws DRDAProtocolException,SQLException { // Null indicator indicates we have data writer.writeByte(0); // SQLXKEYMEM; DRDA TYPE I2; ENVLID 0x04; Length Override 2 // Hard to get primary ... | 1,107,293 |
private void writeSQLDXGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput) throws DRDAProtocolException,SQLException { // Null indicator indicates we have data writer.writeByte(0); // SQLXKEYMEM; DRDA TYPE I2; ENVLID 0x04; Length Override 2 // Hard to get primary ... | private void writeSQLDXGRP(ResultSetMetaData rsmeta, EmbedParameterSetMetaData pmeta, int jdbcElemNum, boolean rtnOutput) throws DRDAProtocolException,SQLException { // Null indicator indicates we have data writer.writeByte(0); // SQLXKEYMEM; DRDA TYPE I2; ENVLID 0x04; Length Override 2 // Hard to get primary ... | 1,107,294 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | 1,107,295 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | 1,107,296 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | 1,107,297 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | 1,107,298 |
void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | void writeEXTDTA (DRDAStatement stmt) throws SQLException, DRDAProtocolException { ArrayList extdtaValues = stmt.getExtDtaObjects(); // build the EXTDTA data, if necessary if (extdtaValues == null) return; boolean chainFlag, chainedWithSameCorrelator; boolean writeNullByte = false; for (int i = 0; i < extd... | 1,107,299 |
protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (... | protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (... | 1,107,300 |
protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (... | protected void writeFdocaVal(int index, Object val, int drdaType, int precision, int scale, boolean valNull, DRDAStatement stmt) throws DRDAProtocolException, SQLException { writeNullability(drdaType,valNull); if (! valNull) { int ndrdaType = drdaType | 1; long valLength = 0; switch (... | 1,107,301 |
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,107,302 |
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,107,303 |
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,107,305 |
private static String getDataSourcePrefix() { framework = getFramework(); switch(framework) { case OLD_NET_FRAMEWORK: case DERBY_NET_FRAMEWORK: case DB2JCC_FRAMEWORK: return "com.ibm.db2.jcc.DB2"; case DERBY_NET_CLIENT_FRAMEWORK: return "org.apache.derby.jdbc.Client"; case EMBEDDED_FRAMEW... | public static String getDataSourcePrefix() { framework = getFramework(); switch(framework) { case OLD_NET_FRAMEWORK: case DERBY_NET_FRAMEWORK: case DB2JCC_FRAMEWORK: return "com.ibm.db2.jcc.DB2"; case DERBY_NET_CLIENT_FRAMEWORK: return "org.apache.derby.jdbc.Client"; case EMBEDDED_FRAMEWO... | 1,107,306 |
private static String getDataSourcePrefix() { framework = getFramework(); switch(framework) { case OLD_NET_FRAMEWORK: case DERBY_NET_FRAMEWORK: case DB2JCC_FRAMEWORK: return "com.ibm.db2.jcc.DB2"; case DERBY_NET_CLIENT_FRAMEWORK: return "org.apache.derby.jdbc.Client"; case EMBEDDED_FRAMEW... | private static String getDataSourcePrefix() { framework = getFramework(); switch(framework) { case OLD_NET_FRAMEWORK: case DERBY_NET_FRAMEWORK: case DB2JCC_FRAMEWORK: return "com.ibm.db2.jcc.DB2"; case DERBY_NET_CLIENT_FRAMEWORK: return "org.apache.derby.jdbc.Client"; case EMBEDDED_FRAMEW... | 1,107,307 |
public static void assertSQLState(String message, String expected, SQLException exception) { // Make sure exception is not null. We want to separate between a // null-exception object, and a null-SQLState. if (exception... | public static void assertSQLState(String message, String expected, SQLException exception) { // Make sure exception is not null. We want to separate between a // null-exception object, and a null-SQLState. if (exception... | 1,107,308 |
protected void close() throws SQLException { if (ps != null) ps.close(); if (stmt != null) stmt.close(); rsClose(); resultSetTable = null; resultSetKeyList = null; numResultSets = 0; ps = null; stmtPmeta = null; stmt = null; scrollType = ResultSet.TYPE_FORWARD_ONLY; concurType = ResultSet.CONCUR_READ_... | protected void close() throws SQLException { if (ps != null) ps.close(); if (stmt != null) stmt.close(); rsClose(); resultSetTable = null; resultSetKeyList = null; numResultSets = 0; ps = null; stmtPmeta = null; stmt = null; scrollType = ResultSet.TYPE_FORWARD_ONLY; concurType = ResultSet.CONCUR_READ_... | 1,107,309 |
protected int getNumParams() { return cliParams_.size(); } | protected int getNumParams() { return cliParams_.size(); } | 1,107,310 |
protected int getParamDRDAType(int index) { return getCliParam(index-1).drdaType; } | protected int getParamDRDAType(int index) { return ((Byte)cliParamDrdaTypes.get(index -1)).intValue(); } | 1,107,311 |
protected int getParamLen(int index) { return getCliParam(index-1).drdaLength; } | protected int getParamLen(int index) { return ((Integer) cliParamLens.elementAt(index -1)).intValue(); } | 1,107,312 |
protected void setParamDRDAType(int index, byte type) { getCliParam(index-1).drdaType = type; } | protected void setParamDRDAType(int index, byte type) { getCliParam(index-1).drdaType = type; } | 1,107,313 |
protected void setParamLen(int index, int value) { getCliParam(index-1).drdaLength = value; } | protected void setParamLen(int index, int value) { cliParamLens.add(index -1, new Integer(value)); } | 1,107,314 |
Blob buildAndInsertBlobValue(int n,String filename,Connection conn){ int c; byte [] fromFile = new byte[1024]; Blob blob=null; try { blob = conn.createBlob(); java.io.OutputStream os = blob.setBinaryStream(1); buildFilePath(filename); File f = ... | Blob buildAndInsertBlobValue(int n,String filename,Connection conn){ int c; byte [] fromFile = new byte[1024]; Blob blob=null; try { blob = conn.createBlob(); java.io.OutputStream os = blob.setBinaryStream(1); buildFilePath(filename); File f = ... | 1,107,315 |
Clob buildAndInsertClobValue(int n,String filename,Connection conn){ int c; byte [] fromFile = new byte[1024]; Clob clob=null; try { clob = conn.createClob(); java.io.OutputStream os = clob.setAsciiStream(1); buildFilePath(filename); File f = n... | Clob buildAndInsertClobValue(int n,String filename,Connection conn){ int c; byte [] fromFile = new byte[1024]; Clob clob=null; try { clob = conn.createClob(); java.io.OutputStream os = clob.setAsciiStream(1); buildFilePath(filename); File f = n... | 1,107,317 |
public static void main(String args[]) { TestPreparedStatementMethods tpsm = new TestPreparedStatementMethods(); tpsm.startClientTestMethods(); tpsm.startEmbeddedTestMethods(); } | public static void main(String args[]) { TestPreparedStatementMethods tpsm = new TestPreparedStatementMethods(); tpsm.startClientTestMethods(); tpsm.startEmbeddedTestMethods(); } | 1,107,319 |
void startClientTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.ClientDriver"); conn_main = DriverManager.getConnection("jdbc:derby:" + "//loca... | void startClientTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.ClientDriver"); conn_main = DriverManager.getConnection("jdbc:derby:" + "//loca... | 1,107,320 |
void startClientTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.ClientDriver"); conn_main = DriverManager.getConnection("jdbc:derby:" + "//loca... | void startClientTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.ClientDriver"); conn_main = DriverManager.getConnection("jdbc:derby:" + "//loca... | 1,107,321 |
void startClientTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.ClientDriver"); conn_main = DriverManager.getConnection("jdbc:derby:" + "//loca... | void startClientTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.ClientDriver"); conn_main = DriverManager.getConnection("jdbc:derby:" + "//loca... | 1,107,322 |
void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | 1,107,323 |
void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | 1,107,324 |
void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | 1,107,325 |
void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | 1,107,326 |
void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | void startEmbeddedTestMethods() { Connection conn_main = null; PreparedStatement ps_main = null; stmtIsClosed = false; try { Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); conn_main = DriverManager.getConnection("jdbc:derby:mydb1;" + ... | 1,107,327 |
private final String getCHAR(int column) throws SqlException { String tempString = null; if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]); } try { // check for null encoding is n... | private final String getCHAR(int column) throws SqlException { String tempString = null; if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]); } try { // check for null encoding is n... | 1,107,329 |
private final String getCHAR(int column) throws SqlException { String tempString = null; if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]); } try { // check for null encoding is n... | private final String getCHAR(int column) throws SqlException { String tempString = null; if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1], columnDataComputedLength_[column - 1]); } try { // check for null encoding is n... | 1,107,330 |
private final java.sql.Date getDATE(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_, charsetName_[column - 1]); }catch (UnsupportedE... | private final java.sql.Date getDATE(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.dateBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_, charsetName_[column - 1]); }catch (UnsupportedE... | 1,107,331 |
private final java.sql.Date getDateFromTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_, charsetName_[column -1]);... | private final java.sql.Date getDateFromTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToDate(dataBuffer_, columnDataPosition_[column - 1], recyclableDate_, charsetName_[column -1]);... | 1,107,332 |
private final double getDoubleFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getDouble(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | private final double getDoubleFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getDouble(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | 1,107,333 |
private final double getDoubleFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getDouble(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | private final double getDoubleFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getDouble(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | 1,107,334 |
private final long getLongFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getLong(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | private final long getLongFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getLong(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | 1,107,335 |
private final long getLongFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getLong(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | private final long getLongFromDECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getLong(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(column - 1)); ... | 1,107,336 |
private final java.sql.Time getTIME(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column - 1]); } catch (... | private final java.sql.Time getTIME(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timeBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column - 1]); } catch (... | 1,107,337 |
private final java.sql.Timestamp getTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp( dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[colu... | private final java.sql.Timestamp getTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToTimestamp( dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[colu... | 1,107,338 |
private final java.sql.Time getTimeFromTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column -1]);... | private final java.sql.Time getTimeFromTIMESTAMP(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timestampBytesToTime(dataBuffer_, columnDataPosition_[column - 1], recyclableTime_, charsetName_[column -1]);... | 1,107,339 |
private final java.sql.Timestamp getTimestampFromDATE(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.dateBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[c... | private final java.sql.Timestamp getTimestampFromDATE(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.dateBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[c... | 1,107,340 |
private final java.sql.Timestamp getTimestampFromTIME(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timeBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[co... | private final java.sql.Timestamp getTimestampFromTIME(int column) throws SqlException { try { return org.apache.derby.client.am.DateTime.timeBytesToTimestamp(dataBuffer_, columnDataPosition_[column - 1], recyclableTimestamp_, charsetName_[co... | 1,107,341 |
private final String getVARCHAR(int column) throws SqlException { String tempString = null; try { if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1] + 2, columnDataComputedLength_[column - 1] - 2); } // check... | private final String getVARCHAR(int column) throws SqlException { String tempString = null; try { if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1] + 2, columnDataComputedLength_[column - 1] - 2); } // check... | 1,107,342 |
private final String getVARCHAR(int column) throws SqlException { String tempString = null; try { if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1] + 2, columnDataComputedLength_[column - 1] - 2); } // check... | private final String getVARCHAR(int column) throws SqlException { String tempString = null; try { if (ccsid_[column - 1] == 1200) { return getStringWithoutConvert(columnDataPosition_[column - 1] + 2, columnDataComputedLength_[column - 1] - 2); } // check... | 1,107,343 |
private final java.math.BigDecimal get_DECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getBigDecimal(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(colum... | private final java.math.BigDecimal get_DECIMAL(int column) throws SqlException { try { return org.apache.derby.client.am.Decimal.getBigDecimal(dataBuffer_, columnDataPosition_[column - 1], getColumnPrecision(column - 1), getColumnScale(colum... | 1,107,344 |
GenericAggregateResultSet ( NoPutResultSet s, int aggregateItem, Activation a, GeneratedMethod ra, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c ) throws StandardException { super(a, resultSetNumber, optimizerEstimatedRowCount, optimizerE... | GenericAggregateResultSet ( NoPutResultSet s, int aggregateItem, Activation a, GeneratedMethod ra, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c ) throws StandardException { super(a, resultSetNumber, optimizerEstimatedRowCount, optimizerE... | 1,107,345 |
GenericAggregateResultSet ( NoPutResultSet s, int aggregateItem, Activation a, GeneratedMethod ra, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c ) throws StandardException { super(a, resultSetNumber, optimizerEstimatedRowCount, optimizerE... | GenericAggregateResultSet ( NoPutResultSet s, int aggregateItem, Activation a, GeneratedMethod ra, int resultSetNumber, double optimizerEstimatedRowCount, double optimizerEstimatedCost, GeneratedMethod c ) throws StandardException { super(a, resultSetNumber, optimizerEstimatedRowCount, optimizerE... | 1,107,346 |
private String buildTokenizedSqlerrmc(EmbedSQLException se) { String sqlerrmc = ""; do { String messageId = se.getMessageId(); // arguments are variable part of a message Object[] args = se.getArguments(); for (int i = 0; args != null && i < args.length; i++) sqlerrmc += args[i] + SQLERRMC_TOKEN_DELIMI... | private String buildTokenizedSqlerrmc(EmbedSQLException se) { String sqlerrmc = ""; do { String messageId = se.getMessageId(); // arguments are variable part of a message Object[] args = se.getArguments(); for (int i = 0; args != null && i < args.length; i++) sqlerrmc += args[i] + SQLERRMC_TOKEN_DELIMI... | 1,107,347 |
private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EmbedParameterSetMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicat... | private ArrayList readAndSetParams(int i, DRDAStatement stmt, int drdaType, EmbedParameterSetMetaData pmeta, ArrayList paramExtPositions, int paramLenNumBytes) throws DRDAProtocolException, SQLException { PreparedStatement ps = stmt.getPreparedStatement(); // mask out null indicat... | 1,107,348 |
private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | 1,107,349 |
private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | private void writeSQLDIAGCI(SQLException nextException) throws DRDAProtocolException { SQLException se = nextException; long rowNum = 1; /* Write the number of next exceptions to expect */ writeSQLNUMROW(se); while (se != null) { String sqlState = se.getSQLState(); int sqlCode = getSqlCode(getExceptionSever... | 1,107,350 |
public void doTag(XMLOutput output) throws Exception { project.clear(); context.setVariable( "org.apache.commons.jelly.werkz.Project", project ); getBody().run(context, output); } | public void doTag(XMLOutput output) throws Exception { context.setVariable( "org.apache.commons.jelly.werkz.Project", project ); getBody().run(context, output); } | 1,107,353 |
public static void SYSCS_INPLACE_COMPRESS_TABLE( String schema, String tablename, int purgeRows, int defragementRows, int truncateEnd) throws SQLException { org.apache.derby.iapi.db.OnlineCompress.compressTable( schema, tablename, (purgeRows... | public static void SYSCS_INPLACE_COMPRESS_TABLE( String schema, String tablename, int purgeRows, int defragementRows, int truncateEnd) throws SQLException { org.apache.derby.iapi.db.OnlineCompress.compressTable( schema, tablename, (purgeRows... | 1,107,354 |
protected final SchemaDescriptor getSchemaDescriptor() throws StandardException { String schemaName = objectName.getSchemaName(); //boolean needError = !(implicitCreateSchema || (schemaName == null)); boolean needError = !implicitCreateSchema; SchemaDescriptor sd = getSchemaDescriptor(schemaName, needError); if (... | protected final SchemaDescriptor getSchemaDescriptor() throws StandardException { String schemaName = objectName.getSchemaName(); //boolean needError = !(implicitCreateSchema || (schemaName == null)); boolean needError = !implicitCreateSchema; SchemaDescriptor sd = getSchemaDescriptor(schemaName, needError); if (... | 1,107,355 |
void setTableConstructorTypes(ResultColumnList typeColumns) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns.size() <= typeColumns.size(), "More columns in ResultColumnList than in base table"); /* Look for ? parameters in the result column list */ int rclSize = resultCo... | void setTableConstructorTypes(ResultColumnList typeColumns) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns.size() <= typeColumns.size(), "More columns in ResultColumnList than in base table"); /* Look for ? parameters in the result column list */ int rclSize = resultCo... | 1,107,356 |
void setTableConstructorTypes(ResultColumnList typeColumns) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns.size() <= typeColumns.size(), "More columns in ResultColumnList than in base table"); /* Look for ? parameters in the result column list */ int rclSize = resultCo... | void setTableConstructorTypes(ResultColumnList typeColumns) throws StandardException { if (SanityManager.DEBUG) SanityManager.ASSERT(resultColumns.size() <= typeColumns.size(), "More columns in ResultColumnList than in base table"); /* Look for ? parameters in the result column list */ int rclSize = resultCo... | 1,107,357 |
protected boolean checkpointWithTran(RawTransaction cptran, RawStoreFactory rsf, DataFactory df, TransactionFactory tf) throws StandardException { boolean proceed = true; LogInstant redoLWM; // we may be called to stop the database after a bad error, make sure // logout is set if (lo... | protected boolean checkpointWithTran(RawTransaction cptran, RawStoreFactory rsf, DataFactory df, TransactionFactory tf) throws StandardException { boolean proceed = true; LogInstant redoLWM; // we may be called to stop the database after a bad error, make sure // logout is set if (lo... | 1,107,359 |
public void setDatabaseEncrypted(); | public void setDatabaseEncrypted(boolean flushLog) throws StandardException; | 1,107,360 |
void flowExecute(int executeType) throws SqlException { super.checkForClosedStatement(); super.clearWarningsX(); super.checkForAppropriateSqlMode(executeType, sqlMode_); checkThatAllParametersAreSet(); if (sqlMode_ == isUpdate__) { updateCount_ = 0; } else { ... | void flowExecute(int executeType) throws SqlException { super.checkForClosedStatement(); super.clearWarningsX(); super.checkForAppropriateSqlMode(executeType, sqlMode_); checkThatAllParametersAreSet(); if (sqlMode_ == isUpdate__) { updateCount_ = 0; } else { ... | 1,107,361 |
public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles) throws StandardException; | public void backupAndEnableLogArchiveMode(String backupDir, boolean deleteOnlineArchivedLogFiles) throws StandardException; | 1,107,363 |
public void init( Object aliasName, Object targetObject, Object methodName, Object aliasSpecificInfo, Object aliasType, Object delimitedIdentifier) throws StandardException { TableName qn = (TableName) aliasName; this.aliasType = ((Character) aliasType).charValue(); initAndCheck(qn)... | public void init( Object aliasName, Object targetObject, Object methodName, Object aliasSpecificInfo, Object aliasType, Object delimitedIdentifier) throws StandardException { TableName qn = (TableName) aliasName; this.aliasType = ((Character) aliasType).charValue(); initAndCheck(qn)... | 1,107,364 |
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... | 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... | 1,107,365 |
public void startTestConnectionMethods_Client() { t_createClob_Client(); t_createBlob_Client(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | public void startTestConnectionMethods_Client() { t_createClob_Client(); t_createBlob_Client(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | 1,107,367 |
public void startTestConnectionMethods_Client() { t_createClob_Client(); t_createBlob_Client(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | public void startTestConnectionMethods_Client() { t_createClob_Client(); t_createBlob_Client(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | 1,107,368 |
public void startTestConnectionMethods_Embedded() { t_createClob(); t_createBlob(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | public void startTestConnectionMethods_Embedded() { t_createClob(); t_createBlob(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | 1,107,369 |
public void startTestConnectionMethods_Embedded() { t_createClob(); t_createBlob(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | public void startTestConnectionMethods_Embedded() { t_createClob(); t_createBlob(); t_createNClob(); t_createSQLXML(); t_isValid(); t_setClientInfo1(); t_setClientInfo2(); t_getClientInfo1(); t_getClientInfo2(); t_wrapper(); } | 1,107,370 |
private static void testDatabaseMetaDataMethods(Connection con) throws Exception { con.setAutoCommit(true); // make sure it is true Statement s = con.createStatement(); DatabaseMetaData met = con.getMetaData(); if (!met.supportsStoredFunctionsUsingCallSyntax()) { Sys... | private static void testDatabaseMetaDataMethods(Connection con) throws Exception { con.setAutoCommit(true); // make sure it is true Statement s = con.createStatement(); DatabaseMetaData met = con.getMetaData(); if (!met.supportsStoredFunctionsUsingCallSyntax()) { Sys... | 1,107,371 |
final java.math.BigDecimal getBigDecimalFromString(String source) throws SqlException { try { // Unfortunately, the big decimal constructor calls java.lang.Long.parseLong(), // which doesn't like spaces, so we have to call trim() to get rid of the spaces from CHAR columns. re... | final java.math.BigDecimal getBigDecimalFromString(String source) throws SqlException { try { // Unfortunately, the big decimal constructor calls java.lang.Long.parseLong(), // which doesn't like spaces, so we have to call trim() to get rid of the spaces from CHAR columns. re... | 1,107,372 |
final byte getByteFromString(String source) throws SqlException { try { return parseByte(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ... | final byte getByteFromString(String source) throws SqlException { try { return parseByte(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ... | 1,107,373 |
final java.sql.Date getDateFromString(String source) throws SqlException { try { return date_valueOf(source); } catch (java.lang.IllegalArgumentException e) { // subsumes NumberFormatException throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + ... | final java.sql.Date getDateFromString(String source) throws SqlException { try { return date_valueOf(source); } catch (java.lang.IllegalArgumentException e) { // subsumes NumberFormatException throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + ... | 1,107,374 |
final double getDoubleFromString(String source) throws SqlException { try { return Double.parseDouble(source.trim()); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " ... | final double getDoubleFromString(String source) throws SqlException { try { return Double.parseDouble(source.trim()); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " ... | 1,107,375 |
final float getFloatFromString(String source) throws SqlException { try { return Float.parseFloat(source.trim()); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + so... | final float getFloatFromString(String source) throws SqlException { try { return Float.parseFloat(source.trim()); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + so... | 1,107,376 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.