django-pyodbc-azure icon indicating copy to clipboard operation
django-pyodbc-azure copied to clipboard

Added features described in Django 2.2 docs

Open JordanReiter opened this issue 5 years ago • 16 comments

As far as I can tell these are all the features needed for Django 2.2 compatibility. I think technically SQL Server could support partial indexes but for now it can just be unsupported.

JordanReiter avatar Apr 10 '19 17:04 JordanReiter

Many thanks @JordanReiter Works as expected ... +1 to merge into main branch

morlandi avatar Apr 23 '19 10:04 morlandi

@morlandi no problem! I do think it means that some functionality that could potentially be supported is missing, but at the very least it works and provides similar functionality that was present in version 2.1.

JordanReiter avatar Apr 24 '19 18:04 JordanReiter

at the very least it works and provides similar functionality that was present in version 2.1.

True

I just wonder: isn't the package too restrictive in raising an exception when the actual Django version is ABOVE the expected one ? In my opinion, a warning would be more appropriate.

I just migrated to Django 2.2 a reasonably complex project requiring 60 external Python modules / apps. In doing so, I took the responsibility to supervise the process and check all unit tests. All in all, that wasn't too bad. And guess what ? ... the only nuisance was related to django-pyodbc-azure and it's restrictive setup constraints. Would all other involved Django apps be so restrictive, I couldn't have possibly dealt with this migration at all.

morlandi avatar Apr 26 '19 00:04 morlandi

Database behavior is so integral that I think it's reasonable to have strict restrictions for this library. I agree it would be overkill for other libraries/packages.

On Thu, Apr 25, 2019 at 8:39 PM morlandi [email protected] wrote:

at the very least it works and provides similar functionality that was present in version 2.1.

True

I just wonder: isn't the package too restrictive in raising an exception when the actual Django version is ABOVE the expected one ? In my opinion, a warning would be more appropriate.

I just migrated to Django 2.2 a reasonably complex project requiring 60 external Python modules / apps. In doing so, I took the responsability to supervise the process and check all unit tests. All in all, that whasn't bad at all. And guess what ? ... the only nuisance was realated to django-pyodbc-azure and it's restrictive setup constraints. Would all other involved Django apps be so restrictive, I couldn't have possibly dealt with this migration at all.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/michiya/django-pyodbc-azure/pull/204#issuecomment-486885072, or mute the thread https://github.com/notifications/unsubscribe-auth/AABX4TXDZC4GGKQJ5JFYOO3PSJFLDANCNFSM4HE7KQOA .

-- Jordan Reiter [email protected]

JordanReiter avatar Apr 26 '19 02:04 JordanReiter

Hmmm ... I totally agree on the "better safe than sorry" approach ;)

On the other side, If you compare the file changes between subsequent versions of the package, you'll mainly find extensions and optimisations, more than fixes for incompatibility issues. That is probably because the Django ORM is consolidated enough to require very infrequent backward-incompatible changes in this area.

While I'm at it, let me thank you again for contribution, and a big big thank to @michiya for his remarkable commitment

morlandi avatar Apr 26 '19 07:04 morlandi

We are using the code in the PR and it works as expected. +1 on getting this merged in ASAP.

peterfarrell avatar May 20 '19 14:05 peterfarrell

What is the status of this PR ? Django 2.0 has been out since 3 months now, this lib is the only one forcing us to stay on 2.1 😕

Crocmagnon avatar Jun 28 '19 09:06 Crocmagnon

Working as expected here. All for getting in merged in.

twisbrogan avatar Jul 02 '19 10:07 twisbrogan

README.md should be updated too ;-) Thank you for your efforts!

frafra avatar Jul 26 '19 14:07 frafra

Works as expected ... +1 to merge into main branch

GlamTam avatar Nov 28 '19 13:11 GlamTam

Works for us, too.

kummerer94 avatar Dec 02 '19 16:12 kummerer94

Please merge it to master.

sgupta227 avatar Dec 06 '19 10:12 sgupta227

Please merge it to master.

Would if I could buddy.

JordanReiter avatar Dec 06 '19 14:12 JordanReiter

For those asking for this PR to be merged, it looks like @michiya has had to move on after giving much hard work on this project. We thank him for his efforts and outstanding contribution over the years.

For the future, @FlipperPA has kicked off a project to incorporate this work into the core of the Django project itself

While that work continues, the 2019-12-04 update from FlipperPA endorses the https://github.com/ESSolutions/django-mssql-backend fork of this repo:

We are still waiting for a reply from Microsoft. They're a large company, so understandably, it takes a little while.

For now, if people need to get onto Django 2.2 for long term support (which will last until April, 2022), you can use this package:

https://github.com/ESSolutions/django-mssql-backend

If Microsoft and/or the Django Software Foundation end up wanting to bring support for SQL Server into core, the django-mssql-backend repository is a possible starting point, IMHO.

https://github.com/ESSolutions/django-mssql-backend has merged Django 2.2 compatibility into master, as well as various other fixes. @OskarPersson is working hard on Django 3 support too (ESSolutions/django-mssql-backend#18). We should probably all switch to using django-mssql-backend, instead of django-pyodbc-azure, and thank @OskarPersson for picking up the baton that @michiya ran with for so long.

daybarr avatar Dec 09 '19 13:12 daybarr

HI everyone! This looks awesome and I am ready to try it out :D, however I am wondering has anyone tried django 3.0 yet? I am kicking off a new service soon and would love to use the newest version but I am a little concerned about the connection to mssql - thoughts? Is anything radically different in 3.0?

wdifruscio avatar Dec 13 '19 15:12 wdifruscio

@wdifruscio See https://github.com/ESSolutions/django-mssql-backend/pull/19

OskarPersson avatar Dec 13 '19 15:12 OskarPersson