summaryrefslogtreecommitdiff
path: root/connectivity
AgeCommit message (Collapse)AuthorFilesLines
2013-06-29fdo#66130 correct "skip column name" condition for LIKE predicateLionel Elie Mamane1-1/+1
When converting a parse tree to SQL snippet for a predicate in the context of a column, we skip the name of the same column in 'simple' cases. This is used mainly in the "Criterion" lines of query design, and in the search/filter dialogs of forms, tables, etc. In all other cases (such as when creating a full SQL command, or for references to *other* columns than the context one), the column name must be printed out. In this respect, the condition "should we skip the column name?" in impl_parseLikeNodeToString_throw was buggy, and different from the one in the general case (in impl_parseNodeToString_throw), leading to generating invalid SQL like: SELECT foo, bar FROM baz LEFT JOIN qux ON LIKE qux.quu instead of SELECT foo, bar FROM baz LEFT JOIN qux ON baz.baa LIKE qux.quu Change-Id: Ie14fce319554a66feb0fd0ce1a03d947a46a820a Reviewed-on: https://gerrit.libreoffice.org/4606 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28Replace buggy pgsql-sdbc datetime functions with dbtools equivalentsLionel Elie Mamane6-123/+22
In particular, the string2time function segfaults when called on an empty string (unconditionally tries to access the n-th character without checking whether the string is that long) this happens in particular when reading a column of type TIME with a NULL value Change-Id: I302044f67a92fe20685ce677ba3affdb9b44cb53 Reviewed-on: https://gerrit.libreoffice.org/4582 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28fix nanosecond computationLionel Elie Mamane1-57/+42
when less/more than nine digits Change-Id: I222ae7c51e37468a01abc9caab91657ea2593d13 Reviewed-on: https://gerrit.libreoffice.org/4592 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28fdo#66216 JDBC no fractional second in time formatLionel Elie Mamane1-1/+2
fractional second allowed in timestamp. But not in time. Don't ask why. Change-Id: I5415889ab4cf4835b8b0db7363b7d9eb0a332393 Reviewed-on: https://gerrit.libreoffice.org/4566 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28fdo#66216 fix DBTypeConversion::toTime overflowLionel Elie Mamane1-2/+2
Change-Id: I0aba2344afde94226cfbac5b3221e827e6774b3a Reviewed-on: https://gerrit.libreoffice.org/4565 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-28fdo#66216 fix DBTypeConversion::toTimeString formatLionel Elie Mamane1-4/+7
std::ostringstream::width is not sticky Change-Id: I32d77bec68506b7691a4f86dadb24e62fdc13d42 Reviewed-on: https://gerrit.libreoffice.org/4564 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-06-24fdo#49708 when there is no Primary Key, there is no Primay KeyLionel Elie Mamane1-2/+9
As opposed to a primary key with empty name and no columns (!) Change-Id: I78ca185947a0e8d37bac64bd50add155afaeed47 Reviewed-on: https://gerrit.libreoffice.org/4431 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>
2013-06-18fdo#65653 make columnMatchP saferLionel Elie Mamane1-0/+3
Change-Id: Id994ab5aed6172d8a93fd331a366fca10a663a48 Reviewed-on: https://gerrit.libreoffice.org/4338 Reviewed-by: Zolnai Tamás <zolnaitamas2000@gmail.com> Tested-by: Zolnai Tamás <zolnaitamas2000@gmail.com>
2013-06-15fdo#65653, fdo#65619, fdo#65216: Missing checkZolnai Tamás1-1/+1
Problem caused by commit: 16c9ce4877def18ca4578171a96615a632d08092 This commit contains code deduplication. The deduplication removed one needed check (rParam.xFiled.is()), which causes segfault when member function of rParam.xField is called inside columnMatchP(). Change-Id: Ibbdaa758dbbce4b76094e6cc120022ef276b30c4 (cherry picked from commit 10777b37536be16c6d2e167b59e9e31e37ba3517)
2013-06-03re-base on ALv2 code. Includes:Michael Meeks2-26/+19
Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1397337 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 Patches contributed by Andre Fischer Fixed getcsym.awk to handle #-comments that contain special regexp chars. http://svn.apache.org/viewvc?view=revision&revision=1230971 118778: Added ADDITIONAL_REPOSITORIES environment variable and its automatic setup in configure. http://svn.apache.org/viewvc?view=revision&revision=1232004 118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Herbert Duerr #i119168# use generic LICENSE file for langpacks and sdks http://svn.apache.org/viewvc?view=revision&revision=1310178 macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars http://svn.apache.org/viewvc?view=revision&revision=1183367 allow gbuild with empty sysroot on linux http://svn.apache.org/viewvc?view=revision&revision=1179186 Patches contributed by Ingo Schmidt native373: #164472# improvements for msi database http://svn.apache.org/viewvc?view=revision&revision=1167540 http://svn.apache.org/viewvc?view=revision&revision=1167539 Patches contributed by Jurgen Schmidt adapt setup package scripts to handle special DS_Store file for developer snapshot builds http://svn.apache.org/viewvc?view=revision&revision=1232430 imported patch extensions_i117681.patch http://svn.apache.org/viewvc?view=revision&revision=1172102 Patches contributed by Michael Stahl gbuild: RepositoryFixes.mk should be optional http://svn.apache.org/viewvc?view=revision&revision=1166123 xslt filter: remove the FLA horror wordml import filter: replace FLA usage with plain XSLT http://svn.apache.org/viewvc?view=revision&revision=1363727 Patch contributed by Oliver-Rainer Wittmann i#88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 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-23RHEL-5 baseline ver of flex doesn't have nounistdCaolán McNamara1-1/+1
lets try this hack, if it fails revert and I'll just manually update the baseline with a newer flex than flex-2.5.4a-41.fc6 Change-Id: If644489e80fc4e4cdba97808af0fe4d544d08646 (cherry picked from commit 2ae6f9d1d27f699a6dcf369ba018c93ea7d5def5)
2013-05-21Some more linking fixingFridrich Štrba1-0/+1
Change-Id: I92fbd3839fea6c730039259ce6f56d8082ffd19b (cherry picked from commit 303b6fe5bacd782dafbe370b472a9b724d782f2f)
2013-05-21Add tl for DbgUnhandledException()Tor Lillqvist1-0/+1
Change-Id: I612f0e473280342f4e406ebee7002a40622fbbf0 (cherry picked from commit 0dfa58bdd9bd2ee12fe00674e7a9a1b55939a84b) Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2013-05-21more linking fixNoel Grandin1-0/+1
for my diagose_ex.h change Change-Id: I6f9224942b5ccac0ae6b61a595bfe6a3c7463b7b (cherry picked from commit dbcc5bc9d936533794c194d7d33c59c840e76b68) Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2013-05-21fix for linkingNoel Grandin3-0/+3
caused by my commit 863d38fbfa4fb4861e476828c46410602100919e "move DBG_UNHANDLED_EXCEPTION out of line" Change-Id: Idfd84d987ba9151ba476ce0516a9e5fbdb2003ec (cherry picked from commit 6bf00f0f94394c62bddcd77b776e4e3592160201) Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>
2013-05-19flat db driver: reorganise OFlatTableLionel Elie Mamane2-142/+184
Change-Id: I5d522abdffaf1aeb4ae0996d3a19acdcca474f95
2013-05-19flat file db driver: clean up seekRowLionel Elie Mamane1-49/+57
Change-Id: Ib9057944c120522230d5ed00cf5d152e5f0b4726
2013-05-19janitorial: spelling in commentLionel Elie Mamane1-1/+1
Change-Id: I54854765c7ad88f1749d5ae7ad9203f6d29fa2b6
2013-05-19remove unused & suspicious methodLionel Elie Mamane2-32/+32
calls m_pTable->seekRow with m_nRowPos instead of m_nFilePos... Change-Id: Ibf9b4da3dffdd75402deb9e7a371a312e0464613
2013-05-19fdo#47951 flat text table: update m_nRowPos when moving by bookmarkLionel Elie Mamane1-0/+14
Change-Id: Iac154020b4b6309f92b1f68fa5bf79611dfcc91b
2013-05-19use safer/more explicit C++ castsLionel Elie Mamane1-1/+6
Especially in debug mode. Change-Id: I431851bd46da0f46fdb5cfaa19c76cb139823fa8
2013-05-19janitorial: clean up commentsLionel Elie Mamane1-6/+1
Change-Id: Iaa146aad75acdceaeb6701b069f0a538904af298
2013-05-19connectivity::file::OResultSet remove totally unused data memberLionel Elie Mamane2-2/+0
Change-Id: I5c4b2d72b600c8ce9de070dc82bf489d66144342
2013-05-19janitorial: typos in commentsLionel Elie Mamane1-2/+2
Change-Id: I6fbd522e796a8f1b6c13136f65bda11c19ffbda4
2013-05-15Spelling "separate" (etc) correctly is hardTor Lillqvist3-4/+4
2013-05-13fdo#64528 macab URL is sdbc:address:macab, not sdbc:address:macab:*Lionel Elie Mamane1-1/+1
Change-Id: I1e5721815c961e14484f78f449910908ed48aeb1
2013-05-10soltools: remove Package_inc and empty unistd.h nonsenseMichael Stahl1-0/+1
Change-Id: Ic05de69951b28b9cc8d62f0a534b507c424e6b25
2013-05-09coverity#982277: reosurce leakMarkus Mohrhard2-2/+0
Change-Id: I5d2b99645faf18e8af9bc0f0b4bff210f9ee8743
2013-05-08Fix connectivity on WindowsFridrich Štrba1-0/+1
Change-Id: I1db4f6a6c680de2143659040d06d299881d8a9c7
2013-05-07Yet another fix for missing sqlbison.hxxStephan Bergmann1-0/+1
Change-Id: I2fb97a1422ed82c79b7babff793dba700eba2369
2013-05-07Yet another fix for missing sqlbison.hxxStephan Bergmann1-0/+1
Change-Id: I85a7dd4454233141e1cefc04cf30f999babf6ae7
2013-05-07connectivity: fix up some more exotic libs...Michael Stahl4-3/+7
... for Package_generated removal Change-Id: I14d8da088964224b68fba03e920eeb5a2d19f9f5
2013-05-07connectivity: remove Package_generatedMichael Stahl10-31/+8
This one is ugly, the Yacc generated header is used in lots of places; the dependencies are already right because using the header requires using the dbtools library which builds the YaccTarget, so just yet another include path has to be added. Change-Id: I031fde80ac326551d4719533305b1ae35351ca43
2013-05-07officecfg: remove Package_cppheaderMichael Stahl1-0/+4
Instead include generated headers directly from workdir. Change-Id: I9d2bcc07175d2bbc16d3cc548c2245e7a4fb0c65
2013-05-06fix typos (wich instead of which)Philipp Riemer1-1/+1
2013-05-06fix typoPhilipp Riemer1-1/+1
2013-05-06remove usage of RTL_CONSTASCII_USTRINGPARAMLuboš Luňák5-8/+8
Mechanical removal of usage together with OUString ctor, done by compiler plugin. Change-Id: I554227f76df0dac620b1b46fca32516f78b462c5
2013-05-05oops. drop ALRT_hsqldb from Module tooDavid Tardon1-1/+0
Change-Id: I5f67cef527fe54030fd848d0411e82c30cc06713
2013-05-05drop pointless build of a resource fileDavid Tardon3-68/+1
Change-Id: Ic3d554bbcc8bdbad85c868c06d451bd6f12def54
2013-05-02Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks4-4/+0
Change-Id: I9f1102d4f0e189a048d8fccfe9cae246c0136311
2013-04-30Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks94-2158/+305
2013-04-29pgsql-sdbc: conninfo keywords as static table instead of series of "else if"Wol1-34/+25
New keywords can now simply be added to a static array rather than adding a new "else if" blocks for each keyword. Change-Id: Ib581b3e834a57e0dfa9d139bcb4ae7a0a52a5472
2013-04-26remove never-generated "predicate_check" entryLionel Elie Mamane1-1/+0
Change-Id: Ib3957fbadf6bfebfaabd5bef09aaf7ab21862cd6
2013-04-26QueryDesign: in criteria, remove matching column_ref in simple expressionsLionel Elie Mamane1-103/+126
Basically, in first children of infix predicates in search_conditions Change-Id: I0e2f8fbdde023b088f33d2e2fcbd41110f0e02a8
2013-04-26remove unused constLionel Elie Mamane1-5/+0
Change-Id: I94c274e8afc70fa702063d61139299a7bde9165b
2013-04-26QueryDesign: in criteria, remove column_ref when table *and* column name matchLionel Elie Mamane4-21/+59
As opposed to only the column name Change-Id: I261d13f23214f950daa55a5b63cd486e59a0e127
2013-04-26janitorial: indentation, spacing, ...Lionel Elie Mamane1-6/+6
Change-Id: Ie794e91783f8eaacf236070e7cdeb5b5f4361e9b
2013-04-26sal_Bool -> boolLionel Elie Mamane1-2/+2
Change-Id: I157e0e84cbc9832dd863607b8f52359596b51c8c
2013-04-25add missing deps on sqlbison.hxxDavid Tardon4-0/+16
Change-Id: I098a4514b9b32b1ecf96b1f2275f77bac540d557
2013-04-24gbuild: drop empty use_packages callsDavid Tardon5-15/+0
Change-Id: I8e9f70eb5d929c98b4379416c2259a74e31d587f Reviewed-on: https://gerrit.libreoffice.org/3503 Reviewed-by: David Tardon <dtardon@redhat.com> Tested-by: David Tardon <dtardon@redhat.com>