Skip to content
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

support null and string-values in prepared statements #52

Merged
merged 7 commits into from
Jan 10, 2022

Conversation

staabm
Copy link
Owner

@staabm staabm commented Jan 9, 2022

@staabm staabm changed the title support string-values in prepared statements support null and string-values in prepared statements Jan 9, 2022
$stmt->execute([':email' => 'email@example.org']);
assertType('PDOStatement<array{email: string, 0: string, adaid: int<0, 4294967295>, 1: int<0, 4294967295>}>', $stmt);

$stmt = $pdo->prepare('SELECT email, adaid FROM ada WHERE email <=> :email');
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mysql syntax für NULL values in prepared statements, see https://dev.mysql.com/doc/refman/5.7/en/comparison-operators.html#operator_equal-to

@staabm staabm marked this pull request as ready for review January 10, 2022 08:17
@staabm staabm merged commit 4f840e8 into main Jan 10, 2022
@staabm staabm deleted the multiple-placeholders branch January 10, 2022 08:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants