Commit graph

5857 commits

Author SHA1 Message Date
Lionel Elie Mamane
e382cc5c08 fdo#33047: no data accessible if filename contains "?" 2011-10-30 16:00:00 +01:00
Lionel Elie Mamane
6efdf794cd factorise multiple SQL_ISRULEOR2 implementations into one 2011-10-30 13:37:02 +01:00
Julien Nabet
14e3351b22 Small fix OParseNode->OSQLParseNode 2011-10-30 13:32:11 +01:00
Lionel Elie Mamane
be1bc3c80a wrong logic in comment 2011-10-30 12:39:38 +01:00
Lionel Elie Mamane
2cd03f687f Typo/spelling in comment 2011-10-30 12:39:38 +01:00
Lionel Elie Mamane
70511e6e15 Errors in comments 2011-10-30 12:39:37 +01:00
Lionel Elie Mamane
74816f998b translate comments 2011-10-30 12:39:37 +01:00
Lionel Elie Mamane
338ea7617f Return proper UNKNOWN_RULE instead of 0 for unknown rule
also make unknown rule -1 to better separate it
Before, an unknown rule actually went to 0 == OSQLParser::select_statement
2011-10-30 12:39:37 +01:00
Lionel Elie Mamane
98b5910149 Introduce combined 2&3 test for SQL Token 2011-10-30 12:39:36 +01:00
Lionel Elie Mamane
2053a71686 8.5 is not an integer, but an approxnum 2011-10-30 12:39:36 +01:00
Lionel Elie Mamane
d8e643124e overhaul / enhance / translate / ... comments 2011-10-30 12:39:35 +01:00
Noel Power
d0fb0305c4 tweak debug messages from commit 9b58d93530 2011-10-28 10:38:53 +01:00
Terrence Enger
9b58d93530 leaking connection handle
call SQLDisconnect;
check returns from SQLDisconnect and SQLFreeHandle
2011-10-28 10:19:04 +01:00
Stephan Bergmann
b786a33cfd Undo basis/brand split: Move SDK and ure-link, remove OOO_BASE_DIR and BaseInstallation. 2011-10-24 13:59:58 +02:00
Stephan Bergmann
fd1db0b8eb Undo basis/brand split: move program/classes/ from basis to brand.
Also removed apparently unused UNO_JAVA_COMPPATH ProfileItem.
2011-10-18 12:52:06 +02:00
Pierre-André Jacquod
c528a8e48d cppcheck scope reduction in connectivity/.. main.cxx 2011-10-07 15:57:40 +02:00
Michael Meeks
738f9cc6a7 fix OString concatenation 2011-10-05 14:22:04 +01:00
Tor Lillqvist
2bc6f3424b Use OString::getStr() now 2011-10-05 14:09:45 +03:00
Caolán McNamara
9bb187006a Resolves: fdo#34309 odbc fractional seconds are in billionths 2011-10-05 12:01:10 +01:00
Caolán McNamara
ceb199f0bf conversion operator gone now 2011-10-05 09:34:32 +01:00
Tor Lillqvist
1967376c7b WaE: deletion of pointer to incomplete type; no destructor called
Move the struct OSQLParser_Data definition to the sqlparse.hxx
header. A somewhat ugly workaround for warning C4150: deletion of
pointer to incomplete type 'connectivity::OSQLParser_Data'; no
destructor called.
2011-10-04 18:51:13 +03:00
Tor Lillqvist
67a565eabf WaE: unreachable code 2011-10-04 18:43:23 +03:00
Stephan Bergmann
011320d569 Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *() in Mac OS X only code. 2011-09-29 14:50:17 +02:00
Stephan Bergmann
6671fa81db Removed uses of rtl::O[U]String[Buffer]::operator sal_{char|Unicode} const *(). 2011-09-27 20:22:03 +02:00
Pierre-André Jacquod
bd4200dc20 cppcheck: delete unneeded variable in connectivity testmoz/main.cxx 2011-09-26 22:02:40 +02:00
Caolán McNamara
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
Thomas Arnhold
be6a8677a6 OSL_TRACE: Remove trailing newlines
Done with perl regex:
s/(\n\s*OSL_TRACE\(\s*\"[^\n]+?)\s*(\\n)+(\"[^\n]*\)\;\n)/$1$3/gs;

- removed trailing whitespaces and (multiple) newlines
2011-09-21 09:28:39 +02:00
Caolán McNamara
94d8c09758 rework this in terms of read_uInt8s_AsOString 2011-09-19 09:59:21 +01:00
Caolán McNamara
32b2e810ad use read_uInt8s_AsOString and comphelper::string::padToLength
which allows us to simplify the read in DTable.cxx quite a bit
2011-09-17 23:20:46 +01:00
Caolán McNamara
ba3ac57713 memcpy is of the same length as preceding memset 2011-09-17 23:20:45 +01:00
Tor Lillqvist
eab413f963 Make this compile with MSVC and _DEBUG 2011-09-15 13:14:38 +03:00
Tor Lillqvist
6b457882d0 We can't #define _HAS_ITERATOR_DEBUGGING 0 in just some of the source files
It seems that _HAS_ITERATOR_DEBUGGING affects the layout of some
classes, which of course means horrible breakage if some of the source
files are compiled with it, the rest not.

http://msdn.microsoft.com/en-us/library/aa985939%28v=vs.80%29.aspx
http://connect.microsoft.com/VisualStudio/feedback/details/334315/has-iterator-debugging-0-causes-crash

I will just have to fix the code in this handful of source files so
that it compiles with _DEBUG defined. If I can be bothered.
2011-09-15 12:02:59 +03:00
Lionel Elie Mamane
ca3df6a1b1 shouldEscapeDateTime() controls ODBC syntax for date literals, not ## format 2011-09-07 11:17:56 +02:00
Pierre-André Jacquod
3d411ec522 [cppchecker] unread Variable warning suppressed 2011-09-06 22:43:34 +02:00
Caolán McNamara
b9b22fa7f8 IBM jni.h has non-const SetByteArrayRegion final arg 2011-09-06 09:19:11 +01:00
Jenei Gábor
bc0a497f08 Fixes fdo#36594 Syntax error in SQL on "--" comment (and "//" and "/**/")
The SQL parser implementation does not handle comments.
Temporarily remove "-- ..." and "// ..." end-of-line comments and "/* ... */"
inline comments of a query and append comments after recomposition of the
query.

NOTE: The original comment positions are not preserved, all comments are
      appended to the query!

Based on the original patch further development was done for inline comments
and preserving comments' line order.
2011-09-03 01:19:51 +02:00
Tor Lillqvist
a647a54cd1 More #define _HAS_ITERATOR_DEBUGGING 0 to fix _DEBUG MSVC builds 2011-08-29 10:53:56 +03:00
Tor Lillqvist
a02a4272e0 Don't do the undef-redef dance for "MINIMAL_PROFILEDISCOVER" 2011-08-24 18:01:51 +03:00
Tor Lillqvist
785d8c762c Again, avoid debugging MSVC std::equal_range issue 2011-08-24 18:01:44 +03:00
Caolán McNamara
d1fb13adf9 convert tools::Config to rtl::OString 2011-08-19 09:30:44 +01:00
Caolán McNamara
2add3f0e5a drop it completely 2011-08-19 09:30:43 +01:00
Caolán McNamara
b5736291ed registered but uninstalled database drivers break address book wizard
among other things undoubtedly. The idea was IIRC to drop adabas
support, so lets not register the uninstalled components, and
while we're at it not build it either.
2011-08-18 09:16:01 +01:00
Kohei Yoshida
aea70b22af Fixed build breakage. 2011-08-18 00:11:46 -04:00
Caolán McNamara
061ebc3446 add a getToken wrapper for extracting a single token painlessly 2011-08-15 09:21:49 +01:00
Caolán McNamara
3324eca4ed ByteString->rtl::OString 2011-08-15 09:21:48 +01:00
Lionel Elie Mamane
fbe20a2245 =class OTableHelper: typo in private member name: refreshFor*gei*nKeys 2011-08-14 12:15:07 -05:00
Caolán McNamara
5298b1b32d callcatcher: ditch some more methods 2011-08-08 13:04:46 +01:00
Caolán McNamara
2f8580e008 delete/delete[] mismatch, thanks to Terrence Enger 2011-08-05 16:03:10 +01:00
Takeshi Abe
5b7e8986ff fixed typo 2011-08-04 00:15:24 +09:00
Tor Lillqvist
882a522d84 Deliver also static libraries 2011-08-01 01:27:28 +03:00