hujinxian / mybatisnet

Automatically exported from code.google.com/p/mybatisnet
0 stars 0 forks source link

i fount a bug in "IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs" line 66 #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What version of the MyBatis.NET are you using?
1.9.2
1.6.2

in this method "Create",you just set the "IDbCommand.CommandText" ,but 
some times,"IDbCommand.Connection.ConnectionString" will missing, 

should add 

" 
if (request.IDbCommand.Connection.ConnectionString == "") 
{ 
                request.IDbCommand.Connection.ConnectionString = 
session.SqlMapper.DataSource.ConnectionString; 

} 

" 

is this a bug ?? 

Original issue reported on code.google.com by omeweb....@gmail.com on 11 Aug 2010 at 2:28