Skip to content

Commit ecc0c4b

Browse files
gjhigginsmwatts15
authored andcommitted
Update base.py
Avoid clash with SQLAlchemy booleans.
1 parent d4c0579 commit ecc0c4b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

rdflib_sqlalchemy/base.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,11 @@ def _build_triple_sql_command(self, subject, predicate, obj, context, quoted):
5353
Build an insert command for regular triple table.
5454
5555
"""
56-
stmt_table = (quoted and
57-
self.tables["quoted_statements"] or
58-
self.tables["asserted_statements"])
56+
stmt_table = (
57+
self.tables["quoted_statements"]
58+
if quoted
59+
else self.tables["asserted_statements"]
60+
)
5961

6062
triple_pattern = statement_to_term_combination(
6163
subject,

0 commit comments

Comments
 (0)