This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 182494 - Certain heredoc not parsed correctly
Summary: Certain heredoc not parsed correctly
Status: NEW
Alias: None
Product: ruby
Classification: Unclassified
Component: Editing (show other bugs)
Version: 6.x
Hardware: PC Linux
: P3 normal (vote)
Assignee: issues@ruby
Depends on:
Reported: 2010-03-22 14:18 UTC by Erno Mononen
Modified: 2011-01-28 20:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2010-03-22 14:18:27 UTC
The parser has issues with heredocs such as:

    result = query(<<-SQL, name)
      SELECT i.relname, d.indisunique, a.attname
        FROM pg_class t, pg_class i, pg_index d, pg_attribute a
       WHERE i.relkind = 'i'
         AND d.indexrelid = i.oid
         AND d.indisprimary = 'f'
         AND t.oid = d.indrelid
         AND t.relname = '#{table_name}'
         AND a.attrelid = t.oid
         AND ( d.indkey[0]=a.attnum OR d.indkey[1]=a.attnum
            OR d.indkey[2]=a.attnum OR d.indkey[3]=a.attnum
            OR d.indkey[4]=a.attnum OR d.indkey[5]=a.attnum
            OR d.indkey[6]=a.attnum OR d.indkey[7]=a.attnum
            OR d.indkey[8]=a.attnum OR d.indkey[9]=a.attnum )
      ORDER BY i.relname

This results in a couple of test failures, not sure what the user impact is. (The snippet is from ruby/test/unit/data/testfiles/postgresql_adapter.rb).
Comment 1 Quality Engineering 2010-03-24 05:18:22 UTC
Integrated into 'main-golden', will be available in build *201003240200* on (upload may still be in progress)
User: Erno Mononen <>
Log: #182494 related, skipping known test failures