diff --git a/src/ClickHouseStatement.php b/src/ClickHouseStatement.php index 9587257..fd0d708 100644 --- a/src/ClickHouseStatement.php +++ b/src/ClickHouseStatement.php @@ -292,8 +292,8 @@ public function execute($params = null) : bool } else { foreach (array_keys($this->values) as $key) { $sql = preg_replace( - '/(' . (is_int($key) ? '\?' : ':' . $key) . ')/i', - $this->getTypedParam($key), + '/(' . (is_int($key) ? '\?([,\)])' : ':' . $key) . ')/i', + $this->getTypedParam($key).'$2', $sql, 1 );