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

--- Comment #8 from [email protected] ---
(In reply to Julien Nabet from comment #6)
> https://opengrok.libreoffice.org/
> search?project=core&full=&defs=OSaveAsDlg&refs=&path=&hist=&type=&xrd=&nn=1&s
> i=defs&si=defs may help.

If it is the dialog that saves the table name, and I believe it is, the default
table name seems to be loaded when the dialog is initialized (const OUString&
rDefault) with a unique full table name (catalog.schema.tablename) and nothing
seems to be done after changing the catalog name or the schema name.

Now I could be wrong, I don't know much about C.


(In reply to Robert Großkopf from comment #7)
> have tested with PostgreSQL direct driver, PostgreSQL JDBC connection,
> MariaDB JDBC connection. Could create as many tables as I want in the
> schema, which isn't selected as default schema. All tables will directly
> appear in the schema.

If I use MariaDB JDBC (mariadb-java-client-3.1.4.jar with LibreOffice JDBC
native driver) and I let Base choose the name of the table (table1 by default),
it only works the first time (when table1 does not exist) but fails the second
time (see the screenshot of the error)

The only driver for which I have no problem is the SQLite JDBC driver
(sqlite-jdbc-3.42.0.0.jar) under jdbcDriverOOo (the automatic numbering of
table names works well) and this is due to the fact that SQLite does not
support either schema or catalog and therefore the uniqueness of the name of
the tables is therefore ensured.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to