I'am not sure, but I guess as usual it will depend on your nationality....if you are a western they will pretend they don't know, and if you are Asian or Arab you will be screwed and kicked out of the country with your poor baby. However, If you are Qatari, I guess you will get killed :((((
I have heared lately about a philipina who got caught for adultry, the funny thing they didn't touch the American guy she was having an affair with, she was sentenced to prison, and later will be deported, while I bet that the American guy is already having another affair by now....