Holding in pee while pregnant?

How dangerous is it to hold in pee while pregnant?