diff --git a/src/Transport/Http.php b/src/Transport/Http.php index be59d49..572d370 100644 --- a/src/Transport/Http.php +++ b/src/Transport/Http.php @@ -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); }