|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56210 Ability to specify alias for main table
Submitted: 2004-10-05 07:18 UTC Modified: 2015-03-25 21:05 UTC
From: pecl-dbdo-bug-2004 at ryandesign dot com Assigned:
Status: Not a bug Package: DBDO (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pecl-dbdo-bug-2004 at ryandesign dot com
New email:
PHP Version: OS:


 [2004-10-05 07:18 UTC] pecl-dbdo-bug-2004 at ryandesign dot com
In the PEAR version of DB_DataObjects, I can give
an alias to a joined table like this:

$main_table = DB_DataObject::factory('main_table');
$joined_table = DB_DataObject::factory('joined_table');
$main_table->joinAdd($joined_table, '', 'jt');

The generated SQL then starts like this:

SELECT * FROM main_table, joined_table AS jt

I want to generate the following SQL instead:

SELECT * FROM main_table AS mt, joined_table AS jt

But this capability does not exist in the PEAR module.
I presume the same limitations currently exist in the
PECL version.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-25 21:05 UTC]
-Status: Open +Status: Not a bug
 [2015-03-25 21:05 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jul 12 20:01:30 2024 UTC