-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column comments not assiciated to column names #173
Comments
@erwin-frohsinn hi! Thanks for opening the issue, can you provide the link to the doc for such type of comments? Normally in sql doble ‘-‘ mean start of the comments that are ignored in SQL interpretation and it is just a comment in the document without any associations |
Thanks for this fast reply!
https://www.postgresql.org/docs/current/sql-comment.html describes COMMENT.
I saw that the comments are written without leading "--", therefore I modified my code accordingly to
…-- Column comments
COMMENT ON COLUMN something.t_spiel.refsaalid IS 'Verweis auf den Saal';
COMMENT ON COLUMN something.t_spiel.freieplatzwahl IS 'Ja/Nein';
but also in this case, DDLParser produces
{'comments': [' Verweis auf den Saal', ' Ja/Nein']}
Thanks for providing this great program!
Kind regards.
On 21.11.22 07:15, Iuliia Volkova ***@***.***> wrote:
@erwin-frohsinn <https://github.com/erwin-frohsinn> hi! Thanks for
opening the issue, can you provide the link to the doc for such type of
comments? Normally in sql doble ‘-‘ mean start of the comments that are
ignored in SQL interpretation and it is just a comment in the document
without any associations
—
Reply to this email directly, view it on GitHub
<#173 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ARU4XPRL2HHMJPX4GYQIE2LWJMHPRANCNFSM6AAAAAASGI3RVM>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi. I have also run into the same problem. I would also like to see the comments added to the appropriate item. For example, if the ddl has a For example, this ddl:
produced this json (no comment section):
|
greetings! any update on this? |
Describe the bug
A DDL containing COMMENT ON COLUMN does not associate the comment to the column
To Reproduce
run this:
This code produces
... {'comments': [' Verweis auf den Saal', ' Ja/Nein']}...
which is just a collection of comments w/o reference to the fields they belong to.
Expected behavior
something like
{'comments': {'something.t_spiel.refsaalid': ' Verweis auf den Saal', 'something.t_spiel.freieplatzwahl': ' Ja/Nein'}}...
should be generated, or even better for postprocessing, the comment should be added to the field description:
{'check': None,
'default': None,
'name': 'refsaalid',
...
'comment': 'Verweis auf den Saal' },
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: