From f0d0a0952c9889323d60bec249df0fccf286d1a6 Mon Sep 17 00:00:00 2001 From: nikrou Date: Sat, 21 Nov 2009 12:15:22 +0000 Subject: Feature 1255 : improve sql Replace in queries LIMIT N,M by LIMIT N OFFSET M git-svn-id: http://piwigo.org/svn/trunk@4331 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/element_set_unit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'admin/element_set_unit.php') diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php index 65206aba4..cf5409296 100644 --- a/admin/element_set_unit.php +++ b/admin/element_set_unit.php @@ -196,7 +196,7 @@ SELECT id,path,tn_ext,name,date_creation,comment,author,file FROM '.IMAGES_TABLE.' WHERE id IN ('.implode(',', $page['cat_elements_id']).') '.$conf['order_by'].' - LIMIT '.$page['start'].', '.$page['nb_images'].' + LIMIT '.$page['start'].' OFFSET '.$page['nb_images'].' ;'; $result = pwg_query($query); -- cgit v1.2.3