summaryrefslogtreecommitdiff
path: root/dbaccess
AgeCommit message (Collapse)Author
2012-07-14simplify include guardsThomas Arnhold
Change-Id: Id4210229b20a1d54b680ff1a2ccbcdd3684ecf5f
2012-07-14hrc cleanup: Remove include guards from src filesThomas Arnhold
Change-Id: I7d52837f4058bab1bb5a0137788521d12834d519
2012-07-14fix typoThomas Arnhold
Change-Id: I39ac02cfc84be133855594c89cf5a5f1db4c7fc6
2012-07-12debug unexpected exceptionLionel Elie Mamane
Change-Id: I404072caf6ddab0ed833586066507c7d332fcea4
2012-07-12warning C4101: unreferenced local variableMichael Stahl
Change-Id: I0648821a4d0c716371bb011df8cd9b21db79ccf5
2012-07-12hrc cleanup: Remove commented out lines in hidother.src filesThomas Arnhold
Change-Id: Ib83ea7e5b4647f5335f7efe7bebf819fa6810864
2012-07-09targetted rename xcr -> xmlscript to match includes and module nameMichael Meeks
2012-07-09some UniString->rtl::OUStringCaolán McNamara
Change-Id: Ie69b30094da25df23a36baca2c7723d6a41f48c3
2012-07-05removed useless forward declarations of classTakeshi Abe
Change-Id: I13cf52cc4e1cf8d5e2453d7ac4b68cc8c64cd011
2012-07-03ditch String::CreateFromAsciiCaolán McNamara
Change-Id: I2b482bd323ac510629c5ee31868010b7cd6ce691
2012-07-03Remove duplication of License/Credits informationStefan Knorr (astron)
A bit differently this time around: + remove Credits menu item from menu + remove License button from the About dialog Change-Id: I07c1e115aa209ef1d69458f5b188d73caaae4294
2012-07-03hrc cleanup: Remove unused hrc filesThomas Arnhold
Change-Id: I16d83ca3ea0e01f2c0f4115db18b97958e51afde
2012-07-02hrc cleanup: Remove include guardsThomas Arnhold
Also add some missing include guards. Change-Id: I320a3c017ca65d34f2cd516849bcde3dec9b33f1
2012-07-02Remove unused definesThomas Arnhold
Some of them were commented out for documentation purpose. Change-Id: I29a6b2cbe774b527f0c3a0be5675160817a7f3ce
2012-07-02hrc cleanup: Remove unused definesThomas Arnhold
Change-Id: Iaa7da7745fc01544d9a503b313479b2450810524
2012-07-02targetted improvement of UNO API includes / usageMichael Meeks
2012-07-02Remove unused definesThomas Arnhold
Change-Id: Ibc46eb4565d4df88e83882045b2ed6d31e487d16
2012-07-01Remove unused definesThomas Arnhold
Change-Id: Ic36b131ee9964a6671f7f41e1cad1631c43ad565
2012-07-01hrc cleanup: Remove unused resource definitionsThomas Arnhold
Change-Id: Ie3a3a65bfb628195940105d7261464989e9af3fa
2012-07-01Remove unused definesThomas Arnhold
Change-Id: I45e1618dcff920b63b7e21ba9e842eed684114d7
2012-07-01fdo#51497 Show output from SELECT statements in Execute SQL dialog.Phil Hart
These changes allow the user to optionally display the output from SQL SELECT statements in the "Execute SQL Statement" dialog. Change-Id: I9209a9e3b5ed100a88fa467078deb9f38c571d42
2012-06-29Convert code to Java5 generics in dbaccess moduleNoel Grandin
Some of the code need the warnings suppressed - unavoidable when dealing with the reflection interface. Change-Id: I2016c3f904bcebc4e34556eb5d231fc25761a9ce
2012-06-29re-base on ALv2 code.Michael Meeks
2012-06-29Remove some more include guardsThomas Arnhold
Change-Id: I7c62d086cb593744785abecae7a107686a4d65ce
2012-06-29Remove UNO includes commentsThomas Arnhold
Change-Id: I48e193322967fb75e93eaf81e9e2110d3056f92a
2012-06-27Reduce newline bloat at eofThomas Arnhold
Change-Id: I494ceee07d6825f9466cab810742d7f85291fe14
2012-06-25hrc cleanup: Remove two outdated filesThomas Arnhold
All definitions in SchSlotIds.hxx are unused, so remove it. Change-Id: I78c1266e9b9a0cf1433e6e3cc82a80f1fc4c7c8b
2012-06-21replace all but one .hdl include with equivalent .hpp includes.Michael Meeks
Change-Id: I15e94f112144549692d0c2babeb48c77adcb93a9
2012-06-21hrc cleanup: Remove unused definesThomas Arnhold
All of those defines (should) not be used at any point in the code. False positives may exist, because some macro names are getting generated by some template/macro foo. This is the version which compiled fine for me. Also there are many commented out lines removed. Change-Id: I6394024682e4ab3691eb72707a9363d41ba31df8
2012-06-21Remove unused dbexch.hrcThomas Arnhold
The only part where one definition was used was commented out. All other definitions in the hrc file were unused. Change-Id: I257e61b96271685e9321211846a0021059924abe
2012-06-19typo: paramters, paramaters -> parametersAndras Timar
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
2012-06-19Revert "Remove License/Credits menu items"Petr Mladek
GPLv3 has to be easily accessible. We should not hide it under too many mouse clicks. This reverts commit f4c567f8d4c46aca75f7c73d67e0bc952b4c2e2d.
2012-06-18Remove License/Credits menu itemsStefan Knorr (astron)
The About dialog now houses these functions. Change-Id: I7f751027564897a063d2910644c69680d471b6d9 Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2012-06-16targeted clean-upNorbert Thiebaud
Change-Id: I57d56ece9fd59a93d5081a394c3fe8d212290198
2012-06-16revert gmk4Norbert Thiebaud
Change-Id: I0c1f0495358bba6889d48d8bc500f880f7d5179c
2012-06-15hrc cleanup: Remove completely unused RIDsThomas Arnhold
These RID definitions aren't used at any other point. So remove them. Unused START and END definitions were commented out for documentation purpose. All definitions in basctl/source/basicide/tbxctl.hrc were unused, so I removed this file. Change-Id: I4713188a12b9da912b2a91b85ea4e54ca1aeb994
2012-06-15Remove dead codeThomas Arnhold
Change-Id: I65fe534a712ddcdd01b1f393a8244f603e891dc8
2012-06-14re-base on ALv2 code.Michael Meeks
2012-06-13reduce use of UniString ctor from null-terminated unicodearrayCaolán McNamara
Change-Id: I98361309ada084d8f78517ce88f210d785f59cc0
2012-06-11remove EraseLeadingChars and EraseTrailingCharsCaolán McNamara
Change-Id: Ib9797fe97cd008cc6508ce8cec47dc5373416892
2012-06-11callcatcher: update unused codeCaolán McNamara
Change-Id: Id5f730fc447b11000b266954f9e7f5287bad02f4
2012-06-08remove unused .mkNorbert Thiebaud
Change-Id: I909a659e8ebfae35ca42680a54fa62dbd726adb5
2012-06-09Remove superfluous empty lines on topThomas Arnhold
More than two lines are removed for readability. Change-Id: Ibff6cf68d7c512e240a54065b54a225bb23a782b
2012-06-06-Werror,-Wself-assign (Clang)Stephan Bergmann
Change-Id: I92f1271ad36e4ae1221182a3a446f36cf770e003
2012-06-06fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin
Update code to use factory method URLTransformer::create Change-Id: I3fd2e838497bcfd8fc949615c0e7d60a6ea47118 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-06fdo#46808, Adapt UNO services to new style, Part 7, updating ::createNoel Grandin
Update calls to factories to use new SimpleFileAccess::create method Change-Id: Ie5b0696fe2228a9033b19969245a53c21a61aa14 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>, added some tweaks.
2012-06-04bCheck is guaranteed by the for loop conditionLionel Elie Mamane
Change-Id: Ia54eaa5cb1aa8bb4a052cea25396b07f048ff74c
2012-06-04KeySet.cxx: fix boost include; also...Michael Stahl
... BOOST_STATIC_ASSERT_MSG was added in boost 1.46, while the internal boost is still at version 1.44, so use BOOST_STATIC_ASSERT instead. Change-Id: I14f8e48e31956b34a1a907cd2c4e454a5715889b
2012-06-04i#102625 avoid fetching same row twice in different queriesLionel Elie Mamane
We do a "SELECT * FROM table" just to fetch the primary key columns; so reuse the same XResultSet to fetch all columns. Else, we immediately issue a "SELECT * FROM table WHERE primary_key=current_value" to read the other columns, which is wasteful and particularly silly. Commit 1ae17f5b03cc14844fb600ca3573a96deb37ab3b already tried to do that, but was essentially reverted piecewise because it caused fdo#47520, fdo#48345, fdo#50372. Commit c08067d6da94743d53217cbc26cffae00a22dc3a thought it did that, but actually reverted commit 1ae17f5b03cc14844fb600ca3573a96deb37ab3b. This implementation fetches the whole current row and caches it in memory; only one row is cached: when the current row changes, the cache contains the new current row. This could be problematic (wrt to memory consumption) if the current row is big (e.g. with BLOBs) and nobody is interested in the data anyway (as would often be the case with BLOBs). Note that because of our "SELECT *", the driver most probably has it in memory already anyway, so we don't make the situation that much worse. This could be incrementally improved with a heuristic of not preemptively caching binary data (and also not LONGVARCHAR / TEXT / MEMO / ...); a getFOO on these columns would issue a specific "SELECT column FROM table WHERE primary_key=current_value" each time. The *real* complete fix to all these issues would be to not do "SELECT *" at all. Use "SELECT pkey_col1, pkey_col2, ..." when we are only interested in the key columns. As to data, somehow figure out which columns were ar interested in and "SELECT" only these (and maybe only those with "small datatype"?). Interesting columns could be determined by our caller (creator) as an argument to our constructor, or some heuristic (no binary data, no "big" unbound data). Also be extra smart and use *(m_aKeyIter) when getFOO is called on a column included in it (and don't include it in any subsequent SELECT). However, there are several pitfalls. One is buggy drivers that give use column names of columns that we cannot fetch :-| Using "SELECT *" works around that because the driver there *obviously* gives us only fetchable columns in the result. Another one is the very restrictive nature of some database access technologies. Take for example ODBC: - Data can be fetched only *once* (with the SQLGetData interface; bound columns offer a way around that, but that's viable only for constant-length data, not variable-length data). This could be addressed by an intelligent & lazy cache. - Data must be fetched in increasing order of column number (again, this is about SQLGetData). This is a harder issue. The current solution has the nice advantage of completely isolating the rest of LibO from these restrictions. I don't currently see how to cleanly avoid (potentially unnecessarily) caching column 4 if we are asked for column 3 then column 5, just in case we are asked for column 4 later on, unless we issue a specific "SELECT column4" later. But the latter would be quite expensive in terms of app-to-database roudtripe times :-( and thus creates another performance issue. Change-Id: I999b3f8f0b8a215acb390ffefc839235346e8353
2012-06-04Need to refresh row after moving to bookmark!Lionel Elie Mamane
Change-Id: Ia8d12d02829087309e248506a7d3b0f94b5a425e