Copy query parameters in a parameterized query

This allows batched statements to reuse parameters.