postgres requires separate 'offset' aside from 'limit'
This commit is contained in:
		
							parent
							
								
									0f38ac7a3c
								
							
						
					
					
						commit
						306a1bf093
					
				@ -71,7 +71,7 @@ class AliasEditor implements Extension {
 | 
			
		||||
				$alias_per_page = $config->get_int('alias_items_per_page', 30);
 | 
			
		||||
 | 
			
		||||
				$alias = $database->db->GetAssoc(
 | 
			
		||||
					"SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC LIMIT ?, ?",
 | 
			
		||||
					"SELECT oldtag, newtag FROM aliases ORDER BY newtag ASC OFFSET ? LIMIT ?",
 | 
			
		||||
					array($page_number * $alias_per_page, $alias_per_page)
 | 
			
		||||
				);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user