oprava double open connection
This commit is contained in:
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
|
|||||||
// You can specify all the values or you can default the Build and Revision Numbers
|
// You can specify all the values or you can default the Build and Revision Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
// [assembly: AssemblyVersion("1.0.*")]
|
// [assembly: AssemblyVersion("1.0.*")]
|
||||||
[assembly: AssemblyVersion("1.2.2.0")]
|
[assembly: AssemblyVersion("1.2.3.0")]
|
||||||
[assembly: AssemblyFileVersion("1.2.2.0")]
|
[assembly: AssemblyFileVersion("1.2.3.0")]
|
||||||
|
|||||||
@@ -464,7 +464,7 @@ namespace Mip
|
|||||||
MariaDBCommand(_cmd,true);
|
MariaDBCommand(_cmd,true);
|
||||||
|
|
||||||
MySqlCommand lastIndexCommand = new MySqlCommand("SELECT LAST_INSERT_ID();", MariaDBConnection);
|
MySqlCommand lastIndexCommand = new MySqlCommand("SELECT LAST_INSERT_ID();", MariaDBConnection);
|
||||||
lastIndexCommand.Connection.Open();
|
//lastIndexCommand.Connection.Open();
|
||||||
object Index = lastIndexCommand.ExecuteScalar();
|
object Index = lastIndexCommand.ExecuteScalar();
|
||||||
|
|
||||||
if (Index != null) MariaDBLastIndex = Convert.ToInt32(Index);
|
if (Index != null) MariaDBLastIndex = Convert.ToInt32(Index);
|
||||||
|
|||||||
Reference in New Issue
Block a user