Hi,
After some test, It's appear that SQL Messages (like "PRINT" statements) are not store in stdout or stderr and If we have multiple results (multiple SELECT), only the first one is store in stdout.
With that, it's pretty hard to debug what's wrong :/
Regards,