AUTOINCREMENT detection, warning, and approximate emulation