• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rzane / baby_squeel
99%
master: 86%

Build:
Build:
LAST BUILD BRANCH: rails_6_support
DEFAULT BRANCH: master
Repo Added 14 Mar 2016 12:29AM UTC
Files 231
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH handle-null-relation-for-attribute-in
branch: handle-null-relation-for-attribute-in
CHANGE BRANCH
x
Reset
  • handle-null-relation-for-attribute-in
  • 52-support
  • activerecord-5
  • ar-521
  • arel-star
  • avoid-nasty-aliases
  • better-coverage
  • better-error-messages
  • binary-as
  • bind-parameters
  • calculations
  • compare-parent-reflections
  • deprecate-41
  • extract-join
  • fix-61
  • fix-dumb-error
  • fix-pluck-deprecation
  • function-math
  • grouping
  • helpers
  • issue-37
  • join-aliasing
  • join-wip
  • joining-bug
  • keypath-methods
  • master
  • master-with-updates
  • math-bugfix
  • more-selective-decoration
  • not-in
  • outer-join-fixes
  • plucking
  • polyamorous
  • polymorphic-joins
  • polymorphic-joins-2
  • port-more-compat
  • query-assoc-eq-neq
  • resolver
  • select-exists
  • sifting
  • simpler-where
  • snapshot-testing
  • squeel-compat
  • table-alias-on
  • tables-without-models
  • use-aliases-on-where
  • v0.1.0
  • v0.2.0
  • v0.2.1
  • v0.2.2
  • v0.3.0
  • v0.3.1
  • v1.0.0
  • v1.0.1
  • v1.0.2
  • v1.0.3
  • v1.1.0
  • v1.1.1
  • v1.1.2
  • v1.1.3
  • v1.1.4
  • v1.1.5
  • v1.2.0
  • v1.2.1
  • v1.3.0
  • v1.3.1
  • where-should-accept-nil
  • workaround-alias-tracker

pending completion
340

push

travis-ci

Ray Zane
NullRelation#to_sql returns an empty string, which results in the
following invalid SQL when using Attribute#in:

   WHERE "id" IN ()

ActiveRecord handles scenarios like this by appending 1=0 to the
subquery to ensure that no results are returned. So, if we just convert
the NullRelation back to a relation, we're all good.

564 of 572 relevant lines covered (98.6%)

203.15 hits per line

Relevant lines Covered
Build:
Build:
572 RELEVANT LINES 564 COVERED LINES
203.15 HITS PER LINE
Source Files on handle-null-relation-for-attribute-in
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
340 handle-null-relation-for-attribute-in NullRelation#to_sql returns an empty string, which results in the following invalid SQL when using Attribute#in: WHERE "id" IN () ActiveRecord handles scenarios like this by appending 1=0 to the subquery to ensure that no results are returned... push 10 Apr 2017 05:11PM UTC Ray Zane travis-ci pending completion  
See All Builds (538)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc