You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by objectboy2016 <gi...@git.apache.org> on 2018/01/16 09:39:27 UTC
[GitHub] commons-dbutils issue #3: Fixes a thread safety problem introduced by DBUTIL...
Github user objectboy2016 commented on the issue:
https://github.com/apache/commons-dbutils/pull/3
**Why not design a named parameter**
such as:
string sql="select * from user where name=:name";
.......
runquery.addParameter("name","paul");
So simple and straightforward
No problem with the number, but the parameters of many will be a disaster
such as:
insert into a (a, b, c, d, f, g, i, e, g, k) values (?,?,?,?,?,?,?,?,?)
My eyes have been spent
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org