Skip to content

Commit 1f1a972

Browse files
committed
formatting
1 parent 947ac53 commit 1f1a972

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

src/Database/Database.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6675,19 +6675,19 @@ public static function convertQueries(Document $collection, array $queries): arr
66756675
foreach ($attributes as $attribute) {
66766676
foreach ($queries as $index => $query) {
66776677
if ($query->getAttribute() === $attribute->getId()) {
6678-
// if($query->getAttribute() === '$sequence'){
6679-
// /**
6680-
// * Hack for Postgres, since bindParam does not convert '' on int attribute
6681-
// */
6682-
// $values = $query->getValues();
6683-
// foreach ($values as $valueIndex => $value) {
6684-
// if($value === ''){
6685-
// $values[$valueIndex] = '0';
6686-
// }
6687-
// }
6688-
// $query->setValues($values);
6689-
// $queries[$index] = $query;
6690-
// }
6678+
// if($query->getAttribute() === '$sequence'){
6679+
// /**
6680+
// * Hack for Postgres, since bindParam does not convert '' on int attribute
6681+
// */
6682+
// $values = $query->getValues();
6683+
// foreach ($values as $valueIndex => $value) {
6684+
// if($value === ''){
6685+
// $values[$valueIndex] = '0';
6686+
// }
6687+
// }
6688+
// $query->setValues($values);
6689+
// $queries[$index] = $query;
6690+
// }
66916691

66926692
$query->setOnArray($attribute->getAttribute('array', false));
66936693
}

0 commit comments

Comments
 (0)