phpmyadmin/libraries/classes/Query
Luca Camillo 78335aac87
Add role based auth for MySQL 8.x and compatibles (#18814)
* add role based auth for mysql 8.x or compatible like mariadb/aws rds aurora mysql

Signed-off-by: Luca Camillo <luca.camillo@gmail.com>

* Using cache and check server version

Signed-off-by: Luca Camillo <luca.camillo@gmail.com>

* implement tests for getCurrentRolesAndHost / getCurrentRoles functions

Signed-off-by: Luca Camillo <luca.camillo@gmail.com>

* fix role checks on mariadb

Signed-off-by: Luca Camillo <luca.camillo@gmail.com>

* Simplify code + ignore NONE as result of CURRENT_ROLE()

Signed-off-by: Luca Camillo <luca.camillo@gmail.com>

* Fix tests

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>

Fixes #18782

---------

Signed-off-by: Luca Camillo <luca.camillo@gmail.com>
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Co-authored-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-03-02 19:31:03 -03:00
..
Cache.php Fix getTablesFull() and related tests 2023-03-15 19:59:35 +00:00
Compatibility.php Fix getTablesFull() and related tests 2023-03-15 19:59:35 +00:00
Generator.php Add role based auth for MySQL 8.x and compatibles (#18814) 2024-03-02 19:31:03 -03:00
Utilities.php Fix escaping of SQL query and errors for debug console 2022-08-15 13:20:09 +02:00