[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 15:00:21 UTC 2018
https://bugs.documentfoundation.org/show_bug.cgi?id=116890
--- Comment #19 from Lionel Elie Mamane <lionel at mamane.lu> ---
Rah... Second test case, this time correct, is:
Sub Main
Dim DBDocUI as Object
on error resume next
DBDocUI = ThisDatabaseDocument.currentController
if not DBDocUI.isConnected then
DBDocUI.connect
end if
on error goto 0
dim s as Object
's = DBDocUI.ActiveConnection.createStatement()
s = DBDocUI.ActiveConnection.prepareStatement("SELECT ""ID"" AS
""TID1"", ""ID"" AS ""TID2"" FROM ""MitgliederVerband""")
'dim rs as Object
'rs = rs.executeQuery("SELECT ""ID"" AS ""TID1"", ""ID"" AS ""TID2""
FROM ""MitgliederVerband""")
rs = s.executeQuery()
dim i as integer
for i=1 to rs.metadata.ColumnCount
MsgBox i & ": " & rs.metadata.getColumnName(i) & " " &
rs.metadata.getColumnLabel(i)
next i
XRay rs.columns.ElementNames
'XRay s.columns.getByName("ID")
'XRay s.columns.getByName("ID1")
End Sub
--
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/91cfadda/attachment.html>
More information about the Libreoffice-bugs
mailing list