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

Allow binding arrays for IN() clauses #17

Open
tomwalder opened this issue Feb 1, 2014 · 1 comment
Open

Allow binding arrays for IN() clauses #17

tomwalder opened this issue Feb 1, 2014 · 1 comment
Assignees

Comments

@tomwalder
Copy link

This is likely to be a self-implemented implode() with escape() calls

Possible usages:

  • $stmt->bindArray('ids', array(1, 2, 3));
  • $stmt->bindIntArray('ids', array(1, 2, 3));
  • $stmt->bindStringArray('ids', array('one', 'two', 'three'));
@tomwalder
Copy link
Author

Alternative usage - using existing methods

  • $stmt->bindInt('ids', array(1, 2, 3));
  • $stmt->bindString('ids', array(1, 2, 3));

And we auto-detect array inputs

@tomwalder tomwalder self-assigned this Feb 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant