Revert "This is a HACK! Downright nasty. For some reason, the devs of the mysql"
Didn't do what it said on the package!
This reverts commit 8643db3ef0
.
prebuild-update
parent
8643db3ef0
commit
a3ebd4db3f
|
@ -66,12 +66,6 @@ namespace OpenSim.Data.MySQL
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
MySqlConnection c = (MySqlConnection)conn;
|
|
||||||
|
|
||||||
Type tc = c.GetType();
|
|
||||||
MethodInfo miSetCommandTimeout = tc.GetMethod("SetCommandTimeout", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
||||||
MethodInfo miClearCommandTimeout = tc.GetMethod("ClearCommandTimeout", BindingFlags.NonPublic | BindingFlags.Instance);
|
|
||||||
miSetCommandTimeout.Invoke(c, new Object[] { 2147483 }); // INT_MAX / 1000;
|
|
||||||
MySqlScript scr = new MySqlScript((MySqlConnection)conn);
|
MySqlScript scr = new MySqlScript((MySqlConnection)conn);
|
||||||
{
|
{
|
||||||
foreach (string sql in script)
|
foreach (string sql in script)
|
||||||
|
@ -84,7 +78,6 @@ namespace OpenSim.Data.MySQL
|
||||||
scr.Execute();
|
scr.Execute();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
miClearCommandTimeout.Invoke(c, new Object[] { });
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue