Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Database/Adapter/Mongo.php
Original file line number Diff line number Diff line change
Expand Up @@ -2873,7 +2873,7 @@ public function getAttributeWidth(Document $collection): int
*/
public function getSupportForCasting(): bool
{
return true;
return false;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Adapter/SQL.php
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ public function getKeywords(): array
*/
public function getSupportForCasting(): bool
{
return false;
return true;
}

public function getSupportForNumericCasting(): bool
Expand Down
2 changes: 1 addition & 1 deletion src/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -8264,7 +8264,7 @@ public function decode(Document $collection, Document $document, array $selectio
*/
public function casting(Document $collection, Document $document): Document
{
if ($this->adapter->getSupportForCasting()) {
if (!$this->adapter->getSupportForCasting()) {
return $document;
}

Expand Down