Comments (4)
You need to check that for yourself. the driver is a low level driver.
If you know a better solution, please feel free to implement it and issue a PR.
from pymonetdb.
that is not how the API works. It is probably best to make a string of your list and then use it.
This should work:
ids = 1, 2
cursor.execute("select * from image where id in (%s)" % ",".join(str(i) for i in ids))
from pymonetdb.
That solutions seems quite dirty to me, because it would allow sql-injections. By the way: My id list is not static, its dynamic. So it's not practical to bind each param one by one.
from pymonetdb.
Then I will create a pull request in the next days.
Thanks anyway.
from pymonetdb.
Related Issues (20)
- Make code style checking stricter (mypy and flake8)
- Value error in dates HOT 1
- Problem with parameters in execute. HOT 5
- Control.status() crashes when connecting without a host name
- Add IPv6 support HOT 5
- Connection refused log message when everything is fine HOT 5
- Cannot use the library on 3.7 HOT 5
- Using MonetDB with schema HOT 5
- Separate SQL errors from connection errors during query execution HOT 5
- SQLSTATE error code removed from error messages HOT 6
- Fix master branch, travis is failing HOT 1
- Re-enable travis integration HOT 1
- Support day interval type HOT 4
- `cursor.executemany` does not work as expected HOT 2
- Use of BokenPipeError breaks DBAPI compatability in 1.4.0 HOT 2
- Rename pymonetdb (back) to (python-)monetdb HOT 1
- Day interval issue? HOT 1
- Connection object leaks the password HOT 1
- slow data transfer HOT 2
- Github actions broken HOT 3
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 pymonetdb.