Skip to content

Commit

Permalink
fix assembler count (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
c910335 authored and drujensen committed Oct 23, 2018
1 parent 0a8a255 commit f228e47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/granite/query/spec_helper.cr
Expand Up @@ -33,5 +33,5 @@ end
def ignore_whitespace(expected : String)
whitespace = "\\s+"
compiled = expected.split(/\s/).map { |s| Regex.escape s }.join(whitespace)
Regex.new compiled, Regex::Options::IGNORE_CASE ^ Regex::Options::MULTILINE
Regex.new "^\\s*#{compiled}\\s*$", Regex::Options::IGNORE_CASE ^ Regex::Options::MULTILINE
end
2 changes: 1 addition & 1 deletion src/granite/query/assemblers/base.cr
Expand Up @@ -114,7 +114,7 @@ module Granite::Query::Assembler
s << "FROM #{table_name}"
s << where
s << group_by
s << order
s << order(use_default_order: false)
end

Executor::Value(Model, Int64).new sql, numbered_parameters, default: 0_i64
Expand Down

0 comments on commit f228e47

Please sign in to comment.