-
Notifications
You must be signed in to change notification settings - Fork 6
yb_foreign_key SEGFAULT #273
Comments
2021-06-24 16:48:51.970 UTC [8674] LOG: statement: INSERT INTO FKTABLE VALUES (2, 3); |
[Thread debugging using libthread_db enabled] |
echo " 0x0000000000ae3e050x0000000000a6a7d4 |
The following line of code caused the issue: Status PgGateApiImpl::DmlBuildPgTupleId(PgStatement *handle, const PgAttrValueDescriptor *attrs, |
(gdb) up |
tests: -- FOREIGN KEY (YB-added tests)--
|
After fix the null value flag in pg_dml.cc:373 as
we ran into a schema mismatch issue while running "INSERT INTO FKTABLE VALUES (1, 2);" terminate called after throwing an instance of 'k2::dto::TypeMismatchException' |
stack trace: [Thread debugging using libthread_db enabled] |
Debug info: (gdb) up |
branch foreign-key-validation-issue |
CREATE TABLE ITABLE ( ptest1 int, ptest2 text ); [0001:03:42:11.669.921]-k2_pg-[139635505937792]-(k2::pg_catalog) [DEBUG] [/build/src/k2/connector/pggate/catalog/sql_catalog_manager.cc:553 @createtable] Creating table ns name: postgres, ns oid: 12456, table name: itable, table oid: 16384, systable: false, shared: false CREATE UNIQUE INDEX ITABLE_IDX ON ITABLE(ptest1); CREATE TABLE FKTABLE ( ftest1 int REFERENCES ITABLE(ptest1) MATCH FULL ON DELETE CASCADE ON UPDATE CASCADE, ftest2 int ); |
postgres=# \d itable; postgres=# \d ITABLE_IDX; postgres=# \d FKTABLE; postgres=# INSERT INTO ITABLE VALUES (1, 'Test1'); |
No description provided.
The text was updated successfully, but these errors were encountered: