diff options
author | Nathan Gass | 2023-02-28 10:27:24 +0100 |
---|---|---|
committer | Nathan Gass | 2023-02-28 10:27:24 +0100 |
commit | 30e1fa9a9c655b75243ece71f37bfda9f1ae489b (patch) | |
tree | 566510a85309f8a78472362522fc8a6c0dab8180 | |
parent | 729cf0e2d9649c4565ae217786c198d7e80aa0ae (diff) | |
download | itools-30e1fa9a9c655b75243ece71f37bfda9f1ae489b.tar.gz itools-30e1fa9a9c655b75243ece71f37bfda9f1ae489b.tar.bz2 itools-30e1fa9a9c655b75243ece71f37bfda9f1ae489b.zip |
rename option to interruptible_queries
-rw-r--r-- | it_dbi.class | 4 | ||||
-rw-r--r-- | it_dbi_postgres.class | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/it_dbi.class b/it_dbi.class index 86c5e6d..49d2ae2 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -43,7 +43,7 @@ class it_dbi 'throttle_writes' => 0, # sleep for 'throttle_writes' multiplied by the execution time after every write 'unbuffered' => false, # use MYSQLI_USE_RESULT (WARNING this is not at all equivalent to normal it_dbi WARNING) 'ignored_warnings' => "", # regex of additional mysql warnings numbers to ignore - 'cancelable_queries' => false, + 'interruptible_queries' => false, ); var $_key; # Key of currently loaded record or null (public readonly) @@ -1129,7 +1129,7 @@ function _tables($p) { function __query($query, $p) { - if ($p['timeout'] || $this->_p['cancelable_queries']) + if ($p['timeout'] || $this->_p['interruptible_queries']) { $starttime = microtime(true); mysqli_query($this->_link, $query, ($p['unbuffered'] ? MYSQLI_USE_RESULT : MYSQLI_STORE_RESULT) | MYSQLI_ASYNC); diff --git a/it_dbi_postgres.class b/it_dbi_postgres.class index ac9c4ae..6af08d7 100644 --- a/it_dbi_postgres.class +++ b/it_dbi_postgres.class @@ -111,7 +111,7 @@ function _connect_db($p) { function __query($query, $p) { - if ($p['timeout'] || $this->_p['cancelable_queries']) + if ($p['timeout'] || $this->_p['interruptible_queries']) { $starttime = microtime(true); pg_send_query($this->_link, $query); |