Use with_variant method for dialects db types

Change-Id: I0b1fb3cb6a146a09bf55bd8fd3e14f851c6cf73a
Merge "Use with_variant method for dialects db types"