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

Consider different schemas in the Table Data functions #158

Closed
bitbucket-import opened this issue Aug 19, 2011 · 5 comments
Closed

Consider different schemas in the Table Data functions #158

bitbucket-import opened this issue Aug 19, 2011 · 5 comments

Comments

@bitbucket-import
Copy link

In my test environment I have a postgres database where the tables aren't under the "public" schema. The Table Data functions aren't able to find my tables. Ex:
My schema is named foo and I have a table named bar. The following code will show false.

$this->load->database();
var_dump($this->db->table_exists('bar'));

I've attached a patch that solves this issue by allowing me to indicate at the database configuration which schemas I want to use. Maybe it's not the correct approach to the project but I like CodeIgniter and wanted to help somehow. Nice work guys!

@jflow
Copy link

jflow commented Aug 7, 2012

Any news on this? I use postgresql and need the ability to use schemas other than public. Will the mentioned patch work with the current-stable/development builds of CI? If it will can I get access to it as it doesn't appear to be available at the moment?

@mckaygerhard
Copy link

heloo, any news over patch!?

@alexbilbie
Copy link
Contributor

I've not been able to find the old patch that was submitted when CI was hosted on Bitbucket so someone else is going to have to recreate and submit this patch

@mckaygerhard
Copy link

its possible that the codeigniter oracle patch could works? remenber that oracle always use shemas...

@narfbg
Copy link
Contributor

narfbg commented Oct 27, 2012

Oracle's schemas represent the username that accesses data in them, so that's a non-issue there.

@narfbg narfbg closed this as completed in 485a348 Oct 27, 2012
nonchip pushed a commit to nonchip/CodeIgniter that referenced this issue Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants