Changeset: fe0d186d752f https://sourceforge.net/p/mrbs/hg-code/ci/fe0d186d752f5c66075b1762881669fb7b937f0a Author: Campbell Morrison <cimorri...@hg.code.sf.net> Date: Tue Oct 11 17:05:24 2016 +0100 Log message:
Fixed bug in DB_pgsql::table_exists() which meant that it always returned true and thus broke the upgrade process, for example. diffstat: web/lib/MRBS/DB_pgsql.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diffs (23 lines): diff -r 66a6e5425b3a -r fe0d186d752f web/lib/MRBS/DB_pgsql.php --- a/web/lib/MRBS/DB_pgsql.php Sat Oct 08 20:52:16 2016 +0100 +++ b/web/lib/MRBS/DB_pgsql.php Tue Oct 11 17:05:24 2016 +0100 @@ -137,8 +137,8 @@ $sql_params = array(); $sql = "SELECT COUNT(*) - FROM information_schema.tables - WHERE table_name = ?"; + FROM information_schema.tables + WHERE table_name = ?"; $sql_params[] = $table_parts['table_name']; if (isset($table_parts['table_schema'])) { @@ -148,7 +148,7 @@ $res = $this->query1($sql, $sql_params); - return ($res == -1) ? FALSE : TRUE; + return ($res <= 0) ? FALSE : TRUE; } ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Mrbs-commits mailing list Mrbs-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mrbs-commits