Hi,
Currently I'm working on implementing auto increment columns for the
Firebird sdbc driver.
The related patch is here:
https://gerrit.libreoffice.org/26643/
The idea is to use before insert triggers: http://www.firebirdfaq.org/faq29/
I name the trigger trg_<table_name>_<column_name>. The name can be
used to determine if a column is autoIncremented or not (see
ResultSetMetadata.cxx:isAutoIncrement() ).
To accomplish that the table name is extracted from the SQL statement
(see changes in Utils.cxx).
Meanwhile I made the Connection service implement the XTableAccess
interface, because I thought It will be needed, but it turned out that
it is unnecessary for autoincrement.
The patch causes a "unexpected error" in the current state. The
program crashes on a mutex: "MutexGuard aGuard(m_aMutex);" after
opening a table. I'm about to solve that.
Regards,
Tamás Bunth
Context
- Firebird - status update · Bunth Tamás
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.