Skip to content

Syncing a link with props with which is initialized to None produces AssertionError #883

@dnwpark

Description

@dnwpark

Given a schema:

type Target;
type SourceWithProp {
    target: Target {
        lprop: int64;
    };
};

the following code:

with_none = default.SourceWithProp(target=None)
self.client.sync(with_none)

produces an AssertionError:

File ".../edgedb-python/gel/_internal/_save.py", line 1105, in make_save_executor_constructor
) = make_plan(
    ^^^^^^^^^^
File ".../edgedb-python/gel/_internal/_save.py", line 737, in make_plan
assert isinstance(val, ProxyModel)
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^

See

Metadata

Metadata

Assignees

Labels

ORMbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions