Changeset 79:2ac2820a0b13


Ignore:
Timestamp:
03/23/12 15:05:39 (6 years ago)
Author:
Babis Nikolaou <charnik@…>
Branch:
default
Message:

Fixes store for triples other than geometries. Go for geometries now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • monetdb/src/main/java/org/openrdf/sail/monetdb/MonetDBConnectionFactory.java

    r25 r79  
    7171        { 
    7272                try { 
    73                         Connection db = getConnection(); 
     73                         
     74                        /** 
     75                         * //Connection db = getConnection(); 
     76                         *  
     77                         * It's crucial not to create another connection here (as was  
     78                         * the case previously) and share the <nsAndTableIndexes> connection. Here,  
     79                         * the connection is going to be used for creating predicate tables. On 
     80                         * the other hand, <nsAndTableIndexes> connection is used for creating 
     81                         * the temporary <transaction_statements> table and executing the inserts 
     82                         * into it, and afterwards executing the inserts into the respective 
     83                         * predicate table. Since <nsAndTableIndexes> connection has autocommit off 
     84                         * and the connection here has autocommit on, then the tables created by the 
     85                         * connection here are not seen by <nsAndTableIndexes> (recall that connection 
     86                         * <nsAndTableIndexes> has already been started, so it precedes the newly connection 
     87                         * created here). Thus, we were getting an exception like "INSERT INTO <predicate>:  
     88                         * no such table".  
     89                         *  
     90                         * The workaround is not to create a new connection for the creation of predicate tables 
     91                         * and just share the <nsAndTableIndexes> connection. 
     92                         */ 
     93                        Connection db = nsAndTableIndexes; 
    7494                        db.setAutoCommit(true); 
    7595                        /**************************/ 
Note: See TracChangeset for help on using the changeset viewer.