Returning result sets from stored procedures

32.4.14: Can MySQL 5.1 stored routines return result sets?

Stored procedures can, but stored functions cannot. If you perform an ordinary SELECT inside a stored procedure, the result set is returned directly to the client. You need to use the MySQL 4.1 (or above) client-server protocol for this to work. This means that ― for instance ― in PHP, you need to use the mysqli extension rather than the old mysql extension.

MySQL :: MySQL 8.0 Reference Manual :: A.4 MySQL 8.0 FAQ: Stored Procedures and Functions

えぇぇぇ。マジ知らんかったorz

なんとか、native function から直で返せないかなぁ。それか、ストアドプロシージャを native で書けるようにするか。