Issue 30678 - cannot assign a tablename with XNamed
Summary: cannot assign a tablename with XNamed
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: *Testproduct
Classification: Test
Component: another (show other issues)
Version: 680m36
Hardware: All All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: ocke.janssen
QA Contact: issues@test
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-24 11:07 UTC by berend.cornelius
Modified: 2007-08-01 09:53 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description berend.cornelius 2004-06-24 11:07:05 UTC
The creation of a database table is not possible when you  assign the tablename
via XNamed  as the  following example shows:

Sub Main
    GlobalScope.BasicLibraries.LoadLibrary("Tools")
    oDBContext = createUnoService("com.sun.star.sdb.DatabaseContext")
    oDataSource =
oDBContext.getByName("Bibliography").getConnection("","").getTables
    oDataDescriptor = oDatasource.createDataDescriptor()
    oDataDescriptor.setName("MyTable")
    oColumns = oDataDescriptor.getColumns()
    oColumnDescriptor = oColumns.createDataDescriptor()
    oColumnDescriptor.setName("Mycolumn")
    oColumnDescriptor.Type = 4
    oColumns.appendByDescriptor(oColumnDescriptor)
    printdbgInfo oColumnDescriptor
    oDataSource.appendByDescriptor(oDataDescriptor)
End Sub

If I assign the Name of the column and the table with XPropertySet instead of
with "setName" from XNamed everything works fine.
As I found a Workaround for my problem there is no need for an urgent bugfix
from my point of view.
Comment 1 ocke.janssen 2004-06-28 07:32:36 UTC
Hi Berend,

the service com.sun.star.sdb.TableDescriptor doesn't support a XNamed. That the
implementation supports it, is a implementation detail and can not be used.

Best regards,

Ocke
Comment 2 ocke.janssen 2007-08-01 09:53:05 UTC
Closing.