getrelation2 can return 0 in cases of a relation that maps objects to ints. This...