Skip to content

Commit 2a3fb28

Browse files
committed
misc fixes
1 parent 744d179 commit 2a3fb28

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/model_row.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,6 @@ function length(group_of_rows::GroupRow)
5757
end
5858

5959
function model_row_call(::typeof(QueryOperators.groupby), ungrouped, group_function, group_function_expression, map_selector, map_function_expression)
60-
model = model_row(ungrouped)
60+
model = map_selector(model_row(ungrouped))
6161
GroupRow(group_function(model), model)
6262
end

src/show.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ julia> using QuerySQLite
175175
julia> database = Database(joinpath(pathof(QuerySQLite) |> dirname |> dirname, "test", "Chinook_Sqlite.sqlite"));
176176
177177
julia> get_sql(database.Track)
178-
FROM (Track)
178+
SELECT * FROM (Track)
179179
```
180180
"""
181181
function get_sql(it)
182-
translate(it.code)
182+
finalize(translate(it.code))
183183
end
184184
export get_sql

src/translate.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ end
216216

217217
@translate_default ::typeof(repr) :QUOTE
218218

219-
function translate_call(::typeof(rand), ::Type{Int}; _primary = true, digits = 0)
219+
function translate_call(::typeof(rand), ::Type{Int}; _primary = true)
220220
SQLExpression(:RANDOM)
221221
end
222222

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ end
104104
@testset "Systematic tests" begin
105105

106106
filename = joinpath(@__DIR__, "tmp", "test.sqlite")
107-
isfifo(filename) && rm(filename)
107+
isfile(filename) && rm(filename)
108108
cp(joinpath(@__DIR__, "test.sqlite"), filename)
109109

110110
connection = DB(filename)

0 commit comments

Comments
 (0)