dbcli / pgspecial

Python implementation of postgres meta commands (backslash commands)
BSD 3-Clause "New" or "Revised" License
76 stars 53 forks source link

fix bad f-string placement on `describe_one_table_details` #150

Closed saucoide closed 6 months ago

saucoide commented 6 months ago

Description

The string is split in 2 and and concatenated implicitly, but the f-string is applied only to the first one, which has no variables to replace, while the second one does and inserts a literal {oid}

this is breaking \d on patterns with a pg syntax error e.g:

\d mytabl*

Checklist

j-bennet commented 6 months ago

Thank you @saucoide . Feel free to add your contribution to changelog.

saucoide commented 6 months ago

@j-bennet done - added it as "upcoming" since there is no unreleased version to add it to, hope that works