Coming at it from a different point of view, the cocktail you're taking is sort of dangerous.
Granted that codeine is a weak opiate (although lethal overdoses aren't unheard of) and that a bottle of wine won't give you alcohol poisoning, however:
- alcohol potentiates opiates (quite a bit in fact, I've seen it happening)
- benzos potentiate alcohol (from what I've heard, never tried or observed)
- benzos and opiates both cause some amount of respiratory depression
Get my point...