From 4e4eca161061a266c011f53d603858774114e0e0 Mon Sep 17 00:00:00 2001 From: Johnson <821312534@qq.com> Date: Sat, 20 Jul 2019 15:49:12 +0800 Subject: [PATCH] Optimize the getResultSet method --- src/InfluxDB/Query/Builder.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/InfluxDB/Query/Builder.php b/src/InfluxDB/Query/Builder.php index b91d8f0..4927176 100644 --- a/src/InfluxDB/Query/Builder.php +++ b/src/InfluxDB/Query/Builder.php @@ -292,12 +292,13 @@ public function getQuery() /** * Gets the result from the database (builds the query) * + * @param array $param * @return ResultSet * @throws \Exception */ - public function getResultSet() + public function getResultSet(array $param = []) { - return $this->db->query($this->parseQuery()); + return $this->db->query($this->parseQuery(), $param); } /**