path: root/mysqlc/source
AgeCommit message (Collapse)AuthorFilesLines
2014-06-10deb#749592 mysql-connector doesn't work with remote connectionsNoel Grandin1-2/+2
and also fdo#77584 mysql-connector doesn't work over SSH tunnel Not sure exactly how this got broken, I suspect that the UI code has started unconditionally passing down the properties, just filling them with empty spaces for the unused ones. Anyhow, this appears to fix the problem. Cherry-picked from 6b50e21473e7d2b24b5c609d8a1c31f27644d842 Change-Id: I7ac2a0d6bae610f47d2a28daa9beb3ef0e2dbb52 Reviewed-on: Reviewed-by: Caolán McNamara <> Tested-by: Caolán McNamara <> Reviewed-on:
2013-12-17Keep using component_getImplementationEnvironment in extensionsStephan Bergmann1-0/+7
...instead of relying on the implicit CPPU_CURRENT_LANGUAGE_BINDING_NAME convention. Keeping that convention an implementation detail makes it easier to do improvements in the future. (Theoretically, the bundled extension in mysqlc could be considered internal code and not adapted, but just be safe.) (cherry picked from commit fa2a7c1c95f78d20ed572091e12700fd4d852835) Conflicts: desktop/test/deployment/active/active_native.cxx Change-Id: Iae41a6e072dabc2bf7c1481ba6cfed61680edf37
2013-11-19remove unnecessary use of OUString constructor when assigningNoel Grandin1-2/+2
change code like aStr = OUString("xxxx"); to aStr = "xxxx"; Change-Id: Ib981a5cc735677ec5dba76ef9279a107d22e99d4
2013-11-14remove unnecessary sal_Unicode casts in various placesNoel Grandin2-2/+2
Change-Id: Ibf04062ca86ed866202d748c3b62a210d30ed6ec
2013-11-11convert OUString !compareToAscii to equalsAsciiNoel Grandin1-6/+6
Convert code like if( ! aStr.compareToAscii("XXX") ) to if( aStr.equalsAscii("XXX") ) which is both clearer and faster. Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
2013-11-11remove unnecessary use of OUString constructorNoel Grandin1-2/+2
Change-Id: Ifb220af71857ddacd64e8204fb6d3e4aad8eef71
2013-10-19fdo#70496 revert to using libmysqlclientLionel Elie Mamane2-1/+26
Change-Id: I5b98b5e7840e4f1c6005aee0c1f43ef814ecf77b
2013-10-16cleanupThomas Arnhold1-4/+0
Change-Id: I7bfd221f89718ba8634417c93a26b3a199178694
2013-10-11Extension shared library components must not use the "prefix" featureStephan Bergmann2-2/+2 least no non-bundled ones, see 9dfcee9266c9769153444cdcd4ab0e6e636c3eb6 "Not being able to honor a 'prefix' is a rather hard error" and the description there how that can lead to a crash when using mysql-connector-ooo.oxt: "'rm -rf instdir/*/share/extensions/mysql-connector-ooo', 'instdir/*/program/soffice workdir/*/Extension/mysql-connector.oxt', install the [extension] per-user, then 'File - New - Database - Connect to an existing database: MySQL - Next >> - Connect directly - Next >> - Database name: foo - Server / Port - Server: bar - Next >> - Test Connection', crash." This is a partial revert of cd79d51420b90117d0f3e1d5f3cdf9187bd61b88 "prefix all component_getFactory methods." Change-Id: Ia7a6272eb0597e3b3bbf4ab333174b3232448539
2013-09-12Update mysqlc's ColumnLocate::findColumn to throw for invalid column.Andrzej J.R. Hunt1-1/+7
(This is to comply with the updated API specification.) Change-Id: I4542fecc78a6e64011276dafc72c31d5533af1ab Reviewed-on: Reviewed-by: Fridrich Strba <> Tested-by: Fridrich Strba <>
2013-06-29remove OUString wrap for string literalsThomas Arnhold2-16/+16
For some functions and all kinds of Exceptions. CannotConvertException CloseVetoException DisposedException EmptyUndoStackException ErrorCodeIOException Exception GridInvalidDataException GridInvalidModelException IOException IllegalAccessException IllegalArgumentException IllegalTypeException IndexOutOfBoundsException NoMasterException NoSuchElementException NoSupportException PropertyVetoException RuntimeException SAXException ScannerException StorageWrappedTargetException UnsupportedFlavorException VetoException WrappedTargetException ZipIOException throwGenericSQLException throwIllegallArgumentException createInstance createInstanceWithContext forName getByName getPackageManager getPropertyValue getUnpackedValueOrDefault getValueByName hasPropertyByName openKey setName setPropertyValue supportsService bash command: for i in `cat list`; do git grep "$i\s*(\s*OUString(\s*\"" -- '*.[hc]xx' | cut -d ':' -f1 | sort -u | xargs sed -i -e "s/\(\<$i\s*(\)\s*OUString(\s*\(\"[^\")\\]*\"\)\s*)\s*/\1\2/g" -e "s/\($i.*\)\"+ /\1\" + /g"; done Change-Id: Iaf8e641b0abf28c082906014f87a183517630535 Reviewed-on: Tested-by: LibreOffice gerrit bot <> Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-06-14Some more toInt32 clean upStephan Bergmann1-6/+6
Change-Id: I4f7911cb283d67e7c7b883d629b39588e96f32c2
2013-06-03re-base on ALv2 code. Includes:Michael Meeks2-0/+4
Patches contributed by Mathias Bauer gnumake4 work variously Patches contributed by Andre Fischer Fixed getcsym.awk to handle #-comments that contain special regexp chars. 118778: Added ADDITIONAL_REPOSITORIES environment variable and its automatic setup in configure. 118160: Added external CoinMP library. Patches contributed by Herbert Duerr #i119168# use generic LICENSE file for langpacks and sdks macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars allow gbuild with empty sysroot on linux Patches contributed by Ingo Schmidt native373: #164472# improvements for msi database Patches contributed by Jurgen Schmidt adapt setup package scripts to handle special DS_Store file for developer snapshot builds imported patch extensions_i117681.patch Patches contributed by Michael Stahl gbuild: should be optional xslt filter: remove the FLA horror wordml import filter: replace FLA usage with plain XSLT Patch contributed by Oliver-Rainer Wittmann i#88652: applied patch, remove unicows deps Remove lots of OS2 conditionals, re-extract Rhino Java, unwind cppunit pieces, cleanup Mac image bits, remove coin-mp and re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand MPLv2 subset checking. Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-05-14initialized with plain 0, instead of sal_False/falseTakeshi Abe1-1/+1
Change-Id: I2df1bd52293c4423de5ac4c41f9392be1e8d2ccf
2013-04-19Remove any remaining remnants of unused component_canUnload featureStephan Bergmann1-1/+1
Change-Id: I635fd006b5ba9f5fb0091748ee2ff9bc3c1a2d2a
2013-04-15prefix all component_getFactory methodsPeter Foley2-2/+2
Change-Id: I954176fdab9103125444dd2fb397673406f7aff9
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák19-88/+72
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold3-4/+4
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold3-23/+23
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: Reviewed-by: Thomas Arnhold <> Tested-by: Thomas Arnhold <>
2013-03-11Do not try to dlopen a static internal libmariadbFridrich Štrba1-34/+1
Change-Id: Ib624089418e22c050e951acc4c487572c7e0ea25
2013-03-10Adapt to removed MYSQL_LIBStephan Bergmann1-1/+1
...from cad422afb7a4dcd7592c502641b41a832703e536 "Adding libmariadb module for internal mariadb (work in progress)." Change-Id: Iba803a26be6f62589191122d4defc959cb3248eb
2013-03-10more s/MYSQLC/MARIADBC/ to make mysqlc actually build...Rene Engelhard2-4/+4
Change-Id: I286c2100c33371d5ed1ac0be3ae6393dabe6c4ef
2013-03-06Switch from libmysqlc library to mariadb-native-clientFridrich Štrba1-2/+2
Change-Id: I867918bbb61b289e1ad8752e6f46705af6e85b7c
2013-03-03Related to fdo#60724: correct spellingThomas Arnhold1-1/+1
Using the autocorrect list of LibreOffice extras/source/autotext/lang/en-US/acor/DocumentList.xml Change-Id: I8b93969bc0742c2e95b8b7db3c4c37691e8d3657 Script:
2013-02-07mysqlc: bump version number to 1.0.2Michael Stahl1-2/+2
Also bump minimum OOo version to 3.3 because of passive registration. Change-Id: I6798f728d19adcc5d30e7d9fe4ae3c62c18876a2
2013-02-07mysqlc: remove component_writeInfo with passive registrationMichael Stahl3-50/+17
Change-Id: I8ffa5ba2bbbd15533ea5097e0b018be3766ecc8b
2013-01-28mysqlc: tweak gbuild conversion:Michael Stahl2-3/+3
- the mysqlc library did link against the mysqlcppconn only when a SYSTEM_MYSQL_CPPCONN is used - mysqlc is an EXTENSIONLIB, mysqlcppconn is PLAINLIBS_NONE - one N was missing in Extension makefile, and use gb_Extension_add_library to put in mysqlcppconn - manifest.xml, description.xml: update PLACEHOLDERS Change-Id: If45714f81056a6c1a4cb3380b50cc3dcc0443bb8
2013-01-28convert mysqlc to gbuild and add to tail_buildPeter Foley6-272/+5
Change-Id: Ia64bc884ed04a5d5652fb743f543a39e6b6bbcf2 Reviewed-on: Reviewed-by: Michael Stahl <> Tested-by: Michael Stahl <>
2013-01-26gbuild: do not copy boost headers aroundMichael Stahl1-0/+1
- do not use gb_UnpackedTarball_copy_header_files for boost - adapt the optimization in concat-deps.c for new path - use boost_headers in all LinkTargets that require it - add explicit include paths to mysqlc, mysqlcppconn, libvisio, liborcus Change-Id: I0c43e73ed43cc9d2e6bce8faf55e992d655a0bb9
2013-01-16Get rid of GetVersionInfo and checkdllTor Lillqvist1-3/+0
With gbuildification neither was actually used anyway, as far as I could see. Change-Id: I00d914e6571aed3110226f91ac1685a838031c65
2012-12-25Get rid of (most uses of) GUITor Lillqvist1-2/+2
GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: Reviewed-by: Peter Foley <> Tested-by: Peter Foley <>
2012-12-18Do not define CPPCONN_LIB if using system versionTomas Chvatal1-2/+0
This is used for dlopen internal library only anyway and breaks when building in strict-multilib environment. Change-Id: I9dea9e37161aab17ab605bec33482ddb48beeb46
2012-12-15fdo#58156 use WITH_LANG_LIST instead of WITH_LANGAndras Timar1-1/+1
Change-Id: Ie87469d7553d1dcad49348c42d3cca99a43d709c
2012-12-12Remove xml2cmp leftoversStephan Bergmann1-96/+0
Change-Id: I7c0ba8b653b8e0534ae17bd879b93b75c6554893
2012-11-22Use xcrun when available to run install_name_toolTor Lillqvist1-3/+3
This hopefully should help in situations like Jonathan Aquilina's, where /usr/bin/install_name_tool does not correspond to the tool-chain used (but is from an earlier version of Xcode). Change-Id: I5b4ca9e5e163fb4a84967577d2146cdbe8344f03
2012-11-21"newtrans.1.0" -> "translations"Stephan Bergmann1-1/+1
Change-Id: Ib14f6087bd4123202cf2bffe79c82421a38c1c36
2012-11-19Extend localization to mysqlcZolnai Tamás1-1/+1
Change-Id: If67b4991dec8c20d02d41032923bbd5945a5704a
2012-11-04MySQL Connector display nameAndras Timar1-1/+1
Change-Id: I36f2504cd7458d558b786aedaf79b2e3fa1444d5
2012-09-25replace remaining InterlockedCount() with inlined versionNorbert Thiebaud2-5/+5
Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: Tested-by: Norbert Thiebaud <> Reviewed-by: Norbert Thiebaud <>
2012-08-14-Wc++11-narrowing (Clang towards 3.2)Stephan Bergmann1-1/+1
Change-Id: I5b5e61995671aa194f97c4f337b2c429842917c0
2012-08-14fdo#53061: Fix for C++11 #define NULL nullptrJung-uk Kim1-1/+1
Change-Id: Ia1805aab4bec7fef02c96ec4e7a7a0ed9991d3c3 Signed-off-by: Stephan Bergmann <>
2012-08-13misc. cleanup.Michael Meeks1-1/+0
2012-07-07removed unnecessary forward declarations of classTakeshi Abe1-1/+0
except moving 'class SfxStringItem' to cui/source/inc/acccfg.hxx Change-Id: I11d3803ebcfa02658d376bacf28b3d6030ee9d1b
2012-06-29Export the UNO symbols from Štrba1-1/+1
Change-Id: I528acab43cad3abc88d1a20f0f19f42d652262dd
2012-06-26re-base on ALv2 code.Michael Meeks25-455/+423
2012-06-02targeted string re-workNorbert Thiebaud2-24/+24
Change-Id: I88cdf9d4c3faab75a80ff72e4268748296a09e50
2012-02-13Fix typos in commentsElton Chung1-1/+1
2012-02-09Added and improved READMEs for modules in extensions, extras, postprocessJosh Heidenreich1-65/+0
2012-02-05replace SOLARSRC by SRC_ROOT and get rid of SOLARDEFIMG usesNorbert Thiebaud1-1/+1
2012-01-02Fix for fdo43460 Part XXV getLength() to isEmpty()Olivier Hallot1-4/+4
Please find attached a partial fix for Easy Hack FDO43460 Part XXI Module oox