Skip to content

Commit

Permalink
feat: separate mariadb driver (#4132)
Browse files Browse the repository at this point in the history
* feat: separate mariadb driver
* chore: add mariadb install dump
  • Loading branch information
SychO9 authored Dec 2, 2024
1 parent 0122570 commit 81c6887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Api/Controller/ShowStatisticsData.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function getTimedCounts(Builder $query, string $column, ?DateTime $start
$dbFormattedDatetime = match ($query->getConnection()->getDriverName()) {
'sqlite' => "strftime($format, $column)",
'pgsql' => "TO_CHAR($column, $format)",
'mysql' => "DATE_FORMAT($column, $format)",
'mysql', 'mariadb' => "DATE_FORMAT($column, $format)",
default => throw new Exception('Unsupported database driver'),
};

Expand Down

0 comments on commit 81c6887

Please sign in to comment.