decode:-e and last_insert bug