|
|
@@ -969,9 +969,17 @@ namespace UAS_MES.DataOperate
|
|
|
{
|
|
|
if (!String.IsNullOrEmpty(sql))
|
|
|
{
|
|
|
-
|
|
|
command.CommandText = sql;
|
|
|
- command.ExecuteNonQuery();
|
|
|
+ try
|
|
|
+ {
|
|
|
+ command.ExecuteNonQuery();
|
|
|
+ }
|
|
|
+ catch (Exception)
|
|
|
+ {
|
|
|
+ command.Connection = new OracleConnection(DBConnectionString);
|
|
|
+ command.Connection.Open();
|
|
|
+ command.ExecuteNonQuery();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
tx.Commit();
|