Re: DB_DataObject -- NO TABLES -- message
| From: | Justin Patrin | Date: | Mon, 07 Feb 2005 17:17:52 +0000 |
| Subject: | Re: DB_DataObject -- NO TABLES -- message | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-17427@lists.php.net to get a copy of this message | ||
On Mon, 07 Feb 2005 12:27:37 +0000, Peter Bowyer
<peter@mapledesign.co.uk> wrote:
> Hi,
>
> I have a slightly odd problem here, hopefully with a very simple solution :-)
>
> I developed on my local Windows computer using DB_DataObjects and uploaded
> the site to a FreeBSD server. It runs perfectly. Now I have added another
> table to my database, and so need to regenerate the base classes. However,
> every time I run the script to do this it tells me no tables exist in the
> database! The site works fine, so the connection details are blatantly
> right; and turning up debugging shows that the generate script is
> connecting to the correct database.
>
> Any ideas?
What DB and what version of PHP? Try putting:
define('DB_DATAOBJECT_NO_OVERLOAD', 1);
*before* the DB_DO include in the generator script.
--
Justin Patrin