PVC glue will weld ABS to PVC, but I’m not sure if ABS glue will do the same for PVC. The main problem with mixing PVC and ABS in drainage fitings is that the materials have dissimilar thermal expansion coeeficients, and this means that PVC/ABS can separate. All the plumbing codes prohibit glued connections between ABS and PVC, but permit mechanical connections, such as via Fernco fittings.
NtP