Skip to content

Commit 8af18d8

Browse files
authored
Apply suggestions from code review
1 parent 9fcaa37 commit 8af18d8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/Database/Adapter/MariaDB.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,6 @@ public function count(string $collection, array $queries = [], ?int $max = null)
19431943
) table_count
19441944
";
19451945

1946-
19471946
$sql = $this->trigger(Database::EVENT_DOCUMENT_COUNT, $sql);
19481947

19491948
$stmt = $this->getPDO()->prepare($sql);

src/Database/Query.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class Query
3838
public const TYPE_AND = 'and';
3939
public const TYPE_OR = 'or';
4040

41-
public const DEFAULT_ALIAS = 'A';
41+
public const DEFAULT_ALIAS = 'main';
4242

4343
public const TYPES = [
4444
self::TYPE_EQUAL,

0 commit comments

Comments
 (0)