Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

epa
Copy link

@epa epa commented Jun 15, 2015

@damoxc
Copy link
Contributor

damoxc commented Jun 15, 2015

I think it would be prudent to add a check to see what version of FreeTDS is being compiled against before adding these types, unless of course you have tested what happens when this is compiled against an older version of FreeTDS? At the very least some unit test coverage would be good :) Thanks!

@epa
Copy link
Author

epa commented Jun 15, 2015

I don't believe it matters if the code is compiled against an older FreeTDS version, since the new types will simply not be returned in that case. (Older FreeTDS versions, or newer ones with TDSVER set below 7.3, will return these date and type columns as strings.)

For test coverage, is it OK to write a test which won't run on older MSSQL versions?

@epa
Copy link
Author

epa commented Jun 16, 2015

Tests added - please have a look.

@epa
Copy link
Author

epa commented Jun 30, 2015

Hi, have you had time to look at the new merge request including tests?

@rsyring
Copy link
Contributor

rsyring commented Jun 30, 2015

@epa sorry, we don't have a lot of active developers right now. It may take some time for this to get reviewed and released.

Concerning testing for older versions of SQL Server. It would be better if the tests checked for the sql server version and used pytest.mark.skipif(...) to skip the test if the version is too old.

@epa
Copy link
Author

epa commented Jun 30, 2015

Yes, I'll add the skipif. Do you know how to test the version of SQL Server?

@rsyring
Copy link
Contributor

rsyring commented Jun 30, 2015

Something based on @@VERSION I'd guess: https://msdn.microsoft.com/en-us/library/ms177512.aspx

@rsyring
Copy link
Contributor

rsyring commented Jun 30, 2015

Something based on @@VERSION I'd guess: https://msdn.microsoft.com/en-us/library/ms177512.aspx

You could also check out SQLAlchemy code. I'd bet it has some code for getting the version out of MSSQL and comparing for testing/feature support.

@ramiro
Copy link
Contributor

ramiro commented Feb 24, 2016

Merged in 97129df

@ramiro ramiro closed this Feb 24, 2016
@epa
Copy link
Author

epa commented Feb 24, 2016

Thanks for merging this, sorry I didn't get around to making the tests conditional.

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.

4 participants