<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:userxyz@mailbox.org" title="userxyz@mailbox.org">userxyz@mailbox.org</a>
</span> changed
<a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - property "TypeName" of a com.sun.star.sdb.ODataColumn is not available"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=114464">bug 114464</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEEDINFO
</td>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<td style="text-align:right;">Ever confirmed</td>
<td>1
</td>
<td>
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - property "TypeName" of a com.sun.star.sdb.ODataColumn is not available"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=114464#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - property "TypeName" of a com.sun.star.sdb.ODataColumn is not available"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=114464">bug 114464</a>
from <span class="vcard"><a class="email" href="mailto:userxyz@mailbox.org" title="userxyz@mailbox.org">userxyz@mailbox.org</a>
</span></b>
<pre>REM You need a resultset oResult from a database query to reproduce this,
sorry...
Function Read_oResult(oResult AS Object)
'reads a ResultSet from a Database query and gives an array back (only the
first row of a resultset)
DIM var()
DIM count_columns AS Integer
DIM i AS Integer
DIM sDataTyp_Row AS String
DIM sName_Column AS String
DIM n as Integer
DIM count_rows as INTEGER
'retrieve the number of rows
oResult.last
count_rows = oResult.getRow
oResult.beforefirst
if count_rows = 0 then
Read_oResult = null
else
count_columns = oResult.columns.count
for i = 0 to count_columns-1
'see bugreport
ttps://bugs.documentfoundation.org/show_bug.cgi?id=114464
' inserted the next line with no use but only
if inserted, oResult.columns.ElementNames(i)).TypeName works
' I need the datatype later to read the data
with oResult.getInt...etc.
' to reproduce - just comment the next line
out
oResult.columns.getByName(oResult.columns.ElementNames(i)).Type
sDataTyp_Row =
oResult.columns.getByName(oResult.columns.ElementNames(i)).TypeName
print sDataTyp_Row
NEXT i
end if
' .....do more to read the resultset in var()
Read_oResult = var()
End Function</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>