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

Casecommons / pg_search / 208
82%

Build:
DEFAULT BRANCH: master
Ran 19 Nov 2013 06:30PM UTC
Jobs 4
Files 26
Run time –
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

pending completion
208

Pull #141

travis-ci

stevenharman
Normalize trigram query and document as Arel nodes

We need to normalize the Trigram's query and document, making sure they
are Arel nodes, not strings so that the
`Arel::Nodes::InfixOperation.new` correctly puts them together with the
'%' operator. Without this change, they are incorrectly escaped as:

```sql
(
  ('unaccent(coalesce("pg_search_documents"."content"::text, ''''))')
  %
  'unaccent(Cambonator Doppelbock)'
)
```

The correct escaping is:

```sql
(
  (unaccent(coalesce("pg_search_documents"."content"::text, '')))
  %
  unaccent('Cambonator Doppelbock')
)

```
Pull Request #141: Normalize trigram query and document as Arel nodes

14 of 14 new or added lines in 2 files covered. (100.0%)

1559 of 1571 relevant lines covered (99.24%)

51.93 hits per line

Jobs
ID Job ID Ran Files Coverage
7 208.7 (2.0.0, ACTIVE_RECORD_BRANCH="4-0-stable") 19 Nov 2013 06:30PM UTC 0
99.05
Travis Job 208.7
8 208.8 (2.0.0, ACTIVE_RECORD_VERSION="~> 4.0.0") 19 Nov 2013 06:32PM UTC 0
99.05
Travis Job 208.8
9 208.9 (2.0.0, ACTIVE_RECORD_VERSION="~> 3.2.0") 19 Nov 2013 06:30PM UTC 0
99.05
Travis Job 208.9
10 208.10 (2.0.0, ACTIVE_RECORD_VERSION="~> 3.1.0") 19 Nov 2013 06:32PM UTC 0
99.17
Travis Job 208.10
Source Files on build 208
  • List 0
  • Changed 36
  • Source Changed 8
  • Coverage Changed 36
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Travis Build #208
  • Pull Request #141
  • PR Base - master (#207)
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