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

does this support foxpro #3

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments
Open

does this support foxpro #3

GoogleCodeExporter opened this issue Mar 15, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?
a connection

What version of the product are you using? On what operating system?
Windows XP the latest


Please provide any additional information below.
cnxn = pypyodbc.connect(DRIVER='{Microsoft FoxPro VFP Driver (*.dbf)}',  
SourceType='DBF',  SourceDB='c:\amsql\amaddon.dbf')
does not work
TypeError: connect() got an unexpected keyword argument 'DRIVER'
but works with pyodbc.  Maybe you can suggest a different connect string?


Original issue reported on code.google.com by fabiani....@gmail.com on 23 Sep 2012 at 5:59

@GoogleCodeExporter
Copy link
Author

Hi, it should support FoxPro.

The problem you meet here, is the method in pypyodbc currently only support a 
connection string as the input, while pyodbc provide you another way to specify 
the connection via a set of parameters (Driver/SourceType/SourceDB, etc)

You can try this as a workaround:

pypyodbc.connect("DRIVER={Microsoft Visual FoxPro 
Driver};SourceType=DBF;SourceDB=c:\amsql\amaddon.dbf")

Original comment by jiangwen...@gmail.com on 24 Sep 2012 at 1:22

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

The new pypyodbc.py in the Trunk should have fixed this issue.

Original comment by jiangwen...@gmail.com on 30 Sep 2012 at 1:22

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

Original comment by jiangwen...@gmail.com on 9 Oct 2012 at 5:14

  • Changed state: Fixed

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

1 participant