Skip to content

Commit

Permalink
Merge pull request #133 from alexey-goloburdin/fix-describe-seq
Browse files Browse the repository at this point in the history
Fix typo in sequence describe SQL command, add missed quotation mark
  • Loading branch information
amjith authored Jan 16, 2023
2 parents 8303d23 + 575a7c2 commit a55cbe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgspecial/dbcommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit a55cbe4

Please sign in to comment.