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 search_path when looking up type OIDs in TypeInfoCache #52

Merged
merged 4 commits into from Jun 10, 2013
Merged

Consider search_path when looking up type OIDs in TypeInfoCache #52

merged 4 commits into from Jun 10, 2013

Conversation

valgog
Copy link
Contributor

@valgog valgog commented Apr 12, 2013

In case when types with the same name existed in several schemas,
TypeInfoCache did not consider the current search_path and was choosing
an OID of a type not deterministically. These change will make
the type from the current schema to be chosen. Also this change remains
backwards compatible with the previous implementation, still being anble
to find a type, that is not included into the current search_path.

Though the fix changes the behavior of TypeInfoCache, MetaData logic
still does not consider search_path, when reflecting database objects.

valgog and others added 4 commits April 12, 2013 02:35
In case when types with the same name existed in several schemas,
TypeInfoCache did not consider the current search_path and was choosing
an OID of a type not deterministically. These change will make
the type from the current schema to be chosen. Also this change remains
backwards compatible with the previous implementation, still being anble
to find a type, that is not included into the current search_path.

Provided test fails now, as it does not TypeInfoCache
directly. So more work is to be done to make this test work.
@valgog
Copy link
Contributor Author

valgog commented Jun 6, 2013

Is there any chance to get at least some feedback on this request :(

@davecramer
Copy link
Member

I had sent an email regarding your other patch for prepared statements. I did not hear a response, I presumed you didn't care ?

@valgog
Copy link
Contributor Author

valgog commented Jun 6, 2013

Oh Lord, I suppose I missed something :( What email? I have to search for your email to me. I hope it is not in spam...

davecramer pushed a commit that referenced this pull request Jun 10, 2013
Consider search_path when looking up type OIDs in TypeInfoCache
@davecramer davecramer merged commit 3ca94e6 into pgjdbc:master Jun 10, 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

Successfully merging this pull request may close these issues.

None yet

2 participants