Skip to content

Rename __tname__ to __tname#82

Open
Namek wants to merge 1 commit into
geldata:devfrom
Namek:fix/tname_forbidden_underscores
Open

Rename __tname__ to __tname#82
Namek wants to merge 1 commit into
geldata:devfrom
Namek:fix/tname_forbidden_underscores

Conversation

@Namek

@Namek Namek commented Dec 11, 2024

Copy link
Copy Markdown

HI! I use abstract types in EdgeDB and I cannot deserialize them with the .NET library.

I get an error when I try to query with a __tname__ the following way:

__tname__ := .__type__.name

The exception coming from the database UI itself:

EdgeQLSyntaxError: identifiers surrounded by double underscores are forbidden

image

Thus, I propose a simple rename that works:
image

Without it, deserialization fails with an exception:
ConfigurationException("Type introspection is required for abstract types, this is a bug.");, defined in the /src/EdgeDB.Net.Driver/Binary/Builders/Info/EdgeDBTypeDeserializerInfo.cs

Lastly, thank you for the great work!

…ntifiers surrounded by double underscores are forbidden
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant