Commit 2b9a3d48 authored by Marc Gravell's avatar Marc Gravell

Failing test for #552

parent 1690df14
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
}, },
"authors": [ "Sam Saffron", "Johan Danforth" ], "authors": [ "Sam Saffron", "Johan Danforth" ],
"description": "The official collection of get, insert, update and delete helpers for dapper.net. Also handles lists of entities and optional \"dirty\" tracking of interface-based entities.", "description": "The official collection of get, insert, update and delete helpers for dapper.net. Also handles lists of entities and optional \"dirty\" tracking of interface-based entities.",
"version": "1.50.0-*", "version": "1.50.1-*",
"title": "Dapper.Contrib", "title": "Dapper.Contrib",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
"Dapper": { "Dapper": {
"version": "1.50.0-*", "version": "1.50.1-*",
"target": "project" "target": "project"
} }
}, },
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
}, },
"authors": [ "Marc Gravell", "Nick Craver" ], "authors": [ "Marc Gravell", "Nick Craver" ],
"description": "Extension handlers for entity framework", "description": "Extension handlers for entity framework",
"version": "1.50.0-*", "version": "1.50.1-*",
"title": "Dapper entity framework type handlers (with a strong name)", "title": "Dapper entity framework type handlers (with a strong name)",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
"Dapper.StrongName": { "Dapper.StrongName": {
"version": "1.50.0-*", "version": "1.50.1-*",
"target": "project" "target": "project"
} }
}, },
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
}, },
"authors": [ "Marc Gravell", "Nick Craver" ], "authors": [ "Marc Gravell", "Nick Craver" ],
"description": "Extension handlers for entity framework", "description": "Extension handlers for entity framework",
"version": "1.50.0-*", "version": "1.50.1-*",
"title": "Dapper entity framework type handlers", "title": "Dapper entity framework type handlers",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
"Dapper": { "Dapper": {
"version": "1.50.0-*", "version": "1.50.1-*",
"target": "project" "target": "project"
} }
}, },
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
"copyright": "2012 Sam Saffron", "copyright": "2012 Sam Saffron",
"dependencies": { "dependencies": {
"Dapper": { "Dapper": {
"version": "1.50.0-*", "version": "1.50.1-*",
"target": "project" "target": "project"
} }
}, },
......
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
}, },
"authors": [ "Sam Saffron, Johan Danforth" ], "authors": [ "Sam Saffron, Johan Danforth" ],
"description": "The Dapper SqlBuilder component, for building SQL queries dynamically.", "description": "The Dapper SqlBuilder component, for building SQL queries dynamically.",
"version": "1.50.0-*", "version": "1.50.1-*",
"title": "Dapper SqlBuilder component", "title": "Dapper SqlBuilder component",
"copyright": "2016 Stack Exchange, Inc.", "copyright": "2016 Stack Exchange, Inc.",
"dependencies": { "dependencies": {
"Dapper": { "Dapper": {
"version": "1.50.0-*", "version": "1.50.1-*",
"target": "project" "target": "project"
} }
}, },
......
...@@ -3058,6 +3058,45 @@ public void Issue295_NullableDateTime_SqlServer() ...@@ -3058,6 +3058,45 @@ public void Issue295_NullableDateTime_SqlServer()
if (open) conn.Open(); if (open) conn.Open();
return conn; return conn;
} }
[FactMySql]
public void Issue552_SignedUnsignedBooleans()
{
using (var conn = GetMySqlConnection(true, false, false))
{
conn.Execute(@"
CREATE TEMPORARY TABLE IF NOT EXISTS `bar` (
`id` INT NOT NULL,
`bool_val` BOOL NULL,
PRIMARY KEY (`id`));
truncate table bar;
insert bar (id, bool_val) values (1, null);
insert bar (id, bool_val) values (2, 0);
insert bar (id, bool_val) values (3, 2);
insert bar (id, bool_val) values (4, null);
insert bar (id, bool_val) values (5, 3);
insert bar (id, bool_val) values (6, 0);
insert bar (id, bool_val) values (7, null);
insert bar (id, bool_val) values (8, 5);");
var rows = conn.Query<MySqlHasBool>("select * from bar;").ToDictionary(x => x.Id);
rows[1].Bool_Val.IsNull();
rows[2].Bool_Val.IsEqualTo(false);
rows[3].Bool_Val.IsEqualTo(true);
rows[4].Bool_Val.IsNull();
rows[5].Bool_Val.IsEqualTo(true);
rows[6].Bool_Val.IsEqualTo(false);
rows[7].Bool_Val.IsNull();
rows[8].Bool_Val.IsEqualTo(true);
}
}
class MySqlHasBool {
public int Id {get;set;}
public bool? Bool_Val {get;set;}
}
[FactMySql] [FactMySql]
public void Issue295_NullableDateTime_MySql_Default() public void Issue295_NullableDateTime_MySql_Default()
{ {
......
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
"Dapper.Contrib": { "Dapper.Contrib": {
"target": "project" "target": "project"
}, },
"xunit": "2.2.0-beta2-build3300", "xunit": "2.1.0",
"dotnet-test-xunit": "2.2.0-preview2-build1029" "xunit.assert": "2.1.0"
}, },
"buildOptions": { "buildOptions": {
"warningsAsErrors": true, "warningsAsErrors": true,
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"testRunner": "xunit", "testRunner": "xunit",
"frameworks": { "frameworks": {
//"net40": { //"net40": {
// "compilationOptions": { // "buildOptions": {
// "define": [ // "define": [
// "MYSQL", // "MYSQL",
// "ENTITY_FRAMEWORK", // "ENTITY_FRAMEWORK",
...@@ -71,73 +71,71 @@ ...@@ -71,73 +71,71 @@
// "Simple.Data.Core": "1.0.0-rc3", // "Simple.Data.Core": "1.0.0-rc3",
// "Simple.Data.SqlServer": "1.0.0-rc3", // "Simple.Data.SqlServer": "1.0.0-rc3",
// "Soma": "1.8.0.7", // "Soma": "1.8.0.7",
// "System.Data.SQLite": "1.0.99", // "System.Data.SQLite": "1.0.99"
// "xunit": "1.9.2"
// }
//},
//"net451": {
// "buildOptions": {
// "define": [
// "NET45",
// "ASYNC",
// "MYSQL",
// "ENTITY_FRAMEWORK",
// "LINQ2SQL",
// "FIREBIRD",
// "SQL_CE",
// "POSTGRESQL",
// "OLEDB",
// "MASSIVE",
// "ORMLITE",
// "SOMA",
// "SIMPLEDATA",
// "SQLITE",
// "XUNIT2"
// ]
// },
// "frameworkAssemblies": {
// "System.Configuration": "4.0.0.0",
// "System.Data": "4.0.0.0",
// "System.Data.Linq": "4.0.0.0",
// "System.Runtime": "4.0.10.0",
// "System.Xml": "4.0.0.0",
// "System.Xml.Linq": "4.0.0.0"
// },
// "dependencies": {
// "Dapper.EntityFramework": {
// "target": "project"
// },
// "EntityFramework": "6.1.3",
// "FirebirdSql.Data.FirebirdClient": "4.10.0",
// "Microsoft.SqlServer.Compact": "4.0.8876.1",
// "Microsoft.SqlServer.Types": "11.0.2",
// "MySql.Data": "6.9.8",
// "NHibernate": "4.0.4.4000",
// "Npgsql": "3.0.5",
// "ServiceStack.OrmLite": "4.0.48",
// "ServiceStack.OrmLite.SqlServer": "4.0.48",
// "Simple.Data.Ado": "2.0.0-alpha1",
// "Simple.Data.Core": "2.0.0-alpha1",
// "Simple.Data.SqlServer": "2.0.0-alpha1",
// "Soma": "1.8.0.7",
// "Susanoo.Core": "1.2.4",
// "Susanoo.SqlServer": "1.2.4",
// "System.Data.SQLite": "1.0.99",
// "xunit": "2.1.0",
// "dotnet-test-xunit": "1.0.0-rc3-*"
// } // }
//}, //},
"netcoreapp1.0": { "net451": {
"buildOptions": { "buildOptions": {
"define": [ "ASYNC", "COREFX", "XUNIT2", "SQLITE" ] "define": [
"NET45",
"ASYNC",
"MYSQL",
"ENTITY_FRAMEWORK",
"LINQ2SQL",
"FIREBIRD",
"SQL_CE",
"POSTGRESQL",
"OLEDB",
"MASSIVE",
"ORMLITE",
"SOMA",
"SIMPLEDATA",
"SQLITE",
"XUNIT2"
]
},
"frameworkAssemblies": {
"System.Configuration": "4.0.0.0",
"System.Data": "4.0.0.0",
"System.Data.Linq": "4.0.0.0",
"System.Runtime": "4.0.10.0",
"System.Xml": "4.0.0.0",
"System.Xml.Linq": "4.0.0.0"
}, },
"dependencies": { "dependencies": {
"Microsoft.NETCore.App": { "Dapper.EntityFramework": {
"version": "1.0.0", "target": "project"
"type": "platform"
}, },
"Microsoft.Data.Sqlite": "1.0.0" "EntityFramework": "6.1.3",
"FirebirdSql.Data.FirebirdClient": "4.10.0",
"Microsoft.SqlServer.Compact": "4.0.8876.1",
"Microsoft.SqlServer.Types": "11.0.2",
"MySql.Data": "6.9.8",
"NHibernate": "4.0.4.4000",
"Npgsql": "3.0.5",
"ServiceStack.OrmLite": "4.0.48",
"ServiceStack.OrmLite.SqlServer": "4.0.48",
"Simple.Data.Ado": "2.0.0-alpha1",
"Simple.Data.Core": "2.0.0-alpha1",
"Simple.Data.SqlServer": "2.0.0-alpha1",
"Soma": "1.8.0.7",
"Susanoo.Core": "1.2.4",
"Susanoo.SqlServer": "1.2.4",
"System.Data.SQLite": "1.0.99"
} }
} }
//,
//"netcoreapp1.0": {
// "buildOptions": {
// "define": [ "ASYNC", "COREFX", "XUNIT2", "SQLITE" ]
// },
// "dependencies": {
// "Microsoft.NETCore.App": {
// "version": "1.0.0",
// "type": "platform"
// },
// "Microsoft.Data.Sqlite": "1.0.0"
// }
//}
} }
} }
\ No newline at end of file
...@@ -2,12 +2,6 @@ ...@@ -2,12 +2,6 @@
<configuration> <configuration>
<packageSources> <packageSources>
<clear /> <clear />
<!--
<add key="CoreCLR" value="https://www.myget.org/F/dotnet-coreclr/api/v3/index.json" />
-->
<!--<add key="myget.org dotnet-core" value="https://dotnet.myget.org/F/dotnet-core/api/v3/index.json" /> -->
<!--<add key="aspnetcirelease" value="https://www.myget.org/F/aspnetcirelease/api/v3/index.json" /> -->
<add key="xunit" value="https://www.myget.org/F/xunit/api/v3/index.json" />
<add key="NuGet" value="https://api.nuget.org/v3/index.json" /> <add key="NuGet" value="https://api.nuget.org/v3/index.json" />
</packageSources> </packageSources>
</configuration> </configuration>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment