Skip to content

Commit e1ae0d4

Browse files
committed
SqlServerCe does not support command timeout
1 parent 4f9bb3a commit e1ae0d4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/NHibernate/Driver/DriverBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public virtual IDbCommand GenerateCommand(CommandType type, SqlString sqlString,
137137
return cmd;
138138
}
139139

140-
private void SetCommandTimeout(IDbCommand cmd)
140+
protected virtual void SetCommandTimeout(IDbCommand cmd)
141141
{
142142
if (commandTimeout >= 0)
143143
{

src/NHibernate/Driver/SqlServerCeDriver.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ public override bool SupportsMultipleOpenReaders
8787
get { return false; }
8888
}
8989

90+
protected override void SetCommandTimeout(IDbCommand cmd)
91+
{
92+
}
93+
9094
public override IResultSetsCommand GetResultSetsCommand(Engine.ISessionImplementor session)
9195
{
9296
return new BasicResultSetsCommand(session);
@@ -100,7 +104,7 @@ protected override void InitializeParameter(IDbDataParameter dbParam, string nam
100104
if (prepareSql)
101105
{
102106
SqlClientDriver.SetVariableLengthParameterSize(dbParam, sqlType);
103-
}
107+
}
104108
}
105109

106110
private static SqlType AdjustSqlType(SqlType sqlType)

0 commit comments

Comments
 (0)