-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improvements to java.sql.DatabaseMetaData #786
Comments
if you can provide small sample of codes, unit test like, with a table creation and a query to show what's missing, we can have a look at it |
Hi gotson, Unfortunately, I don't have any test case, but I know roughly what Base is asking for. For table creation, it seems that no DataType returned by DatabaseMetaData.getTypeInfo() has the AUTO_INCREMENT column set to true. Normally it seems that DataType: INTEGER, BIGINT, TINYINT, SMALLINT, NUMERIC, DECIMAL should be autoincrement and have AUTO_INCREMENT column set to true. For a complete management of the views this seems to me more complicated, since Base uses the INFORMATION_SCHEMA.VIEWS table in order to know the SQL command of each view. |
What's Base? |
LibreOffice / OpenOffice Base |
I just checked
I would say that's incorrect, since
I just checked, and |
Great, if it can be done, it will allow Base to handle autoincrements when creating a table with an INTEGER column.
Although this view is not part of any standard at first glance, it can be found in any JDBC driver:
List of databases providing INFORMATION_SCHEMA It allows Base in addition to creation, to modify a view (this is possible in graphic mode or in text mode). Thanks. |
if it's not in SQLite, it cannot be in the JDBC driver. |
Is it worth claiming it from the SQLite team? |
You can try
If Base expects the other one, how would that solve your issue? |
Specifically Base needs to know for each view:
After some tests it seems that the table Does SQLite support the There remains a problem with the reading of the primary keys and indexes, I need to do more investigation in order to be able to say where it comes from. |
that is a generic SQLite question, better suited to check on the official SQLite website or StackOverflow
|
@prrvchr the latest snapshot has the enhancement for |
@gotson Thanks for the improvement, I'll test and let you know. |
@gotson I'm sorry but I failed to get the jar archive from the source files. |
It's published on maven snapshots |
I've added more changes so that getTables would return |
Hi, gotson Thank you for these new changes. I still have one last problem to solve which prevents the edition of the contents of the tables. |
@gotson Two extensions are available: I wanted to thank you for the improvements you made that made this possible... |
Hi all,
I'm trying to integrate the SQLite JDBC driver into my jdbcDriverOOo extension which normally allows any JDBC driver to work in LibreOffice / OpenOffice Base.
From the first tests, it seems that java.sql.DatabaseMetaData does not return certain values necessary for the correct management of the schema and tables in Base.
Are you prepared to make the necessary changes to DatabaseMetaData if I find the methods need fixing?
Thanks .
The text was updated successfully, but these errors were encountered: