summaryrefslogtreecommitdiffstats
path: root/dbaccess
Commit message (Collapse)AuthorAgeFilesLines
* fdo#38838,::rtl::OUString_to_OUStringelixir2013-02-251-185/+185
| | | | | | | Change-Id: I7c9ebd01c16ff066008e53de865560ad78215bab Reviewed-on: https://gerrit.libreoffice.org/2330 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* loplugin: unused variablesThomas Arnhold2013-02-2520-61/+0
| | | | Change-Id: I46a748bf2c54d15c0f5718901197f3b4c34b82bf
* loplugin: unused variableThomas Arnhold2013-02-252-6/+4
| | | | | | First parameter is unused since fb98c33c688ef479a64f9838abd63f617fd4b589 Change-Id: Iff9ff51227c5244950830febf2cdcf78e1de4d29
* fdo#38838 searched, replaced and removed String::CreateFromInt32().Jean-Noël Rouvignac2013-02-249-16/+16
| | | | | | | | | | | | | I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ And finally removed String::CreateFromInt32(). Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5 Reviewed-on: https://gerrit.libreoffice.org/2279 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
* Fix typo recieved/receivedJulien Nabet2013-02-231-1/+1
| | | | Change-Id: I0c838f5c06ff26149113a9bbab970d314758c648
* Fix typo seperated/separatedJulien Nabet2013-02-231-1/+1
| | | | Change-Id: I133423de994b1befe246b6c921802428a3528202
* Fix typo "teh" -> "the"Julien Nabet2013-02-232-2/+2
| | | | Change-Id: Iacfeb4a0c2bff254e5bcc8d58582994cd0f3993a
* fix strings more in 1da3af5f1eb6a32fd0ab10da7cf2f8ddb298a3a1Michael Stahl2013-02-221-12/+14
| | | | Change-Id: I7d4cf698721fcf972bf35babb6d53369719eed18
* fix string conversion 1da3af5f1eb6a32fd0ab10da7cf2f8ddb298a3a1Michael Stahl2013-02-221-3/+4
| | | | Change-Id: I18f80b5fd6aa11ed78fe2b1bee3cb9f843cf203e
* [Uu]sefull -> [Uu]sefulJulien Nabet2013-02-221-1/+1
| | | | Change-Id: I5dad83789ff9b6815561208679a5e19821041e1f
* unused local variableAndras Timar2013-02-221-1/+0
| | | | Change-Id: I8d8019b6947c1f989d897389379f2b6bb396cfbb
* fdo#38838, ::rtl::OUString, String to OUStringGergő Mocsi2013-02-2218-575/+568
| | | | | | | | | | | | | | | I have cleared out String and ::rtl::OUString calls in module dbaccess/source/core/misc. It was mainly file dbaccess/source/core/misc/dnstypes.cxx , and it's usages. There are still some calls in dbaccess for this class(ODnsTypeCollection), that needs refactoring (eg. in file DbAdminImpl.cxx, method "String ODbDataSourceAdministrationHelper::getConnectionURL() const"). Remaining calls will be my next task (in module dbaccess). I also clear out deprecated macro RTL_CONSTASCII_USTRINGPARAM every time I find one. The class I've mentioned above (ODnsTypeCollector) is OK. Change-Id: Ia0f3bb8cc649d1ecf8decc093f8a1a20ee23c33c Reviewed-on: https://gerrit.libreoffice.org/2289 Reviewed-by: Andras Timar <atimar@suse.com> Tested-by: Andras Timar <atimar@suse.com>
* s/the the/the/Tor Lillqvist2013-02-2210-10/+10
| | | | Change-Id: Iadacffaad832c6ff06757e8567e24f929f24a4c3
* s/whith/with/Tor Lillqvist2013-02-221-3/+3
| | | | Change-Id: I23da81c182ad30faf871d98e55820295418207d0
* Fix type unkown -> unknownJulien Nabet2013-02-211-1/+1
| | | | Change-Id: I8d55d5ae5ae38ae2b252859b5400e36301f19ef0
* generic integers to enumsLuboš Luňák2013-02-211-1/+2
| | | | Change-Id: Ic43283b9e1666c0f2162e277dc79fc6f992ef616
* fdo#38838, ::rtl::OUString to OUString, String to OUStringGergő Mocsi2013-02-193-110/+105
| | | | | | | | | ::rtl::OUString was replaced to OUString and all occurences of String was replaced to OUString in dbaccess/source/core/api Change-Id: I9771708408e04dcebe18f49a75c83036740f0ca2 Reviewed-on: https://gerrit.libreoffice.org/2239 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* update pch headers, broken by 1aaf9a9Luboš Luňák2013-02-131-0/+2
|
* fdo#46808, convert xmloff module code to use XComponentContextNoel Grandin2013-02-124-10/+21
| | | | | | with lots of repurcussions in other modules Change-Id: I6982671eecc701b06cf85d93533e1fe618044fea
* fdo#46808, convert io::TextOutputStream service to new-styleNoel Grandin2013-02-111-12/+6
| | | | Change-Id: I12af47afc21c2b646197893a77698f4e0818f94f
* fdo#46808, convert io::TextInputStream service to new styleNoel Grandin2013-02-111-8/+8
| | | | Change-Id: Ida4abdd6587399aa8ade88af672bcb23ab7ea0f1
* fdo#46808, Use service constructor for awt::DialogProviderNoel Grandin2013-02-111-8/+5
| | | | Change-Id: I5d0a3e66afeadafa6d53ff0a255d036b7e3d528d
* fdo#46808, Adapt document::XML*BasicExporter UNO services to new styleNoel Grandin2013-02-112-8/+17
| | | | | | | | The services are document::XMLBasicExporter document::XMLOasisBasicExporter Change-Id: Ifd93e5735cae94d34904d79769cdb3edf587fe43
* fdo#46808, Adapt java::JavaVirtualMachine UNO service to new styleNoel Grandin2013-02-117-18/+17
| | | | Change-Id: Ib0329b9cdc4290ce98c4182e8466c1b44b408341
* Fix busted multi-repeated column in evolution database viewCaolán McNamara2013-02-071-0/+12
| | | | | | | | | | | | | | | | | | In the evolution address book where we have real column names of e.g. first_name, second_name and city. On parsing via OSQLParseTreeIterator::appendColumns that creates some labels using those real names but the evo XResultSet gives them proper labels of First Name, Second Name and City the munge means that here we have e.g. just "City" as a label because it matches, while the others don't The symptoms are to load the evolocal.odb and of the 128 columns column 5 is repeated until 128 This is all a horrible confusing mess. It seems safest to catch the mismatch of column counts and throw away the partial list and force a generate of a full list. Change-Id: I1d6e2a282bdd43acac63c366eb2a9d029aa17878
* remove obsolete hidother.src filesAndras Timar2013-02-061-387/+0
| | | | Change-Id: Ieb30afd81d16d184e0276ce7699b848f26a00013
* ORowSetValue: clean up sign/unsigned union memberDavid Ostrovsky2013-02-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also switch BOOLEAN constructor from sal_Bool to bool. old/new signed/unsigned storage situation: ------------------------------------------------------- SQL type | signed | unsigned old | unsigned new ------------------------------------------------------- TINYINT | sal_Int8 | sal_Int16 | sal_uInt8 SMALLINT | sal_Int16 | sal_Int32 | sal_uInt16 INTEGER | sal_Int32 | sal_Int64 | sal_uInt32 BIGINT | sal_Int64 | pValue (String*) | sal_uInt64 ------------------------------------------------------- When sticking an UNSIGNED TINYINT into an Any, silently promote it to UNSIGNED SMALLINT (that is sal_uInt16), else Any would take it as a sal_Bool and normalise to sal_True (1) or sal_False (0). When constructing an ORowSetValue from a sal_Bool, silently keep it as an unsigned 8 bit integer (that is understand it as a sal_uInt8). This will work in most cases, since when asked back for a bool or sal_Bool, we'll give back the right value. Only code looking at the type tag could possibly make a "wrong" decision. The main (hopefully only?) path through which this would happen is through an implementation of XParameters::setBoolean XRowUpdate::updateBoolean that would use its sal_Bool argument to construct an ORowSetValue. So make sure each implementation constructs a proper BOOLEAN so as not to get confused. For authorship/copyright purposes, this patch is a cooperation between Lionel Elie Mamane <lionel@mamane.lu> and David Ostrovsky <david@ostrovsky.org> Change-Id: I3f1f08716127147f077bff4edb6ec558b1b09e09
* use OUString(Buffer) in class EditChr. Rossmanith2013-02-045-15/+15
| | | | | | | | | replaced Len() with isEmpty() where appropriate Change-Id: I5a5847d6055f376fd5f86079aa1736541d790fff Reviewed-on: https://gerrit.libreoffice.org/1892 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
* fdo#46808, fix calling conventionNoel Grandin2013-01-281-3/+3
| | | | Change-Id: I72b7945a6a8838e97184a27661520de55ac45e73
* fdo#46808, Adapt document::*PropertyValues UNO service to new styleNoel Grandin2013-01-281-4/+4
| | | | | | | | | The services are: document::NamedPropertyValues document::IndexedPropertyValues The services already existed, they just did not have IDL files Change-Id: Ibafe9b5afb9b30785df4f66aa923f4b96ceabeed
* fdo#46808, convert code to use new-style service constructorNoel Grandin2013-01-281-28/+21
| | | | Change-Id: I1b50f7ef6c01d13abd15ba3a76bd683a0151a914
* fdo#46808, Adapt sdb::TableDefinition UNO service to new styleNoel Grandin2013-01-287-11/+28
| | | | | | The service already existed, it just did not have an IDL file Change-Id: Iaac84da8baa3a060eef339d8e477f86ca49fae08
* fdo#46808, Adapt document::GraphicObjectResolver UNO service to new styleNoel Grandin2013-01-281-4/+2
| | | | | | The services already existed, it just did not have an IDL file Change-Id: I245f78c165dbfde11a981efd7033c5c282f4e8ad
* Remove more STRINGPARAM macros form dbaccessMarcos Paulo de Souza2013-01-2714-126/+95
| | | | | | | Change-Id: I283ccd03dc811dda2f10963f400cd517f42ea7b3 Reviewed-on: https://gerrit.libreoffice.org/1878 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
* gbuild: do not copy boost headers aroundMichael Stahl2013-01-265-1/+12
| | | | | | | | | - 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
* Change GetSavedValue() to return OUStringChr. Rossmanith2013-01-247-14/+14
| | | | | | removed temporarily added OUString(...GetSavedValue()...) constructs again Change-Id: I11477654d217a5ae127c1ef1b19cbff56ed052a6
* rename SfxSingleTabDialog to SfxNoLayoutSingleTabDialogCaolán McNamara2013-01-242-3/+3
| | | | Change-Id: I4922b719bf819879909e9949bf7946f20914d1e5
* show errors as errors, not warningLionel Elie Mamane2013-01-233-4/+26
| | | | Change-Id: I32e514fbfbd323b688b25b9e2165d0c76e3c4db5
* fix handling of subqueries in query designLionel Elie Mamane2013-01-233-36/+51
| | | | | | | | | | | | | | | | | | | - don't remove parentheses around subqueries (without the parentheses, it is not valid SQL) * when saving a Field (name value) typed by the user interactively * when parsing SQL and constructing the initial Query Design view - automatically add the necessary parentheses when a SELECT statement is entered as column name Also: In code saving a Field (name value) typed by the user interactively, factorise some common code Assorted minor fixes (typos in comments, etc) Change-Id: I3843258323c903cba23238b0730ec4eb5875f792
* SQL parser: no "as" rule anymore; now as_clause and opt_asLionel Elie Mamane2013-01-231-1/+2
| | | | Change-Id: Ib0c7151b311029318c213abb86e6541e3b27d040
* ISO8859-1 -> UTF8 in commentLionel Elie Mamane2013-01-231-1/+1
| | | | Change-Id: I8a67235e5110618f45fe9d9467bbb7ff90c7c712
* Remove more STRINGPARAM macros from dbaccessMarcos Paulo de Souza2013-01-218-77/+48
| | | | | | | Change-Id: I5a5af27d7c980f6b71011c33531a49a82d79fbc8 Reviewed-on: https://gerrit.libreoffice.org/1771 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
* Changed SetText() / GetText() to take/return OUStringChr. Rossmanith2013-01-2118-59/+59
| | | | | | | | | replaced lots of Len() with isEmpty() Change-Id: I6b82d48245ee2a0782e05a326f7934e9357227d0 Reviewed-on: https://gerrit.libreoffice.org/1795 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
* mark *all* tables of a nested join as addedLionel Elie Mamane2013-01-181-18/+33
| | | | | | Else, if the n^{th} (with n>2) table also appears in a (non-NATURAL) INNER JOIN, it is repeated later, leading to an error from the database engine Change-Id: I03e0f0ef51f45be9d7ddfa63a9dbe09dc500f8dd
* OXMLDataSourceSetting::convertString: try to make Clang tb happyMichael Stahl2013-01-161-21/+14
| | | | Change-Id: I8b2509f28206fd5b6c20c88d9186a9a18f76f7a5
* fix buildLuboš Luňák2013-01-161-2/+2
| | | | Change-Id: I1697e761061c21826f57d4b2f4694ee03cdfb05d
* Sanitize/simplify some parameters of functions in dbaccessMarcos Paulo de Souza2013-01-161-27/+25
| | | | | | | | | | | | | | | | | Some functions have parameters of OUString, so, we don't need this type of junk: ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "LayoutManager" ) and we can use directly: "LayoutManager" I believe this brings some simplification to the code, at first glance! Also in this patch, changed some equalsAsciiL to ==, this simplifies more code yet. Change-Id: I38b8076afb84d77ed51c7be407c7f899d80829ff Reviewed-on: https://gerrit.libreoffice.org/1707 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#57950: dbaccess: STRINGPARAM and more chained appendsMarcos Paulo de Souza2013-01-1611-123/+72
| | | | | | | Change-Id: Iab1ba5eb6702d386e2775d7426c3398b606d2d97 Reviewed-on: https://gerrit.libreoffice.org/1706 Reviewed-by: Luboš Luňák <l.lunak@suse.cz> Tested-by: Luboš Luňák <l.lunak@suse.cz>
* fdo#46808, Convert comphelper::MimeConfigurationHelper to XComponentContextNoel Grandin2013-01-153-3/+3
| | | | Change-Id: I74b4f0c4a84f02b218102405eaba24cf47f654ce
* fdo#46808, Adapt embed::*EmbeddedObjectCreator UNO services to new styleNoel Grandin2013-01-151-91/+86
| | | | | | | | | | The services already existed, it just did not have an IDL file. Adapts com.sun.star.embed.OOoEmbeddedObjectFactory com.sun.star.embed.OLEEmbeddedObjectFactory com.sun.star.embed.EmbeddedObjectCreator Change-Id: I8ba01c7fd956a46c87d02dc7d61bdd5fcdf21ab8