Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting fields for a table in another schema #24998

Closed
softarius opened this issue May 24, 2019 · 7 comments
Closed

Getting fields for a table in another schema #24998

softarius opened this issue May 24, 2019 · 7 comments

Comments

@softarius
Copy link
Contributor

softarius commented May 24, 2019

0004-getTableColumns-for-another-schema.txt

Steps to reproduce the issue

  • install Joomla with PostgreSQl driver.
  • create a new schema (for example 'test')
  • create a new table in this schema
CREATE TABLE test.customer (
  id SERIAL,
  name VARCHAR(100),
  PRIMARY KEY(id)
) 
WITH (oids = false);
  • in code call getTableColumns for this table
$db = JFactory::getDBO();
$custfields=$db->getTableColumns('test.customer'); 

Expected result

Array with fields of table

Actual result

Empty array

System information (as much as possible)

PostgreSQL Joomla driver using (important!)
Any operation system (Windows or Linux for me)
Joomla 3.9.6 (or staging)
PostgreSQL 10 (or other)

Additional comments

A fixed this bag (see attached patch)

@ghost
Copy link

ghost commented May 24, 2019

Please "System information (as much as possible)"

@softarius
Copy link
Contributor Author

System information (as much as possible)

  • PostgreSQL Joomla driver using (important!)
  • Any operation system (Windows or Linux for me)
  • Joomla 3.9.6 (or staging)
  • PostgreSQL 10 (or other)

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24998.

@alikon
Copy link
Contributor

alikon commented May 24, 2019

you have already the solution so then
please submit a pr is easy: https://docs.joomla.org/Using_the_Github_UI_to_Make_Pull_Requests

@ghost ghost added the J3 Issue label May 24, 2019
@softarius softarius mentioned this issue May 24, 2019
@softarius
Copy link
Contributor Author

Yes. Done.
PR #24999


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24998.

@richard67
Copy link
Member

Then you can close this issue because there is a PR.

@joomla-cms-bot
Copy link

Set to "closed" on behalf of @alikon by The JTracker Application at issues.joomla.org/joomla-cms/24998

@alikon
Copy link
Contributor

alikon commented May 24, 2019

closing as we have a pr for testing #24999


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/24998.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants