Skip to content

Commit

Permalink
Merge pull request #31 from dextermb/fix/wordpress-count
Browse files Browse the repository at this point in the history
Fix WordPress source countDataRows
  • Loading branch information
DivineOmega authored Aug 1, 2019
2 parents 789eb74 + 628a1dd commit 999a307
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Objects/Sources/WordPressPostSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public function countDataRows(): int
$limitPos = strripos($sql, 'limit');
$sqlSuffix = substr($sql, $fromPos, $limitPos - $fromPos);

$sql = 'select count (*) as count '.$sqlSuffix;
$sql = 'select count(*) as count '.$sqlSuffix;

$countStmt = $this->pdo->prepare($sql);
$countStmt->execute();
Expand Down
2 changes: 1 addition & 1 deletion src/Objects/Sources/WordPressUserSource.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function countDataRows(): int
$limitPos = strripos($sql, 'limit');
$sqlSuffix = substr($sql, $fromPos, $limitPos - $fromPos);

$sql = 'select count (*) as count '.$sqlSuffix;
$sql = 'select count(*) as count '.$sqlSuffix;

$countStmt = $this->pdo->prepare($sql);
$countStmt->execute();
Expand Down

0 comments on commit 999a307

Please sign in to comment.