-
Notifications
You must be signed in to change notification settings - Fork 20
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
SQL duplicate table for inner structures #75
Comments
I guess you are using a simplified version of the asn1 definition. I change the name generation - which did actually generate wrong type names by duplicating the inner name only - which should resolve this issue: e8aa191 Could you try the most recent master? |
Thanks for your quick reply and fix! You are right, and sorry for not mentioning, that I use a custom generated subset of the LTE RRC spec which just includes the |
Not sure if this will catch all cases, but do you mind trying d662e56 and c7b7401? |
Thanks, and sorry for my late reply.. For example
|
Hey, got another commit to that should fix the issue with the reference statements 2d69ca1 |
Hi, thanks! I tried the latest commit and the reference statements seem to be fixed now 👍 However I get errors because of references to yet not created tables. |
Hi,
I tried to convert a LTE RRC ASN1 spec to PSQL.
The ASN1 definition contains inner/nested structures such as
ENUMERATED
with the same name multiple times.Example ASN1 spec (https://github.com/proj3rd/3gpp-specs/blob/master/36-series/36331/36331-f01.asn1#L2152-L2166):
Resulting SQL definition via
asn1rs . ./spec.asn1 --convert-to sql
:Both
interval-FDD-r13
ENUMERATED for instance are converted to aIntervalFddR13IntervalFddR13
SQL table.The second
CREATE TABLE
statement fails because the table already exists.I am using the latest asn1rs master build (https://github.com/kellerkindt/asn1rs/tree/68afe21e68b8138414d3dec1f706bd5a7e86a95d)
The text was updated successfully, but these errors were encountered: