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

[IM001] [unixODBC][Driver Manager]Driver does not support this function (0) (SQLPrimaryKeys) #431

Open
ReubenFrankel opened this issue Feb 2, 2024 · 2 comments

Comments

@ReubenFrankel
Copy link

Following this comment, I get the following error when trying to get primary keys via pyodbc:

Python 3.8.18 (default, Aug 24 2023, 19:48:18) 
[GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyodbc
>>> db = pyodbc.connect("Driver=MDBTools;DBQ=sample_db/Books.mdb")
>>> [t[2] for t in db.cursor().tables()]
['MSysObjects', 'MSysACEs', 'MSysQueries', 'MSysRelationships', 'All Titles', 'Authors', 'f_080E88E79F6E4B6EB728E20CB412E242_Data', 'MSysAccessStorage', 'MSysIMEXColumns', 'MSysIMEXSpecs', 'MSysNavPaneGroupCategories', 'MSysNavPaneGroups', 'MSysNavPaneGroupToObjects', 'Publishers', 'Title_Author', 'Titles', 'MSysNavPaneObjectIDs']
>>> [pk for pk in db.cursor().primaryKeys("Authors")]
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
pyodbc.InterfaceError: ('IM001', '[IM001] [unixODBC][Driver Manager]Driver does not support this function (0) (SQLPrimaryKeys)')
@AoungY
Copy link

AoungY commented May 10, 2024

I had the same problem

@CoreyVincent
Copy link

Same

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

3 participants