1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-07-31 13:20:11 +02:00

Use alternative 'LIMIT' syntax with wider compatibility in SQL query

This commit is contained in:
Marco
2017-08-07 18:52:36 +02:00
parent b7a47fc707
commit e3873f2d15

View File

@@ -188,7 +188,7 @@ abstract class UserManager {
$projection = implode(', ', $requestedColumns);
$users = $this->db->select(
'SELECT ' . $projection . ' FROM ' . $this->dbTablePrefix . 'users WHERE username = ? LIMIT 0, 2',
'SELECT ' . $projection . ' FROM ' . $this->dbTablePrefix . 'users WHERE username = ? LIMIT 2 OFFSET 0',
[ $username ]
);
}