rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult(parameterIndex) ) ; | getColumnMetaDataX().getColumnType(parameterIndex); | public void setNull(int parameterIndex, int jdbcType) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setNull", parameterIndex, jdbcType); } checkForCl... |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | void setNullX(int parameterIndex, int jdbcType) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = jdbcType; if (!parameterMetaData_.nullable_[parameterIndex - 1]) { throw new SqlException... | |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | private void setObjectX(int parameterIndex, Object x, int targetJdbcType, int scale) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); checkForValidScale(scale); // JDBC 4.0 requ... | |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | public void setRef(int parameterIndex, java.sql.Ref x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setRef", parameterIndex, x); } parameterIndex = ... | |
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ); | getColumnMetaDataX().getColumnType(parameterIndex); | public void setShort(int parameterIndex, short x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setShort", parameterIndex, x); } fina... |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | void setShortX(int parameterIndex, short x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.SMALLINT; setInput(parameterIndex, new Short(x)); } | |
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ); | getColumnMetaDataX().getColumnType(parameterIndex); | public void setString(int parameterIndex, String x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setString", parameterIndex, x); } f... |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | void setStringX(int parameterIndex, String x) throws SqlException { parameterIndex = checkForEscapedCallWithResult(parameterIndex); parameterMetaData_.clientParamtertype_[parameterIndex - 1] = java.sql.Types.LONGVARCHAR; if (x == null) { setNullX(parameterIndex, java.sql.Types.LONGVA... | |
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ); | getColumnMetaDataX().getColumnType(parameterIndex); | public void setTime(int parameterIndex, java.sql.Time x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTime", parameterIndex, x); } ... |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | public void setTime(int parameterIndex, java.sql.Time x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTime", parameterIndex, x); } ... | |
getColumnMetaDataX().getColumnType( checkForEscapedCallWithResult( parameterIndex ) ); | getColumnMetaDataX().getColumnType(parameterIndex); | public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTimestamp", parameterIndex, x); } ... |
parameterIndex = checkForEscapedCallWithResult(parameterIndex); | public void setTimestamp(int parameterIndex, java.sql.Timestamp x) throws SQLException { try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setTimestamp", parameterIndex, x); } ... | |
case java.sql.Types.ARRAY: return "ARRAY"; case java.sql.Types.DATALINK: return "DATALINK"; case JDBC40Translation.NCHAR: return "NATIONAL CHAR"; case JDBC40Translation.NCLOB: return "NCLOB"; case JDBC40Translation.NVARCHAR: return "NATIONAL CHAR VARYING"; case JDBC40Translation.LONGNVARCHAR: return "LONG NVARCHAR"; ca... | static public String getTypeString(int type) { switch (type ) { case BIGINT: return "BIGINT"; case BINARY: return "BINARY"; case BLOB: return "BLOB"; case BOOLEAN: return "BOOLEAN"; case CHAR: return "CHAR"... | |
setType(operand.getTypeServices()); | super.setType(operand.getTypeServices()); | public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { super.bindExpression(fromList, subqueryList, aggregateVector); if (operatorType == SQRT || operatorType == ABSOLUTE) { bindSQRTABS(); } else if (operatorType == UNARY_PLUS || ... |
((ParameterNode) operand).setDescriptor( | operand.setType( | void bindParameter() throws StandardException { if (operatorType == SQRT || operatorType == ABSOLUTE) { ((ParameterNode) operand).setDescriptor( new DataTypeDescriptor(TypeId.getBuiltInTypeId(Types.DOUBLE), true)); } else if (operand.getTypeServices() == null) { throw StandardException.newException(SQLStat... |
else if (operatorType == UNARY_MINUS || operatorType == UNARY_PLUS) return; | void bindParameter() throws StandardException { if (operatorType == SQRT || operatorType == ABSOLUTE) { ((ParameterNode) operand).setDescriptor( new DataTypeDescriptor(TypeId.getBuiltInTypeId(Types.DOUBLE), true)); } else if (operand.getTypeServices() == null) { throw StandardException.newException(SQLStat... | |
childResult = (ResultSetNode) ((FromTable) childResult).modifyAccessPath(outerTables); | if (childResult instanceof SetOperatorNode) { childResult = (ResultSetNode) ((SetOperatorNode) childResult).modifyAccessPath( outerTables, restrictionList); } else { childResult = (ResultSetNode) ((FromTable) childResult). modifyAccessPath(outerTables); } | public Optimizable modifyAccessPath(JBitSet outerTables) throws StandardException { boolean origChildOptimizable = true; /* It is okay to optimize most nodes multiple times. However, * modifying the access path is something that should only be done * once per node. One reason for this is that the predicate l... |
if (childResult instanceof UnionNode) ((UnionNode)childResult).pullOptPredicates(restrictionList); | public void pullOptPredicates( OptimizablePredicateList optimizablePredicates) throws StandardException { if (restrictionList != null) { RemapCRsVisitor rcrv = new RemapCRsVisitor(false); for (int i = restrictionList.size() - 1; i >= 0; i--) { OptimizablePredicate optPred = restrictionList.ge... | |
if (s.startsWith("com.ibm.db2.jcc.")) | if (s.startsWith("com.ibm.db2.jcc.") || s.startsWith("org.apache.derby.client")) | private static boolean getValidValue(PreparedStatement ps, int jdbcType) throws SQLException, IOException { ResultSet rs = ps.executeQuery(); rs.next(); switch (jdbcType) { case Types.SMALLINT: System.out.print("getShort=" + rs.getShort(1) + " was null " + rs.wasNull()); return true; case Types.INTEGER: Sy... |
if (ignoreParameters && ((ValueNode)node).isParameterNode()) | if (ignoreParameters && ((ValueNode)node).requiresTypeFromContext()) | public Visitable visit(Visitable node) throws StandardException { if (node instanceof ValueNode) { if (ignoreParameters && ((ValueNode)node).isParameterNode()) return node; if (((ValueNode)node).getOrderableVariantType() <= variantType) { hasVariant = true; } } return node; } |
userSuppliedOptimizerOverrides, | public RealHashJoinStatistics( int numOpens, int rowsSeen, int rowsFiltered, long constructorTime, long openTime, long nextTime, long closeTime, int resultSetNumber, int rowsSeenLeft, int rowsSeenRight, int rowsReturned, long restri... | |
Enumeration enum = p.keys(); | Enumeration e = p.keys(); | private void createSPSSet(TransactionController tc, boolean net, UUID schemaID) throws StandardException { Properties p = getQueryDescriptions(net); Enumeration enum = p.keys(); //statement will get compiled on first execution //Note: Don't change this to FALSE LCC is not available for compiling boolean nocompil... |
while (enum.hasMoreElements()) | while (e.hasMoreElements()) | private void createSPSSet(TransactionController tc, boolean net, UUID schemaID) throws StandardException { Properties p = getQueryDescriptions(net); Enumeration enum = p.keys(); //statement will get compiled on first execution //Note: Don't change this to FALSE LCC is not available for compiling boolean nocompil... |
String spsName = (String)enum.nextElement(); | String spsName = (String)e.nextElement(); | private void createSPSSet(TransactionController tc, boolean net, UUID schemaID) throws StandardException { Properties p = getQueryDescriptions(net); Enumeration enum = p.keys(); //statement will get compiled on first execution //Note: Don't change this to FALSE LCC is not available for compiling boolean nocompil... |
} | private void createSPSSet(TransactionController tc, boolean net, UUID schemaID) throws StandardException { Properties p = getQueryDescriptions(net); Enumeration enum = p.keys(); //statement will get compiled on first execution //Note: Don't change this to FALSE LCC is not available for compiling boolean nocompil... | |
doTest1920(s, con); | if(HAVE_DRIVER_MANAGER_CLASS) doTest1920(s, con); | public static void main(String[] args) { Connection con = null; Statement s; PreparedStatement ps; System.out.println("Test autoGeneratedJdbc30 starting"); try { ij.getPropertyArg(args); con = ij.startJBMS(); s = con.createStatement(); /* Create the tables and do any other set-up */ setUpTest(s); c... |
int available = in.available(); | int available = Math.max(1, in.available()); | private void readFromStream(InputStream in) throws IOException { dataValue = null; // allow gc of the old value before the new. byte[] tmpData = new byte[32 * 1024]; int off = 0; for (;;) { int len = in.read(tmpData, off, tmpData.length - off); if (len == -1) break; off += len; int available = in.ava... |
false, | true, | public SystemColumn[] buildColumnList() { /* ** Create one less than the number of columns, we ** skip the last one deliberately. */ SystemColumn[] columnList = new SystemColumn[SYSSTATEMENTS_COLUMN_COUNT - SYSSTATEMENTS_HIDDEN_COLUMN_COUNT]; // describe columns columnList[0] = new SystemColumnImpl( con... |
UUID compUuid; | UUID compUuid = null; | public TupleDescriptor buildDescriptor( ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd ) throws StandardException { DataValueDescriptor col; SPSDescriptor descriptor; String name; String text; String usingText; UUID uuid; UUID compUuid; Strin... |
compUuid = getUUIDFactory().recreateUUID(uuidStr); | if (uuidStr != null) compUuid = getUUIDFactory().recreateUUID(uuidStr); | public TupleDescriptor buildDescriptor( ExecRow row, TupleDescriptor parentTupleDescriptor, DataDictionary dd ) throws StandardException { DataValueDescriptor col; SPSDescriptor descriptor; String name; String text; String usingText; UUID uuid; UUID compUuid; Strin... |
closeMethodArgument(acb, mb); | private void generateMinion(ExpressionClassBuilder acb, MethodBuilder mb, boolean genChildResultSet) throws StandardException { /* If this ProjectRestrict doesn't do anything, bypass its generation. * (Remove any true and true predicates first, as they could be left * by the like transformation.)... | |
ClassName.NoPutResultSet, 11); | ClassName.NoPutResultSet, 10); | private void generateMinion(ExpressionClassBuilder acb, MethodBuilder mb, boolean genChildResultSet) throws StandardException { /* If this ProjectRestrict doesn't do anything, bypass its generation. * (Remove any true and true predicates first, as they could be left * by the like transformation.)... |
public synchronized Row getRowFrom(int input_rowset_nr) | public synchronized Row getRowFrom(String from) | public synchronized Row getRowFrom(int input_rowset_nr) { // Read from one specific rowset // int sleeptime=transMeta.getSleepTimeEmpty(); RowSet in=(RowSet)inputRowSets.get(input_rowset_nr); while (in.isEmpty() && !in.isDone() && !stopped) { try { if (sleeptime>0) sleep(0, sleeptime); else super.notifyAll();... |
int sleeptime=transMeta.getSleepTimeEmpty(); RowSet in=(RowSet)inputRowSets.get(input_rowset_nr); while (in.isEmpty() && !in.isDone() && !stopped) | output_rowset_nr = findInputRowSetNumber(from, 0, stepname, 0); if (output_rowset_nr<0) | public synchronized Row getRowFrom(int input_rowset_nr) { // Read from one specific rowset // int sleeptime=transMeta.getSleepTimeEmpty(); RowSet in=(RowSet)inputRowSets.get(input_rowset_nr); while (in.isEmpty() && !in.isDone() && !stopped) { try { if (sleeptime>0) sleep(0, sleeptime); else super.notifyAll();... |
try { if (sleeptime>0) sleep(0, sleeptime); else super.notifyAll(); } catch(Exception e) { logError(Messages.getString("BaseStep.Log.SleepInterupted2",in.getOriginStepName())+e.toString()); setErrors(1); stopAll(); return null; } nrGetSleeps+=sleeptime; } | return null; } | public synchronized Row getRowFrom(int input_rowset_nr) { // Read from one specific rowset // int sleeptime=transMeta.getSleepTimeEmpty(); RowSet in=(RowSet)inputRowSets.get(input_rowset_nr); while (in.isEmpty() && !in.isDone() && !stopped) { try { if (sleeptime>0) sleep(0, sleeptime); else super.notifyAll();... |
if (stopped) { logError(Messages.getString("BaseStep.Log.SleepInterupted3",in.getOriginStepName())); stopAll(); return null; } if (in.isEmpty() && in.isDone()) { inputRowSets.remove(input_rowset_nr); return null; } Row row=in.getRow(); linesRead++; for (int i=0;i<rowListeners.size();i++) { RowListener rowListener =... | return getRowFrom(output_rowset_nr); | public synchronized Row getRowFrom(int input_rowset_nr) { // Read from one specific rowset // int sleeptime=transMeta.getSleepTimeEmpty(); RowSet in=(RowSet)inputRowSets.get(input_rowset_nr); while (in.isEmpty() && !in.isDone() && !stopped) { try { if (sleeptime>0) sleep(0, sleeptime); else super.notifyAll();... |
ps.setQueryTimeout(0L); | protected void executeSPS(SPSDescriptor sps) throws StandardException { boolean recompile = false; while (true) { /* ** Only grab the ps the 1st time through. This ** way a row trigger doesn't do any unnecessary ** setup work. */ if (ps == null || recompile) { /* ** We need to clone the prepared... | |
throw Util.notImplemented(); | if( map == null) throw Util.generateCsSQLException(SQLState.INVALID_API_PARAMETER,map,"map", "java.sql.CallableStatement.getObject"); if(!(map.isEmpty())) throw Util.notImplemented(); return getObject(i); | public Object getObject (int i, java.util.Map map) throws SQLException { throw Util.notImplemented(); } |
public java.sql.Date getDate(int parameterIndex, Calendar cal) throws SQLException | public Date getDate(int parameterIndex) throws SQLException | public java.sql.Date getDate(int parameterIndex, Calendar cal) throws SQLException { return getDate(parameterIndex); } |
return getDate(parameterIndex); | checkStatus(); try { Date v = getParms().getParameterForGet(parameterIndex-1).getDate(getCal()); wasNull = (v == null); return v; } catch (StandardException e) { throw EmbedResultSet.noStateChangeException(e); } | public java.sql.Date getDate(int parameterIndex, Calendar cal) throws SQLException { return getDate(parameterIndex); } |
public java.sql.Time getTime(int parameterIndex, Calendar cal) throws SQLException | public Time getTime(int parameterIndex) throws SQLException | public java.sql.Time getTime(int parameterIndex, Calendar cal) throws SQLException { return getTime(parameterIndex); } |
return getTime(parameterIndex); | checkStatus(); try { Time v = getParms().getParameterForGet(parameterIndex-1).getTime(getCal()); wasNull = (v == null); return v; } catch (StandardException e) { throw EmbedResultSet.noStateChangeException(e); } | public java.sql.Time getTime(int parameterIndex, Calendar cal) throws SQLException { return getTime(parameterIndex); } |
public java.sql.Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException | public Timestamp getTimestamp(int parameterIndex) throws SQLException | public java.sql.Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException { return getTimestamp(parameterIndex); } |
return getTimestamp(parameterIndex); | checkStatus(); try { Timestamp v = getParms().getParameterForGet(parameterIndex-1).getTimestamp(getCal()); wasNull = (v == null); return v; } catch (StandardException e) { throw EmbedResultSet.noStateChangeException(e); } | public java.sql.Timestamp getTimestamp(int parameterIndex, Calendar cal) throws SQLException { return getTimestamp(parameterIndex); } |
final void closeContainer() { | void closeContainer() { | final void closeContainer() { if (fileData != null) { try { fileData.close(); } catch (IOException ioe) { } finally { fileData = null; } } } |
private byte[] updatePageArray(long pageNumber, | protected byte[] updatePageArray(long pageNumber, | private byte[] updatePageArray(long pageNumber, byte[] pageData, byte[] encryptionBuf, boolean encryptWithNewEngine) throws StandardException, IOException { if (pageNumber == FIRST_ALLOC_PAGE_N... |
TestUtil.dumpSQLExceptions(sqle,expected); | if ( !expected ) { TestUtil.dumpSQLExceptions(sqle,expected); } | private static void blobNegativeTest_Derby265(Connection conn) throws SQLException, FileNotFoundException,IOException { System.out.println(START + "blobTestNegativeTest_Derby265"); // basically setup the tables for clob and blob Statement s = conn.createStatement(); s.execute("creat... |
TestUtil.dumpSQLExceptions(sqle,expected); | if ( !expected ) { TestUtil.dumpSQLExceptions(sqle,expected); } | 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... |
DataValueDescriptor[] row, FormatableBitSet columnList) | DataValueDescriptor[] row) | public static boolean isRowEmpty( DataValueDescriptor[] row, FormatableBitSet columnList) { if (row == null) return true; if (row.length == 0) return true; if (columnList == null) return false; int size = columnList.getLength(); for (int i = 0; i < size; i--) { if (columnList.... |
if (columnList == null) return false; int size = columnList.getLength(); for (int i = 0; i < size; i--) { if (columnList.isSet(i)) return true; } | public static boolean isRowEmpty( DataValueDescriptor[] row, FormatableBitSet columnList) { if (row == null) return true; if (row.length == 0) return true; if (columnList == null) return false; int size = columnList.getLength(); for (int i = 0; i < size; i--) { if (columnList.... | |
public ClassHolder(String fullyQualifiedName, String superClassName, int modifiers) { | protected ClassHolder(int estimatedConstantPoolCount) { cptEntries = new Vector(estimatedConstantPoolCount); cptHashTable = new Hashtable(estimatedConstantPoolCount, (float)0.75); | public ClassHolder(String fullyQualifiedName, String superClassName, int modifiers) { this(100); access_flags = modifiers | /* Modifier.SUPER */ 0x0020; this_class = addClassReference(fullyQualifiedName); super_class = addClassReference(superClassName); method_info = new MemberTable(0); } |
this(100); access_flags = modifiers | 0x0020; this_class = addClassReference(fullyQualifiedName); super_class = addClassReference(superClassName); method_info = new MemberTable(0); | cptEntries.setSize(1); | public ClassHolder(String fullyQualifiedName, String superClassName, int modifiers) { this(100); access_flags = modifiers | /* Modifier.SUPER */ 0x0020; this_class = addClassReference(fullyQualifiedName); super_class = addClassReference(superClassName); method_info = new MemberTable(0); } |
public int addFieldReference(ClassMember field) { return addReference(VMDescriptor.CONSTANT_Fieldref, (ClassMember) field); | public int addFieldReference(String className, String simpleName, String descriptor) { return addReference(VMDescriptor.CONSTANT_Fieldref, className, simpleName, descriptor); | public int addFieldReference(ClassMember field) { return addReference(VMDescriptor.CONSTANT_Fieldref, (ClassMember) field); } |
public ClassFormatOutput(int size) { super(new AccessibleByteArrayOutputStream(size)); | public ClassFormatOutput() { this(512); | public ClassFormatOutput(int size) { super(new AccessibleByteArrayOutputStream(size)); } |
static int width(short type) { switch (type) { case BCExpr.vm_void: return 0; case BCExpr.vm_long: case BCExpr.vm_double: return 2; default: return 1; } | int width() { return Type.width(vmType); | static int width(short type) { switch (type) { case BCExpr.vm_void: return 0; case BCExpr.vm_long: case BCExpr.vm_double: return 2; default: return 1; } } |
if (codeLength <= VMOpcode.MAX_CODE_LENGTH) { | if ((codeLength <= VMOpcode.MAX_CODE_LENGTH) && (mb != null && mb.cb.limitMsg == null)) { | void complete(BCMethod mb, ClassHolder ch, ClassMember method, int maxStack, int maxLocals) { int codeLength = getPC(); ClassFormatOutput out = cout; try { out.putU2(0); // exception_table_length if (SanityManager.DEBUG) { if (SanityManager.DEBUG_ON("ClassLineNumbers")) { // Add a single attri... |
Reader filer = new InputStreamReader(fileIn); | Reader filer = new InputStreamReader(fileIn, "US-ASCII"); | private static void insertDataUsingCharacterStream(PreparedStatement ps, int intValue, String fileName, int maxValueAllowed) throws Exception{ File file = new File(fileName); InputStream fileIn = new FileInputStream(file); Reader filer = new InputStreamReader(fileIn); System.out.println("===> testing(using set... |
ByteArrayInputStream bais = new ByteArrayInputStream(s.getBytes()); | ByteArrayInputStream bais = new ByteArrayInputStream(s.getBytes("US-ASCII")); | public static int streamInLongCol(PreparedStatement ps, Object data) throws Exception { String s = (String)data; ByteArrayInputStream bais = new ByteArrayInputStream(s.getBytes()); ps.setAsciiStream(1, bais, s.length()); int nRows = ps.executeUpdate(); bais.close(); return nRows; } |
Reader filer = new InputStreamReader(fileIn); | Reader filer = new InputStreamReader(fileIn,"US-ASCII"); | private static void streamTest11(Connection conn) { Statement stmt; System.out.println("Test 11 - Can't pass negative length as the stream length for various setXXXStream methods"); try { stmt = conn.createStatement(); stmt.execute("create table testLongVarCharInvalidStreamLength (a int, b long varchar, c long ... |
ByteArrayInputStream string1 = new ByteArrayInputStream(longString.getBytes()); | ByteArrayInputStream string1 = new ByteArrayInputStream(longString.getBytes("US-ASCII")); | static void streamTest7(Connection conn) throws Exception { conn.setAutoCommit(false); System.out.println("streamTest7"); Statement s = conn.createStatement(); s.executeUpdate("call SYSCS_UTIL.SYSCS_SET_DATABASE_PROPERTY('derby.storage.pageSize', '1024')"); s.execute("create table testlvc (a int, b char(100), lv... |
String canon = new String(stream1_byte_array[a]); | String canon = new String(stream1_byte_array[a], "US-ASCII"); | static void streamTest8(Connection conn, int stream1_len, int stream2_len) { System.out.println( "Starting streamTest8(conn, " + stream1_len + ", " + stream2_len + ")"); ResultSetMetaData met; ResultSet rs; Statement stmt; String createsql = new String(... |
canon = new String(stream2_byte_array[a]); | canon = new String(stream2_byte_array[a], "US-ASCII"); | static void streamTest8(Connection conn, int stream1_len, int stream2_len) { System.out.println( "Starting streamTest8(conn, " + stream1_len + ", " + stream2_len + ")"); ResultSetMetaData met; ResultSet rs; Statement stmt; String createsql = new String(... |
ByteArrayInputStream bais = new ByteArrayInputStream(updateString.getBytes()); | ByteArrayInputStream bais = new ByteArrayInputStream(updateString.getBytes("US-ASCII")); | static int updateLongString(Connection conn, int oldkey, int newkey) throws Exception { PreparedStatement ps = conn.prepareStatement( "update foo set a = ?, b = ? where a = " + oldkey); String updateString = pad("", newkey); ByteArrayInputStream bais = new ByteArrayInputStream(updateString.getBytes()); ps.setI... |
return "colPerms: grantor=" + getGrantee() + | return "colPerms: grantee=" + getGrantee() + ",colPermsUUID=" + getUUID() + | public String toString() { return "colPerms: grantor=" + getGrantee() + ",grantor=" + getGrantor() + ",tableUUID=" + getTableUUID() + ",type=" + getType() + ",columns=" + getColumns(); } |
public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException{ | public void setBlob(String parameterName, Blob x) throws SQLException { | public void setBlob(String parameterName, InputStream inputStream, long length) throws SQLException{ throw Util.notImplemented(); } |
public void setClob(String parameterName, Reader reader, long length) throws SQLException{ | public void setClob(String parameterName, Clob x) throws SQLException { | public void setClob(String parameterName, Reader reader, long length) throws SQLException{ throw Util.notImplemented(); } |
if (!TestUtil.isJCCFramework()) { runAutoCommitTests(con); } | public static void main(String[] args) throws Throwable { isDerbyNet = TestUtil.isNetFramework(); Connection con; ResultSetMetaData met; ResultSet rs; Statement stmt; String[] columnNames = {"i", "s", "r", "d", "dt", "t", "ts", "c", "v", "dc", "bi", "cbd", "vbd", "lvbd", "cl", "bl"}; System.out.println(... | |
if (file.exists()) | if (privExists(file)) | public boolean removeContainer() throws StandardException { close(); if (file.exists()) { return file.delete(); } else { return true; } } |
return file.delete(); | return privDelete(file); | public boolean removeContainer() throws StandardException { close(); if (file.exists()) { return file.delete(); } else { return true; } } |
new MessageId (SQLState.CANNOT_CLOSE_ACTIVE_XA_CONNECTION)); | new MessageId (SQLState.CANNOT_CLOSE_ACTIVE_CONNECTION)); | void checkForTransactionInProgress() throws SqlException { // The following precondition matches CLI semantics, see SQLDisconnect() if (!autoCommit_ && inUnitOfWork_ && !allowCloseInUOW_()) { throw new SqlException(agent_.logWriter_, new MessageId (SQLState.CANNOT_CLOSE_A... |
int error = reader.readLengthAndCodePoint(); | int error = reader.readLengthAndCodePoint( false ); | private void checkError() throws IOException, DRDAProtocolException { int svrcod = 0; int invalidCodePoint = 0; int prccnvcd = 0; int synerrcd = 0; int codepoint; int reqVal; Vector manager = new Vector(), managerLevel = new Vector() ; reader.readReplyDss(); int error = reader.readLengthAndCodePoint(); int r... |
codepoint = reader.readLengthAndCodePoint(); | codepoint = reader.readLengthAndCodePoint( false ); | private void checkError() throws IOException, DRDAProtocolException { int svrcod = 0; int invalidCodePoint = 0; int prccnvcd = 0; int synerrcd = 0; int codepoint; int reqVal; Vector manager = new Vector(), managerLevel = new Vector() ; reader.readReplyDss(); int error = reader.readLengthAndCodePoint(); int r... |
int codepoint = reader.readLengthAndCodePoint(); | int codepoint = reader.readLengthAndCodePoint( false ); | private void checkSQLCARD(int sqlCode, String sqlState) throws IOException, DRDAProtocolException { reader.readReplyDss(); int codepoint = reader.readLengthAndCodePoint(); if (codepoint != CodePoint.SQLCARD) { fail("Expecting SQLCARD got "+ Integer.toHexString(codepoint)); return; } int nullind = reader.rea... |
int codepoint = reader.readLengthAndCodePoint(); | int codepoint = reader.readLengthAndCodePoint( false ); | private void readLengthAndCodePoint() throws IOException, DRDAProtocolException { int codepoint = reader.readLengthAndCodePoint(); int reqCP = getCP(); if (codepoint != reqCP) cpError(codepoint, reqCP); } |
codepoint = reader.readLengthAndCodePoint(); | codepoint = reader.readLengthAndCodePoint( false ); | private void readSecMecAndSECCHKCD() throws IOException, DRDAProtocolException { int codepoint; boolean notDone = true; int val = -1; do { codepoint = reader.readLengthAndCodePoint(); switch(codepoint) { case CodePoint.SECMEC: ... |
reader.readLengthAndCodePoint(); | reader.readLengthAndCodePoint( false ); | private void skipDdm() throws DRDAProtocolException { reader.readLengthAndCodePoint(); reader.skipBytes(); } |
private boolean exchangeServerAttributes() throws DRDAProtocolException, SQLException | private void exchangeServerAttributes() throws DRDAProtocolException | private boolean exchangeServerAttributes() throws DRDAProtocolException, SQLException { int codePoint; correlationID = reader.readDssHeader(); if (SanityManager.DEBUG) { if (correlationID == 0) { SanityManager.THROWASSERT( "Unexpected value for correlationId = " + correlationID); } } cod... |
return parseDRDAConnection(); | parseEXCSAT(); writeEXCSATRD(); finalizeChain(); session.setState(session.ATTEXC); | private boolean exchangeServerAttributes() throws DRDAProtocolException, SQLException { int codePoint; correlationID = reader.readDssHeader(); if (SanityManager.DEBUG) { if (correlationID == 0) { SanityManager.THROWASSERT( "Unexpected value for correlationId = " + correlationID); } } cod... |
if (securityCheckCode == 0 && database.securityMechanism == CodePoint.SECMEC_EUSRIDPWD && database.publicKeyIn == null) securityCheckCode = CodePoint.SECCHKCD_SECTKNMISSING; if (securityCheckCode == 0 && database.securityMechanism == CodePoint.SECMEC_USRIDPWD && database.publicKeyIn != null) securityCheckCode = Code... | private int parseACCSEC() throws DRDAProtocolException { int securityCheckCode = 0; int securityMechanism = 0; byte [] publicKeyIn = null; reader.markCollection(); int codePoint = reader.getCodePoint(); while (codePoint != -1) { switch(codePoint) { //optional case CodePoint.SECMGRNM: // this is d... | |
appRequester = new AppRequester(); parseEXCSAT(); writeEXCSATRD(); finalizeChain(); | private boolean parseDRDAConnection() throws DRDAProtocolException { int codePoint; boolean sessionOK = true; appRequester = new AppRequester(); parseEXCSAT(); writeEXCSATRD(); finalizeChain(); //we may have to do the access security more than once if we don't //provide the requested security mechanism or we r... | |
int securityCheckCode = 0; boolean notdone = true; while (notdone) { correlationID = reader.readDssHeader(); codePoint = reader.readLengthAndCodePoint(); verifyInOrderACCSEC_SECCHK(codePoint,CodePoint.ACCSEC); securityCheckCode = parseACCSEC(); if (securityCheckCode == 0 && database.securityMechanism == CodePoint.SEC... | int securityCheckCode = parseSECCHK(); | private boolean parseDRDAConnection() throws DRDAProtocolException { int codePoint; boolean sessionOK = true; appRequester = new AppRequester(); parseEXCSAT(); writeEXCSATRD(); finalizeChain(); //we may have to do the access security more than once if we don't //provide the requested security mechanism or we r... |
if (appRequester != null) { parseEXCSAT2(); return; } appRequester = new AppRequester(); | private void parseEXCSAT() throws DRDAProtocolException { int codePoint; String strVal; reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { // optional case CodePoint.EXTNAM: appRequester.extnam = reader.readString(); if (SanityManager.DEBU... | |
if (securityCheckCode == 0) session.setState(session.CHKSEC); | private int parseSECCHK() throws DRDAProtocolException { int codePoint, securityCheckCode = 0; int securityMechanism = 0; databaseAccessException = null; reader.markCollection(); codePoint = reader.getCodePoint(); while (codePoint != -1) { switch (codePoint) { //optional, ignorable case CodePoint.SECM... | |
parseDRDAConnection(); | parseEXCSAT(); writeEXCSATRD(); finalizeChain(); break; case CodePoint.ACCSEC: int securityCheckCode = parseACCSEC(); writeACCSECRD(securityCheckCode); checkSecurityCodepoint = true; break; case CodePoint.SECCHK: if(parseDRDAConnection()) checkSecurityCodepoint = false; | private void processCommands() throws DRDAProtocolException { DRDAStatement stmt = null; int updateCount = 0; boolean PRPSQLSTTfailed = false; do { correlationID = reader.readDssHeader(); int codePoint = reader.readLengthAndCodePoint(); int writerMark = writer.markDSSClearPoint(); switch(codePoint) { ... |
if (exchangeServerAttributes()) session.state = Session.ATTEXC; else closeSession(); | exchangeServerAttributes(); | 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.initialize(this, ... |
public ColPermsDescriptor getColumnPermissions( UUID tableUUID, int privType, boolean forGrant, String authorizationId) throws StandardException { String privTypeStr = forGrant ? colPrivTypeMapForGrant[privType] : colPrivTypeMap[privType]; if( SanityManager.DEBUG) SanityManager.ASSERT( privTypeStr != null, "Invalid col... | public ColPermsDescriptor getColumnPermissions( UUID colPermsUUID) throws StandardException { ColPermsDescriptor key = new ColPermsDescriptor( this, colPermsUUID); | public ColPermsDescriptor getColumnPermissions( UUID tableUUID, int privType, boolean forGrant, String authorizationId) throws StandardException { ... |
return (ColPermsDescriptor) getUncachedPermissionsDescriptor( SYSCOLPERMS_CATALOG_NUM, SYSCOLPERMSRowFactory.GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUM, key); | if (key.getObjectID() == null) { return (ColPermsDescriptor) getUncachedPermissionsDescriptor( SYSCOLPERMS_CATALOG_NUM, SYSCOLPERMSRowFactory.GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUM, key); }else { return (ColPermsDescriptor) getUncachedPermissionsDescriptor( SYSCOLPERMS_CATALOG_NUM, SYSCOLPERMSRowFactory.COLPERMSID_IN... | ColPermsDescriptor getUncachedColPermsDescriptor( ColPermsDescriptor key) throws StandardException { return (ColPermsDescriptor) getUncachedPermissionsDescriptor( SYSCOLPERMS_CATALOG_NUM, SYSCOLPERMSRowFactory.GRANTEE_TABLE_TYPE_GRANTOR_INDEX_NUM,... |
return (RoutinePermsDescriptor) getUncachedPermissionsDescriptor( SYSROUTINEPERMS_CATALOG_NUM, SYSROUTINEPERMSRowFactory.GRANTEE_ALIAS_GRANTOR_INDEX_NUM, key); | if (key.getObjectID() == null) { return (RoutinePermsDescriptor) getUncachedPermissionsDescriptor( SYSROUTINEPERMS_CATALOG_NUM, SYSROUTINEPERMSRowFactory.GRANTEE_ALIAS_GRANTOR_INDEX_NUM, key); } else { return (RoutinePermsDescriptor) getUncachedPermissionsDescriptor(SYSROUTINEPERMS_CATALOG_NUM, SYSROUTINEPERMSRowFa... | RoutinePermsDescriptor getUncachedRoutinePermsDescriptor( RoutinePermsDescriptor key) throws StandardException { return (RoutinePermsDescriptor) getUncachedPermissionsDescriptor( SYSROUTINEPERMS_CATALOG_NUM, SYSROUTINEPERMSRowFactory.GRANTEE_ALIAS... |
return (TablePermsDescriptor) getUncachedPermissionsDescriptor( SYSTABLEPERMS_CATALOG_NUM, SYSTABLEPERMSRowFactory.GRANTEE_TABLE_GRANTOR_INDEX_NUM, key); | if (key.getObjectID() == null) { return (TablePermsDescriptor) getUncachedPermissionsDescriptor( SYSTABLEPERMS_CATALOG_NUM, SYSTABLEPERMSRowFactory.GRANTEE_TABLE_GRANTOR_INDEX_NUM, key); } else { return (TablePermsDescriptor) getUncachedPermissionsDescriptor(SYSTABLEPERMS_CATALOG_NUM, SYSTABLEPERMSRowFactory.TABLEP... | TablePermsDescriptor getUncachedTablePermsDescriptor( TablePermsDescriptor key) throws StandardException { return (TablePermsDescriptor) getUncachedPermissionsDescriptor( SYSTABLEPERMS_CATALOG_NUM, SYSTABLEPERMSRowFactory.GRANTEE_TABLE_GRANTOR_IND... |
getMirrorControlFileName().exists()) | privExists(getMirrorControlFileName())) | public void boot(boolean create, Properties startParams) throws StandardException { dataDirectory = startParams.getProperty(PersistentService.ROOT); logDevice = startParams.getProperty(Attribute.LOG_DEVICE); if( logDevice != null) { // in case the user specifies logDevice in URL form String... |
public Value plus(long v) { return plus(new Value("tmp", v)); } | public Value plus(BigDecimal v) { return plus(new Value("tmp", v)); } | public Value plus(long v) { return plus(new Value("tmp", v)); } |
public void tearDown() throws SQLException { | protected void tearDown() throws Exception { | public void tearDown() throws SQLException { // Close default connection // Check if connection is open to avoid exception on rollback. if (con != null && !con.isClosed()) { // Abort changes that may have been done in the test. // The test-method may however commit... |
con = null; xads = null; xac = null; xar = null; super.tearDown(); | public void tearDown() throws SQLException { // Close default connection // Check if connection is open to avoid exception on rollback. if (con != null && !con.isClosed()) { // Abort changes that may have been done in the test. // The test-method may however commit... | |
public DataTypeDescriptor getTypeServices() | public DataTypeDescriptor getTypeServices() throws StandardException | public DataTypeDescriptor getTypeServices() { DataTypeDescriptor dtd = super.getTypeServices(); if( dtd == null && sourceColumn != null) { dtd = sourceColumn.getTypeServices(); if( dtd != null) setType( dtd); } return dtd; } // end of getTypeSe... |
Object columnId) | Object columnId) throws StandardException | public void init( Object sourceResultSet, Object sourceColumn, Object columnId) { ResultColumn source = (ResultColumn) sourceColumn; this.sourceResultSet = (ResultSetNode) sourceResultSet; this.sourceColumn = source; this.columnId = ((Integer) columnId).intValue(); setType(source.getTypeServices())... |
public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException { | public void updateNCharacterStream(int columnIndex, Reader x) throws SQLException { | public void updateNCharacterStream(int columnIndex, Reader x, long length) throws SQLException { throw Util.notImplemented(); } |
skipNullKeyColumns); | skipNullKeyColumns, false ); | public BackingStoreHashTableFromScan( TransactionController tc, long conglomId, int open_mode, int lock_level, int isolation_level, FormatableBitSet scanColumnList, DataValueDescriptor[] start... |
void markUpdatableByCursor(Vector updateColumns) | void markUpdatableByCursor() | void markUpdatableByCursor(Vector updateColumns) { commonCodeForUpdatableByCursor(updateColumns, false); } |
commonCodeForUpdatableByCursor(updateColumns, false); | int size = size(); for (int index = 0; index < size; index++) { if (((ResultColumn) elementAt(index)).getSourceTableName() != null) ((ResultColumn) elementAt(index)).markUpdatableByCursor(); } | void markUpdatableByCursor(Vector updateColumns) { commonCodeForUpdatableByCursor(updateColumns, false); } |
if(baseTableName != null) if(baseTableName.getSchemaName() == null && correlationName == null) baseTableName.bind(this.getDataDictionary()); | public ResultColumn getMatchingColumn(ColumnReference columnReference) throws StandardException { ResultColumn resultColumn = null; TableName columnsTableName; columnsTableName = columnReference.getTableNameNode(); if (SanityManager.DEBUG) { SanityManager.ASSERT(preStmt!=null, "must have prepared stateme... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.