spanner/spansql: ON DELETE NO ACTION
gets added when no foreign key action is specified
#8955
Labels
priority: p3
Desirable enhancement or fix. May not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Client
Spanner spansql
Environment
Go Playground
Go Environment
Go 1.21
Code
e.g.
Expected behavior
Outputs without foreign key action
Actual behavior
Outputs with
ON DELETE NO ACTION
added.Additional context
The current behavior causes a problem when trying to apply DDL to the spanner-emulator using migration tools like wrench. Since the emulator does not support foreign key actions, this behavior results in the output of DDLs that are not accepted by the emulator.
Related to cloudspannerecosystem/wrench#95
The text was updated successfully, but these errors were encountered: