Commit Graph

17 Commits

Author SHA1 Message Date
Stephan Bergmann
5e21a413c7 cppuhelper: retrofit std::exception into overriding exception specs
Change-Id: I56e32131b7991ee9948ce46765632eb823d463b3
2014-02-26 18:22:20 +01:00
Alexander Wilms
0ce0c369aa Remove unneccessary comments
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-02-23 03:38:49 +00:00
Andrzej J.R. Hunt
87bd0c8c8f Reintroduce Statement specific mutexes. (firebird-sdbc)
This replaces the erronous Connection wide mutex. Libfbembed
is multithreaded hence we don't need a connection wide mutex.

Change-Id: Ifae79cdefecfe6597a535e36bda318563092bf6c
2013-09-10 19:52:00 +01:00
Andrzej J.R. Hunt
5b74c6563c Cleanup Connection and rename from OConnection. (firebird-sdbc)
Change-Id: I06cfdc29d7613638d3cea080e7b39c67c74d4de0
2013-09-09 19:52:27 +01:00
Andrzej J.R. Hunt
73aaa4da67 Implement retrieving change count for executeUpdate. (firebird-sdbc)
Change-Id: Ied47f421dc801bb6790bed49b28d3231844e6ee5
2013-08-27 20:58:31 +01:00
Andrzej J.R. Hunt
985df3aa86 Free SQLDA if statement preparation fails. (firebird-sdbc)
Otherwise we are left with an invalid sqlda which cannot be safely
used later.

Change-Id: I506a17266da798fa6ed46c65f3838bb8fafbe241
2013-08-16 21:13:14 +01:00
Andrzej J.R. Hunt
75b2c92cfb Improve exceptions in Statement.
Change-Id: Ib1915c143abee8c9162477da07462a68dd45e03c
2013-08-11 16:05:09 +01:00
Andrzej J.R. Hunt
6044f52c5e Improve statement handle handling.
Change-Id: I81809634600c580bb50843e697071d62bc6802a4
2013-08-11 16:05:08 +01:00
Andrzej J.R. Hunt
54a138db91 Commit after DDL statement. (firebird-sdbc)
Changes made in a DDL statement are only usable after a
commit in firebird, e.g. a created table won't appear etc.

Change-Id: I3b537f495b6bc96fa48ebc1a3e46205da60bb2d4
2013-08-07 18:23:37 +01:00
Andrzej J.R. Hunt
ebe37593c5 Clean up ResultSet management. (firebird-sdbc)
Change-Id: I00cd0aa08a5a3da17f06933ebc3422a6b4b8bc74
2013-08-07 18:23:37 +01:00
Andrzej J.R. Hunt
da25756ba9 Remove unnecessary F- prefix for firebird-sdbc files.
Change-Id: I6574ef7fd1c26770a74b2d1f2b0d997fcca97779
2013-07-31 16:06:58 +02:00
Andrzej J.R. Hunt
a2af2407ae Update licence headers / rebase on APL'd skeleton driver (firebird-sdbc)
The firebird driver was created on the basis of the skeleton driver
(odk/examples/DevelopersGuide/Database/DriverSkeleton/). This is under
BSD licence within the LO codebase but was relicenced as ALV2 within AOO.
(see http://svn.apache.org/viewvc?view=revision&revision=1239200 )

MPL added as all my changes to the driver are released as MPL.

Change-Id: Iea22043281fbc16f6813ce97dce449b10914a91d
2013-07-29 12:55:51 +01:00
Andrzej J.R. Hunt
5d7573df1d Remove unneded string sanitisation (firebird-sdbc).
This was only needed because of the incorrect sql dialect
previousy used which didn't permit quoted identifiers.

Change-Id: I31b50add0363f14c8a8cc228f3dfbe084fe42d1c
2013-07-24 20:36:01 +02:00
Andrzej J.R. Hunt
dc318a3568 Define SQL dialect driver-wide and change to 3. (firebird-sdbc)
Previously the driver used firebird sql dialect = 1 (IB 5.5 or earlier)
however we need support for delimited identifiers, DATE, TIME, TIMESTAMP
etc. which are all available from IB6 onwards ie. sql dialect 3. Currently
this is the latest dialect supported by firebird.

Change-Id: Ia2302bf69bda877d81f8995843cce6c606e7ed43
2013-07-24 20:36:00 +02:00
Andrzej J.R. Hunt
cacb32caab Clean up naming of OStatement_Base etc. (firebird-sdbc)
Change-Id: I4cb81565ae2fa6efd434e6e789f16fab90d0ae4a
2013-07-23 19:29:06 +02:00
Andrzej J.R. Hunt
ed9dac3baf Move Statement specific methods out of common base. (firebird-sdbc)
Change-Id: If85f7f419b7c67bc84f8a74422cc8c9080a34353
2013-07-23 19:29:06 +02:00
Andrzej J.R. Hunt
2b541c928c Move Statement_Base into it's own file (firebird-sdbc).
This is in preparation of cleanly separating the code shared
by PreparedStatment and Statement from the code unique to either
of those classes.

Change-Id: I419668044e67b25d492a381acab9ee9b1acce7ce
2013-07-23 19:29:05 +02:00