summaryrefslogtreecommitdiff
path: root/connectivity
AgeCommit message (Collapse)Author
2018-05-11Fixed typosMatthias Seidel
Notes: prefer: a5783fe922b2419b5b662eb5f544a1f401341dbf
2018-05-05Move the PropertyValue helper methods to the tools class for now.Damjan Jovanovic
Some "@Override" and "final" cleanups as per NetBeans. Patch by: me Notes: ignore: aoo
2018-05-01Fix the easy cast-related errors reported by clang 6 in its defaultDon Lewis
C++14 mode. Notes: prefer: b0a284053e43d2ea32a748f7875f3f59c2b90d0c
2018-02-18Fixed typo, deleted whitespaceMatthias Seidel
Notes: prefer: af9709c3cba8c386a30553c43a620320b15c65f4
2017-11-19Fix an argument for SQLSetDescRec.Damjan Jovanovic
Remove a duplicated and commented T3SQLNativeSql definition. Patch by: me Notes: merged as: dbb42ebced375a366712394c1e8917e78abd7a5e
2017-11-17More ODBC64 fixes, for SQLGetStmtAttr() and SQLSetStmtAttr().Damjan Jovanovic
Patch by: me Notes: prefer: 19ef5bcc8d9dbcf965f79495e1afd86ac0f22c31
2017-11-1764-bit ODBC's SQLGetStmtAttr() returns 64 bit values in *ValuePtrDamjan Jovanovic
(https://docs.microsoft.com/en-us/sql/odbc/reference/odbc-64-bit-information). Patch by: me Notes: prefer: 19ef5bcc8d9dbcf965f79495e1afd86ac0f22c31
2017-11-09UNO hates null strings, and the C++ implementation of the SDBC-JDBC bridgeDamjan Jovanovic
was converting nulls to empty strings, so do the same. Fix parsing strings into UNO timestamps. Dispose of all undisposed statements when the JDBC connection is disposed. Patch by: me Notes: ignore: aoo
2017-11-08Port our SDBC-JDBC bridge driver to Java. Supported interfaces,Damjan Jovanovic
service names, implementation names, logging channels and messages, initialization arguments, and general behaviour is all preserved, so it should be completely transparent to client code. Allow PropertySetAdapter.getPropertyValue() to throw WrappedTargetException, and PropertySetAdapter.setPropertyValue() to throw PropertyVetoException, IllegalArgumentException, and WrappedTargetException, as these are sometimes used to change values in a database driver, which can fail. Port helper classes from main/comphelper for logging. Port AutoRetrievingBase. Add in-memory Column, ResultSet and metadata classes. Improve handling of Any in ORowSetValue. Move PostgreSQL's database metadata result set class to dbtools, and have it only override the method it needs. It's "information_schema" in PostgreSQL - "INFORMATION_SCHEMA" doesn't exist and gives an error. Add a new UNO service com.sun.star.sdb.ParameterSubstitution as was intended by main/connectivity/source/dbtools/dbtools.component that allow substituting parameters, so it can be used from Java. Keep the database drivers in a common install package. Patch by: me Notes: ignore: aoo
2017-10-27Split off a new dbtools.jar from the PostgreSQL driver, containingDamjan Jovanovic
the support code that can be reused by other drivers. Also put it in an org.apache.openoffice base package. Patch by: me Notes: ignore: aoo
2017-10-26Base expects the containers returned by X(Tables/Views/Groups/Users)SupplierDamjan Jovanovic
to be the same throughout the lifetime of the catalog!! Patch by: me Notes: ignore: aoo
2017-10-24Implement views in the PostgreSQL driver.Damjan Jovanovic
Patch by: me Notes: ignore: aoo
2017-10-24Fix a serious bug in naming PropertyIds variables of the PostgreSQLDamjan Jovanovic
database driver. Patch by: me Notes: ignore: aoo
2017-09-29We don't need to build the apache-commons module ifDon Lewis
--with-system-apache-commons=yes was passed to configure. Notes: ignore: obsolete
2017-09-20Revert r1808599; apparently we really do need Any.VOID instead of Java'sDamjan Jovanovic
null. Also fix one more place where this is the problem. (I wonder why. Seems like something that could be improved.) Fix "Refresh Tables", which was making all tables disappear. Apparently we needed to actually re-read our tables, and deal with the fact that the OCatalog is disposed after the return. Further development is ongoing. Also make other null strings into empty strings like UNO requires. Patch by: me Notes: ignore: aoo
2017-09-19When an unknown column is passed to ColumnContainer, which it will be whenDamjan Jovanovic
a new column is created, re-read it from the database. Strings in UNO can't be null. Ensure this is the case in Column and SdbcxColumnDescriptor. Patch by: me Notes: ignore: aoo
2017-09-19Add support for adding and deleting columns in Java's SDBCX tables,Damjan Jovanovic
currently used by the PostgreSQL driver. Patch by: me Notes: ignore: aoo
2017-09-19Implement XServiceInfo in all the Java SDBCX classes and standardize itDamjan Jovanovic
to a common form. Patch by: me Notes: ignore: aoo
2017-09-19More naming errors. There are no "Descriptions" in the SDBCX module,Damjan Jovanovic
there are only "Descriptors". Patch by: me Notes: merged as: 7d6a17e4b1451610011d23fe9286ba54c0c9bd15
2017-09-19Fix a typo in the XServiceInfo implementationDamjan Jovanovic
for main/connectivity/source/sdbcx/VIndexColumn.cxx. It's implementation/service names are com.sun.star.sdbcx.VIndexColumn and com.sun.star.sdbcx.IndexColumn, not com.sun.star.sdbcx.VIndex and com.sun.star.sdbcx.Index. Patch by: me Notes: merged as: d6e8e522a396f97f71a92d9b5d7e03947a4ad803
2017-09-18In buildName(), schema should be the empty string, instead of null.Damjan Jovanovic
Add some JavaDoc for it, and use getClass().getName() for getImplementationName(), which is most accurate for Java. Patch by: me Notes: ignore: aoo
2017-09-17There is no need to use Any.VOID when Java's null gets translated to itDamjan Jovanovic
automatically. Patch by: me Notes: ignore: aoo
2017-09-16Now that locking has been simplified, we can also delete the specialDamjan Jovanovic
factory create() methods on objects, and use constructors instead to simplify creation further. Patch by: me Notes: ignore: aoo
2017-09-16Locking and disposal cleanup.Damjan Jovanovic
Firstly, add isDisposed() and checkDisposed() methods to main/javaunohelper's com.sun.star.lib.uno.helper.ComponentBase, so that Java components can easily test and assert their disposal state. Comment these for a clearer understanding of how disposal works, namely that locking against disposal must cover all access of that component, so that the component can't be disposed half-way through being used. These methods are stricter than before, where only bDisposed was checked, which allowed the component to be used during disposal (as postDisposing() runs before bDisposed is set)!! Fix and simplify locking in the PostgreSQL driver, first by using the new methods in ComponentBase instead of tracking disposal separately with our own variable, then expand locking to entire methods so components can't be disposed during a method's execution, and finally eliminate disposal tracking in components that purely wrap another component and modify data in transit, as all disposal management is done by the wrapped component and we don't have to worry as long as our postDispose() has nothing special to do and just delegates to the wrapped component. Also eliminate internal locks in objects, and use "this" as the lock for the non-container objects like Table / Column / Key, while using the parent's "this" as the lock for contain objects like Tables, Columns, Keys etc., as this further simplifies locking, allow using method-level locking instead of "synchronized (this)", reduces the number of fields, simplifies locking in subclasses, and theoretically allows callers to hold the lock across multiple method invocations. Other minor fixes, some exception cleanup, use of AtomicInteger to generate numbers in PropertySetAdapter, etc. Patch by: me Notes: ignore: aoo
2017-09-10main/connectivity/util depends on main/connectivity/java/sdbc_postgresql.Damjan Jovanovic
The missing dependency was sometimes causing util to build first, failing due to missing sdbc_postgresql.xcu. Found by: Matthias Seidel Patch by: me Notes: ignore: aoo
2017-09-06Simplify the Java OContainer by requiring unique names, something C++Damjan Jovanovic
should probably also do as append and co check uniqueness explicitly. This does however complicate the client code, as we have to throw exceptions when we dedect duplication on the initial names we are initialized with. Patch by: me Notes: ignore: aoo
2017-08-28Access cleanups. Keep OContainer abstract methods protectedDamjan Jovanovic
instead of public. Also added some Javadoc for OContainer. Patch by: me Notes: ignore: aoo
2017-08-27More Javadoc for helper classes.Damjan Jovanovic
Patch by: me Notes: ignore: aoo
2017-08-27Rearrange the directory structure, to resemble the C++ one.Damjan Jovanovic
Patch by: me Notes: ignore: aoo
2017-08-27It's a descriptor.Damjan Jovanovic
Patch by: me Notes: ignore: aoo
2017-08-27Port some Javadoc to helper classes.Damjan Jovanovic
Don't use Java 8 only methods. Patch by: me Notes: ignore: aoo
2017-08-27Error handling cleanups.Damjan Jovanovic
Boxing into NameComponents cleanup. Port findDataSource() and use it in isDataSourcePropertyEnabled(). Logging cleanup. Patch by: me Notes: ignore: aoo
2017-08-20#i127350# - Table design: can't change length of Postgresql char typesDamjan Jovanovic
Add the initial version of a new SDBC driver, for the PostgreSQL database. Also its build changes: since it needs Apache Commons Lang version 3, get configure.ac to check for that, and get that to always build, just like our driver does. Patch by: me Notes: prefer: e28033fdfad9750ebe96885b9514adee629acf88
2017-08-09Write a main/ant.properties file from main/set_soenv, which can be used inDamjan Jovanovic
Ant projects to work out settings, locations, and paths to dependencies without getting them from a parent build tool (dmake/gbuild), which allows Ant projects to build by themselves, independently of AOO, and allows them to be cleanly opened in (at least) Eclipse. Also port main/connectivity's sdbc_hsqldb.jar to use these changes. Patch by: me Notes: ignore: obsolete
2017-07-21Remove the obsolete KDE address book SDBC driver, that only worked onDamjan Jovanovic
KDE 3.2 - 3.6, which are obsolete since 9 years ago. Patch by: me Notes: prefer: 4ffdb6750fa7d656d249a745f9c6d5ba98353b14
2016-12-04Fix some comment typos.Damjan Jovanovic
Patch by: me Notes: merged as: 1307212b87194f5c18eae0517f0dc4fcb0833e33
2016-08-07Merge branches/gbuild-reintegration to trunk.Damjan Jovanovic
Notes: ignore: obsolete
2016-06-08#i126917# windows build breaks in module ↵Damjan Jovanovic
connectivity/source/parse/sqliterator.cxx Fix a *nix build breaker from my 2 previous commits. Patch by: me Notes: prefer: 1967376c7b3072fefb6f74566cfa70fd03b9bd04
2016-06-08#i126917# windows build breaks in module ↵Damjan Jovanovic
connectivity/source/parse/sqliterator.cxx Fix compile errors in Patricia's patch in #1747439. Patch by: me Notes: prefer: 1967376c7b3072fefb6f74566cfa70fd03b9bd04
2016-06-08#i126917# windows build breaks in module ↵Damjan Jovanovic
connectivity/source/parse/sqliterator.cxx Commit Patricia's initial broken patch which starts in the right direction, and fix it in my next commit. Patch by: pats Review by: me Notes: prefer: 1967376c7b3072fefb6f74566cfa70fd03b9bd04
2016-05-22Spelling, spelling ...Pedro Giffuni
Why worry about some sprinkled German when we haven't yet learned English. Notes: prefer: b37a07f2da6c4fcc1a01cc3ea547c558c23edd71
2016-04-17Fix a string limit error in my previous patch.Damjan Jovanovic
Patch by: me Notes: ignore: obsolete
2016-04-17Make CSV line parsers consistent with CSV field parsers.Damjan Jovanovic
Our CSV field parsing algorithms treats fields starting with a quote (immediately at the beginning of the row, or after the field delimiter) as quoted. A quoted field ends at the corresponding closing quote, and any remaining text between the closing quote and the next field delimeter or end of line is appended to the text already extracted from the field, but not processed further. Any quotes in this extra text are taken verbatim - they do not quote anything. Our CSV line parsers were big hacks - they essentially read and concatenate lines until an even number of quote characters is found, and then feed this through the CSV field parsers. This patch rewrites the line parsers to work exactly how the field parsers work. Text such as: "another" ",something else is now correctly parsed by both Calc and Base as: [another "],[something else] instead of breaking all further parsing. Patch by: me Notes: merged as: 2049e55f507b00cf70f72706900e75d20ff3bb30
2016-04-03#i122754# Base does not properly parse CSV files as per RFC-4180 (whileDamjan Jovanovic
Calc does) The flat file driver, in file main/connectivity/source/drivers/flat/ETable.cxx, method OFlatTable::fillColumns(), which reads lines to initialize columns, assumes fields in the header and the first few lines never continue onto the next line(s). This causes truncation of columns when they do. Read all lines using the readLine() method instead of SvStream::ReadByteStringLine(), which takes overflow onto next lines into account. Also implement a new version of readLine() which allows reading into an arbitrary string, as opposed to m_aCurrentLine only. Patch by: me Notes: prefer: 48b29cd42ba10fbb3f7be697fd79a0984b4daa1b
2016-02-07The main/connectivity module doesn't depend on nss any more.Damjan Jovanovic
This was probably a remnant from the days when the Mozilla address book was a database driver we supported. Patch by: me Notes: ignore: obsolete
2015-11-25i125369 - Illumos port: avoid some redefinitionsPedro Giffuni
In the case of the Illumos/Solaris-i386 port there are some conflicts caused by internal C definitions. Try to work them out with some help of Illumos' opengrok. On the case of the odbcbase driver rename the affected typedef to avoid conflicts. Notes: prefer: 81c5a10a8db5530eb028c85887f0cc73d16c04d3
2015-08-07FreeBSD: Work around clang-3.4 issues.Pedro Giffuni
It is well known that clang-3.4 doesn't build all AOO correctly. Workaround the issue for FreeBSD 10 which ships with clang-3.4. The workaround may still be needed for other clang based platforms. Submitted by: Don Lewis Notes: ignore: obsolete
2014-04-29Many spelling fixes: directories a* - g*.Pedro Giffuni
Attempt to clean up most but certainly not all the spelling mistakes that found home in OpenOffice through decades. We could probably blame the international nature of the code but it is somewhat shameful that this wasn't done before. Notes: merged as: 0a1d822372927e3252f40b7a16590716ccc2eedd
2013-11-28#i123068# remove implicit conversions from rtl strings to their elementsHerbert Dürr
Notes: prefer: 112bdf84d684590e042725c7173e059b4afa2f83
2013-11-18#i122362# remove stlport4-build supportHerbert Dürr
but keep the --without-stlport configure option for now it is the new default anyway Notes: ignore: obsolete