autoIncrementId fix

Fixed autoIncrementId problem in the MySQL Adapter.