My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 118: Get current schema name
1 person starred this issue and may be notified of changes. Back to list
Status:  NoFix
Owner:  ----
Closed:  Nov 2010


 
Reported by dusan.sm...@gmail.com, Sep 3, 2010
What steps will reproduce the problem?
1. cnxn = pyodbc.connect('DSN=dbname;PWD=password')
2. >>> for i in cursor.tables():
   ...     print i


What is the expected output? What do you see instead?
The output is good, but i don't get the name of the current schema that i have connected to.

What version of the product are you using? On what operating system?
pyodbc-2.1.7.win32-py2.7.exe



Sep 4, 2010
Project Member #1 mkleehammer
I'm not entirely sure what you mean.  Do you mean the schema column is empty/NULL?  If so, that's up to the driver or database, not pyodbc.  pyodbc simply returns whatever the driver gives it here.

Status: Investigating
Nov 21, 2010
Project Member #2 mkleehammer
(No comment was entered for this change.)
Status: Hold
Nov 24, 2010
Project Member #3 mkleehammer
This works in the databases I have tested, so it appears to be driver-specific.  Since I don't have any more information at this point, I'm going to close this.  Please re-open or post to the discussion group if it is still a problem.

Status: NoFix

Powered by Google Project Hosting