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

Driver Mysqli execute multi_query #27

Open
robotccm opened this issue Mar 22, 2016 · 2 comments
Open

Driver Mysqli execute multi_query #27

robotccm opened this issue Mar 22, 2016 · 2 comments

Comments

@robotccm
Copy link

Original report by Pascal Roux (Bitbucket: pizzavomito, GitHub: pizzavomito).


Hi,

Could you add the multi_query on the mysqli driver ?

It's very useful for faceted search in Sphinx : http://sphinxsearch.com/blog/2014/05/22/the-facet-feature/

Or just for multi queries:

#!sql
SELECT SQL_CALC_FOUND_ROWS * FROM users LIMIT 0,10;
SELECT FOUND_ROWS();

Thx

@robotccm
Copy link
Author

Original comment by Sylvain Robez-Masson (Bitbucket: srobez-masson, ).


Multi query isn't supported by postgresql driver :(

@robotccm
Copy link
Author

Original comment by Pascal Roux (Bitbucket: pizzavomito, GitHub: pizzavomito).


Yes, postgresql does not support multi queries.
But it would be possible to implement it in the Mysqli driver and throw an error in the Pgsql driver, no ?

#!php

// Pqsql/Driver.php

public function executeMultiQuery(...){
    throw new RuntimeException('Pqsql driver does not support multi query');
}

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