private KeyViolationException Col3KeyViolationException(int arg1, int arg2, int arg3) { TernaryTable.Iter3 it = table.GetIter3(arg3); int otherArg1 = it.Get1(); int otherArg2 = it.Get2(); return(NewKeyViolationException(arg1, arg2, arg3, otherArg1, otherArg2, arg3, KeyViolationException.key_3, false)); }
public void Delete3(int value3) { TernaryTable.Iter3 it = table.GetIter3(value3); while (!it.Done()) { deleteIdxs = Array.Append(deleteIdxs, deleteCount, it.Index()); deleteList = Array.Append3(deleteList, deleteCount++, it.Get1(), it.Get2(), value3); it.Next(); } }
private ForeignKeyViolationException ForeignKeyViolation(int delSurr) { TernaryTable.Iter3 it = source.table.GetIter3(delSurr); Obj arg1 = source.store1.SurrToValue(it.Get1()); Obj arg2 = source.store2.SurrToValue(it.Get2()); Obj arg3 = source.store3.SurrToValue(delSurr); Obj[] tuple = new Obj[] { arg1, arg2, arg3 }; return(ForeignKeyViolationException.TernaryUnary(source.relvarName, 3, target.relvarName, tuple, arg3)); }