SF.net SVN: phpwiki:[10953] trunk/lib/WikiDB/backend/PDO.php
vargenau--- via phpwiki-checkins <[email protected]> Thu, 27 Jan 2022 15:05:43 +0000
| Newsgroups | gmane.comp.web.wiki.phpwiki.checkins |
|---|---|
| Message-ID | <[email protected]> |
Revision: 10953
http://sourceforge.net/p/phpwiki/code/10953
Author: vargenau
Date: 2022-01-27 15:05:43 +0000 (Thu, 27 Jan 2022)
Log Message:
-----------
Add class properties
Modified Paths:
--------------
trunk/lib/WikiDB/backend/PDO.php
Modified: trunk/lib/WikiDB/backend/PDO.php
===================================================================
--- trunk/lib/WikiDB/backend/PDO.php 2022-01-27 15:01:46 UTC (rev 10952)
+++ trunk/lib/WikiDB/backend/PDO.php 2022-01-27 15:05:43 UTC (rev 10953)
@@ -31,6 +31,14 @@
class WikiDB_backend_PDO
extends WikiDB_backend
{
+ public $_dbparams;
+ public $_dsn;
+ public $_table_names;
+ public $page_tbl_field_list;
+ public $version_tbl_field_list;
+ public $_lock_count;
+ public $_current_lock;
+
function __construct($dbparams)
{
$this->_dbparams = $dbparams;
@@ -941,7 +949,7 @@
* This is only for already resolved wildcards:
* " WHERE $page_tbl.pagename NOT IN ".$this->_sql_set(array('page1','page2'));
*/
- function _sql_set(&$pagenames)
+ function _sql_set($pagenames)
{
$s = '(';
foreach ($pagenames as $p) {
@@ -1313,11 +1321,9 @@
{
if ($limit) {
list($offset, $count) = $this->limit($limit);
+ $limit = " LIMIT $count";
if ($offset) {
- $limit = " LIMIT $count";
trigger_error("unsupported OFFSET in SQL ignored", E_USER_WARNING);
- } else {
- $limit = " LIMIT $count";
}
} else {
$limit = '';
@@ -1395,6 +1401,8 @@
class WikiDB_backend_PDO_iter
extends WikiDB_backend_PDO_generic_iter
{
+ public $_backend;
+
function next()
{
$result = &$this->_result;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.