mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 04:18:16 +08:00
v1.3.5
This commit is contained in:
@ -53,7 +53,7 @@ namespace FreeSql.Tests.Odbc.MySql
|
||||
[Fact]
|
||||
public void QueryMultipline()
|
||||
{
|
||||
Assert.Throws<OdbcException>(() => g.mysql.Ado.Query<xxx, (int, string, string), dynamic>("select * from song; select * from song; select * from song"));
|
||||
Assert.Throws<Exception>(() => g.mysql.Ado.Query<xxx, (int, string, string), dynamic>("select * from song; select * from song; select * from song"));
|
||||
}
|
||||
|
||||
class xxx
|
||||
|
@ -78,8 +78,8 @@ namespace FreeSql.Tests.Odbc.MySqlExpression
|
||||
public void Array()
|
||||
{
|
||||
int[] nullarr = null;
|
||||
Assert.Throws<OdbcException>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
||||
Assert.Throws<OdbcException>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
||||
Assert.Throws<Exception>(() => { select.Where(a => nullarr.Contains(a.testFieldInt)).ToList(); });
|
||||
Assert.Throws<Exception>(() => { select.Where(a => new int[0].Contains(a.testFieldInt)).ToList(); });
|
||||
|
||||
IEnumerable<int> testlinqlist = new List<int>(new[] { 1, 2, 3 });
|
||||
var testlinq = select.Where(a => testlinqlist.Contains(a.testFieldInt)).ToList();
|
||||
|
Reference in New Issue
Block a user