bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public boolean isDeleted() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); return hashRowArray[POS_ROWDELETED].getBoolean(); } | public boolean isDeleted() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); return hashRowArray[POS_ROWDELETED].getBoolean(); } | 1,103,252 |
public boolean isUpdated() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); return hashRowArray[POS_ROWUPDATED].getBoolean(); } | public boolean isUpdated() throws StandardException { positionInHashTable.setValue(currentPosition); DataValueDescriptor[] hashRowArray = (DataValueDescriptor[]) ht.get(positionInHashTable); return hashRowArray[POS_ROWUPDATED].getBoolean(); } | 1,103,253 |
public void setValue(int theValue) { value = theValue; isnull = false; } | public void setValue(String theValue) throws StandardException { value = theValue; isnull = false; } | 1,103,254 |
public void setValue(int theValue) { value = theValue; isnull = false; } | public void setValue(int theValue) { value = theValue; isnull = false; } | 1,103,255 |
public void recusouAumentoAposta(Jogador j) { // Notifica o estrategia estrategia.recusouAumentoAposta(j.getPosicao()); // Se estivermos aguardando resposta, contabiliza if (numRespostasAguardando > 0) numRespostasAguardando--; } | public void recusouAumentoAposta(Jogador j) { // Notifica o estrategia estrategia.recusouAumentoAposta(j.getPosicao()); // Se estivermos aguardando resposta, contabiliza if (numRespostasAguardando > 0) { numRespostasAguardando--; } | 1,103,256 |
public void vez(Jogador j, boolean podeFechada) { if (this.equals(j)) { // D um tempinho, pra fingir que est "pensando" try { Thread.sleep(Math.abs(random.nextInt()) % 250 + 200); } catch (InterruptedException e) { // Nada, apenas timing... } // Atualiza a situao do jogo (incluindo as cartas na mo) ... | public void vez(Jogador j, boolean podeFechada) { if (this.equals(j)) { // D um tempinho, pra fingir que est "pensando" try { Thread.sleep(Math.abs(random.nextInt()) % 250 + 200); } catch (InterruptedException e) { // Nada, apenas timing... } // Atualiza a situao do jogo (incluindo as cartas na mo) ... | 1,103,258 |
public void vez(Jogador j, boolean podeFechada) { if (this.equals(j)) { // D um tempinho, pra fingir que est "pensando" try { Thread.sleep(Math.abs(random.nextInt()) % 250 + 200); } catch (InterruptedException e) { // Nada, apenas timing... } // Atualiza a situao do jogo (incluindo as cartas na mo) ... | public void vez(Jogador j, boolean podeFechada) { if (this.equals(j)) { // D um tempinho, pra fingir que est "pensando" try { Thread.sleep(Math.abs(random.nextInt()) % 250 + 200); } catch (InterruptedException e) { // Nada, apenas timing... } // Atualiza a situao do jogo (incluindo as cartas na mo) ... | 1,103,259 |
public void vez(Jogador j, boolean podeFechada) { if (this.equals(j)) { // D um tempinho, pra fingir que est "pensando" try { Thread.sleep(Math.abs(random.nextInt()) % 250 + 200); } catch (InterruptedException e) { // Nada, apenas timing... } // Atualiza a situao do jogo (incluindo as cartas na mo) ... | public void vez(Jogador j, boolean podeFechada) { if (this.equals(j)) { // D um tempinho, pra fingir que est "pensando" try { Thread.sleep(Math.abs(random.nextInt()) % 250 + 200); } catch (InterruptedException e) { // Nada, apenas timing... } // Atualiza a situao do jogo (incluindo as cartas na mo) ... | 1,103,260 |
protected DMLWriteResultSet(Activation activation, ConstantAction constantAction) throws StandardException { super(activation); this.constantAction = (WriteCursorConstantAction) constantAction; baseRowReadMap = this.constantAction.getBaseRowReadMap(); streamStorableHeapColIds = this.constantAction.getStreamStorab... | protected DMLWriteResultSet(Activation activation) throws StandardException { super(activation); this.constantAction = (WriteCursorConstantAction) constantAction; baseRowReadMap = this.constantAction.getBaseRowReadMap(); streamStorableHeapColIds = this.constantAction.getStreamStorableHeapColIds(); TransactionCon... | 1,103,263 |
protected DMLWriteResultSet(Activation activation, ConstantAction constantAction) throws StandardException { super(activation); this.constantAction = (WriteCursorConstantAction) constantAction; baseRowReadMap = this.constantAction.getBaseRowReadMap(); streamStorableHeapColIds = this.constantAction.getStreamStorab... | protected DMLWriteResultSet(Activation activation, ConstantAction constantAction) throws StandardException { super(activation); this.constantAction = (WriteCursorConstantAction) constantAction; baseRowReadMap = this.constantAction.getBaseRowReadMap(); streamStorableHeapColIds = this.constantAction.getStreamStorab... | 1,103,264 |
protected DDMReader(CcsidManager ccsidManager, InputStream inputStream) { buffer = new byte[DEFAULT_BUFFER_SIZE]; ddmCollectionLenStack = new long[MAX_MARKS_NESTING]; this.ccsidManager = ccsidManager; this.inputStream = inputStream; initialize(null, null); // turn off tracing internalTrace = false; } | protected DDMReader (DRDAConnThread agent, DssTrace dssTrace) { buffer = new byte[DEFAULT_BUFFER_SIZE]; ddmCollectionLenStack = new long[MAX_MARKS_NESTING]; this.ccsidManager = ccsidManager; this.inputStream = inputStream; initialize(null, null); // turn off tracing internalTrace = false; } | 1,103,268 |
protected DDMReader(CcsidManager ccsidManager, InputStream inputStream) { buffer = new byte[DEFAULT_BUFFER_SIZE]; ddmCollectionLenStack = new long[MAX_MARKS_NESTING]; this.ccsidManager = ccsidManager; this.inputStream = inputStream; initialize(null, null); // turn off tracing internalTrace = false; } | protected DDMReader(CcsidManager ccsidManager, InputStream inputStream) { buffer = new byte[DEFAULT_BUFFER_SIZE]; ddmCollectionLenStack = new long[MAX_MARKS_NESTING]; this.ccsidManager = ccsidManager; this.inputStream = inputStream; initialize(null, null); // turn off tracing internalTrace = false; } | 1,103,269 |
public static void setBigDecimalString(PreparedStatement ps, int parameterIndex, String bdString) throws SQLException{ switch(representation){ case BIGDECIMAL_REPRESENTATION: ps.setBigDecimal(parameterIndex,new BigDecimal(bdString)); break; case STRING_REPRESENTATION: //setString is used since setBigDe... | public static void setBigDecimalString(PreparedStatement ps, int parameterIndex, String bdString) throws SQLException{ switch(representation){ case BIGDECIMAL_REPRESENTATION: BigDecimal bd = (bdString == null) ? null : new BigDecimal(bdString); ps.setBigDecimal(parameterIndex, bd); break; case STRING_REPR... | 1,103,270 |
public static void setObjectString(PreparedStatement ps, int parameterIndex, String objectString) throws SQLException{ switch(representation){ case BIGDECIMAL_REPRESENTATION: ps.setObject(parameterIndex,new BigDecimal(objectString)); break; case STRING_REPRESENTATION: ps.setObject(parameterIndex,object... | public static void setObjectString(PreparedStatement ps, int parameterIndex, String objectString) throws SQLException{ switch(representation){ case BIGDECIMAL_REPRESENTATION: BigDecimal bd = (objectString == null) ? null : new BigDecimal(objectString); ps.setObject(parameterIndex,bd); break; case STRING_R... | 1,103,271 |
public static void dumpRS(ResultSet s) throws SQLException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.println("(no columns!)"); re... | public static void dumpRS(ResultSet s) throws SQLException, UnsupportedEncodingException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.... | 1,103,272 |
public static void dumpRS(ResultSet s) throws SQLException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.println("(no columns!)"); re... | public static void dumpRS(ResultSet s) throws SQLException { if (s == null) { System.out.println("<NULL>"); return; } ResultSetMetaData rsmd = s.getMetaData(); // Get the number of columns in the result set int numCols = rsmd.getColumnCount(); if (numCols <= 0) { System.out.println("(no columns!)"); re... | 1,103,273 |
public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | 1,103,274 |
public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | 1,103,275 |
public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | 1,103,276 |
public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | public static void testCharForBitDataCoalesce( Connection conn) throws Throwable { try { Statement s = conn.createStatement(); PreparedStatement ps; try { s.executeUpdate("drop table tC"); } catch(Exception ex) {} s.executeUpdate("create table tC (cbd1 char(254) for bit data, cbd2 char(40) for bit dat... | 1,103,277 |
public void bindCastNodeOnly() throws StandardException { /* ** The result type is always castTarget. */ setType(castTarget); destCTI = castTarget.getTypeId(); sourceCTI = castOperand.getTypeId(); /* ** If it is a java cast, do some work to make sure ** the classes are ok and that they are compatible */ i... | public void bindCastNodeOnly() throws StandardException { /* ** The result type is always castTarget. */ setType(castTarget); destCTI = castTarget.getTypeId(); sourceCTI = castOperand.getTypeId(); /* ** If it is a java cast, do some work to make sure ** the classes are ok and that they are compatible */ i... | 1,103,278 |
void bindParameter() throws StandardException { ((ParameterNode) castOperand).setDescriptor(castTarget); } | void bindParameter() throws StandardException { castOperand.setType(castTarget); } | 1,103,279 |
public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { castOperand.generateExpression(acb, mb); /* No need to generate code for null constants */ if (castOperand instanceof UntypedNullConstantNode) { return; } /* HACK ALERT. When casting a para... | public void generateExpression(ExpressionClassBuilder acb, MethodBuilder mb) throws StandardException { castOperand.generateExpression(acb, mb); /* No need to generate code for null constants */ if (castOperand instanceof UntypedNullConstantNode) { return; } /* HACK ALERT. When casting a para... | 1,103,280 |
public static float normalizeREAL(double v) throws StandardException { // can't just cast it to float and call normalizeFloat(float) since casting can round down to 0.0 if ( (Double.isNaN(v) || Double.isInfinite(v)) || ((v < Limits.DB2_SMALLEST_REAL) || (v > Limits.DB2_LARGEST_REAL)) ||... | public static float normalizeREAL(double v) throws StandardException { // can't just cast it to float and call normalizeFloat(float) since casting can round down to 0.0 if ( (Double.isNaN(v) || Double.isInfinite(v)) || ((v < Limits.DB2_SMALLEST_REAL) || (v > Limits.DB2_LARGEST_REAL)) ||... | 1,103,281 |
public static float normalizeREAL(double v) throws StandardException { // can't just cast it to float and call normalizeFloat(float) since casting can round down to 0.0 if ( (Double.isNaN(v) || Double.isInfinite(v)) || ((v < Limits.DB2_SMALLEST_REAL) || (v > Limits.DB2_LARGEST_REAL)) ||... | public static float normalizeREAL(double v) throws StandardException { // can't just cast it to float and call normalizeFloat(float) since casting can round down to 0.0 if ( (Double.isNaN(v) || Double.isInfinite(v)) || ((v < Limits.DB2_SMALLEST_REAL) || (v > Limits.DB2_LARGEST_REAL)) ||... | 1,103,282 |
public static float normalizeREAL(double v) throws StandardException { // can't just cast it to float and call normalizeFloat(float) since casting can round down to 0.0 if ( (Double.isNaN(v) || Double.isInfinite(v)) || ((v < Limits.DB2_SMALLEST_REAL) || (v > Limits.DB2_LARGEST_REAL)) ||... | public static float normalizeREAL(double v) throws StandardException { // can't just cast it to float and call normalizeFloat(float) since casting can round down to 0.0 if ( (Double.isNaN(v) || Double.isInfinite(v)) || ((v < Limits.DB2_SMALLEST_REAL) || (v > Limits.DB2_LARGEST_REAL)) ||... | 1,103,283 |
public void runMe(LocalizedOutput log, LocalizedOutput out, BufferedInputStream infile) { utilMain utilInstance; LocalizedInput is; is = LocalizedResource.getInstance().getNewInput(infile); LocalizedInput [] in = { is }; out.println("--------------"+file+"-----------------"); utilInstance = new util... | public void runMe(LocalizedOutput log, LocalizedOutput out, BufferedInputStream infile) { utilMain utilInstance; LocalizedInput is; is = LocalizedResource.getInstance().getNewInput(infile); LocalizedInput [] in = { is }; out.println("--------------"+file+"-----------------"); utilInstance = new util... | 1,103,284 |
public boolean isPoolable() throws SQLException{ throw SQLExceptionFactory.notImplemented ("isPoolable ()"); } | public boolean isPoolable() throws SQLException{ try { synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "isPoolable"); } checkForClosedStatement(); return isPoolable; } } catch (SqlException se) { throw se.getSQLException(); } } | 1,103,285 |
public void setPoolable(boolean poolable) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setPoolable (boolean)"); } | public void setPoolable(boolean poolable) throws SQLException{ throw SQLExceptionFactory.notImplemented ("setPoolable (boolean)"); } | 1,103,286 |
public Clob(Agent agent, java.io.Reader reader, int length) { this(agent); sqlLength_ = length; lengthObtained_ = true; characterStream_ = reader; dataType_ |= CHARACTER_STREAM; } | public Clob(Agent agent, String string) { this(agent); sqlLength_ = length; lengthObtained_ = true; characterStream_ = reader; dataType_ |= CHARACTER_STREAM; } | 1,103,287 |
public Clob(Agent agent, java.io.Reader reader, int length) { this(agent); sqlLength_ = length; lengthObtained_ = true; characterStream_ = reader; dataType_ |= CHARACTER_STREAM; } | public Clob(Agent agent, java.io.Reader reader, int length) { this(agent); string_ = string; sqlLength_ = string_.length(); lengthObtained_ = true; characterStream_ = reader; dataType_ |= CHARACTER_STREAM; } | 1,103,288 |
public Clob(Agent agent, java.io.Reader reader, int length) { this(agent); sqlLength_ = length; lengthObtained_ = true; characterStream_ = reader; dataType_ |= CHARACTER_STREAM; } | public Clob(Agent agent, java.io.Reader reader, int length) { this(agent); sqlLength_ = length; lengthObtained_ = true; characterStream_ = reader; dataType_ |= CHARACTER_STREAM; } | 1,103,289 |
public ResultSetNode bindNonVTITables(DataDictionary dataDictionary, FromList fromListParam) throws StandardException { TableDescriptor tableDescriptor = bindTableDescriptor(); if (tableDescriptor.getTableType() == TableDescriptor.VTI_TYPE) { ResultSetNode vtiNode = getNodeFactory().mapTableAsVTI( ... | public ResultSetNode bindNonVTITables(DataDictionary dataDictionary, FromList fromListParam) throws StandardException { TableDescriptor tableDescriptor = bindTableDescriptor(); if (tableDescriptor.getTableType() == TableDescriptor.VTI_TYPE) { ResultSetNode vtiNode = getNodeFactory().mapTableAsVTI( ... | 1,103,291 |
private TableDescriptor bindTableDescriptor() throws StandardException { String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(schemaName); tableDescriptor = getTableDescriptor(tableName.getTableName(), sd); if (tableDescriptor != null) { this.tableDescriptor = tableDescripto... | private TableDescriptor bindTableDescriptor() throws StandardException { String schemaName = tableName.getSchemaName(); SchemaDescriptor sd = getSchemaDescriptor(schemaName); tableDescriptor = getTableDescriptor(tableName.getTableName(), sd); if (tableDescriptor != null) { this.tableDescriptor = tableDescripto... | 1,103,292 |
protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = getOrigTableName().getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema ... | 1,103,293 |
protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | 1,103,294 |
protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | 1,103,295 |
protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | protected FromTable getFromTableByName(String name, String schemaName, boolean exactMatch) throws StandardException { String ourSchemaName = tableName.getSchemaName(); String fullName = (schemaName != null) ? (schemaName + '.' + name) : name; /* If an exact string match is required then: * o If schema name spec... | 1,103,296 |
public ColumnReference getColumnOperand(Optimizable optTable) { ColumnReference cr; if (leftOperand instanceof ColumnReference) { /* ** The left operand is a column reference. ** Is it the correct column? */ cr = (ColumnReference) leftOperand; if (cr.getTableNumber() == optTable.getTableNumber()) { ... | public ColumnReference getColumnOperand( Optimizable optTable, int columnPosition) { ColumnReference cr; if (leftOperand instanceof ColumnReference) { /* ** The left operand is a column reference. ** Is it the correct column? */ cr = (ColumnReference) leftOperand; if (cr.getTableNumber() == optTable.get... | 1,103,297 |
public ColumnReference getColumnOperand(Optimizable optTable) { ColumnReference cr; if (leftOperand instanceof ColumnReference) { /* ** The left operand is a column reference. ** Is it the correct column? */ cr = (ColumnReference) leftOperand; if (cr.getTableNumber() == optTable.getTableNumber()) { ... | public ColumnReference getColumnOperand(Optimizable optTable) { FromTable ft = (FromTable) optTable; if (leftOperand instanceof ColumnReference) { /* ** The left operand is a column reference. ** Is it the correct column? */ cr = (ColumnReference) leftOperand; if (cr.getTableNumber() == optTable.getTabl... | 1,103,298 |
public ColumnReference getColumnOperand(Optimizable optTable) { ColumnReference cr; if (leftOperand instanceof ColumnReference) { /* ** The left operand is a column reference. ** Is it the correct column? */ cr = (ColumnReference) leftOperand; if (cr.getTableNumber() == optTable.getTableNumber()) { ... | public ColumnReference getColumnOperand(Optimizable optTable) { ColumnReference cr; if (leftOperand instanceof ColumnReference) { /* ** The left operand is a column reference. ** Is it the correct column? */ cr = (ColumnReference) leftOperand; if (cr.getTableNumber() == optTable.getTableNumber()) { ... | 1,103,299 |
public FormatableArrayHolder(Object[] array) { if (SanityManager.DEBUG) { SanityManager.ASSERT(array != null, "array input to constructor is null, code can't handle this."); } this.array = array; } | public FormatableArrayHolder() { if (SanityManager.DEBUG) { SanityManager.ASSERT(array != null, "array input to constructor is null, code can't handle this."); } this.array = array; } | 1,103,300 |
public FormatableArrayHolder(Object[] array) { if (SanityManager.DEBUG) { SanityManager.ASSERT(array != null, "array input to constructor is null, code can't handle this."); } this.array = array; } | public FormatableArrayHolder(Object[] array) { if (SanityManager.DEBUG) { SanityManager.ASSERT(array != null, "array input to constructor is null, code can't handle this."); } this.array = array; } | 1,103,301 |
public boolean[] isAscending() { return id.isAscending(); } | public boolean isAscending(Integer keyColumnPosition) { return id.isAscending(); } | 1,103,302 |
public boolean[] isAscending() { return id.isAscending(); } | public boolean[] isAscending() { return id.isAscending(keyColumnPosition); } | 1,103,303 |
void markUpdated(ResultColumnList updateColumns) { ResultColumn updateColumn; ResultColumn resultColumn; int size = updateColumns.size(); for (int index = 0; index < size; index++) { updateColumn = (ResultColumn) updateColumns.elementAt(index); resultColumn = getResultColumn(updateColumn.getName()); /* **... | void markUpdated() { ResultColumn updateColumn; ResultColumn resultColumn; int size = updateColumns.size(); for (int index = 0; index < size; index++) { updateColumn = (ResultColumn) updateColumns.elementAt(index); resultColumn = getResultColumn(updateColumn.getName()); /* ** This ResultColumnList may not... | 1,103,304 |
void markUpdated(ResultColumnList updateColumns) { ResultColumn updateColumn; ResultColumn resultColumn; int size = updateColumns.size(); for (int index = 0; index < size; index++) { updateColumn = (ResultColumn) updateColumns.elementAt(index); resultColumn = getResultColumn(updateColumn.getName()); /* **... | void markUpdated(ResultColumnList updateColumns) { ResultColumn updateColumn; ResultColumn resultColumn; int size = updateColumns.size(); for (int index = 0; index < size; index++) { updateColumn = (ResultColumn) updateColumns.elementAt(index); resultColumn = getResultColumn(updateColumn.getName()); /* **... | 1,103,305 |
void markUpdated(ResultColumnList updateColumns) { ResultColumn updateColumn; ResultColumn resultColumn; int size = updateColumns.size(); for (int index = 0; index < size; index++) { updateColumn = (ResultColumn) updateColumns.elementAt(index); resultColumn = getResultColumn(updateColumn.getName()); /* **... | void markUpdated(ResultColumnList updateColumns) { ResultColumn updateColumn; ResultColumn resultColumn; int size = updateColumns.size(); for (int index = 0; index < size; index++) { updateColumn = (ResultColumn) updateColumns.elementAt(index); resultColumn = getResultColumn(updateColumn.getName()); /* **... | 1,103,306 |
static int computeEncodedDate(java.util.Date value, Calendar currentCal) throws StandardException { if (value == null) return 0; //encoded dates have a 0 value for null if( currentCal == null) currentCal = new GregorianCalendar(); currentCal.setTime(value); return SQLDate.computeEncodedD... | static int computeEncodedDate(java.util.Date value, Calendar currentCal) throws StandardException { if (value == null) return 0; //encoded dates have a 0 value for null if( currentCal == null) currentCal = new GregorianCalendar(); currentCal.setTime(value); return SQLDate.computeEncodedD... | 1,103,307 |
public CostEstimate optimizeIt( Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { /* ** RESOLVE: Most types of Optimizables only implement estimateCost(), ** and leave it up to optimizeIt() in FromTable to fi... | public CostEstimate optimizeIt( Optimizer optimizer, OptimizablePredicateList predList, CostEstimate outerCost, RowOrdering rowOrdering) throws StandardException { /* ** RESOLVE: Most types of Optimizables only implement estimateCost(), ** and leave it up to optimizeIt() in FromTable to fi... | 1,103,308 |
public GenericResultDescription ( ResultDescription rd, int[] theCols ) { if (SanityManager.DEBUG) { SanityManager.ASSERT(theCols != null, "theCols argument to GenericResultDescription is null"); } this.columns = new ResultColumnDescriptor[theCols.length]; for (int i = 0; i < theCols.length; i++) { co... | public GenericResultDescription ( ResultDescription rd, int[] theCols ) { if (SanityManager.DEBUG) { SanityManager.ASSERT(theCols != null, "theCols argument to GenericResultDescription is null"); } this.columns = new ResultColumnDescriptor[theCols.length]; for (int i = 0; i < theCols.length; i++) { co... | 1,103,309 |
public GenericResultDescription ( ResultDescription rd, int[] theCols ) { if (SanityManager.DEBUG) { SanityManager.ASSERT(theCols != null, "theCols argument to GenericResultDescription is null"); } this.columns = new ResultColumnDescriptor[theCols.length]; for (int i = 0; i < theCols.length; i++) { co... | public GenericResultDescription ( ResultDescription rd, int[] theCols ) { if (SanityManager.DEBUG) { SanityManager.ASSERT(theCols != null, "theCols argument to GenericResultDescription is null"); } this.columns = new ResultColumnDescriptor[theCols.length]; for (int i = 0; i < theCols.length; i++) { co... | 1,103,310 |
private void processFile(String filename) throws IOException, DRDAProtocolException { String prev_filename = current_filename; current_filename = filename; String hostName=getHostName(); FileReader fr; try { fr = new FileReader(filename); } catch (FileNotFoundException fnfe) { // if us... | private void processFile(String filename) throws IOException, DRDAProtocolException { String prev_filename = current_filename; current_filename = filename; String hostName=getHostName(); BufferedReader fr; try { fr = new FileReader(filename); } catch (FileNotFoundException fnfe) { // i... | 1,103,311 |
private void processFile(String filename) throws IOException, DRDAProtocolException { String prev_filename = current_filename; current_filename = filename; String hostName=getHostName(); FileReader fr; try { fr = new FileReader(filename); } catch (FileNotFoundException fnfe) { // if us... | private void processFile(String filename) throws IOException, DRDAProtocolException { String prev_filename = current_filename; current_filename = filename; String hostName=getHostName(); FileReader fr; try { fr = new BufferedReader(new InputStreamReader(new FileInputStream(filename),"UTF-... | 1,103,312 |
private void processFile(String filename) throws IOException, DRDAProtocolException { String prev_filename = current_filename; current_filename = filename; String hostName=getHostName(); FileReader fr; try { fr = new FileReader(filename); } catch (FileNotFoundException fnfe) { // if us... | private void processFile(String filename) throws IOException, DRDAProtocolException { String prev_filename = current_filename; current_filename = filename; String hostName=getHostName(); FileReader fr; try { fr = new FileReader(filename); } catch (FileNotFoundException fnfe) { // if us... | 1,103,313 |
public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { ResultColumn matchingRC; if (SanityManager.DEBUG) { SanityManager.ASSERT(fromList != null, "fromList is expected to be non-null"); } if (fromList.size() == 0) { throw Standar... | public ValueNode bindExpression(FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { ResultColumn matchingRC; if (SanityManager.DEBUG) { SanityManager.ASSERT(fromList != null, "fromList is expected to be non-null"); } if (fromList.size() == 0) { throw Standar... | 1,103,314 |
public ResultColumn bindColumnReference(ColumnReference columnReference) throws StandardException { boolean columnNameMatch = false; boolean tableNameMatch = false; FromTable fromTable; int currentLevel = -1; int previousLevel = -1; ResultColumn matchingRC = null; ResultColumn resultColumn; Strin... | public ResultColumn bindColumnReference(ColumnReference columnReference) throws StandardException { boolean columnNameMatch = false; boolean tableNameMatch = false; FromTable fromTable; int currentLevel = -1; int previousLevel = -1; ResultColumn matchingRC = null; ResultColumn resultColumn; Strin... | 1,103,315 |
public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* By the time we get here we should be a union all. * (We created a DistinctNode above us, if needed, * to eliminate the duplicates earlier.) */ if (SanityManager.DEBUG) { SanityManager.ASSERT(all,... | public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* By the time we get here we should be a union all. * (We created a DistinctNode above us, if needed, * to eliminate the duplicates earlier.) */ if (SanityManager.DEBUG) { SanityManager.ASSERT(all,... | 1,103,316 |
public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* By the time we get here we should be a union all. * (We created a DistinctNode above us, if needed, * to eliminate the duplicates earlier.) */ if (SanityManager.DEBUG) { SanityManager.ASSERT(all,... | public void generate(ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* By the time we get here we should be a union all. * (We created a DistinctNode above us, if needed, * to eliminate the duplicates earlier.) */ if (SanityManager.DEBUG) { SanityManager.ASSERT(all,... | 1,103,317 |
public void generate( ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. */ assignResultSetNumber(); // Get our final cost estimate based on the chil... | public void generate( ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. */ assignResultSetNumber(); // Get our final cost estimate based on the chil... | 1,103,318 |
public void generate( ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. */ assignResultSetNumber(); // Get our final cost estimate based on the chil... | public void generate( ActivationClassBuilder acb, MethodBuilder mb) throws StandardException { /* Get the next ResultSet #, so that we can number this ResultSetNode, its * ResultColumnList and ResultSet. */ assignResultSetNumber(); // Get our final cost estimate based on the chil... | 1,103,319 |
public static void main(String args[]) { try { TestConnection tc = new TestConnection(); tc.startTest(); } catch(Exception e) { System.out.println("Exception occurred in code StartTestConnection " + e); e.printStackTrace(); } } | public static void main(String args[]) { try { TestConnection tc = new TestConnection(); tc.startTest( conn_main ); } catch(Exception e) { System.out.println("Exception occurred in code StartTestConnection " + e); e.printStackTrace(); } } | 1,103,320 |
void startTest() { Connection conn = createEmbeddedConnection(); closeConnection(conn); Connection conn1 = createClientConnection(); closeConnection(conn1); } | void startTest() { Connection conn = createEmbeddedConnection(); closeConnection(conn); Connection conn1 = createClientConnection(); closeConnection(conn1); } | 1,103,321 |
public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) ... | public static final int writeInt(DataOutput out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) & ... | 1,103,322 |
public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) ... | public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.writeByte(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x... | 1,103,323 |
public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) ... | public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) ... | 1,103,324 |
public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) ... | public static final int writeInt(OutputStream out, int value) throws IOException { if (value < 0) throw new IOException(); if (value <= 0x3f) { out.write(value); return 1; } if (value <= 0x3fff) { out.write(0x40 | (value >>> 8)); out.write(value & 0xff); return 2; } out.write(((value >>> 24) | 0x80) ... | 1,103,325 |
public <T> T createQueryObject(Class<T> ifc) throws SQLException { throw SQLExceptionFactory.notImplemented ("createQueryObject (Class<T>)"); } | public <T> T createQueryObject(Class<T> ifc) throws SQLException { throw SQLExceptionFactory.notImplemented ("createQueryObject (Class<T>)"); } | 1,103,326 |
public memCheck (int num) { delay = num;} | public memCheck (int num) { delay = num;} | 1,103,329 |
public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { String locMsg = null; try { locMsg = formatMessage(getBundleForLocale(locale, messageId), messageId, args, true); return locMsg; } catch (MissingResourceException mre) { // message does not exist in the requested local... | public static void getLocalizedMessage(int sqlcode, short errmcLen, String sqlerrmc, String sqlerrp, int errd0, int errd1, int errd2, int errd3, int errd4, int errd5, String warn, String sqlState, String file, String localeStr, String[] msg, int[] rc) { String locMsg = null; try { locMsg = formatMessage(getBundleF... | 1,103,330 |
public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { String locMsg = null; try { locMsg = formatMessage(getBundleForLocale(locale, messageId), messageId, args, true); return locMsg; } catch (MissingResourceException mre) { // message does not exist in the requested local... | public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { int _pos1 = localeStr.indexOf("_"); int _pos2 = localeStr.lastIndexOf("_"); Locale locale = EN; if (_pos1 != -1) { String language = localeStr.substring(0, _pos1); if (_pos2 == _pos1) { String country = localeStr.substring(_p... | 1,103,331 |
public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { String locMsg = null; try { locMsg = formatMessage(getBundleForLocale(locale, messageId), messageId, args, true); return locMsg; } catch (MissingResourceException mre) { // message does not exist in the requested local... | public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { String locMsg = null; try { locMsg = formatMessage(getBundleForLocale(locale, messageId), messageId, args, true); return locMsg; } catch (MissingResourceException mre) { // message does not exist in the requested local... | 1,103,332 |
public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { String locMsg = null; try { locMsg = formatMessage(getBundleForLocale(locale, messageId), messageId, args, true); return locMsg; } catch (MissingResourceException mre) { // message does not exist in the requested local... | public static String getLocalizedMessage(Locale locale, String messageId, Object [] args) { String locMsg = null; try { locMsg = formatMessage(getBundleForLocale(locale, messageId), messageId, args, true); return locMsg; } catch (MissingResourceException mre) { // message does not exist in the requested local... | 1,103,333 |
StorageFile newPersistentFile( String path) { String dir = dataDirectory; if (canonicalName != null && path != null && home != null && !path.startsWith(home)) { dir = canonicalName; } if( path == null) return new DirFile4(dir, rwsOK); retur... | StorageFile newPersistentFile( String path) { String dir = dataDirectory; if (canonicalName != null && path != null && home != null && !path.startsWith(home)) { dir = canonicalName; } if( path == null) return new DirFile4(dir, rwsOK); retur... | 1,103,335 |
StorageFile newPersistentFile( String path) { String dir = dataDirectory; if (canonicalName != null && path != null && home != null && !path.startsWith(home)) { dir = canonicalName; } if( path == null) return new DirFile4(dir, rwsOK); retur... | StorageFile newPersistentFile( String path) { String dir = dataDirectory; if (canonicalName != null && path != null && home != null && !path.startsWith(home)) { dir = canonicalName; } if( path == null) return new DirFile4(dir, rwsOK); retur... | 1,103,336 |
private void callCompress( Connection conn, String schemaName, String tableName, boolean purgeRows, boolean defragmentRows, boolean truncateEnd, boolean commit_operation) throws SQLException { CallableStatement cstmt = conn.prepareCall( ... | protected void callCompress( Connection conn, String schemaName, String tableName, boolean purgeRows, boolean defragmentRows, boolean truncateEnd, boolean commit_operation) throws SQLException { CallableStatement cstmt = conn.prepareCall( ... | 1,103,337 |
private void checkPurgePhase( Connection conn, boolean create_table, boolean long_table, String schemaName, String table_name, int num_rows) throws SQLException { testProgress( "begin checkPurgePhase" + num_rows + " row test, create = " + ... | private void checkPurgePhase( Connection conn, boolean create_table, boolean long_table, String schemaName, String table_name, int num_rows) throws SQLException { testProgress( "begin checkPurgePhase" + num_rows + " row test, create = " + ... | 1,103,338 |
private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | protected void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | 1,103,339 |
private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows, int start_value) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create... | 1,103,340 |
private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | 1,103,341 |
private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | private void createAndLoadTable( Connection conn, boolean create_table, String tblname, int num_rows) throws SQLException { if (create_table) { Statement s = conn.createStatement(); s.execute( "create table " + tblname + ... | 1,103,342 |
private void deleteAllRows( Connection conn, boolean create_table, boolean long_table, String schemaName, String table_name, int num_rows) throws SQLException { testProgress( "begin deleteAllRows," + num_rows + " row test, create = " + ... | private void deleteAllRows( Connection conn, boolean create_table, boolean long_table, String schemaName, String table_name, int num_rows) throws SQLException { testProgress( "begin deleteAllRows," + num_rows + " row test, create = " + ... | 1,103,343 |
private void simpleDeleteAllRows( Connection conn, boolean create_table, boolean long_table, String schemaName, String table_name, int num_rows) throws SQLException { testProgress( "begin simpleDeleteAllRows," + num_rows + " row test, create... | private void simpleDeleteAllRows( Connection conn, boolean create_table, boolean long_table, String schemaName, String table_name, int num_rows) throws SQLException { testProgress( "begin simpleDeleteAllRows," + num_rows + " row test, create... | 1,103,344 |
public BooleanDataValue XMLExists(SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the user specified a context node and that context // is null, result of evaluating the query is null // (per SQL/XML 6.17:General Rules:1.a), which means that we ... | public BooleanDataValue XMLExists(SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the user specified a context node and that context // is null, result of evaluating the query is null // (per SQL/XML 6.17:General Rules:1.a), which means that we ... | 1,103,345 |
public XMLDataValue XMLParse(String text, boolean preserveWS, SqlXmlUtil sqlxUtil) throws StandardException { try { if (preserveWS) { // Currently the only way a user can view the contents of // an XML value is by explicitly calling XMLSERIALIZE. // So do... | public XMLDataValue XMLParse(String text, boolean preserveWS, SqlXmlUtil sqlxUtil) throws StandardException { try { if (preserveWS) { // Currently the only way a user can view the contents of // an XML value is by explicitly calling XMLSERIALIZE. // So do... | 1,103,346 |
public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the context is null, we return null, // per SQL/XML[2006] 6.17:GR.1.a.ii.1. if (result == null) result = (XMLDataValue)getNewNull(); ... | public XMLDataValue XMLQuery(XMLDataValue result, SqlXmlUtil sqlxUtil) throws StandardException { if (this.isNull()) { // if the context is null, we return null, // per SQL/XML[2006] 6.17:GR.1.a.ii.1. if (result == null) result = (XMLDataValue)getNewNull(); ... | 1,103,347 |
protected boolean isPotentialService(ProtocolKey otherKey) { String otherCanonicalName; if (serviceType == null) otherCanonicalName = otherKey.getIdentifier(); else { otherCanonicalName = serviceType.getCanonicalServiceName(otherKey.getIdentifier()); // if the service name cannot be converted into a canonical... | protected boolean isPotentialService(ProtocolKey otherKey) { String otherCanonicalName; if (serviceType == null) otherCanonicalName = otherKey.getIdentifier(); else { try { otherCanonicalName = serviceType.getCanonicalServiceName(otherKey.getIdentifier()); } catch (StandardException se) { return false; } // i... | 1,103,349 |
boolean isActiveService(ProtocolKey otherKey) { synchronized (this) { if (inShutdown) return false; if (!isPotentialService(otherKey)) return false; if (topModule != null) { if (SanityManager.DEBUG) { SanityManager.ASSERT(topModule.isTypeAndName(serviceType, key.getFactoryInterface(), key.getI... | boolean isActiveService() { synchronized (this) { if (inShutdown) return false; if (!isPotentialService(otherKey)) return false; if (topModule != null) { if (SanityManager.DEBUG) { SanityManager.ASSERT(topModule.isTypeAndName(serviceType, key.getFactoryInterface(), key.getIdentifier())); } ... | 1,103,350 |
boolean isActiveService(ProtocolKey otherKey) { synchronized (this) { if (inShutdown) return false; if (!isPotentialService(otherKey)) return false; if (topModule != null) { if (SanityManager.DEBUG) { SanityManager.ASSERT(topModule.isTypeAndName(serviceType, key.getFactoryInterface(), key.getI... | boolean isActiveService(ProtocolKey otherKey) { synchronized (this) { if (inShutdown) return false; if (!isPotentialService(otherKey)) return false; if (topModule != null) { if (SanityManager.DEBUG) { SanityManager.ASSERT(topModule.isTypeAndName(serviceType, key.getFactoryInterface(), key.getI... | 1,103,351 |
public dblook(String[] args) { // Adjust the application in accordance with derby.ui.locale // and derby.ui.codeset langUtil = LocalizedResource.getInstance(); // Initialize class variables. initState(); // Parse the command line. if (!parseArgs(args)) { System.out.println(lookupMessage("DBLOOK_Usage"))... | public dblook(String[] args) throws Exception { // Adjust the application in accordance with derby.ui.locale // and derby.ui.codeset langUtil = LocalizedResource.getInstance(); // Initialize class variables. initState(); // Parse the command line. if (!parseArgs(args)) { System.out.println(lookupMessage... | 1,103,353 |
public dblook(String[] args) { // Adjust the application in accordance with derby.ui.locale // and derby.ui.codeset langUtil = LocalizedResource.getInstance(); // Initialize class variables. initState(); // Parse the command line. if (!parseArgs(args)) { System.out.println(lookupMessage("DBLOOK_Usage"))... | public dblook(String[] args) { // Adjust the application in accordance with derby.ui.locale // and derby.ui.codeset langUtil = LocalizedResource.getInstance(); // Initialize class variables. initState(); // Parse the command line. if (!parseArgs(args)) { System.out.println(lookupMessage("DBLOOK_Usage"))... | 1,103,354 |
public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | private void go() throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExceptions(sqlE), (String)null); ... | 1,103,356 |
public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | 1,103,357 |
public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | 1,103,358 |
public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | 1,103,359 |
public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | 1,103,360 |
public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | public void go(String srcUrl, String srcName) throws Exception { try { // Connect to the database, prepare statements, // and load id-to-name mappings. this.conn = DriverManager.getConnection(srcUrl); try { prepForDump(); } catch (SQLException sqlE) { Logs.debug(sqlE); Logs.debug(Logs.unRollExcep... | 1,103,361 |
public static void main(String[] args) { dblook looker = new dblook(args); try { looker.go(sourceDBUrl, sourceDBName); } catch (Exception e) { // Errors are logged and printed to console according // to command line arguments, so just ignore here. } } | public static void main(String[] args) { try { looker.go(sourceDBUrl, sourceDBName); } catch (Exception e) { // Errors are logged and printed to console according // to command line arguments, so just ignore here. } } | 1,103,362 |
public static void main(String[] args) { dblook looker = new dblook(args); try { looker.go(sourceDBUrl, sourceDBName); } catch (Exception e) { // Errors are logged and printed to console according // to command line arguments, so just ignore here. } } | public static void main(String[] args) { dblook looker = new dblook(args); try { new dblook(args); } catch (Exception e) { // Errors are logged and printed to console according // to command line arguments, so just ignore here. } } | 1,103,363 |
public static String stripQuotes(String quotedName) { if (quotedName == null) return null; if ((quotedName.indexOf("\"") == -1) && (quotedName.indexOf("'") == -1)) // nothing to do. return quotedName; return quotedName.substring(1, quotedName.length() - 1); } | public static String stripQuotes(String quotedName) { if (quotedName == null) return null; if ((quotedName.indexOf("\"") == -1) && (quotedName.indexOf("'") == -1)) // nothing to do. return quotedName; return quotedName.substring(1, quotedName.length() - 1); } | 1,103,365 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.