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

Summary: Certain heredoc not parsed correctly
Product: ruby Reporter: Erno Mononen <emononen>
Component: EditingAssignee: issues@ruby <issues>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:

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
    SQL

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 http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/962e04d04aa5
User: Erno Mononen <emononen@netbeans.org>
Log: #182494 related, skipping known test failures