Skip to content
Snippets Groups Projects
Commit f08c33e8 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix port_from_sqlite_to_postgres after changes to storage layer.

parent 89c0cd4a
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ class Store(object): ...@@ -106,7 +106,7 @@ class Store(object):
try: try:
txn = conn.cursor() txn = conn.cursor()
return func( return func(
LoggingTransaction(txn, desc, self.database_engine), LoggingTransaction(txn, desc, self.database_engine, []),
*args, **kwargs *args, **kwargs
) )
except self.database_engine.module.DatabaseError as e: except self.database_engine.module.DatabaseError as e:
...@@ -378,9 +378,7 @@ class Porter(object): ...@@ -378,9 +378,7 @@ class Porter(object):
for i, row in enumerate(rows): for i, row in enumerate(rows):
rows[i] = tuple( rows[i] = tuple(
self.postgres_store.database_engine.encode_parameter( conv(j, col)
conv(j, col)
)
for j, col in enumerate(row) for j, col in enumerate(row)
if j > 0 if j > 0
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment