Inserting in fill_expr (and sometimes default) doesn't work
See original GitHub issue- EdgeDB Version: EdgeDB CLI 1.1.0+8bc2c20
- OS Version: Mac OS Monterey version 12.1
Steps to Reproduce:
- Updated default.esdl to include new table, Union_labor_name, and put in a link to that table into “Labor_union” table.
Please specify an expression to populate existing objects in order to make link 'union_name' of object type 'default::Labor_union' required:
fill_expr> insert Union_labor_name { name:= "AAA" }
Created ./dbschema/migrations/00004.edgeql, id: m1f2ufyzoqfpfypfweuk5bwp2q7fuhuwgsvgq7rzsyqrdcove3pvlq
I did the following and then tried to edgedb migrate’and got the error:
edgedb migrate
edgedb error: UnsupportedBackendFeatureError: WITH clause containing a data-modifying statement must be at the top level
I tried to just destroy the database and re-run it, but that didn't even work
edgedb instance destroy edgedb
Do you really want to delete instance "edgedb"? (type Yes)
y
edgedb error: Canceled.
Schema:
abstract type Named {
required property name -> str {
delegated constraint exclusive;
}
}
type Labor_union {
required link union_name -> Union_labor_name;
link abbrev -> Abbreviation;
}
type Union_labor_name extending Named {}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Managing Complications of Fillers: Rare and Not-So-Rare
Clumping of a filler causes lumps and bumps that usually have to be surgically removed. Permanent fillers cause permanent side effects.
Read more >Reducing Swelling After Injectable Fillers in DC
Facial filler patients often return to work very soon after treatment, even the same day in many cases. A majority of the swelling...
Read more >Lip Fillers Aftercare: 10 Tips, What to Expect, and More
Apply ice to your lips afterward using an ice pack or an ice cube covered in a thin cloth (so it doesn't stick...
Read more >The filler industry bombshell that triggered a panicked 'glow ...
One millilitre of filler is usually far too much for one area of the face to “hold” without it migrating (when filler spreads...
Read more >Why You Should Absolutely Avoid Using Filler Words (& How ...
So it's a good idea to work at paring them back as best you can. And keep in mind, using verbal fillers doesn't...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, we’ve merged a few PRs but they are about reporting better errors when using mutation in
fill_expr
or in defaults. This issue is something I’m working on, but I cannot give you an ETA.On top of the fill_expr problem, this happens with defaults when a new link is added. The unfortunate bit here is that it does work to create a link with a default containing an
insert
as part of a new type, but not when altering it onto an existing type.This is because https://github.com/edgedb/edgedb/pull/3750 makes adding a new link with a default use the
fill_expr
flow to populate the column with the default. (Previously it just incorrectly did not do that.)