We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d990cd commit 040b0f6Copy full SHA for 040b0f6
src/Rezoom.SQL.Compiler/TSQL.Statement.fs
@@ -57,7 +57,9 @@ type private TSQLStatement(indexer : IParameterIndexer) as this =
57
yield ws
58
yield text "TOP"
59
60
+ yield text "("
61
yield! this.FirstClassValue(top)
62
+ yield text ")"
63
yield linebreak
64
yield! this.ResultColumns(select.Columns) |> indent
65
match select.From with
src/Rezoom.SQL.Test/TestTSQL.fs
@@ -109,7 +109,7 @@ create table XUsers
109
let ``select top`` () =
110
translate
111
"select 1 as x from Users limit 5"
112
- "SELECT TOP 5 1 AS [x] FROM [Users];"
+ "SELECT TOP (5) 1 AS [x] FROM [Users];"
113
114
[<Test>]
115
let ``select offset`` () =
0 commit comments