Handle prepared id mismatch when repreparing on the fly

Description

CASSANDRA-15252: if you switched keyspace after a statement was prepared, and the statement needs to get reprepared on the fly, the id doesn't match and the driver goes into a reprepare loop.

We're adding a check to fail fast in the driver:

Environment

None

Assignee

James Falcon

Reporter

Alan Boudreault

Fix versions

Labels

None

Reproduced in

None

PM Priority

None

External issue ID

None

Doc Impact

None

Reviewer

None

Size

None

Pull Request

None

Sprint

Priority

Major
Configure