From e0f32ac176f0afac1b22d38f2d07babf3cb46ab2 Mon Sep 17 00:00:00 2001 From: Dmitry Morozov Date: Tue, 11 Sep 2018 09:58:24 -0700 Subject: [PATCH] easy repro for TP SDK 244 --- FSharp.Data.Npgsql.sln | 6 ++++++ src/FSharp.TypeProviders.SDK | 2 +- src/Runtime/Runtime.fsproj | 3 +-- tests/TpSdkIssue244/Program.fs | 13 ++++++++++++ tests/TpSdkIssue244/TpSdkIssue244.fsproj | 27 ++++++++++++++++++++++++ 5 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 tests/TpSdkIssue244/Program.fs create mode 100644 tests/TpSdkIssue244/TpSdkIssue244.fsproj diff --git a/FSharp.Data.Npgsql.sln b/FSharp.Data.Npgsql.sln index 95890c2..fa47c63 100644 --- a/FSharp.Data.Npgsql.sln +++ b/FSharp.Data.Npgsql.sln @@ -7,6 +7,8 @@ Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "Runtime", "src\Runtime\Runt EndProject Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "DesignTime", "src\DesignTime\DesignTime.fsproj", "{3C3E9A10-898C-4704-ACDC-30A0B96B4B23}" EndProject +Project("{6EC3EE1D-3C4E-46DD-8F32-0CC8E7565705}") = "TpSdkIssue244", "tests\TpSdkIssue244\TpSdkIssue244.fsproj", "{08CDC993-87CC-4B9A-A776-36808D614727}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {3C3E9A10-898C-4704-ACDC-30A0B96B4B23}.Debug|Any CPU.Build.0 = Debug|Any CPU {3C3E9A10-898C-4704-ACDC-30A0B96B4B23}.Release|Any CPU.ActiveCfg = Release|Any CPU {3C3E9A10-898C-4704-ACDC-30A0B96B4B23}.Release|Any CPU.Build.0 = Release|Any CPU + {08CDC993-87CC-4B9A-A776-36808D614727}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {08CDC993-87CC-4B9A-A776-36808D614727}.Debug|Any CPU.Build.0 = Debug|Any CPU + {08CDC993-87CC-4B9A-A776-36808D614727}.Release|Any CPU.ActiveCfg = Release|Any CPU + {08CDC993-87CC-4B9A-A776-36808D614727}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/src/FSharp.TypeProviders.SDK b/src/FSharp.TypeProviders.SDK index d50b755..7c3cb99 160000 --- a/src/FSharp.TypeProviders.SDK +++ b/src/FSharp.TypeProviders.SDK @@ -1 +1 @@ -Subproject commit d50b7556cc57c403cd53bd1116027450d60c72db +Subproject commit 7c3cb997860f4b9848a67353249ae33d149cd2fa diff --git a/src/Runtime/Runtime.fsproj b/src/Runtime/Runtime.fsproj index faf1338..780439a 100644 --- a/src/Runtime/Runtime.fsproj +++ b/src/Runtime/Runtime.fsproj @@ -1,8 +1,7 @@  - net461 - netstandard2.0;net461 + netstandard2.0;net461 FSharp.Data.Npgsql $(TargetsForTfmSpecificBuildOutput);IncludeAllDlls FSharp.Data.Npgsql.nuspec diff --git a/tests/TpSdkIssue244/Program.fs b/tests/TpSdkIssue244/Program.fs new file mode 100644 index 0000000..5a50ea4 --- /dev/null +++ b/tests/TpSdkIssue244/Program.fs @@ -0,0 +1,13 @@ +// Learn more about F# at http://fsharp.org + +open FSharp.Data.Npgsql + +[] +let connection = "Host=localhost;Username=postgres;Password=postgres" + +[] +let main _ = + use cmd = new NpgsqlCommand<"SELECT now() as now, @echo::int as value", connection>(connection) + let x = cmd.Execute(42) |> Seq.exactlyOne + printfn "Today: %A, echo value: %A" x.now x.value + 0 diff --git a/tests/TpSdkIssue244/TpSdkIssue244.fsproj b/tests/TpSdkIssue244/TpSdkIssue244.fsproj new file mode 100644 index 0000000..8ef9228 --- /dev/null +++ b/tests/TpSdkIssue244/TpSdkIssue244.fsproj @@ -0,0 +1,27 @@ + + + + Exe + netcoreapp2.1 + + + + + + + + + + + + + + + + + +