Comments (2)
Hi @delcroip, can you provide an example so I can try to reproduce this locally?
from mssql-django.
with this data
sql = '''SELECT prod."ProdID" as "ProdID"
FROM "tblProduct" prod
WHERE prod."LocationId" = %(LocationId)s OR %(LocationId)s = 0 ;'''
params = {"LocationId": locationId}
This fails
cur.execute(sql, params)
this doesn't
cur.execute(*manage_named_parameters(sql,params))
hope it helps (the table can be change to anything the key to reproduce is to have a dict as params )
Note: regarding the error management it param[p] should throw a KeyError as it should that why no error management was added
from mssql-django.
Related Issues (20)
- How to enable REGEXP_LIKE function on Azure SQL Server HOT 2
- [QUESTION] HOT 3
- [QUESTION] How to use executemany with raw query? HOT 3
- [QUESTION] SQL Server does not support JSONFields. HOT 2
- CursorWrapper._as_sql_type should handle bytes values HOT 3
- Unable to connect from Docker container running django to SQL Server using the FreeTDS driver HOT 1
- Query results different on 1.5 on static query. HOT 5
- 10 minutes to close connection after an occurrence of 'query_timeout'. HOT 3
- [QUESTION]Here are two questions, Can it support python 3.11?and Can it support django async well? HOT 8
- [QUESTION]I user mssql-django and how to support chinese?When inserting Chinese using SQL , it was found from the database that it was garbled。 HOT 2
- Close db connection immediately after calling a complex procedure cause db rollback HOT 1
- Can't add a field to an existing model without allowing null values when specifing table schema HOT 3
- Migration can fail if previous migration has an index with a field that starts with hyphen HOT 1
- UUID queries are made with NCHAR HOT 3
- Migrate Failed with Django 5.1 HOT 3
- Support JSONObject HOT 1
- explain_format missing in self.query causes django admin app to not work properly HOT 1
- Possible regression in inspectdb with schema argument HOT 2
- Having both a CTE, a GROUP BY and parameters causes crashes. 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.