I know that MySQL does stupid things when composite keys and auto increments are involved. I think it returns false or 0.