Creates read-only command for optimization
authorNiels Erik G. Nielsen <nielserik@indexdata.com>
Sat, 13 Apr 2013 17:18:09 +0000 (13:18 -0400)
committerNiels Erik G. Nielsen <nielserik@indexdata.com>
Sat, 13 Apr 2013 17:18:09 +0000 (13:18 -0400)
When a class retrieves a command, it's 'checked out' from the state
manager, meaning that it is cloned as to not mutate the current state
in case the command has it's parameters modified.

Oftentimes cloning is obsolete however - when the client only wants to
read the values - ie. for log statements or for actual execution.


No differences found