Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebinding a prefix fails with SQLite #39

Closed
abustany opened this issue Nov 6, 2018 · 1 comment
Closed

Rebinding a prefix fails with SQLite #39

abustany opened this issue Nov 6, 2018 · 1 comment

Comments

@abustany
Copy link

abustany commented Nov 6, 2018

The current SQLite schema for binds looks like

CREATE TABLE kb_f526f39709_namespace_binds (
	prefix VARCHAR(20) NOT NULL, 
	uri TEXT, 
	PRIMARY KEY (prefix), 
	UNIQUE (prefix)
);

and the code in store.bind does (as of version 0.3.8):

ins = self.tables["namespace_binds"].insert().values(
prefix=prefix, uri=namespace)
connection.execute(ins)

which fails when rebinding a prefix, as the old prefix is not replaced...

mwatts15 added a commit to mwatts15/rdflib-sqlalchemy-1 that referenced this issue Aug 24, 2019
- Should be allowed generally, but this only works for SQLite
mwatts15 added a commit to mwatts15/rdflib-sqlalchemy-1 that referenced this issue Aug 24, 2019
- Should be allowed generally, but this only works for SQLite
mwatts15 added a commit to mwatts15/rdflib-sqlalchemy-1 that referenced this issue Aug 25, 2019
- Should be allowed generally, but this only works for SQLite
mwatts15 added a commit that referenced this issue Aug 27, 2019
- Should be allowed generally, but this only works for SQLite
mwatts15 added a commit to mwatts15/rdflib-sqlalchemy-1 that referenced this issue Sep 2, 2019
- Should be allowed generally, but this only works for SQLite
mwatts15 added a commit to mwatts15/rdflib-sqlalchemy-1 that referenced this issue Sep 2, 2019
- Should be allowed generally, but this only works for SQLite
mwatts15 added a commit to mwatts15/rdflib-sqlalchemy-1 that referenced this issue Sep 3, 2019
- Should be allowed generally, but this only works for SQLite
@mwatts15
Copy link
Collaborator

This is resolved with the latest PR merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants