fixed a bug where the order by was being destructively modified,
authorRuss Tyndall <russ@acceleration.net>
Mon, 9 Jul 2012 21:11:54 +0000 (17:11 -0400)
committerRuss Tyndall <russ@acceleration.net>
Mon, 9 Jul 2012 21:11:54 +0000 (17:11 -0400)
causing odd caching issues when the selected object was not statically
known (eg unreferenced tables could show up in the query if they were
cached by a previous call through this function.  I replaced this code
with a non-destructive variant which should solve this.

Thanks to Philipp Marek for the bug report


No differences found