I have a situation where I've set up a replication connection and tried to issue a query with the simple protocol that has multiple commands "SELECT 1; SELECT 2;".
What do you mean by "I've set up a replication connection"? IIUC they are not intended for interactive usage, they are intended for system-to-system data replication. If you want to issue queries just connect with a "normal connection".