|
From: <var...@us...> - 2019-04-18 16:58:57
|
Revision: 10107
http://sourceforge.net/p/phpwiki/code/10107
Author: vargenau
Date: 2019-04-18 16:58:56 +0000 (Thu, 18 Apr 2019)
Log Message:
-----------
PDO: dbh->exec("SELECT --> dbh->query("SELECT
Modified Paths:
--------------
trunk/lib/WikiDB/backend/PDO.php
Modified: trunk/lib/WikiDB/backend/PDO.php
===================================================================
--- trunk/lib/WikiDB/backend/PDO.php 2019-04-18 16:39:10 UTC (rev 10106)
+++ trunk/lib/WikiDB/backend/PDO.php 2019-04-18 16:58:56 UTC (rev 10107)
@@ -255,7 +255,7 @@
{
$dbh = &$this->_dbh;
extract($this->_table_names);
- $sth = $dbh->exec("SELECT count(*)"
+ $sth = $dbh->query("SELECT count(*)"
. " FROM $nonempty_tbl, $page_tbl"
. " WHERE $nonempty_tbl.id=$page_tbl.id");
return $sth->fetchColumn();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|