Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.