Skip to content

Commit

Permalink
Fix again testing custom queries on mariadb
Browse files Browse the repository at this point in the history
  • Loading branch information
gggeek committed Nov 16, 2021
1 parent ab59daf commit 9243756
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions classes/ezdbischemachecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,9 +398,9 @@ protected function rewriteExceptionsQueryFragment( $exceptions, $childTable, $ch

public function countCustomQuery( $sql )
{
$sql = 'SELECT COUNT(*) AS rows FROM ( ' . rtrim($sql, ';') . ') subquery';
$sql = 'SELECT COUNT(*) AS numrows FROM ( ' . rtrim($sql, ';') . ') subquery';
$results = $this->db->arrayQuery( $sql );
return $results[0]['rows'];
return $results[0]['numrows'];
}

public function checkCustomQuery( $sql )
Expand Down
3 changes: 3 additions & 0 deletions doc/changelogs/changelog-0.24.0-to-0.25.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
changelog from version 0.23.0 to 0.24.0

. fixed: make custom queries work with recent mariadb versions, for real
2 changes: 1 addition & 1 deletion extension.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<software>
<metadata>
<name>eZ DB Integrity extension</name>
<version>0.24.0</version>
<version>0.25.0</version>
<copyright>Copyright (C) 2014-2021 Gaetano Giunta</copyright>
<license>GNU General Public License v2.0</license>
</metadata>
Expand Down
2 changes: 1 addition & 1 deletion ezinfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ static function info()
{
return array(
'Name' => "<a href=\"https://github.com/gggeek/ezdbintegrity\">eZ DB Integrity extension</a>",
'Version' => "0.24.0",
'Version' => "0.25.0",
'Copyright' => "Copyright (C) 2014-2021 Gaetano Giunta",
'License' => "GNU General Public License v2.0"
);
Expand Down

0 comments on commit 9243756

Please sign in to comment.