> ok, done

 Wait a moment, please!

> command.CommandTimeout = this.Connection.ConnectionTimeout;
> 
> to the SqlMapSession.CreateCommand(CommandType commandType) method

 I make some test and got NullReferenceException - inside
SqlMapSession.CreateCommand _connection is undefined while iBATIS is
configured.

 I've made wrong proposition - please fix it.
 Here is command timeout assignement inside SqlMapSession.CreateCommand and
DaoSession.CreateCommand :

// Assign connection timeout
if(_connection != null)
        command.CommandTimeout = _connection.ConnectionTimeout;

> Thanks.
> 
> ----- Original Message ----- 
> From: "Alexey Boroday" <[EMAIL PROTECTED]>
> To: <ibatis-user-cs@incubator.apache.org>
> Sent: Tuesday, December 28, 2004 4:06 PM
> Subject: Command timeout != Session timeout
> 
> 
> Hello!
> 
>  I've found that command timeout is not equal to the 
> connection timeout.
> Connection timeout I could change via connection string for the MS SQL
> database at least.
> To fix this I propose to add somehting like:
> 
> command.CommandTimeout = this.Connection.ConnectionTimeout;
> 
> to the SqlMapSession.CreateCommand(CommandType commandType) method or
> anywhere else.
> 
> 
> -- 
>  С уважением, Алексей Бородай
>  Отдел разработки ПО
> 
> 
> ______________________________________________________________
> _____________
> 
> This communication is confidential and may be legally privileged.
> If you believe you are not an intended recipient, please 
> inform the sender,
> delete the e-mail and do not copy, print or use it or 
> disclose it to others.
> You can inform the sender by replying to this e-mail or by 
> telephone (+380
> 44 4906080).
> 
> 
> 


___________________________________________________________________________

This communication is confidential and may be legally privileged. 
If you believe you are not an intended recipient, please inform the sender, 
delete the e-mail and do not copy, print or use it or disclose it to others. 
You can inform the sender by replying to this e-mail or by telephone (+380 44 
4906080).


Reply via email to