From 575a7c20bb5842fdc5b32452d53416a0dd397fe8 Mon Sep 17 00:00:00 2001 From: Alexey Goloburdin Date: Sun, 15 Jan 2023 17:56:30 +0300 Subject: [PATCH] Fix typo in sequence describe SQL command, add missed quotation mark --- pgspecial/dbcommands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgspecial/dbcommands.py b/pgspecial/dbcommands.py index 904faac..e609362 100644 --- a/pgspecial/dbcommands.py +++ b/pgspecial/dbcommands.py @@ -971,7 +971,7 @@ def describe_one_table_details(cur, schema_name, relation_name, oid, verbose): # If it's a seq, fetch it's value and store it for later. if tableinfo.relkind == "S": # Do stuff here. - sql = f"""SELECT * FROM "{schema_name}"."{relation_name}""" + sql = f'''SELECT * FROM "{schema_name}"."{relation_name}"''' log.debug(sql) cur.execute(sql) if not (cur.rowcount > 0):