From: Domas Mituzas Date: Thu, 15 Jul 2004 15:09:32 +0000 (+0000) Subject: Unbreak the class (some unfinished code inside replace()) X-Git-Tag: 1.5.0alpha1~2675 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=d9e1fc0a6d01627ec51bd99dc19844948069d803;p=lhc%2Fweb%2Fwiklou.git Unbreak the class (some unfinished code inside replace()) Alias DatabasePgsql as DatabasePostgreSQL (according to filename) --- diff --git a/includes/DatabasePostgreSQL.php b/includes/DatabasePostgreSQL.php index 1b22a8e0f5..5edaa8c4e6 100644 --- a/includes/DatabasePostgreSQL.php +++ b/includes/DatabasePostgreSQL.php @@ -292,8 +292,10 @@ class DatabasePgsql extends Database { } else { $sql .= " AND "; } - $sql .= "$col = " $this->strencode - + //midom: atleast unbreak the class (remove syntax errors) + //$sql .= "$col = " $this->strencode; + } + } if ( $first ) { $first = false; } else { @@ -352,10 +354,14 @@ class DatabasePgsql extends Database { function lowPriorityOption() { return ''; } + + function limitResult($limit,$offset) { + return " LIMIT $limit ".(is_numeric($offset)?" OFFSET {$offset} ":""); + } } -function wfLimitResult( $limit, $offset ) { - return " LIMIT $limit ".(is_numeric($offset)?" OFFSET {$offset} ":""); +# Just an alias. +class DatabasePostgreSQL extends DatabasePgsql { } ?>