Skip to content

Commit ddddf7a

Browse files
author
Илья
committed
Remove keep in cache by default false in YdbQuery
1 parent 528dbd6 commit ddddf7a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/YdbQuery.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class YdbQuery
2626
/**
2727
* @var bool
2828
*/
29-
protected $keep_query_in_cache = false;
29+
protected $keep_query_in_cache = null;
3030

3131
/**
3232
* @var int
@@ -213,6 +213,9 @@ public function getRequestData()
213213
*/
214214
public function execute()
215215
{
216+
if (is_null($this->keep_query_in_cache)){
217+
$this->keep_query_in_cache = $this->parameters&&count($this->parameters)>0;
218+
}
216219
return $this->session->executeQuery($this);
217220
}
218221
}

0 commit comments

Comments
 (0)