backport: attempt to fix _schema problem that crops up occasionally REL_3-4 REL_3-4-1
authorchriskl <chriskl>
Thu, 1 Jul 2004 07:16:56 +0000 (07:16 +0000)
committerchriskl <chriskl>
Thu, 1 Jul 2004 07:16:56 +0000 (07:16 +0000)
HISTORY
classes/Reports.php

diff --git a/HISTORY b/HISTORY
index 802b837e1cca6924a731dc3d68da95d91d12dd82..df32d06a96ec6a66fb2d9f0bfcbf386dab2eebbd 100644 (file)
--- a/HISTORY
+++ b/HISTORY
@@ -11,6 +11,7 @@ Bugs
 * Fix reindex of mixed case indexes
 * Show domains in type lists in appropriate places
 * Fix for multiline CDATA parsing in XML import
+* Fix missing _schema notice in reports
 
 Translations
 * Japanese from Tadashi
index a2424c4f0b0a2887f588a96b1c0081794ebe71c0..a09e7ac4b3b846cf6f86a756be0599329680f308 100644 (file)
@@ -4,7 +4,7 @@
         * the functions provided by the database driver exclusively, and hence
         * will work with any database without modification.
         *
-        * $Id: Reports.php,v 1.10 2003/12/15 08:30:54 chriskl Exp $
+        * $Id: Reports.php,v 1.10.4.1 2004/07/01 07:16:56 chriskl Exp $
         */
 
        class Reports {
@@ -23,6 +23,8 @@
                        else {
                                // Create a new database access object.
                                $this->driver = &$misc->getDatabaseAccessor($this->reports_db);
+                               // Reports database should have been created in public schema
+                               if ($this->driver->hasSchemas()) $this->driver->setSchema('public');
                                $status = 0;
                        }
                }