Skip to content

Commit 61dd323

Browse files
authored
Merge pull request #658 from utopia-php/revert-arrayindex
Revert "Merge pull request #627 from utopia-php/disable-array-index-m…
2 parents 39c6140 + cc10b50 commit 61dd323

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Database/Adapter/MariaDB.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2001,9 +2001,6 @@ public function getSupportForNumericCasting(): bool
20012001

20022002
public function getSupportForIndexArray(): bool
20032003
{
2004-
/**
2005-
* Disabled to be compatible with Mysql adapter
2006-
*/
2007-
return false;
2004+
return true;
20082005
}
20092006
}

src/Database/Adapter/MySQL.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,9 @@ public function getSizeOfCollectionOnDisk(string $collection): int
8181
public function getSupportForIndexArray(): bool
8282
{
8383
/**
84-
* Disabling index creation due to Mysql bug
8584
* @link https://bugs.mysql.com/bug.php?id=111037
8685
*/
87-
return false;
86+
return true;
8887
}
8988

9089
public function getSupportForCastIndexArray(): bool

0 commit comments

Comments
 (0)