-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$database->rand not working #991
Comments
What's the code you actually called? What's the output of
Are you sure you set the database type to |
Output of debug :
And I have set the database to `<?php require '../Medoo.php'; $database = new Medoo([ $data = $database->rand("users", [ |
Thanks for the feedback. It fixed on 5f8f9f1. |
Thanks , it is working now . |
Information
Describe the Problem
A clear and concise description of what the problem is.
$database->rand(); was working properly in the older version of mysql but after I updated my MySQL and php to version 8, the
rand function has stopped working.
Detail Code
Expected output
Here is the error i am getting :
Fatal error: Uncaught PDOException: SQLSTATE[42000]: Syntax error or access violation: 1305 FUNCTION likesblast.NEWID does not exist in D:\Xampp\htdocs\likesblast\Medoo.php:563 Stack trace: #0 D:\Xampp\htdocs\likesblast\Medoo.php(563): PDOStatement->execute() #1 D:\Xampp\htdocs\likesblast\Medoo.php(1593): Medoo\Medoo->exec(Object(PDOStatement), Array) #2 D:\Xampp\htdocs\likesblast\Medoo.php(1988): Medoo\Medoo->select('users', Array, Array, NULL) #3 D:\Xampp\htdocs\likesblast\classes\test.php(9): Medoo\Medoo->rand('users', Array, Array) #4 {main} thrown in D:\Xampp\htdocs\likesblast\Medoo.php on line 563
The text was updated successfully, but these errors were encountered: