Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Concurrency and SQL Injection #45

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment
Open

Concurrency and SQL Injection #45

GoogleCodeExporter opened this issue Mar 14, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

      Recently,I am learning NPetshop-1.0.0.RC1 example with "IBatisNet.DataAccess 1.0.0.249" and "IBatisNet.DataMap 1.0.0.249".
      following two questions confuse me. 
      One is  that there is just one static "DaoManager" and one static "SqlMap" session handler, but how to deal with many concurrent calls, whether DaoManager will underlyingly create many concurrent connnections to database?  Further more, whether I should let "IBatisNet" get with concurrent calls situation for me, or what I can do is all by myself? 
      Another question is that  whether DAO framework has code to prevent "SQL injection"? 
      Because of can not successfully download the source code,so I have to get your help. Waitting for your helps. Thanks!


Original issue reported on code.google.com by yanfabu_...@163.com on 28 Jun 2012 at 1:24

@GoogleCodeExporter
Copy link
Author

    I am the provider of this defect. Recently I can download the source code successfully.
    Firstly, I found that function "OpenConnection"  create a connection underlying for each Http Request,and function "CloseConnection" close the connection asotiated with the current Http request. So, it can be seen clearly that "IBatisNet"  fits for  "B/S Concurrency scenario".
    Secondly, because of using "IDbDataParameter" Underlying, "IBatisNet" can prevent "SQL Injection" some how.
    Thanks, all the contributors!

Original comment by yanfabu_...@163.com on 6 Jul 2012 at 1:36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant