Fixed a bug with the exists function for tables. Bumped package version to 1.1.5
This commit is contained in:
parent
cabbdc847a
commit
4796f2c51e
@ -7,7 +7,7 @@
|
|||||||
<AssemblyName>MontoyaTech.MySqlPlus</AssemblyName>
|
<AssemblyName>MontoyaTech.MySqlPlus</AssemblyName>
|
||||||
<RootNamespace>MontoyaTech.MySqlPlus</RootNamespace>
|
<RootNamespace>MontoyaTech.MySqlPlus</RootNamespace>
|
||||||
<Title>MontoyaTech.MySqlPlus</Title>
|
<Title>MontoyaTech.MySqlPlus</Title>
|
||||||
<Version>1.1.4</Version>
|
<Version>1.1.5</Version>
|
||||||
<Company>MontoyaTech</Company>
|
<Company>MontoyaTech</Company>
|
||||||
<Description>A simple C# library to help work with MySql.</Description>
|
<Description>A simple C# library to help work with MySql.</Description>
|
||||||
<Copyright>MontoyaTech 2023</Copyright>
|
<Copyright>MontoyaTech 2023</Copyright>
|
||||||
|
@ -158,9 +158,11 @@ namespace MontoyaTech.MySqlPlus
|
|||||||
command.Exists<T>(id);
|
command.Exists<T>(id);
|
||||||
|
|
||||||
using (var reader = this.Connection.ExecuteReader(command))
|
using (var reader = this.Connection.ExecuteReader(command))
|
||||||
|
if (reader.Read())
|
||||||
return reader.GetBoolean(0);
|
return reader.GetBoolean(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -176,9 +178,11 @@ namespace MontoyaTech.MySqlPlus
|
|||||||
command.Exists<T>(id);
|
command.Exists<T>(id);
|
||||||
|
|
||||||
using (var reader = this.Connection.ExecuteReader(command))
|
using (var reader = this.Connection.ExecuteReader(command))
|
||||||
|
if (reader.Read())
|
||||||
return reader.GetBoolean(0);
|
return reader.GetBoolean(0);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user