summaryrefslogtreecommitdiff
path: root/connectivity/source/drivers/firebird/Connection.cxx
AgeCommit message (Collapse)Author
2015-05-08Fix Boolean value operationsStephan Bergmann
(css.sdbc.ColumnValue.NULLABLE happens to be 1, so the odd comparison is harmless and redundant.) Change-Id: I6b64cc083e72198c71e4e38ec4347f79af924621
2014-12-18connectivity: Use appropriate OUString functions on string constantsStephan Bergmann
Change-Id: I9ca72364cd57fd2da0c6f5f704a3fe494c0a1df5
2014-11-12Fix common typos. No automatic tools. Handmade…Andrea Gelmini
Change-Id: I1ab4e23b0539f8d39974787f226e57a21f96e959 Reviewed-on: https://gerrit.libreoffice.org/12164 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-21connectivity: firebird: fix temp directory leakMichael Stahl
Dispose the dbaccess document, and recursively delete the temp directory in Connection::dispose(). Change-Id: Id283289e44b8ca09b88da19920da7f27b551aa7e
2014-09-25Add missing #include.Jan Holesovsky
Change-Id: I0f617f2b4ef7bcb2b07295223acae5519280a41e
2014-09-25ensure that osl_atomic_decrement gets called after osl_atomic_incrementCaolán McNamara
Change-Id: If110d27950a4efd1a96dc5f2702f4dfbfe58bcbe
2014-09-25coverity#1210000 Uncaught exceptionCaolán McNamara
and coverity#1210001 Uncaught exception Change-Id: Ia6ef659ba6e62d56813a87c3fcf0fa4a5d26d9f9
2014-07-21coverity#706376 Uncaught exceptionCaolán McNamara
Change-Id: Ic18823fd60826c144058df32c27ab25d58664e30
2014-07-01coverity#706382 Uncaught exceptionCaolán McNamara
and coverity#706377 coverity#706378 coverity#706382 Change-Id: I17f672e31867b1be77c16a8a6e121a8f67df7c90
2014-06-28firebird: release driver on dispose rather than destroy.Norbert Thiebaud
Change-Id: I5ffeaf818c1eb4985bdd150830f089f03fe42ceb
2014-06-28firebird driver, abandon ref to about to be disposed embedded storage.Norbert Thiebaud
Change-Id: I6bfce155151b79cd0a1707744e79298b45d8752b
2014-05-23coverity#1103737 Uncaught exceptionCaolán McNamara
Change-Id: I53aab00dfad0310a7846fdf7185c50036329343c
2014-05-13fdo#63690 - replace RTL_CONTEXT_ macros with SAL_INFONoel Grandin
this is a continuation of the above bug, removing SAL_INFO's that only mark function entry. Change-Id: Idb0f72481415594e3f8b7a11ad6e4b8835f6fca0 Reviewed-on: https://gerrit.libreoffice.org/9343 Tested-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-16connectivity: sal_Bool->boolNoel Grandin
Change-Id: I96371121ce6697f153f4e973e65831ea2265eb56
2014-02-26cppuhelper: retrofit std::exception into overriding exception specsStephan Bergmann
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-23Remove unneccessary commentsAlexander Wilms
Change-Id: I939160ae72fecbe3d4a60ce755730bd4c38497fb Reviewed-on: https://gerrit.libreoffice.org/8182 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-01-28bool improvementsStephan Bergmann
Change-Id: If35c939adede6a912dee14714a7ceeab84ac977e
2013-12-18STROAGE->STORAGECaolán McNamara
Change-Id: I2c83c87d15f5fdc766a8464a8389e22120eabc52
2013-11-14fdo#70144 Mark database document as modified when data inserted in firebird.Andrzej J.R. Hunt
This only applies to embedded databases where any changes to the database only affect the temporary extracted db which still has to be stored into the .odb. This only fixes the status for modification/insertion/deletion of data in existing tables. Insertion of new tables still does not result in the modified state being set. Change-Id: I553f67127672f2cf49b98ddcdf7d25f22bef5074 Reviewed-on: https://gerrit.libreoffice.org/6621 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-13Pass Document directly to Driver for embedded databases.Andrzej J.R. Hunt
Change-Id: I346a8ef07c5d695b3aa879f5c25cc4af97e25b99 Reviewed-on: https://gerrit.libreoffice.org/6627 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2013-11-07WaE: unused variable 'sSqlStatement' [loplugin]Tor Lillqvist
Change-Id: I30fe491d8257affb994083ae312d9663ef7a28e9
2013-11-07fdo#65108 inter-module includes <>Lionel Elie Mamane
Change-Id: Ie7e08f25741772f657a71369483917d989a05537
2013-11-07firebird-sdbc: replace named parameter by unnamedLionel Elie Mamane
Change-Id: Iad6023d9d16b10001bb8493dea483e655fc8519c
2013-09-20Implement creation/loading of external firebird .fdbs.Andrzej J.R. Hunt
Change-Id: I61186189d791e54fb096505abd2fa7ac248035e8
2013-09-11Sanitize and quote index identifiers for rebuildIndexes. (firebird-sdbc)Andrzej J.R. Hunt
Otherwise firebird won't recognise mixed case index names. Change-Id: Ib581a592d03b12ad0944375d9eec8da9d680487e
2013-09-09Cleanup Connection and rename from OConnection. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I06cfdc29d7613638d3cea080e7b39c67c74d4de0
2013-09-06Use throwFunctionNotSupportedException as appropriate. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ia2eb42ea2bf0f70a6d1fef29438a43a7a2f69388
2013-09-06Keep a TempFile instead of using TempFile::CreateTempName.Andrzej J.R. Hunt
This ensures that the enclosing directory is kept while we work with it. Conflicts: connectivity/source/drivers/firebird/Connection.cxx Change-Id: I5c095d481414e345cf05efc3d40d314f8f40ed12 Reviewed-on: https://gerrit.libreoffice.org/5814 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
2013-09-06Use the user specific tmp directory for firebird.Andrzej J.R. Hunt
osl::FileBase::getTempDirURL uses the general tmp directory which can be the system wide directory (i.e. /tmp). This can lead to conflicts e.g. if we have multiple instances each trying to create /tmp/firebird. Instead we use ::utl::TempFile which uses a user-specific directory (as a subdirectory of what osl::FileBase::getTempDirURL provides), in which we can have the FIREBIRD_TMP and FIREBIRD_LOCK directories. Change-Id: Ic868f12b0a56900eac75f2418986193dd5fe0f10 Reviewed-on: https://gerrit.libreoffice.org/5797 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2013-09-06CID#1079053 Uncaught Exception.Andrzej J.R. Hunt
In this case we can just propagate the DeploymentException (is a RuntimeException). Change-Id: Ic807ec039af3856f90d4e798e1304a72421b4db6
2013-09-06CID#1079054 Uncaught exception.Andrzej J.R. Hunt
In this case we should just propagate the DisposedException to the caller. Change-Id: I3c2699ad6c2144007d98447b133cdbb13f5d50d9
2013-09-06Add error checking in rebuildIndexes. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: If59c9fe7d7253347717aeb5b1aadf212b7d536a6
2013-09-05WaE: unused variableCaolán McNamara
Change-Id: Id360f83149ba281c806e4c71ba283603f4480954
2013-09-06Actually rebuild indexes in rebuildIndexes. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I76ac3b261bce830879f17e82ddd22a9f4d957f11
2013-09-06Retrieve all char indexes for rebuildIndexes. (firebird-sdbc)Andrzej J.R. Hunt
This provides the SQL SELECT statement necessary to retrieve all the indexes needing rebuilding. Change-Id: I07661277682f83dc3f2d33a398abd83593c9928d
2013-08-12Create Catalog to deal with sdbcx details. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I521db652157e6b6da79e70f3731b6eddfc2bab1d
2013-08-12Implement getTables(). (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I6b13fe51547ac5a51a03bf9b55f8e684275652cb
2013-08-11Don't change calling convention.Andrzej J.R. Hunt
Change-Id: I7fb6aa3337983f6e9dd7adb6d92a47c258d0bebe
2013-08-11First chunk of skeleton sdbcx.Container. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ic92c4d13b0ed9aba622d3a2459f9677d8cce3245
2013-08-07Add error checking to commit(). (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I0717fad287f95d510d044055edc11737fde0c505
2013-08-07Fix transaction creation when autocommit disabled. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I190a90e9821961c4e972ec26ac282b05fd375d4b
2013-08-02Only write db to file if we are embedded. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: If6126a8005d666c0c1355efc2a887519da37c891
2013-08-02Clear Statements as appropriate. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ied90fe623dff284179c88ae77392d641ba0b004b
2013-07-31Remove unnecessary F- prefix for firebird-sdbc files.Andrzej J.R. Hunt
Change-Id: I6574ef7fd1c26770a74b2d1f2b0d997fcca97779