summaryrefslogtreecommitdiffstats
path: root/connectivity
Commit message (Collapse)AuthorAgeFilesLines
* use rtl::Reference in OResultSetNoel Grandin2017-01-232-17/+11
| | | | | | instead of manual acquire/release Change-Id: I8baa2e7ac64445ea69d4b62566a89b6e42307e51
* loplugin:dynexcspec (macOS), connectivityStephan Bergmann2017-01-206-0/+22
| | | | Change-Id: Ic8cd364cd27f7f7669ac8d5553fc3974b5f8c992
* loplugin:dynexcspec (clang-cl), connectivityStephan Bergmann2017-01-2011-2/+94
| | | | Change-Id: Ia49a11d4f707764640ea497d877d1699183ca56e
* New loplugin:dynexcspec: Add @throws documentation, connectivityStephan Bergmann2017-01-1965-8/+325
| | | | Change-Id: Id8711eaeac65efaa228b60d5786169016bfb61a3
* no special support for MACOSX PPC in master for a while nowCaolán McNamara2017-01-171-2/+0
| | | | Change-Id: I8d5dc878f41939e55ef8995d1da74548faa4711f
* remove some unused Java codeNoel Grandin2017-01-171-18/+0
| | | | | | | Change-Id: Ia1663256fc0b92c343ea4ba55a821c969077a0aa Reviewed-on: https://gerrit.libreoffice.org/33174 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* new loplugin: useuniqueptr: connectivityNoel Grandin2017-01-1715-23/+19
| | | | | | | Change-Id: I016f6a62814f1e93373dc70f59893fa38361464b Reviewed-on: https://gerrit.libreoffice.org/33149 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* coverity#1371289 avoid the need for an assignmentCaolán McNamara2017-01-143-6/+6
| | | | Change-Id: I7f9b8d21652c79642f9a2f916ad0609c8abd430b
* loplugin:refcountingStephan Bergmann2017-01-142-6/+11
| | | | Change-Id: Ied9ecabb3cb6b5d629ec72db164df452d8ca114a
* tdf#70433 tdf#104734 implement sdbc XClobTamás Bunth2017-01-146-1/+205
| | | | | | | | | | And use it in getClob, so LO can display clob values like the return value of the built-in List function. Change-Id: I395016e945dbeb2c6bb3737b6345d40ff9f48089 Reviewed-on: https://gerrit.libreoffice.org/32938 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com>
* coverity#1371289 avoid the need for an assignmentCaolán McNamara2017-01-131-1/+1
| | | | Change-Id: Ia0efc427d9996eb8414821d07f7e760fb1b35246
* jdbc clob character stream: return 1 when returning a single odd byteLionel Elie Mamane2017-01-131-1/+1
| | | | | | | | | | | if at that point nBytesToRead is 0, it may be that it was 1, but we have read one byte from the buffer (m_buf). So in this case, return 1, not 0 (which would signal EOF). Change-Id: I229e53f1c38c80f709df244a3509caccd69c8ecf Reviewed-on: https://gerrit.libreoffice.org/33029 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
* XBlob::getBytes expects 1-indexed positionTamás Bunth2017-01-111-3/+4
| | | | | | | | | There was also a wrong relation. Now blob resets its position. Change-Id: I41caf7cdfa261cafa5b9e66c9523c7f15225bfd8 Reviewed-on: https://gerrit.libreoffice.org/32937 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
* loplugin:externvar (clang-cl)Stephan Bergmann2017-01-111-8/+0
| | | | Change-Id: Ibbcb8b6dfaf1c979db2e7930c4f6c8475d693ac8
* Some loplugin:conststringvar/stringconstant improvements: connectivityStephan Bergmann2017-01-111-6/+2
| | | | Change-Id: I8b026b61b8744e21584bc64d80a957aca08aae2b
* remove unused typedefsJochen Nitschke2017-01-101-3/+0
| | | | | | | Change-Id: I99c44caabca3d799c783d57cd2c3a1692c899191 Reviewed-on: https://gerrit.libreoffice.org/32911 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* New loplugin:conststringvar: connectivityStephan Bergmann2017-01-1018-100/+100
| | | | Change-Id: I2c38bc842ee07d27a5a2ff084e8a608a858f4faa
* New loplugin:externvar: connectivityStephan Bergmann2017-01-096-75/+71
| | | | Change-Id: I7e62a92ee4b019163de797fd4448170a741879dc
* hack to silence -Wunused-functionCaolán McNamara2017-01-092-2/+2
| | | | Change-Id: I585839c05ca3b0336ffbe2c60a2f58c34b0aae78
* bSilent is unusedStephan Bergmann2017-01-061-3/+0
| | | | | | ...ever since c25ec0608a167bcf1d891043f02273761c351701 "initial import" Change-Id: Iccee867aa9722ced2f66d4d8b8911c5e191502c2
* loplugin:salboolStephan Bergmann2017-01-061-1/+1
| | | | Change-Id: I7dfd48a04e2dff1391d10acb75180711b403af9b
* Use string literals directlyStephan Bergmann2017-01-061-25/+12
| | | | Change-Id: Ia4ae5c01ae7eb976a0e9638f8bc8fe7ebab8e2cb
* Clean up a usage of OUStringBufferStephan Bergmann2017-01-051-11/+11
| | | | Change-Id: I8435865f1a67a3a6d889c1b8a3d30e632ffc61fd
* Replace side-effect--only uses of makeStringAndClear() with setLength(0)Stephan Bergmann2017-01-051-2/+2
| | | | Change-Id: Iaf8011f1bd6a10b324653899b7f51458f7d0b68a
* Fix loplugin warnings in sqlflex.lStephan Bergmann2017-01-041-9/+9
| | | | | | | | | (Normally hidden by T_LEXFLAGS containing -L in connectivity/Library_dbtools.mk suppressing #line directives; some loplugin:literaltoboolconversion warning would remain in a flex-provided occurrence of ECHO that is apparently not properly prefixed by #line at least with flex 2.6.0.) Change-Id: Id5693d6bd9e5b565dd9820e3cbea8e88e7967dd5
* Fix loplugin warnings in sqlbison.yStephan Bergmann2017-01-041-31/+31
| | | | | | | | (Normally hidden by T_YACCFLAGS containing -l in connectivity/Library_dbtools.mk suppressing #line directives; some loplugin:cstylecast would remain in bison- provided expansions of $1 etc. variables.) Change-Id: Ic93bea0b2fe0ec5f741c4bc41f25cc72fec0498f
* cleanup tailing backslashesJochen Nitschke2016-12-303-3/+3
| | | | | | | Change-Id: Idb4bfc97e7d758c58118742affd9a9345c7a99f2 Reviewed-on: https://gerrit.libreoffice.org/32491 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Fix some comment typos.Damjan Jovanovic2016-12-241-2/+2
| | | | | | | | Patch by: me (cherry picked from commit 7ac035b2ddf9275085c30d1048bec7da160158f0) Change-Id: Ic5fa1abe69fbf5f656e79fcd5e17ea5f84208ae6
* tdf#104858: fix typoJulien Nabet2016-12-231-1/+1
| | | | | | | | | Thank you to himajin100000@gmail.com for having noticed this. Change-Id: I81da0d4fc91faf95f4f5257d5834a9fdfd2618f7 Reviewed-on: https://gerrit.libreoffice.org/32378 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* tdf#70506 implement getColumnLabel functionWastack2016-12-201-2/+7
| | | | | | | | | | which is responsible for aliasnames defined with the SQL 'AS' keyword. Change-Id: I6aaf1ba6969e2bd738941e41492338382168bc89 Reviewed-on: https://gerrit.libreoffice.org/32042 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
* always have dbtoolsCaolán McNamara2016-12-201-1/+8
| | | | | | | | Change-Id: I6a3658a275c520c95490df2bb4c99ad3e3a15cef Reviewed-on: https://gerrit.libreoffice.org/32208 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* Adapt to no-longer explicit OUStringLiteral ctorStephan Bergmann2016-12-173-11/+10
| | | | | | | | | ...from previous commit Change-Id: I062b7cd212c17e7eb5274476e6859228d0477c7f Reviewed-on: https://gerrit.libreoffice.org/32098 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
* teach sallogareas plugin to catch inconsistenciesNoel Grandin2016-12-152-6/+6
| | | | | | | Change-Id: I8bcea5ffc74d48148bea78da8c17744e288c069a Reviewed-on: https://gerrit.libreoffice.org/32004 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
* -Werror,-Wunused-macrosStephan Bergmann2016-12-131-6/+0
| | | | Change-Id: Idc81dd30502a1968f2f65386575cac1e029f8c64
* loplugin:sallogareasStephan Bergmann2016-12-131-2/+2
| | | | Change-Id: I25f793d88a87d94925026fc3de97d02086a0c855
* OSL_TRACE->SAL in chart2..ooxNoel Grandin2016-12-1316-145/+22
| | | | | | | Change-Id: I133a6441824bfbefcfcda130119b5c5d706f86b2 Reviewed-on: https://gerrit.libreoffice.org/31907 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* Prevent use of ORowSetValue with sal_Bool as TINYINTStephan Bergmann2016-12-127-43/+6
| | | | | | | | | | | | | | | | sal_Bool and sal_uInt8 are typedefs for the same underlying type, so any use of ORowSetValue with sal_Bool instead of bool, apparently intending to treat the value as a boolean, actually treated it as a TINYINT. (See e.g. recent 7b0c57b2faec875c790051d233d1e9abaed2a3bc "some compilers don't like implicit bool-to-ORowSetValue conversion".) Now that there's no way to create a sal_uInt8 ORowSetValue, getUInt8 and the m_uInt8 union member can probably go away, too. Change-Id: Ia27554f76e7e9edce6410284b578064573e54fd3 Reviewed-on: https://gerrit.libreoffice.org/31909 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
* some compilers don't like implicit bool-to-ORowSetValue conversionLionel Elie Mamane2016-12-121-1/+1
| | | | Change-Id: Ic4463db8aeca6ae9a86f7b890f95eb73724c6a1b
* tdf#103074 Implement Boolean Type for FB driverWastack2016-12-114-5/+28
| | | | | | | Change-Id: Ibed5435e23730dc901155e79152e9becd3e70566 Reviewed-on: https://gerrit.libreoffice.org/31262 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
* tdf#104227 query boolean like infos correctlyWastack2016-12-111-2/+3
| | | | | | | Change-Id: Ic862bb1ce3efa61d6a01fc56fb9e84cf98bb7cd0 Reviewed-on: https://gerrit.libreoffice.org/31355 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
* cleanup unused includes (related to tdf#88206)Jochen Nitschke2016-12-062-2/+2
| | | | | | | | | | | | cppuhelper/compbase*.hxx and cppuhelper/implbase*.hxx compbase*.hxx includes implbase*.hxx replace compbase*.hxx if only implbase*.hxx stuff is used. Change-Id: I631a20aee411c6a32ffcf470f6e392621755f995 Reviewed-on: https://gerrit.libreoffice.org/31686 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
* convert FSysStyle to o3tl::typed_flagsNoel Grandin2016-12-051-1/+1
| | | | Change-Id: I58a63a0e6f619442f21827064644ecd8ca57b8ff
* convert DecodeMechanism to scoped enumNoel Grandin2016-12-055-21/+21
| | | | Change-Id: I5c56634b1bca8e37fa73d02d2428645301b6c547
* convert INetURLObject::EncodeMechanism to scoped enumNoel Grandin2016-12-051-1/+1
| | | | Change-Id: I50ea17c7779c7b5cacddf548f1773fd7d6c8bade
* tdf#104227: fix subtypes DECIMAL/NUMERIC in resultsetJulien Nabet2016-12-041-4/+4
| | | | | | | | | | | | | bt here: https://bug-attachments.documentfoundation.org/attachment.cgi?id=129298 See also https://bugs.documentfoundation.org/show_bug.cgi?id=104227#c13 for more details Change-Id: Ied497cfff2f71e67161d541b90fe48bb3e2456b9 Reviewed-on: https://gerrit.libreoffice.org/31593 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Bunth <btomi96@gmail.com> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* convert nowParsing_ constants to scoped enumNoel Grandin2016-12-012-8/+8
| | | | | | | Change-Id: I8df9ca0e9317a4d969f492699be926044415f68c Reviewed-on: https://gerrit.libreoffice.org/31483 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
* Rewrite some (trivial) assignments inside if/while conditions: connectivityStephan Bergmann2016-11-293-11/+16
| | | | Change-Id: I67d4bb92db04b5103b98a2855ae6069a054f171b
* loplugin:unnecessaryoverride (dtors) in connectivityStephan Bergmann2016-11-282-7/+0
| | | | Change-Id: Icba385b3b7f6991f4dab7b2fd57beab5ac184df0
* KAB loplugin:datamembershadowJan-Marek Glogowski2016-11-254-6/+3
| | | | Change-Id: I1962ab1d131cf714f8bd540b589e793c4389cfb2
* coverity#1371267 Missing move assignment operatorCaolán McNamara2016-11-242-0/+12
| | | | Change-Id: Iefcfd20ac17f24f4fc3faec72b15de6bfb42eeac