Commit graph

6026 commits

Author SHA1 Message Date
Lionel Elie Mamane
88b58e9613 pgsql-sdbc: move libpq link *first* in libs; hopefully will fix tinderboxes 2012-02-02 21:34:38 +01:00
Lionel Elie Mamane
c39cec2f91 pgsql-sdbc: libpq dependencies *after* libpq seems to be the right after all 2012-02-02 21:21:49 +01:00
Lionel Elie Mamane
1f741dfeea pgsql-sdbc: put libs libpq needs *before* libpq in the link line 2012-02-02 18:38:36 +01:00
Tor Lillqvist
aa5404b92f Silence a few lines of pointless verbiage 2012-02-02 17:55:48 +02:00
Caolán McNamara
5e2b41dbfe unsigned int->sal_uInt32 2012-02-02 10:17:12 +00:00
Lionel Elie Mamane
7bd9ce1fae pgsql: simpler / safer check for system column 2012-02-01 18:56:41 +01:00
Lionel Elie Mamane
0adf5eed03 pgsql getColumns: order by columns, not by their concatenation... 2012-02-01 18:41:14 +01:00
Lionel Elie Mamane
77646473e3 pgsql: implement getColumnPrivileges, generate statement only once 2012-02-01 18:41:13 +01:00
Lionel Elie Mamane
356033d465 pgsql: clean comments 2012-02-01 18:41:13 +01:00
Lionel Elie Mamane
76c34665da postgres getColumns: skip dropped columns, make ORDINAL_POSITION consecutive 2012-02-01 18:41:13 +01:00
Lionel Elie Mamane
8c922d8327 fdo#45254 getTablePrivileges: rely on information_schema
This avoids the use of aclexplode(), which is only SQL-available in PostgreSQL 9.0 and later.
With PostgreSQL versions known to have the information_schema.table_privileges bug of not filling in the default ACL in the absence of an ACL, fill in "owner has all rights", which is the default state of the default ACL.
2012-02-01 18:41:12 +01:00
Lionel Elie Mamane
ab2fb9c4f9 remove erroneously committed debug code 2012-01-29 20:18:39 +01:00
Tor Lillqvist
1518468ae0 WaE: format '%d' expects type 'int', but argument 3 has type 'sal_Int32' 2012-01-29 20:42:20 +02:00
Lionel Elie Mamane
19ef5bcc8d use proper sizes for SQL(Get|Set)StmtAttr
Fixes fdo#34432 (driver smashes our stack)

Continuation of
commit 9a466d9718
Author: Lionel Elie Mamane <lionel@mamane.lu>
Date:   Tue Nov 29 17:49:36 2011 +0100

    ODBC: use right integer length to get Statement Options
2012-01-29 19:00:46 +01:00
Lionel Elie Mamane
63b6b1d612 make OTools::getValue insanely safe, factorise get{Int,Long,Byte,...} 2012-01-29 19:00:38 +01:00
Tor Lillqvist
a6ed487d97 Decrease verbiage a little bit 2012-01-27 15:52:23 +02:00
Alexander Bergmann
0439af27e1 Code cleanup: ( () ) replaced by (()) 2012-01-26 17:41:07 +00:00
Caolán McNamara
aeab59f2b0 NDebug.hxx is gone now 2012-01-24 17:04:42 +00:00
Thomas Arnhold
e8d4222a1c Remove evoab debug facility and use SAL_INFO 2012-01-24 10:27:04 +01:00
Olivier Hallot
5581125423 Fix for fdo43460 Part XLIV getLength() to isEmpty()
Part XLIV
many modules(inc's)
2012-01-23 19:17:18 -02:00
Stephan Bergmann
c97d74b5f0 fdo#45090: Changed postgresql-sdbc from bundled oxt to proper optional part.
Replaced --enable-ext-postgresql-sdbc with --disable-postgresql-sdbc.
Renamed postgresql-sdbc.uno{.ini,rc} to consistent postgresql-sdbc.ini
(which made the code a little easier).

Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch>

(cherry picked from commit 3a7ae48b6f)
Conflicts:
	configure.in
	connectivity/source/drivers/postgresql/makefile.mk
2012-01-23 20:31:57 +01:00
Michael Stahl
7177eebc69 connectivity: fdo#43479: sort order doesn't matter 2012-01-23 13:44:52 +01:00
Thomas Arnhold
22da27d9dd Improve checking for emptiness 2012-01-21 19:58:46 +01:00
Michael Stahl
35e8190b03 connectivity: fdo#43479: fix crash on DISTINCT:
Since commit f89f2b8bf5,
OResultSet::sortRows() works on the rows after SELECT, not on full rows.
So OResultSet::OpenImpl() has to be adapted to not use the mapping from
selected columns to entries rows in m_aColMapping any more; instead,
use the given ORDER BY clause for sorting.
But first extend the sort order to cover all columns, so it is no longer
necessary to call sortRows twice (this should be legal, because SQL says
the order of rows that are equal in ORDER BY columns is unspecified).
2012-01-20 15:16:37 +01:00
Stephan Bergmann
2fbefa3d30 Change back to 32 bit (which is hopefully right). 2012-01-19 20:54:35 +01:00
Michael Meeks
c6b8c461bb WaE: fix misc. SvStream operator problems. 2012-01-19 10:00:32 +00:00
Lionel Elie Mamane
c2567a6587 janitorial: typo in comments 2012-01-18 12:37:23 +01:00
Lionel Elie Mamane
b713652b33 Also teach "foo IS [NOT] bar" to our SQL parser (when bar is not NULL)
Syntax supported by at least SQLite.
2012-01-17 15:47:44 +01:00
Lionel Elie Mamane
6031d1285c fdo#44813: teach "IS (NOT) DISTINCT FROM" to our SQL parser 2012-01-17 15:47:43 +01:00
Michael Stahl
88cceffc27 connectivity: dbase: global variable cleanup 2012-01-14 21:22:11 +01:00
Stephan Bergmann
bb59742bcf Confine JDBC driver to thread-affine apartment for Java 6 performance
... so that the massive number of the JDBC driver's calls to JNI Attach/Detach-
CurrentThread are guaranteed not to happen on the main thread (where they are
extremely expensive, see
<http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6978641> "Fix for 6929067
introduces additional overhead in thread creation/termination paths").
2012-01-13 09:43:26 +01:00
Stephan Bergmann
41320291f7 Dead code. 2012-01-12 10:58:54 +01:00
Caolán McNamara
3c62fbcdd7 simplify LocalFileHelper::ConvertURLToPhysicalName 2012-01-10 10:09:28 +00:00
Julien Nabet
8d7e1a6e13 Enabling Icedove addressbook connection for Base (Thank you Caolan) 2012-01-09 23:57:26 +01:00
Julien Nabet
948f57e74d Fix fdo#44065 2012-01-07 17:52:14 +01:00
Marcel Metz
d59211357a Removed unnecessary tools/debug.hxx includes. 2012-01-06 23:55:51 +01:00
Caolán McNamara
6be6357cce generic unix .mozilla dir is under home dir, not xdg-config-dir 2012-01-06 10:25:42 +00:00
Marcel Metz
571ad11bc0 Removed unnecessary tools includes. 2012-01-05 15:36:41 +01:00
Marcel Metz
79646372a0 Removed unnecessary tools includes.
Hello lo-devs,

this patch series removes a lot of unnecessary includes for the various
tools header. The patches without suffix should be applied to the core
repository, the .binfilter.patch suffix should be applied to the
binfilter repository. I've tested the build with the configuration
--enable-binfilter --enable-dbgutil --enable-debug, is this sufficient
or did I miss another important configuration, that enables some
conditional compiled code? I've only build this on linux-x86_64, but the
patch also touches some of the mac specific code like
fpicker/source/aqua/SalAquaFilePicker.mm so it would be maybe a good
idea to test this patch.

regards Marcel Metz
2012-01-05 15:31:29 +01:00
Caolán McNamara
bacfd2dc4c add a comphelper::string::getTokenCount
suitable for conversion from [Byte]String::GetTokenCount
converted low-hanging variants to rtl::O[UString]::getToken loops
added unit test
2012-01-05 09:18:19 +00:00
Caolán McNamara
f80d462331 callcatcher: drop some unused methods 2012-01-05 09:18:15 +00:00
Caolán McNamara
5a4c200bb7 catch by const ref 2012-01-05 09:18:15 +00:00
Norbert Thiebaud
930f5f1729 now that QADEVOOO build_type exist we need to use it... 2011-12-30 16:08:10 -06:00
Rene Engelhard
36d7f011a3 build qadevOOo only if OOO_JUNIT_JAR are set (add BUILD_TYPE) 2011-12-30 16:40:35 +01:00
Norbert Thiebaud
8b18c70b99 clean-up remnant obsolete CALL_CDECL 2011-12-24 21:42:09 -06:00
Rene Engelhard
a8feb5b1df support libebook-1.2.so.12 (evolution 3.2) 2011-12-24 14:11:09 +01:00
Caolán McNamara
80a11f0d43 ByteString->rtl::OString 2011-12-22 09:07:47 +00:00
Caolán McNamara
c4f0efc237 convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 13:44:52 +00:00
Caolán McNamara
6708977331 needs more work first
This reverts commit 92f396733e.
2011-12-21 10:30:10 +00:00
Caolán McNamara
92f396733e convert ReadByteString/WriteByteString from ByteString to OString
Nobody ever used the return values anyway, so for reading just
return the string and for writing the number of bytes written

Doesn't need to be members, make standalone functions

Rename  to
read_lenPrefixed_uInt8s_ToO[U]String and
write_lenPrefixed_uInt8s_FromO[U]String, lengthy,
but much less unambiguous, seeing as a lot of users of it don't
seem to be aware that they read/write pascal-style length
prefixed strings, which isn't surprising given the
apparent simplicity of their original name.

added a unit test
2011-12-21 10:10:58 +00:00