<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Firebird: empty columns gone with prepared statement"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116890#c10">Comment # 10</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Firebird: empty columns gone with prepared statement"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=116890">bug 116890</a>
              from <span class="vcard"><a class="email" href="mailto:lionel@mamane.lu" title="Lionel Elie Mamane <lionel@mamane.lu>"> <span class="fn">Lionel Elie Mamane</span></a>
</span></b>
        <pre>(In reply to Julien Nabet from <a href="show_bug.cgi?id=116890#c8">comment #8</a>)

<span class="quote">> I also noticed the difference between sqlname and aliasname for CONSTANT,
> eg: 
> (gdb) p m_pSqlda->sqlvar[column-1].sqlname
> $34 = "CONSTANT", '\000' <repeats 23 times>
> (gdb) p m_pSqlda->sqlvar[column-1].aliasname
> $35 = "Strasse", '\000' <repeats 24 times></span >

Looks like getColumnName should return aliasname and not sqlname.


(In reply to Julien Nabet from <a href="show_bug.cgi?id=116890#c9">comment #9</a>)
<span class="quote">> Forgot to tell I started from these logs repeated several times:
> warn:legacy.osl:14544:14544:dbaccess/source/core/api/column.cxx:204:
> OColumns::append: Column already exists
> warn:legacy.osl:14544:14544:connectivity/source/sdbcx/VCollection.cxx:504:
> Element already exists</span >

Looks like different columns are added to the collection with the same name,
and thus are not added to the collection (only the first to have a particular
name will be added?). I think if you but a breakpoint at the place of these
warnings, you will find the problem by going up the stack.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>