Strabon

changeset 37:20d879e39a63

Fixes buildInsertSelect that was generating a triples.predobj column
author Babis Nikolaou <charnik@di.uoa.gr>
date Sun Mar 04 00:46:25 2012 +0200 (2012-03-04)
parents 16ba7e34efc4
children dd161fd165ea 9c76014791c3
files generaldb/src/main/java/org/openrdf/sail/generaldb/schema/TransactionTable.java
line diff
     1.1 --- a/generaldb/src/main/java/org/openrdf/sail/generaldb/schema/TransactionTable.java	Thu Mar 01 02:14:28 2012 +0200
     1.2 +++ b/generaldb/src/main/java/org/openrdf/sail/generaldb/schema/TransactionTable.java	Sun Mar 04 00:46:25 2012 +0200
     1.3 @@ -8,12 +8,11 @@
     1.4  import java.sql.Connection;
     1.5  import java.sql.PreparedStatement;
     1.6  import java.sql.SQLException;
     1.7 -import java.sql.Timestamp;
     1.8  import java.util.concurrent.BlockingQueue;
     1.9  
    1.10 -import org.openrdf.sail.rdbms.schema.RdbmsTable;
    1.11  import org.openrdf.sail.generaldb.GeneralDBSqlTable;
    1.12  import org.openrdf.sail.helpers.DefaultSailChangedEvent;
    1.13 +import org.openrdf.sail.rdbms.schema.RdbmsTable;
    1.14  
    1.15  /**
    1.16   * Manages a temporary table used when uploading new statements with the same
    1.17 @@ -175,7 +174,7 @@
    1.18  		sb.append("INSERT INTO ").append(tableName).append(" "); //sb.append("INSERT INTO ").append(tableName).append("\n");
    1.19  		columns.append(" ctx, subj, "); //sb.append("SELECT DISTINCT ctx, subj, ");
    1.20  		if (triples.isPredColumnPresent()) {
    1.21 -			columns.append("pred");//sb.append("pred, ");
    1.22 +			columns.append("pred, ");//sb.append("pred, ");
    1.23  		}
    1.24  		
    1.25  		//FIXME change due to need to accommodate temporals