Skip to content
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

Rename __tname__ to __tname #82

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

Namek
Copy link

@Namek Namek commented Dec 11, 2024

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