Also, the check here is shady--can we push back the resolution of whether we're dealing with a copy until later, when the server has confirmed that for us, so we can avoid doing this? Off the top of my head, it breaks with leading whitespace or comments, and I wouldn't be surprised if there's more. In general, I think parsing queries in the driver leads to madness...