Commit Graph

54 Commits

Author SHA1 Message Date
Wastack
21cc1826c7 WiP tdf#74172 use DECIMAL and NUMERIC data types
Change-Id: I917cdf6e8d3ebfa7c9e4a52ca61adc5b8707ecfc
Reviewed-on: https://gerrit.libreoffice.org/30447
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2016-11-10 09:37:12 +00:00
nadith
833d952a57 tdf#88205 Adapt uses of css::uno::Sequence to use initializer_list ctor
Change-Id: I4abcff5e1bf050bd4e4cf0695f196c418d8229ef
Reviewed-on: https://gerrit.libreoffice.org/29778
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-14 06:36:35 +00:00
Wastack
0a91231523 tdf#69949 GSoC Firebird implement autoincrement
Change-Id: I6fe08b575f01b986f0a3c96b341f254279427b68
Reviewed-on: https://gerrit.libreoffice.org/28062
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Jenkins <ci@libreoffice.org>
2016-08-18 12:25:18 +00:00
Wastack
70a295ea33 tdf#91324 GSoC adapt struct tm correctly for date
Change-Id: Id0413d735eeeb506b6e706c5d31e7bf989ab5e41
Reviewed-on: https://gerrit.libreoffice.org/27592
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
2016-08-11 12:48:58 +00:00
Wastack
88346f606a tdf#91324 GSoC adapt struct tm correctly
Change-Id: I645ebe888186e550b95dd072e063260bc69aa178
Reviewed-on: https://gerrit.libreoffice.org/27120
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2016-07-15 11:15:49 +00:00
Noel Grandin
a52231c785 com::sun::star->css in connectivity
Change-Id: I9489e92dc89a6d83a26ff4f0d9aad26acd28ad9f
Reviewed-on: https://gerrit.libreoffice.org/25537
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-30 08:37:11 +00:00
Stephan Bergmann
15e410e5af loplugin:salbool: Automatic rewrite of sal_False/True
Change-Id: I6fada7331ee369c35cbe019db4e730ce56cd1a1f
2016-04-20 17:25:37 +02:00
Noel Grandin
414a66587b convert StandardSQLState to scoped enum
Change-Id: Ia0a1526140cfed35a73a6fea1a173d2fb5005960
2016-02-25 13:50:26 +02:00
Chris Sherlock
a238b1f8d3 Remove excess newlines
A ridiculously fast way of doing this is:

for i in $(pcregrep -l -M -r --include='.*[hc]xx$' \
  --exclude-dir=workdir --exclude-dir=instdir '^
{3,}' .)
do
    perl -0777 -i -pe 's/^
{3,}/

/gm' $i
done

Change-Id: Iebb93eccbee9e4fc5c4380474ba595858a27ac2c
Reviewed-on: https://gerrit.libreoffice.org/22224
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
2016-02-09 08:18:05 +00:00
Stephan Bergmann
c0bd59c15b loplugin:nullptr (automatic rewrite)
Change-Id: Iefeeb51c2b101c097a8d77a4625f84baf1f2da44
2015-11-10 10:31:20 +01:00
Stephan Bergmann
373a9b9bb6 loplugin:redundantcast: redundant const_cast followed by implicit upcast
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
2015-04-13 12:36:36 +02:00
Stephan Bergmann
17e74bf1a0 Replace remaining getCppuType et al with cppu::UnoType
Change-Id: Id2361bd7b50f4724211661b024583b8a3445500b
2015-04-01 08:36:20 +02:00
Stephan Bergmann
a52cf476e7 Clean up template-parameter-dependent C-style casts
Change-Id: Ia1ab134a0afbeeb3ae40264bd4233a47df26b734
2015-03-29 15:13:45 +02:00
Stephan Bergmann
141b01ac65 Some more loplugin:cstylecast: connectivity
Change-Id: Iee1d11aef454284dbe050780c4308917c1a2b36f
2015-01-20 09:06:46 +01:00
Noel Grandin
0371a63365 remove unnecessary 'using namespace rtl' declarations
It turns out that almost none of them were necessary.

Change-Id: I1311ed28409c682b57ea8d149bcbaf2c49133e83
Reviewed-on: https://gerrit.libreoffice.org/12133
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-29 11:28:54 +00:00
Noel Grandin
fc04f76336 fdo#82577: Handle Time
Put the TOOLS Time class in the tools namespace. Avoids clash with the X11
Time typedef.

Change-Id: Iac57d5aef35e81ace1ee0d5e6d76cb278f8ad866
Reviewed-on: https://gerrit.libreoffice.org/11684
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-10-01 07:34:23 +00:00
Caolán McNamara
968f633b24 coverity#706382 Uncaught exception
and

coverity#706377
coverity#706378
coverity#706382

Change-Id: I17f672e31867b1be77c16a8a6e121a8f67df7c90
2014-07-01 16:43:05 +01:00
Lionel Elie Mamane
d2d2136f3f fdo#73352 firebird don't claim to support interfaces one doesn't
and then throw an exception when the interface is used

Change-Id: Id5e2c852323d49f51ab55cf46ab54223cf8ccf03
Reviewed-on: https://gerrit.libreoffice.org/9590
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
2014-05-31 03:57:26 +00:00
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
Lionel Elie Mamane
a904aa609d firebird driver: do not assume sizeof(short) == 2
Change-Id: I4b4e6caa34c23baa75a87cf1750dce3ca3ae8aed
2014-01-30 06:13:47 +01:00
Noel Grandin
1bdb2b6f06 remove unnecessary use of OUString constructor in CONNECTIVITY module
Change-Id: Ie32d03920d996db2793ead9940fc90668cde03dd
2013-11-11 11:21:25 +02:00
Julien Nabet
124beed407 Resolves: fdo#71062 Embedded Firebird - Tables with Date-fields let LO crash
Change-Id: Ie28a1e8765ab9ff6eb345198d6ea223e25429e11
2013-11-01 18:01:35 +01:00
Andrzej J.R. Hunt
0ef3db3563 Remove redundant comment.
Change-Id: I317f83e8aca7f61148385763bc1f0a78a84530d8
2013-10-27 19:30:19 +00:00
Marcos Paulo de Souza
2b91dc3ae6 fdo#54938: Adapt connectivity module to use cppu::supportsService
Change-Id: I885b4c7a60ff51d44138c4f8a56a584c38a9804a
Reviewed-on: https://gerrit.libreoffice.org/6172
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Tested-by: Stephan Bergmann <sbergman@redhat.com>
2013-10-09 15:03:38 +00:00
Andrzej J.R. Hunt
c856ab73af Cleanup ResultSet exceptions.
Change-Id: I77e4fd5fffe45446050f8a1dfbcc8cc27290c786
2013-09-19 20:37:55 +01:00
Andrzej J.R. Hunt
101040a130 Set sane default for type.
Change-Id: Ib63e6abd7b378671d1e01bf9357dd811ae88fc40
2013-09-19 20:37:55 +01:00
Andrzej J.R. Hunt
831f01b739 Move type conversion into template.`
Change-Id: I7b646673eacf2abbac8a2bcfa744f840ff344c84
2013-09-19 20:37:55 +01:00
Andrzej J.R. Hunt
79f1c6e50e Use conversion for Byte/Bool.
These are both non-native to firebird, hence always have to be converted
from whatever data we have.

Change-Id: I6e6843d95ee4f5cf0cd5953251796150f325f800
2013-09-19 20:37:54 +01:00
Andrzej J.R. Hunt
fc118515ee Implement implicit type conversion in ResultSet. (firebird-sdbc)
Change-Id: I9faf9752556b7e0769d3a353e393924f5a1edb63
2013-09-19 20:37:54 +01:00
Andrzej J.R. Hunt
dba4e216c9 Remove null indicator for type checking. (firebird-sdbc)
Change-Id: I3f693f5662f3022323c7ec726c9d7a506ce02185
2013-09-18 21:03:03 +01:00
Andrzej J.R. Hunt
936cce1110 Add some type checking to ResultSet.
This is in preparation for complying with the API by allowing
implicit type conversion.

Change-Id: I5e52fdc2f3562f806d7f9fba5d558ece4bd182ac
2013-09-18 20:57:08 +01:00
Andrzej J.R. Hunt
4216518982 Update implementations of ColumnLocate::findColumn to throw on invalid column.
Change-Id: I7a9354ecd35a70a005c6c50e38d27de9b33332bd
Reviewed-on: https://gerrit.libreoffice.org/5922
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-09-12 17:26:12 +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
8c204276a4 Cleanup findColumn. (firebird-sdbc)
Change-Id: I0458892d9688a8618789652caf67251a61cc63aa
Reviewed-on: https://gerrit.libreoffice.org/5884
Reviewed-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
Tested-by: Andrzej J.R. Hunt <andrzej@ahunt.org>
2013-09-09 10:04:45 +00:00
Andrzej J.R. Hunt
cf9a6e84f5 Implement set[Float|Double]. (firebird-sdbc)
This commit somehow got lost on my old computer, so here it is
recreated.

Change-Id: Ib4001a21c92976fe0e3dea3778360ff67cbfa3a9
2013-09-06 21:27:57 +01:00
Andrzej J.R. Hunt
08081fffa0 CID#1079047 Uncaught exception. (firebird-sdbc)
In this case we can just pass the DisposedException (is a RuntimeException)
onto the calling methods.

Change-Id: I379974fd7998151d503020742ae7ae18cbdfaf7c
2013-09-06 08:41:00 +01:00
Andrzej J.R. Hunt
98862b0fde CID#1079045 CID#107946 Uncaught exception. (firebird-sdbc)
In this case we can just pass the DisposedException (is a RuntimeException)
onto the get* methods.

Change-Id: I97a3575709e2f50fa651a5d26c3029ed014630da
2013-09-06 08:41:00 +01:00
Andrzej J.R. Hunt
3a5fa58344 ResultSet: add FunctionNotSupportedException, some cleanup. (firebird-sdbc)
Change-Id: Iee897766841af980d93aeb73255c82851172601a
2013-09-03 19:41:33 +01:00
Andrzej J.R. Hunt
026fe9c53b Implement setTimeStamp. (firebird-sdbc)
Change-Id: I58907d42ec9e1b4098e2947fdb89b1ab264358a6
2013-08-30 11:33:12 +01:00
Andrzej J.R. Hunt
437dd0369a Cast pointer before dereferencing. (firebird-sdbc)
We have a char* pointing to arbitrary data hence we need to cast
to the right type, othwerwise we retrieve the first byte only.

Change-Id: I6d3d08d15105a506c140044008c5255a8a8e4c39
2013-08-30 11:33:12 +01:00
Andrzej J.R. Hunt
3f56234ecb Implement set[Date|Time]. (firebird-sdbc)
Change-Id: Ibf3bc34f316c0a299afc2e015ff4c49ad57099a5
2013-08-30 11:33:12 +01:00
Michael Stahl
250864d869 connectivity: firebird::OResultSet: convert to C++98
Change-Id: I9036539204789d0886a51fcbc3d821012cc9eaee
2013-08-26 20:26:39 +02:00
Andrzej J.R. Hunt
b3b560e295 Clean up PropertyHelper stuff, set ResultSet properties. (firebird-sdbc)
Change-Id: If2f2041b0f072f36fe56e92b9e54bbb0be8a5860
2013-08-26 18:52:14 +01:00
Andrzej J.R. Hunt
197688f3fd Actually set m_bIsAfterLast. (firebird-sdbc)
Change-Id: If8558fb53acd1175fa3fd8724a5febca4286abe6
2013-08-26 18:52:14 +01:00
Andrzej J.R. Hunt
33b011e6ff RefreshRow is unuspported. (firebird-sdbc)
Change-Id: Iec8e72a6236de83a1698e2d6e9dbcb609f0f858f
2013-08-23 10:32:20 +01:00
Andrzej J.R. Hunt
ab59b7176f Remove unsupported XRowLocate/XDeleteRows (firebird-sdbc)
Change-Id: I74bf84c8aae4d4ba6b9a2a9ca497ed0cbc092d35
2013-08-23 10:32:19 +01:00
Andrzej J.R. Hunt
f69b198ded Remove unsupporte XRowUpdate/XResultSetUpdate. (firebird-sdbc)
Change-Id: I3b9f8c7199e66f90e1573069996962294793d95e
2013-08-23 10:32:19 +01:00
Andrzej J.R. Hunt
aca3d35a3b Free SQLVAR as appropriate. (firebird-sdbc)
Change-Id: I5742e178baa85f3faf80d95f57fed248f7984793
2013-08-15 20:31:14 +01:00