Giter VIP home page Giter VIP logo

Comments (7)

absci avatar absci commented on May 13, 2024 1

I have committed a fix in dev branch. Let me know if you encountered any problems.

from mssql-django.

vwarchu avatar vwarchu commented on May 13, 2024

@techknowfile - Thanks for the issue report. We'll take a look and get back to you regarding a potential solution and/or temp workaround. Cheers

from mssql-django.

techknowfile avatar techknowfile commented on May 13, 2024

Thanks, @vwarchu. I think we're going to temporarily hack around this issue by monkey-patching the base.execute() function to identify when we have too many parameters with a query that contains a single IN clause and move those parameters into a temp table instead.

from mssql-django.

absci avatar absci commented on May 13, 2024

@techknowfile I'm able to reproduce the issue, I think Django has some code to split parameters. But it doesn't work with SQL Server. I'll try to provide a solution for that.

from mssql-django.

techknowfile avatar techknowfile commented on May 13, 2024

Thank you, @absci! We had come to a similar approach of creating a temp table, but this is a much cleaner place of putting it

One issue we have rn is that your solution doesn't work when UUIDs are used as the PK. Added comments for suggested changes to your commit

from mssql-django.

absci avatar absci commented on May 13, 2024

I see. If that's the case, it might be better to use different SQL data types for each Django models.

from mssql-django.

absci avatar absci commented on May 13, 2024

This issue has been fixed.

from mssql-django.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.