Skip to content

Commit cefff6a

Browse files
authored
Merge pull request #190 from luzrain/metadata_cluster_write
Distributed queries response metadata
2 parents 14606e4 + f198278 commit cefff6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Transport/Http.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,11 @@ private function prepareWrite($sql, $bindings = []): CurlerRequest
625625
}
626626

627627
$query = $this->prepareQuery($sql, $bindings);
628+
629+
if (strpos($sql, 'CREATE') === 0 || strpos($sql, 'DROP') === 0 || strpos($sql, 'ALTER') === 0) {
630+
$query->setFormat('JSON');
631+
}
632+
628633
return $this->getRequestWrite($query);
629634
}
630635

0 commit comments

Comments
 (0)