Change record status: 
Project: 
Introduced in branch: 
9.2.x
Introduced in version: 
9.2.0
Description: 

The code protecting against multiple statements that was part of Connection::query(), is moved to a protected method ::preprocessStatement() so that code that calls in sequence ::prepareStatement() and StatementInterface::execute() can benefit from its protection too.

Connection::prepareStatement() will now throw InvalidArgumentException if multiple statements are passed in.

This change only affects contrib database driver developers, that can now leverage on the protected method for their implementations.

Impacts: 
Module developers