You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I define a foreign key relation to a table that has foreign key relation of its own the code compiles but results a runtime segfault even without a database connection.
Expected Behavior
No segfault
Current Behavior
signal 11: segmentation fault
Reproduction Steps
modulemainimportdb.pg
[table: 'example']
pubstructExample {
id int [primary; sql: serial]
example2s []Example2 [fkey: 'example_id']
}
[table: 'example2']
pubstructExample2 {
id int [primary; sql: serial]
example_id int
example3s []Example3 [fkey: 'example2_id']
}
[table: 'example3']
pubstructExample3 {
id int [primary; sql: serial]
example2_id int
}
fnmain() {
db:= pg.connect(pg.Config{}) or { exit(0) }
sql db {
create table Example3
create table Example2
create table Example
} or { print(err) }
}
Describe the bug
If I define a foreign key relation to a table that has foreign key relation of its own the code compiles but results a runtime segfault even without a database connection.
Expected Behavior
No segfault
Current Behavior
signal 11: segmentation fault
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
V version
V 0.3.4 a647a71
Environment details (OS name and version, etc.)
V full version: V 0.3.4 a938dcd.a647a71
OS: linux, "Gentoo Linux"
Processor: 16 cpus, 64bit, little endian, Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
getwd: /home/make
vexe: /home/make/v/v
vexe mtime: 2023-05-30 18:54:28
vroot: OK, value: /home/make/v
VMODULES: OK, value: /home/make/.vmodules
VTMP: OK, value: /tmp/v_1000
Git version: git version 2.40.1
Git vroot status: weekly.2023.21-53-ga647a71c
.git/config present: true
CC version: cc (Gentoo 13.1.1_p20230527 p3) 13.1.1 20230527
thirdparty/tcc status: thirdparty-linux-amd64 12f392c3
The text was updated successfully, but these errors were encountered: