1
0
mirror of https://github.com/delight-im/PHP-Auth.git synced 2025-08-02 14:17:26 +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); $projection = implode(', ', $requestedColumns);
$users = $this->db->select( $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 ] [ $username ]
); );
} }