pdo_snowflake icon indicating copy to clipboard operation
pdo_snowflake copied to clipboard

Aborting queries where the PHP script gets aborted

Open zoltan-fedor opened this issue 4 years ago • 2 comments

Hey, I am using this PDO library with Apache and trying to get the queries aborted when the PHP call is cancelled.

I have set ALTER SESSION SET ABORT_DETACHED_QUERY = TRUE to no avail.

Any other ideas?

zoltan-fedor avatar Mar 18 '20 02:03 zoltan-fedor

@zoltan-fedor let me try to reproduce this. Just to confirm, you're running a PHP script that is executing the query and then you kill the script (i.e. ctrl+c on the command line) and the query is not cancelled on the server-side?

sfc-gh-kwagner avatar Mar 19 '20 18:03 sfc-gh-kwagner

@notkriswagner, Thanks. I have actually never tested by killing a PHP script. No, I have Apache - PHP 7.2 (mod_php7) and when http calls which execute a Snowflake query get cancelled, the Snowflake query runs to completion instead of aborting even with ALTER SESSION SET ABORT_DETACHED_QUE = TRUE

zoltan-fedor avatar Mar 19 '20 18:03 zoltan-fedor

To clean up and re-prioritize more pressing bugs and feature requests we are closing all issues older than 6 months as of April 1, 2023. If there are any issues or feature requests that you would like us to address, please create them according to the new templates we have created. For urgent issues, opening a support case with this link Snowflake Community is the fastest way to get a response.

sfc-gh-igarish avatar Mar 30 '23 02:03 sfc-gh-igarish