Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add TypeProviderUser.TSQL.fsproj with a set of tests running on sql server #51

Open
wants to merge 2 commits into
base: master
from

Conversation

@smoothdeveloper
Copy link
Collaborator

@smoothdeveloper smoothdeveloper commented Nov 4, 2019

note that

[<Test>]
let ``test raw sql parameter`` () =
    let results =
        RawSQLQuery.Command(whereClause = [| sql "1="; arg 1 |]) |> runOnTestData
    for result in results do
        printfn "%A" result.Email

is failing due to this code being generated (apparently invalid TSQL):

use rzsql
declare @RZSQL_INLINE_0 int = 1
SELECT
[Users].[Created]
, [Users].[Email]
, [Users].[Id]
, [Users].[Name]
, [Users].[ProfilePictureSHA256]
, [Users].[RandomId]
FROM [Users]
WHERE ((1=@RZSQL_INLINE_0)<>0);
…erver

note that the

```fsharp
[<Test>]
let ``test raw sql parameter`` () =
    let results =
        RawSQLQuery.Command(whereClause = [| sql "1="; arg 1 |]) |> runOnTestData
    for result in results do
        printfn "%A" result.Email
```

is failing due to this code being generated (apparently invalid TSQL):

```sql
use rzsql
declare @RZSQL_INLINE_0 int = 1
SELECT
[Users].[Created]
, [Users].[Email]
, [Users].[Id]
, [Users].[Name]
, [Users].[ProfilePictureSHA256]
, [Users].[RandomId]
FROM [Users]
WHERE ((1=@RZSQL_INLINE_0)<>0);
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.