Skip to content

Commit

Permalink
Merge pull request #203 from MakarMS/master
Browse files Browse the repository at this point in the history
fix(#202): Fix converting boolean when inserting into int and fix(#194): Fix unexpected readonly mode with specific string in query
  • Loading branch information
isublimity authored Jan 16, 2024
2 parents bc7a0fd + cb7670b commit 0d91abe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Quote/StrictQuoteLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ function ($v) use ($enclosure_esc, $encode_esc) {
return (string) $value;
}

$value = is_bool($value) ? ($value ? 'true' : 'false') : $value;

if (is_string($value) && $encode) {
if ($tabEncode) {
return str_replace(["\t", "\n"], ['\\t', '\\n'], $value);
Expand Down
4 changes: 2 additions & 2 deletions src/Transport/Http.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,12 @@ private function makeRequest(Query $query, array $urlParams = [], bool $query_as
*/

if ($query->isUseInUrlBindingsParams()) {
$urlParams=array_replace_recursive($query->getUrlBindingsParams());
$urlParams = array_replace_recursive($urlParams, $query->getUrlBindingsParams());
}

$url = $this->getUrl($urlParams);
$new->url($url);


if (!$query_as_string) {
$new->parameters_json($sql);
}
Expand Down

0 comments on commit 0d91abe

Please sign in to comment.