[Libreoffice-bugs] [Bug 116890] Firebird: empty columns gone with prepared statement

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Apr 10 04:43:58 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=116890

--- Comment #10 from Lionel Elie Mamane <lionel at mamane.lu> ---
(In reply to Julien Nabet from comment #8)

> 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>

Looks like getColumnName should return aliasname and not sqlname.


(In reply to Julien Nabet from comment #9)
> 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

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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180410/c415b25e/attachment-0001.html>


More information about the Libreoffice-bugs mailing list