bugged
stringlengths
6
599k
fixed
stringlengths
10
599k
__index_level_0__
int64
0
1.13M
final int getIntFromString(String source) throws SqlException { try { return parseInt(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ...
final int getIntFromString(String source) throws SqlException { try { return parseInt(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ...
1,107,377
final long getLongFromString(String source) throws SqlException { try { return parseLong(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ...
final long getLongFromString(String source) throws SqlException { try { return parseLong(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ...
1,107,378
final short getShortFromString(String source) throws SqlException { try { return parseShort(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ...
final short getShortFromString(String source) throws SqlException { try { return parseShort(source); } catch (java.lang.NumberFormatException e) { throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + " Parameter instance " + source + ...
1,107,379
final java.sql.Time getTimeFromString(String source) throws SqlException { try { return time_valueOf(source); } catch (java.lang.IllegalArgumentException e) { // subsumes NumberFormatException throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + ...
final java.sql.Time getTimeFromString(String source) throws SqlException { try { return time_valueOf(source); } catch (java.lang.IllegalArgumentException e) { // subsumes NumberFormatException throw new SqlException(agent_.logWriter_, e, "Invalid data conversion:" + ...
1,107,380
final java.sql.Timestamp getTimestampFromString(String source) throws SqlException { try { return timestamp_valueOf(source); } catch (java.lang.IllegalArgumentException e) { // subsumes NumberFormatException throw new SqlException(agent_.logWriter_, e, "Invali...
final java.sql.Timestamp getTimestampFromString(String source) throws SqlException { try { return timestamp_valueOf(source); } catch (java.lang.IllegalArgumentException e) { // subsumes NumberFormatException throw new SqlException(agent_.logWriter_, e, "Invali...
1,107,381
final boolean setBooleanFromObject(Object source, int sourceType) throws SqlException { switch (sourceType) { case Types.SMALLINT: return getBooleanFromShort(((Short) source).shortValue()); case Types.INTEGER: return getBooleanFromInt(((Integer) source).intValue()); ...
final boolean setBooleanFromObject(Object source, int sourceType) throws SqlException { switch (sourceType) { case Types.SMALLINT: return getBooleanFromShort(((Short) source).shortValue()); case Types.INTEGER: return getBooleanFromInt(((Integer) source).intValue()); ...
1,107,382
final byte setByteFromObject(Object source, int sourceType) throws SqlException { switch (sourceType) { case Types.SMALLINT: return getByteFromShort(((Short) source).shortValue()); case Types.INTEGER: return getByteFromInt(((Integer) source).intValue()); case Types....
final byte setByteFromObject(Object source, int sourceType) throws SqlException { switch (sourceType) { case Types.SMALLINT: return getByteFromShort(((Short) source).shortValue()); case Types.INTEGER: return getByteFromInt(((Integer) source).intValue()); case Types....
1,107,383
private final byte[] setBytesFromStream(java.io.InputStream is, int length) throws SqlException { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); while (read != -1) { totalRead++; ...
private final byte[] setBytesFromStream(java.io.InputStream is, int length) throws SqlException { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); while (read != -1) { totalRead++; ...
1,107,384
private final byte[] setBytesFromStream(java.io.InputStream is, int length) throws SqlException { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); while (read != -1) { totalRead++; ...
private final byte[] setBytesFromStream(java.io.InputStream is, int length) throws SqlException { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); while (read != -1) { totalRead++; ...
1,107,385
final Object setObjectFromBinaryStream(int targetType, java.io.InputStream source, int length) throws SqlException { switch (targetType) { case Types.BINARY: case Types.VARBINARY: case Types.LONGVARBINARY: return setBytesFromStream(source, length); case Types.BLOB: ...
final Object setObjectFromBinaryStream(int targetType, java.io.InputStream source, int length) throws SqlException { switch (targetType) { case Types.BINARY: case Types.VARBINARY: case Types.LONGVARBINARY: return setBytesFromStream(source, length); case Types.BLOB: ...
1,107,386
final Object setObjectFromCharacterStream(int targetType, java.io.InputStream source, String encoding, int length) throws SqlException { switch (targetType) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: return setStringFromStream(source, encoding, length); ...
final Object setObjectFromCharacterStream(int targetType, java.io.InputStream source, String encoding, int length) throws SqlException { switch (targetType) { case Types.CHAR: case Types.VARCHAR: case Types.LONGVARCHAR: return setStringFromStream(source, encoding, length); ...
1,107,387
private final String setStringFromReader(java.io.Reader r, int length) throws SqlException { java.io.StringWriter sw = new java.io.StringWriter(); try { int read = r.read(); int totalRead = 0; while (read != -1) { totalRead++; sw.write(rea...
private final String setStringFromReader(java.io.Reader r, int length) throws SqlException { java.io.StringWriter sw = new java.io.StringWriter(); try { int read = r.read(); int totalRead = 0; while (read != -1) { totalRead++; sw.write(rea...
1,107,388
private final String setStringFromReader(java.io.Reader r, int length) throws SqlException { java.io.StringWriter sw = new java.io.StringWriter(); try { int read = r.read(); int totalRead = 0; while (read != -1) { totalRead++; sw.write(rea...
private final String setStringFromReader(java.io.Reader r, int length) throws SqlException { java.io.StringWriter sw = new java.io.StringWriter(); try { int read = r.read(); int totalRead = 0; while (read != -1) { totalRead++; sw.write(rea...
1,107,389
private final String setStringFromStream(java.io.InputStream is, String encoding, int length) throws SqlException { try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); whi...
private final String setStringFromStream(java.io.InputStream is, String encoding, int length) throws SqlException { try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); whi...
1,107,390
private final String setStringFromStream(java.io.InputStream is, String encoding, int length) throws SqlException { try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); whi...
private final String setStringFromStream(java.io.InputStream is, String encoding, int length) throws SqlException { try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); whi...
1,107,391
private final String setStringFromStream(java.io.InputStream is, String encoding, int length) throws SqlException { try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); whi...
private final String setStringFromStream(java.io.InputStream is, String encoding, int length) throws SqlException { try { java.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream(); int totalRead = 0; try { int read = is.read(); whi...
1,107,392
private boolean checkRowPosition(int position, String positionText) throws SQLException { // beforeFirst is only allowed on scroll cursors checkScrollCursor(positionText); checkIfClosed(positionText); // checking result set closure does not // depend // on the underlying connection. Do this // outside ...
private boolean checkRowPosition(int position, String positionText) throws SQLException { // beforeFirst is only allowed on scroll cursors checkScrollCursor(positionText); checkIfClosed(positionText); // checking result set closure does not // depend // on the underlying connection. Do this // outside ...
1,107,394
public void deleteRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("deleteRow", -1); setupContextStack(); //now construct the delete where current of sql try { StringBuffer deleteWhereCurrentOfSQL...
public void deleteRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("deleteRow", -1); setupContextStack(); //now construct the delete where current of sql try { StringBuffer deleteWhereCurrentOfSQL...
1,107,395
public void updateRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("updateRow", -1); setupContextStack(); LanguageConnectionContext lcc = null; StatementContext statementContext = null; try { if (currentRowHasBeenU...
public void updateRow() throws SQLException { synchronized (getConnectionSynchronization()) { checksBeforeUpdateOrDelete("updateRow", -1); setupContextStack(); LanguageConnectionContext lcc = null; StatementContext statementContext = null; try { if (currentRowHasBeenU...
1,107,397
private void handleException(Throwable t) throws SQLException { if (t instanceof SQLException) { // let ij handle it throw (SQLException)t; } if (t instanceof XAException) { int errorCode = ((XAException)t).errorCode; String error = LocalizedResource.getMessage("IJ_IlleValu"); // XA_RBBASE 100 // XA_R...
private void handleException(Throwable t) throws SQLException { if (t instanceof SQLException) { // let ij handle it throw (SQLException)t; } if (t instanceof XAException) { int errorCode = ((XAException)t).errorCode; String error = LocalizedResource.getMessage("IJ_IlleValu"); // XA_RBBASE 100 // XA_R...
1,107,399
public PreparedStatement(Agent agent, Connection connection, String sql, Section section) throws SqlException { super(agent, connection); // PreparedStatement is poolable by default isPoolable = true; ini...
public PreparedStatement(Agent agent, Connection connection, String sql, Section section,ClientPooledConnection cpc) throws SqlException { super(agent, connection); // PreparedStatement is poolable by default is...
1,107,400
protected boolean[] getIsParam() { if (methodParms == null) { return new boolean[0]; } boolean[] isParam = new boolean[methodParms.length]; for (int index = 0; index < methodParms.length; index++) { if (methodParms[index] instanceof SQLToJavaValueNode) { SQLToJavaValueNode stjvn = (SQLToJavaValueNode)...
protected boolean[] getIsParam() { if (methodParms == null) { return new boolean[0]; } boolean[] isParam = new boolean[methodParms.length]; for (int index = 0; index < methodParms.length; index++) { if (methodParms[index] instanceof SQLToJavaValueNode) { SQLToJavaValueNode stjvn = (SQLToJavaValueNode)...
1,107,403
public void setNullParameterInfo(String[] parmTypeNames) throws StandardException { for (int i = 0; i < methodParms.length; i++) { /* null parameters are represented by a java type name of "" */ if (methodParms[i].getJavaTypeName().equals("")) { /* Set the type information in the null constant node */ ...
public void setNullParameterInfo(String[] parmTypeNames) throws StandardException { for (int i = 0; i < methodParms.length; i++) { /* null parameters are represented by a java type name of "" */ if (methodParms[i].getJavaTypeName().equals("")) { /* Set the type information in the null constant node */ ...
1,107,404
public int getScanArgs( TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList storeRestrictionList, OptimizablePredicateList nonStoreRestrictionList, ExpressionClassBuilderInterface acbi, int bulkFetch, MethodBuilder resultRowAlloca...
public int getScanArgs( TransactionController tc, MethodBuilder mb, Optimizable innerTable, OptimizablePredicateList storeRestrictionList, OptimizablePredicateList nonStoreRestrictionList, ExpressionClassBuilderInterface acbi, int bulkFetch, MethodBuilder resultRowAlloca...
1,107,406
private static void blobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
private static void blobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
1,107,407
private static void blobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
private static void blobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
1,107,408
private static void blobTest4(Connection conn) { ResultSet rs, rs2; Statement stmt, stmt2; System.out.println(START + "blobTest4"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) ...
private static void blobTest4(Connection conn) { ResultSet rs, rs2; Statement stmt, stmt2; System.out.println(START + "blobTest4"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) ...
1,107,409
private static void blobTest51(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "blobTest51"); try { stmt = conn.createStatement(); stmt.execute("create table testVarbinary (a blob(13))"); PreparedStatement ps = conn.prepareStatement( ...
private static void blobTest51(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "blobTest51"); try { stmt = conn.createStatement(); stmt.execute("create table testVarbinary (a blob(13))"); PreparedStatement ps = conn.prepareStatement( ...
1,107,410
private static void blobTest94(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest94"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
private static void blobTest94(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest94"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
1,107,411
private static void blobTest95(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest95"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
private static void blobTest95(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest95"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
1,107,412
private static void clobNegativeTest_Derby265(Connection conn) throws SQLException, FileNotFoundException,IOException { System.out.println(START + "clobNegativeTest_Derby265"); // basically setup the tables for clob Statement s = conn.createStatement(); s.execute("create table \"MA...
private static void clobNegativeTest_Derby265(Connection conn) throws SQLException, FileNotFoundException,IOException { System.out.println(START + "clobNegativeTest_Derby265"); // basically setup the tables for clob Statement s = conn.createStatement(); s.execute("create table \"MA...
1,107,413
private static void clobNegativeTest_Derby265(Connection conn) throws SQLException, FileNotFoundException,IOException { System.out.println(START + "clobNegativeTest_Derby265"); // basically setup the tables for clob Statement s = conn.createStatement(); s.execute("create table \"MA...
private static void clobNegativeTest_Derby265(Connection conn) throws SQLException, FileNotFoundException,IOException { System.out.println(START + "clobNegativeTest_Derby265"); // basically setup the tables for clob Statement s = conn.createStatement(); s.execute("create table \"MA...
1,107,414
private static void prepareBinaryTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBinaryTable"); try { stmt = conn.createStatement(); stmt.execute("create table testBinary (a blob(80), b integer)"); PreparedStatement ps = conn.prepareStatement( ...
private static void prepareBinaryTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBinaryTable"); try { stmt = conn.createStatement(); stmt.execute("create table testBinary (a blob(80), b integer)"); PreparedStatement ps = conn.prepareStatement( ...
1,107,415
private static void prepareBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table testBlob (b integer)"); st...
private static void prepareBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table testBlob (b integer)"); st...
1,107,416
private static void prepareSearchBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareSearchBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table searchBlob (b in...
private static void prepareSearchBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareSearchBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table searchBlob (b in...
1,107,417
private void checkSufficientData() throws IOException { // if we reached here, then read call returned -1, and we // have already reached the end of stream, so set eof=true // so that subsequent reads on this stream will return an // EOFException eof = true; if (!limitInPlace) ...
private void checkSufficientData() throws IOException { // if we reached here, then read call returned -1, and we // have already reached the end of stream, so set eof=true // so that subsequent reads on this stream will return an // EOFException eof = true; if (!limitInPlace) ...
1,107,418
private void checkSufficientData() throws IOException { // if we reached here, then read call returned -1, and we // have already reached the end of stream, so set eof=true // so that subsequent reads on this stream will return an // EOFException eof = true; if (!limitInPlace) ...
private void checkSufficientData() throws IOException { // if we reached here, then read call returned -1, and we // have already reached the end of stream, so set eof=true // so that subsequent reads on this stream will return an // EOFException eof = true; if (!limitInPlace) ...
1,107,419
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,107,420
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,107,422
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,107,423
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,107,424
public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { if (indexOfSessionTableNamesInSavedObjects != -1 ) //if this cursor references session schema tables, do following { MethodBuilder constructor = acb.getConstructor(); constructor.pushThis(); constructor.push(in...
public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { if (indexOfSessionTableNamesInSavedObjects != -1 ) //if this cursor references session schema tables, do following { MethodBuilder constructor = acb.getConstructor(); constructor.pushThis(); constructor.push(in...
1,107,425
public void addRequiredRoutinePriv( AliasDescriptor routine) { // routine == null for built in routines if( requiredRoutinePrivileges == null || routine == null) return; if( requiredRoutinePrivileges.get( routine.getUUID()) == null) requiredRoutinePrivileges.put( routine.getUUID(), ReuseFactory.getInteger(1)); ...
public void addRequiredRoutinePriv( AliasDescriptor routine) { // routine == null for built in routines if( requiredRoutinePrivileges == null || routine == null) return; if( requiredRoutinePrivileges.get( routine.getUUID()) == null) requiredRoutinePrivileges.put( routine.getUUID(), ReuseFactory.getInteger(1)); ...
1,107,428
private static void blobTest0(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest0"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,crc32 from testBlob"); testBlobContents(rs); stmt.close(); con...
private static void blobTest0(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest0"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,crc32 from testBlob"); testBlobContents(rs); stmt.close(); con...
1,107,431
private static void blobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
private static void blobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
1,107,432
private static void blobTest3(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest3"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
private static void blobTest3(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest3"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
1,107,433
private static void blobTest4(Connection conn) { ResultSet rs, rs2; Statement stmt, stmt2; System.out.println(START + "blobTest4"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) ...
private static void blobTest4(Connection conn) { ResultSet rs, rs2; Statement stmt, stmt2; System.out.println(START + "blobTest4"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) ...
1,107,434
private static void blobTest51(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "blobTest51"); try { stmt = conn.createStatement(); stmt.execute("create table testVarbinary (a blob(13))"); PreparedStatement ps = conn.prepareStatement( ...
private static void blobTest51(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "blobTest51"); try { stmt = conn.createStatement(); stmt.execute("create table testVarbinary (a blob(13))"); PreparedStatement ps = conn.prepareStatement( ...
1,107,435
private static void blobTest52(Connection conn) { Statement stmt = null; System.out.println(START + "blobTest52"); try { stmt = conn.createStatement(); stmt.execute("create table testInteger2 (a integer)"); PreparedStatement ps = conn.prepareStatement("insert into testInteger2 values(158)"); ...
private static void blobTest52(Connection conn) { Statement stmt = null; System.out.println(START + "blobTest52"); try { stmt = conn.createStatement(); stmt.execute("create table testInteger2 (a integer)"); PreparedStatement ps = conn.prepareStatement("insert into testInteger2 values(158)"); ...
1,107,436
private static void blobTest53(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "blobTest53"); try { stmt = conn.createStatement(); stmt.execute("create table testBlobColumn (a blob(1K))"); stmt.close(); System.out.println("blobTest53 fin...
private static void blobTest53(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "blobTest53"); try { stmt = conn.createStatement(); stmt.execute("create table testBlobColumn (a blob(1K))"); stmt.close(); System.out.println("blobTest53 fin...
1,107,437
private static void blobTest54(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest54"); try { stmt = conn.createStatement(); stmt.execute("create table testBlob2 (a integer, b integer)"); PreparedStatement ps = conn.prepareStatement( "insert...
private static void blobTest54(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest54"); try { stmt = conn.createStatement(); stmt.execute("create table testBlob2 (a integer, b integer)"); PreparedStatement ps = conn.prepareStatement( "insert...
1,107,438
private static void blobTest6(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest6"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
private static void blobTest6(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest6"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); int i = 0, blobLength = 0; Blob blob; while (rs.next()) {...
1,107,439
private static void blobTest7(Connection conn) { ResultSet rs, rs2; Statement stmt1, stmt2; System.out.println(START + "blobTest7"); try { stmt1 = conn.createStatement(); stmt1.execute("create table testBlobX (a blob(300K), b integer)"); PreparedStatement ps = conn.prepareStatement( ...
private static void blobTest7(Connection conn) { ResultSet rs, rs2; Statement stmt1, stmt2; System.out.println(START + "blobTest7"); try { stmt1 = conn.createStatement(); stmt1.execute("create table testBlobX (a blob(300K), b integer)"); PreparedStatement ps = conn.prepareStatement( ...
1,107,440
private static void blobTest8Trigger(Connection conn) { System.out.println(START + "blobTest8Trigger"); try { Statement stmt = conn.createStatement(); stmt.executeUpdate("CREATE TABLE blobTest8TriggerA (a BLOB(400k), 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(400k), b int, crc32 BIGINT)"); stmt.executeUpdate("CREAT...
1,107,441
private static void blobTest91(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest91"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); byte[] buff = new byte[128]; Blob[] blobArray = new Blob[numRows]; int[] ...
private static void blobTest91(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest91"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); byte[] buff = new byte[128]; Blob[] blobArray = new Blob[numRows]; int[] ...
1,107,442
private static void blobTest92(Connection conn) { ResultSet rs; Statement stmt,stmt2; System.out.println(START + "blobTest92"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
private static void blobTest92(Connection conn) { ResultSet rs; Statement stmt,stmt2; System.out.println(START + "blobTest92"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
1,107,443
private static void blobTest93(Connection conn) { ResultSet rs; Statement stmt, stmt2; System.out.println(START + "blobTest93"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large columns stmt.execute("create table testLongRowBlob (a var...
private static void blobTest93(Connection conn) { ResultSet rs; Statement stmt, stmt2; System.out.println(START + "blobTest93"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large columns stmt.execute("create table testLongRowBlob (a var...
1,107,444
private static void blobTest94(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest94"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
private static void blobTest94(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest94"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
1,107,445
private static void blobTest95(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest95"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
private static void blobTest95(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest95"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); // fetch row back, get the column as a blob. Blob blob = null, shortBlo...
1,107,446
private static void blobTest96(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest96"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); byte[] buff = new byte[128]; Blob[] blobArray = new Blob[numRows]; int[] ...
private static void blobTest96(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "blobTest96"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testBlob"); byte[] buff = new byte[128]; Blob[] blobArray = new Blob[numRows]; int[] ...
1,107,447
private static void bug(Connection conn) { ResultSet rs; Statement stmt, stmt2; System.out.println(START + "bug" ); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large columns stmt.execute("create table testLongRowClob (a varchar(2000))")...
private static void bug(Connection conn) { ResultSet rs; Statement stmt, stmt2; System.out.println(START + "bug" ); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large columns stmt.execute("create table testLongRowClob (a varchar(2000))")...
1,107,448
private static void bug2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "bug2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; Clob[] clobArray = new Clob[numRows*2]; int[] clobL...
private static void bug2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "bug2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; Clob[] clobArray = new Clob[numRows*2]; int[] clobL...
1,107,449
private static void clobTest0(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest0"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; // fetch row back, get the column as a clob. ...
private static void clobTest0(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest0"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; // fetch row back, get the column as a clob. ...
1,107,450
private static void clobTest11(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest1"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); met = rs.getMetaData(); char[] buff = new char[128]; // fetch row...
private static void clobTest11(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest1"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); met = rs.getMetaData(); char[] buff = new char[128]; // fetch row...
1,107,451
private static void clobTest12(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest12"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); int i = 0, colLength = 0, arrayIndex = 0; while (rs.next()) {...
private static void clobTest12(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest12"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); int i = 0, colLength = 0, arrayIndex = 0; while (rs.next()) {...
1,107,452
private static void clobTest13Trigger(Connection conn) { System.out.println(START + "clobTest13Trigger"); try { Statement stmt = conn.createStatement(); stmt.executeUpdate("CREATE TABLE clobTest13TriggerA (a CLOB(400k), b int)"); stmt.executeUpdate("CREATE TABLE clo...
private static void clobTest13Trigger(Connection conn) { System.out.println(START + "clobTest13Trigger"); try { Statement stmt = conn.createStatement(); stmt.executeUpdate("CREATE TABLE clobTest13TriggerA (a CLOB(400k), b int)"); stmt.executeUpdate("CREATE TABLE clo...
1,107,453
private static void clobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; while (rs.next()) ...
private static void clobTest2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; while (rs.next()) ...
1,107,454
private static void clobTest22(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest22"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); int i = 0, clobLength = 0, arrayIndex = 0; Clob clob; while (...
private static void clobTest22(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest22"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); int i = 0, clobLength = 0, arrayIndex = 0; Clob clob; while (...
1,107,455
private static void clobTest3(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest3"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; while (rs.next()) ...
private static void clobTest3(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest3"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; while (rs.next()) ...
1,107,456
private static void clobTest32(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest32"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); int i = 0, clobLength = 0, arrayIndex = 0; long pos = 0; ...
private static void clobTest32(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest32"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); int i = 0, clobLength = 0, arrayIndex = 0; long pos = 0; ...
1,107,457
private static void clobTest4(Connection conn) { ResultSet rs, rs2; Statement stmt, stmt2; System.out.println(START + "clobTest4"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; while (rs.nex...
private static void clobTest4(Connection conn) { ResultSet rs, rs2; Statement stmt, stmt2; System.out.println(START + "clobTest4"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; while (rs.nex...
1,107,458
private static void clobTest42(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest42"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); Clob[] clobArray = new Clob[numRowsUnicode]; int i = 0; ...
private static void clobTest42(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest42"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b,c from testUnicode"); Clob[] clobArray = new Clob[numRowsUnicode]; int i = 0; ...
1,107,459
private static void clobTest51(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest51"); try { stmt = conn.createStatement(); stmt.execute("create table testCLOB10 (a CLOB(10))"); PreparedStatement ps = conn.prepareStatement( "i...
private static void clobTest51(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest51"); try { stmt = conn.createStatement(); stmt.execute("create table testCLOB10 (a CLOB(10))"); PreparedStatement ps = conn.prepareStatement( "i...
1,107,460
private static void clobTest52(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; try { System.out.println(START + "clobTest52"); stmt = conn.createStatement(); System.out.println("create table testInteger (a integer)"); stmt.execute("create table testInteger (a integer)"); ...
private static void clobTest52(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; try { System.out.println(START + "clobTest52"); stmt = conn.createStatement(); System.out.println("create table testInteger (a integer)"); stmt.execute("create table testInteger (a integer)"); ...
1,107,461
private static void clobTest53(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest53"); try { stmt = conn.createStatement(); stmt.execute("create table testClobColumn (a clob(1K))"); System.out.println("clobTest53 finished"); } catch...
private static void clobTest53(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest53"); try { stmt = conn.createStatement(); stmt.execute("create table testClobColumn (a clob(1K))"); System.out.println("clobTest53 finished"); } catch...
1,107,462
private static void clobTest54(Connection conn) { ResultSet rs; Statement stmt1, stmt2; System.out.println(START + "clobTest54"); try { stmt1 = conn.createStatement(); stmt1.execute("create table testClob2 (a integer, b integer)"); PreparedStatement ps = conn.prepareStatement( ...
private static void clobTest54(Connection conn) { ResultSet rs; Statement stmt1, stmt2; System.out.println(START + "clobTest54"); try { stmt1 = conn.createStatement(); stmt1.execute("create table testClob2 (a integer, b integer)"); PreparedStatement ps = conn.prepareStatement( ...
1,107,463
private static void clobTest6(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest6"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; rs.next(); clo...
private static void clobTest6(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest6"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); int i = 0, clobLength = 0; Clob clob; rs.next(); clo...
1,107,464
private static void clobTest7(Connection conn) { ResultSet rs, rs2; Statement stmt1, stmt2; System.out.println(START + "clobTest7"); try { stmt1 = conn.createStatement(); stmt1.execute("create table testClob7 (a CLOB(300k), b integer)"); PreparedStatement ps = conn.prepareStatement( ...
private static void clobTest7(Connection conn) { ResultSet rs, rs2; Statement stmt1, stmt2; System.out.println(START + "clobTest7"); try { stmt1 = conn.createStatement(); stmt1.execute("create table testClob7 (a CLOB(300k), b integer)"); PreparedStatement ps = conn.prepareStatement( ...
1,107,465
private static void clobTest8(Connection conn) { System.out.println(START + "clobTest8"); try { Statement s = conn.createStatement(); s.execute("CREATE TABLE C8.T8POS(id INT NOT NULL PRIMARY KEY, DD CLOB(1m), pos INT, L INT)"); s.execute("CREATE TABLE C8.T8PATT(PATT CLOB(300k))"); // characters used t...
private static void clobTest8(Connection conn) { System.out.println(START + "clobTest8"); try { Statement s = conn.createStatement(); s.execute("CREATE TABLE C8.T8POS(id INT NOT NULL PRIMARY KEY, DD CLOB(1m), pos INT, L INT)"); s.execute("CREATE TABLE C8.T8PATT(PATT CLOB(300k))"); // characters used t...
1,107,466
private static void clobTest91(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest91"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; Clob[] clobArray = new Clob[numRows]; i...
private static void clobTest91(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest91"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; Clob[] clobArray = new Clob[numRows]; i...
1,107,467
private static void clobTest92(Connection conn) { ResultSet rs; Statement stmt,stmt2; System.out.println(START + "clobTest92"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. Clob clob = nul...
private static void clobTest92(Connection conn) { ResultSet rs; Statement stmt,stmt2; System.out.println(START + "clobTest92"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. Clob clob = nul...
1,107,468
private static void clobTest93(Connection conn) { ResultSet rs; Statement stmt, stmt2; System.out.println(START + "clobTest93"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large columns stmt.execute("create table testLongRowClob (a var...
private static void clobTest93(Connection conn) { ResultSet rs; Statement stmt, stmt2; System.out.println(START + "clobTest93"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large columns stmt.execute("create table testLongRowClob (a var...
1,107,469
private static void clobTest94(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest94"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. Clob clob = null, sho...
private static void clobTest94(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest94"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. Clob clob = null, sho...
1,107,470
private static void clobTest95(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest95"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. Clob clob = null, sho...
private static void clobTest95(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest95"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. Clob clob = null, sho...
1,107,471
private static void clobTest96(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest96"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; Clob[] clobArray = new Clob[numRows]; i...
private static void clobTest96(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTest96"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); byte[] buff = new byte[128]; Clob[] clobArray = new Clob[numRows]; i...
1,107,472
private static void clobTest9999(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest9999"); try { stmt = conn.createStatement(); stmt.execute("call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.storage.pageSize','4096')"); stmt.execute("create table c...
private static void clobTest9999(Connection conn) { ResultSetMetaData met; ResultSet rs; Statement stmt; System.out.println(START + "clobTest9999"); try { stmt = conn.createStatement(); stmt.execute("call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.storage.pageSize','4096')"); stmt.execute("create table c...
1,107,473
private static void clobTestGroupfetch(Connection conn) { ResultSet rs; Statement stmt,stmt2; System.out.println(START + "clobTestGroupFetch"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. ...
private static void clobTestGroupfetch(Connection conn) { ResultSet rs; Statement stmt,stmt2; System.out.println(START + "clobTestGroupFetch"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN"); // fetch row back, get the column as a clob. ...
1,107,474
private static void clobTestSelfDestructive(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTestSelfDestructive"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN where b = 10000"); byte[] buff = new byte[128]; // f...
private static void clobTestSelfDestructive(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTestSelfDestructive"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN where b = 10000"); byte[] buff = new byte[128]; // f...
1,107,475
private static void clobTestSelfDestructive2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTestSelfDestructive2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN where b = 10000"); byte[] buff = new byte[128]; //...
private static void clobTestSelfDestructive2(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "clobTestSelfDestructive2"); try { stmt = conn.createStatement(); rs = stmt.executeQuery("select a,b from testCLOB_MAIN where b = 10000"); byte[] buff = new byte[128]; //...
1,107,476
public static void main(String[] args) { System.out.println("Test blobclob starting"); isDerbyNet = TestUtil.isNetFramework(); try { // first check to see if the path to extin/out dir is ok. sep = System.getProperty("file.separator"); boolean exists = (new File(filePath, f...
public static void main(String[] args) { System.out.println("Test blobclob starting"); isDerbyNet = TestUtil.isNetFramework(); try { // first check to see if the path to extin/out dir is ok. sep = System.getProperty("file.separator"); boolean exists = (new File(filePath, f...
1,107,477
private static void prepareBinaryTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBinaryTable"); try { stmt = conn.createStatement(); stmt.execute("create table testBinary (a blob(80), b integer, crc32 bigint)"); PreparedStatement ps = conn.prepa...
private static void prepareBinaryTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBinaryTable"); try { stmt = conn.createStatement(); stmt.execute("create table testBinary (a blob(80), b integer, crc32 bigint)"); PreparedStatement ps = conn.prepa...
1,107,478
private static void prepareBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table testBlob (b integer)"); st...
private static void prepareBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table testBlob (b integer)"); st...
1,107,479
private static void prepareCLOBMAIN(Connection conn) { System.out.println(START +"prepareCLOBMAIN"); ResultSet rs; Statement stmt; try { stmt = conn.createStatement(); stmt.execute( // creating table small then add large column - that way forcing table to have default small page size, but have lar...
private static void prepareCLOBMAIN(Connection conn) { System.out.println(START +"prepareCLOBMAIN"); ResultSet rs; Statement stmt; try { stmt = conn.createStatement(); stmt.execute( // creating table small then add large column - that way forcing table to have default small page size, but have lar...
1,107,480
private static void prepareSearchBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareSearchBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table searchBlob (b in...
private static void prepareSearchBlobTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareSearchBlobTable"); try { stmt = conn.createStatement(); // creating table to fit within default 4k table size, then add large column stmt.execute("create table searchBlob (b in...
1,107,481
private static void prepareSearchClobTable(Connection conn) { System.out.println(START + "prepareSearchClobTable"); ResultSet rs; Statement stmt; try { stmt = conn.createStatement(); // creating table small then add large column - that way forcing table to have default small page size, but h...
private static void prepareSearchClobTable(Connection conn) { System.out.println(START + "prepareSearchClobTable"); ResultSet rs; Statement stmt; try { stmt = conn.createStatement(); // creating table small then add large column - that way forcing table to have default small page size, but h...
1,107,482
private static void prepareUnicodeFile(Connection conn) { System.out.println(START + "prepareUnicodeFile"); try { File file = new File(unicodeFileName); OutputStream fos = new FileOutputStream(file); Writer filew = new OutputStreamWriter(fos,"UTF8"); // Fi...
private static void prepareUnicodeFile(Connection conn) { System.out.println(START + "prepareUnicodeFile"); try { File file = new File(unicodeFileName); OutputStream fos = new FileOutputStream(file); Writer filew = new OutputStreamWriter(fos,"UTF8"); // Fi...
1,107,483
private static void prepareUnicodeTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareUnicodeTable"); try { stmt = conn.createStatement(); // creating table small then add large column - that way forcing table to have default small page size, but have large rows. ...
private static void prepareUnicodeTable(Connection conn) { ResultSet rs; Statement stmt; System.out.println(START + "prepareUnicodeTable"); try { stmt = conn.createStatement(); // creating table small then add large column - that way forcing table to have default small page size, but have large rows. ...
1,107,484
static void printInterval(Clob clob, long pos, int length, int testNum, int iteration, int clobLength) { if (pos > clobLength + 1) System.out.println("CLOB getSubString " + pos + " > " + clobLength); try { /* System.out.println("printInterval(" + clob + "," + pos +"," + length...
static void printInterval(Clob clob, long pos, int length, int testNum, int iteration, int clobLength) { if (pos > clobLength + 1) System.out.println("CLOB getSubString " + pos + " > " + clobLength); try { /* System.out.println("printInterval(" + clob + "," + pos +"," + length...
1,107,485
static void printInterval(Clob clob, long pos, int length, int testNum, int iteration, int clobLength) { if (pos > clobLength + 1) System.out.println("CLOB getSubString " + pos + " > " + clobLength); try { /* System.out.println("printInterval(" + clob + "," + pos +"," + length...
static void printInterval(Clob clob, long pos, int length, int testNum, int iteration, int clobLength) { if (pos > clobLength + 1) System.out.println("CLOB getSubString " + pos + " > " + clobLength); try { /* System.out.println("printInterval(" + clob + "," + pos +"," + length...
1,107,486
private static void printLockTable(Connection conn) { ResultSet rs; Statement stmt,stmt2; try { System.out.println("\nLock table\n----------------------------------------"); stmt = conn.createStatement(); rs = stmt.executeQuery( "select xid,type,lockcount,mode,tablename...
private static void printLockTable(Connection conn) { ResultSet rs; Statement stmt,stmt2; try { System.out.println("\nLock table\n----------------------------------------"); stmt = conn.createStatement(); rs = stmt.executeQuery( "select xid,type,lockcount,mode,tablename...
1,107,487