Skip to content

Commit

Permalink
Merge pull request #190 from luzrain/metadata_cluster_write
Browse files Browse the repository at this point in the history
Distributed queries response metadata
  • Loading branch information
isublimity authored Jun 10, 2023
2 parents 14606e4 + f198278 commit cefff6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Transport/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,11 @@ private function prepareWrite($sql, $bindings = []): CurlerRequest
}

$query = $this->prepareQuery($sql, $bindings);

if (strpos($sql, 'CREATE') === 0 || strpos($sql, 'DROP') === 0 || strpos($sql, 'ALTER') === 0) {
$query->setFormat('JSON');
}

return $this->getRequestWrite($query);
}

Expand Down

0 comments on commit cefff6a

Please sign in to comment.