Comments (7)
I have committed a fix in dev
branch. Let me know if you encountered any problems.
from mssql-django.
@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.
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.
@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.
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.
I see. If that's the case, it might be better to use different SQL data types for each Django models.
from mssql-django.
This issue has been fixed.
from mssql-django.
Related Issues (20)
- Support database cloning to allow Django tests to use the `--parallel` flag HOT 1
- Query fails because of subquery in group by HOT 1
- Would you consider client side param substitution? HOT 14
- Django 5: GeneratedFields not supported by SQL Server? HOT 2
- MSSQL FileField max_length restrictions HOT 6
- Error during insert to linked server via view. HOT 4
- [QUESTION] Connecting using "domain credentials" HOT 5
- Errors Running Tests with 1.4.1 HOT 5
- [QUESTION] Timezone related impact when upgrading to latest version. HOT 2
- UUID stored with hyphens causes DB error in 1.4.1 HOT 6
- [BUG] - func subtract_temporals in operations.py summing a list + tuple in case the list is empty HOT 1
- SQL query contains the percent sign that should remain, for example in a LIKE SQL query HOT 4
- [BUG] - Degradation caused by DatabaseIntrospection.get_table_list HOT 3
- Datetime conversion issue with USE_TZ and settings.TIME_ZONE != 'UTC'? HOT 2
- [42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near ')' ... Mssqlserver does not support COUNT_BIG (expr) HOT 6
- file not found (0) (SQLDriverConnect)") HOT 2
- Fail to connect to database mac os with M2 HOT 2
- [QUESTION] Why is supports_ignore_conflicts = False HOT 1
- Setting a default value for fields do not propagate to database HOT 1
- SQL Server 2005 compatibility issue- migration failure with filtered index queries HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mssql-django.