-
-
Notifications
You must be signed in to change notification settings - Fork 962
Update DB.php #464
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
Update DB.php #464
Conversation
Thanks for your contribution! What version of MySQL are you using, I have never encountered this issue. |
I'm using lumen framework. MySQL version: 5.1.73 (this error came from the pdo plugin itself, not mysql) (i gave the lumen's eloquent's pdo object to this package). |
why u dont merge it ? |
Hi, sorry for the epic delay... A cleaner solution in my view, is to simply rename the fields to Also, your If you could change it accordingly and do the same for all other instances of duplicate |
@no-nevis Shall I go ahead and make the changes and merge? |
Fixed.
The problem isn't only dates, but the other placeholders that used twice.
I searched and there is no any other duplicate usage. |
Fix 'SQLSTATE[HY093]: Invalid parameter number' PDO error which caused of multiple parameters usage in one query.
…ssue with duplicate entries.
Hi @no-nevis I have taken the liberty to rebase your PR properly, to prevent the duplicate commits that snuck in. Also, I've added another commit that renames the placeholders to make it more obvious and cleaner. There is 1 query left that has duplicate (or rather triplicate) placeholders here: Is this one an issue for you too? Do you get the same error? |
Thanks @no-nevis 😃👍 |
Delete |
Also save IDs as string, like in php-telegram-bot#520
Fix 'SQLSTATE[HY093]: Invalid parameter number' PDO error which caused of multiple parameters usage in one query.