Re: DB_DataObjects - Long Column Names
| From: | Alan Knowles | Date: | Sun, 05 Jun 2005 15:20:31 +0000 |
| Subject: | Re: DB_DataObjects - Long Column Names | ||
| References: | 1 | Groups: | php.pear.general php.pear.general |
| Request: | Send a blank email to pear-general+get-19464@lists.php.net to get a copy of this message | ||
can you check the versions of DB/PHP.. - it may be a compatibility rule
or something.
DataObjects as far as I remember doesnt do anything with lengths of
columns.
Regards
Alan
On Sat, 2005-06-04 at 14:22 +1000, "Barry Steele" wrote:
> Hi,
> We have just come across a very bemusing issue with DataObjects.
>
> We have table with a column whose name is 32 characters long (don't ask why).
>
> in our development environment this works just fine, but when we moved
> into pre-production testing (on the target box) we noticed the the query
> that was generated has the last 3 characters chopped off. THe attribute
> name in the object remained correct, but of course never gets set the
> column name is something like 'InternalMembershipCategoryTypeID'.
>
> As soon as we shortened the attribute name it works - on both platforms.
> Both platforms are using DataObjects 1.7.1.
>
> I have not as yet had time to look at the DBO code, but I thought that
> this might be of interest to other folks.
>