mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
output_processors/postgres: Fix incorrect parameter
When verifying the database schema the connection instead of a cursor should be passed.
This commit is contained in:
parent
916f7cbb17
commit
f2d6f351cb
@ -521,7 +521,7 @@ class PostgresqlResultProcessor(OutputProcessor):
|
||||
self.conn.reset()
|
||||
|
||||
def verify_schema_versions(self):
|
||||
local_schema_version, db_schema_version = get_schema_versions(self.cursor)
|
||||
local_schema_version, db_schema_version = get_schema_versions(self.conn)
|
||||
if local_schema_version != db_schema_version:
|
||||
self.cursor.close()
|
||||
self.cursor = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user