gjhiggins/rdflib — Issue #73: SQLite store open attempts to re-create existing store
Author: gjhiggins
Created: 2011-10-19 01:11:50+00:00
State: open

Originally filed by gsf747@gmail.com on 2009-07-14T06:06:06

The docstring on the SQLite store open() states, "If create is True a store
will be created if it does not already exist." However, a call to open
with create=True attempts to create the tables again, leading to the
following error:

Traceback (most recent call last):
File "", line 1, in
File "rdflib/store/SQLite.py", line 52, in open
c.execute(CREATE_ASSERTED_STATEMENTS_TABLE%(self._internedId))
pysqlite2.dbapi2.OperationalError: table kb_48181acd22_asserted_statements
already exists