mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-11 11:13:02 +02:00
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
This commit is contained in:
@@ -474,7 +474,7 @@ SELECT id,path,tn_ext,file,filesize,level
|
||||
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'].'
|
||||
;';
|
||||
//echo '<pre>'.$query.'</pre>';
|
||||
$result = pwg_query($query);
|
||||
|
||||
Reference in New Issue
Block a user