Export to GitHub

mybatisnet - issue #8
i fount a bug in "IBatisNet.DataMapper/Commands/DefaultPreparedCommand.cs" line 66
Posted on Aug 11, 2010 by
Helpful Kangaroo
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 ??
Status: New
Labels:
Type-Defect
Priority-Low