Branch 'oracle' - plugins/libkolab
Aleksander Machniak
machniak at kolabsys.com
Wed Sep 17 19:50:53 CEST 2014
plugins/libkolab/lib/kolab_storage_cache.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit e9e871a43f4a1ff5095a438e2ccd5d1016c6a37b
Author: Aleksander Machniak <machniak at kolabsys.com>
Date: Wed Sep 17 19:50:26 2014 +0200
Quote columns in ORDER BY
diff --git a/plugins/libkolab/lib/kolab_storage_cache.php b/plugins/libkolab/lib/kolab_storage_cache.php
index 25b45ce..913005b 100644
--- a/plugins/libkolab/lib/kolab_storage_cache.php
+++ b/plugins/libkolab/lib/kolab_storage_cache.php
@@ -593,7 +593,7 @@ class kolab_storage_cache
public function set_order_by($sortcols)
{
if (!empty($sortcols)) {
- $this->order_by = join(', ', (array)$sortcols);
+ $this->order_by = '`' . join('`, `', (array)$sortcols) . '`';
}
else {
$this->order_by = null;
More information about the commits
mailing list