Stephan Bergmann
19277d02fb
osl_getThreadIdentifier(0) -> osl::Thread::getCurrentIdentifier()
...
Change-Id: Ida9785c4b9fda0459769957734952e69d7a9de44
2013-08-21 14:19:10 +02:00
Andrzej J.R. Hunt
dd3a05c0ea
Fix -Wmaybe-uninitialized. (firebird-sdbc)
...
Change-Id: Icf72838624927482f52cbc1626b785c4fd6765ea
2013-08-21 11:29:44 +01:00
Andrzej J.R. Hunt
e43f05f5b1
Simplify some sql statements with multiple conditions. (firebird-sdbc)
...
By prepending a "WHERE (0=1)" we can avoid having to detect when
we specifically need to add "OR"s, and vice-versa for "AND", simplifying
the code.
Change-Id: Idde5c0691788051f87eb1e868bf6b74a8ae72da3
2013-08-21 11:29:44 +01:00
Andrzej J.R. Hunt
7358cf0082
Add custom wrapper for OKeysHelper.firebird. (firebird-sdbc)
...
Keys are handled as a constraint in firebird so need different handling
when dropping to other dbs.
Change-Id: Ifc4929a1ee7477260b9a279487d44edbb525a17a
2013-08-21 11:29:44 +01:00
Andrzej J.R. Hunt
a22f4351cc
Sanitize primary key names too. (firebird-sdbc)
...
Change-Id: I28b195280a02883c3bf597f4ded470ced0b74f14
2013-08-21 11:29:44 +01:00
Andrzej J.R. Hunt
e0157dfec5
Simplify/improve sanitizeIdentifier usage. (firebird-sdbc)
...
Change-Id: Ic0f66cc68b49a2e9d9f9b8b139a479a7179cc08b
2013-08-21 11:29:43 +01:00
Andrzej J.R. Hunt
36f23dd846
Remove unnecessary commit (firebird-sdbc).
...
Null flag has to be manually retrieved and isn't actually DDL.
Change-Id: I4ea88dcda1e4e0a2ae034572fb483415c7a5736d
2013-08-21 11:29:43 +01:00
Andrzej J.R. Hunt
1c3f2bff49
Retrieve nullable from correct table. (firebird-sdbc)
...
Change-Id: Iaa84c26bb87ea834297e67af7a3e0ac20efba574
2013-08-21 11:29:43 +01:00
Stephan Bergmann
293d31afa5
-Werror,-Wunused-private-field
...
Change-Id: I6e7960dbe16e729c706d1055aea1ded357308064
2013-08-20 23:16:20 +02:00
Andrzej J.R. Hunt
e6c4e419d6
Implement changing nullable. (firebird-sdbc)
...
Change-Id: I0aa745becbd8b3dae11917248205f46eb61c17de
2013-08-20 21:37:51 +01:00
Andrzej J.R. Hunt
84286f674b
Rearrange createStandardTypePart to not include extraneous parameters.
...
We specifically only want the type identifier but not any autoincrement/
nullabe parameters which have to be modified separately in some databases
(e.g. firebird).
Change-Id: I8b33bae8ce4aaf5f325c4156955140ad4fb17db7
2013-08-20 21:37:50 +01:00
Andrzej J.R. Hunt
4eaca49a5a
Simplify Users.createObject. (firebird-sdbc)
...
Unnecessary relic of Tables.
Change-Id: I8d36f2ad3b3dc877ba64e063415922895c1c25d9
2013-08-20 21:37:50 +01:00
Andrzej J.R. Hunt
38bc9693cc
Implement Catalog::refreshUsers. (firebird-sdbc)
...
Change-Id: I54ca18b36c19d5a13efd8a194b59f0d8aebbac4c
2013-08-20 21:37:50 +01:00
Andrzej J.R. Hunt
6b184f638d
Add skeleton sdbcx Users/User implementation. (firebird-sdbc)
...
Change-Id: I8a64f9776a618691fa61aa0e71067a0eb6176811
2013-08-20 21:37:50 +01:00
Michael Meeks
1c7af455ab
Re-work 8bit characters in source code, or remove them.
...
Change-Id: I93e14d4936c0ffbe03425d4a54bb0e09bc62b3e3
Reviewed-on: https://gerrit.libreoffice.org/5550
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org >
Reviewed-by: Michael Meeks <michael.meeks@suse.com >
Tested-by: Michael Meeks <michael.meeks@suse.com >
2013-08-20 19:30:59 +00:00
Andrzej J.R. Hunt
0d6d62a559
Implement column-type alteration. (firebird-sdbc)
...
Change-Id: Id192bd7d62d0ce9d5abc04390670cb277c6ec755
2013-08-19 10:17:39 +01:00
Andrzej J.R. Hunt
acd9f66f28
Split type-description out of createStandardColumnPart.
...
createStandardColumnPart returns a string that is usable in table creation,
the type descriptor (e.g. CHAR(N)) is also useful in column-type altering
statements, hence this is split into a separate function.
This is needed primarily in the firebird driver where column-type alter
statements are in a different form to most dbs.
Change-Id: If44554f979f6dd14bf679455978f3f0b44784bf5
Reviewed-on: https://gerrit.libreoffice.org/5432
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org >
Tested-by: Fridrich Strba <fridrich@documentfoundation.org >
2013-08-19 09:12:03 +00:00
Tor Lillqvist
08452f1208
Rename SOLAR_JAVA to ENABLE_JAVA and HAVE_FEATURE_JAVA
...
Change-Id: Ib451bdb3c1c2ca42347abfde44651d5cf5eef4f3
2013-08-19 10:29:04 +03:00
Tor Lillqvist
c6a7300974
Use subfolder names from <config_folders.h>
...
Change all instances of hardcoded "program", "share" etc subfolder names to
use those from <config_folders.h> instead. In normal builds, the end result
will not change.
Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-08-18 21:11:16 +03:00
Andrzej J.R. Hunt
985df3aa86
Free SQLDA if statement preparation fails. (firebird-sdbc)
...
Otherwise we are left with an invalid sqlda which cannot be safely
used later.
Change-Id: I506a17266da798fa6ed46c65f3838bb8fafbe241
2013-08-16 21:13:14 +01:00
Andrzej J.R. Hunt
23cb949008
Add some debug output. (firebird-sdbc)
...
Change-Id: I72a9992005b42a7a9ef86946bbd3301a7100001d
2013-08-16 21:13:14 +01:00
Andrzej J.R. Hunt
4365e13a0c
Enable Core SQL Grammar. (firebird-sdbc)
...
This is needed e.g. to enable primary keys.
Change-Id: I400637550b96d6e0aa880edea9678024f300f616
2013-08-16 21:13:12 +01:00
Andrzej J.R. Hunt
aca3d35a3b
Free SQLVAR as appropriate. (firebird-sdbc)
...
Change-Id: I5742e178baa85f3faf80d95f57fed248f7984793
2013-08-15 20:31:14 +01:00
Andrzej J.R. Hunt
c68aedab31
Implement dropping tables. (firebird-sdbc)
...
Change-Id: I68ef5bdfb3007709444b838f3c7c3925acc9dd32
2013-08-15 20:31:14 +01:00
Andrzej J.R. Hunt
6cb1f56fce
Implement sdbcx table creation. (firebird-sdbc)
...
Change-Id: I3d0de21a5fe10b64e21955f3384b95a96ac7561e
2013-08-15 20:31:14 +01:00
Andrzej J.R. Hunt
d3a002af12
Implement altering of default value.
...
Change-Id: I531fbbc1e07bc686bf76103ccf7a5e1c47a72cf1
2013-08-15 10:02:40 +01:00
Andrzej J.R. Hunt
64b927ba87
Remove ambiguity.
...
Change-Id: I75a5145cdaf3b133eba20a104044034b9f885630
2013-08-14 19:34:53 +01:00
Andrzej J.R. Hunt
60cda25e1d
Remove XRename support from XTable. (firebird-sdbc)
...
Firebird doesn't support the renaming of tables, hence we need
to disable the api to rename tables.
Change-Id: I86045697f684280c591979dad4fdea2dde0db4ba
2013-08-14 17:24:59 +01:00
Andrzej J.R. Hunt
488f62781e
Refresh columns after alter. (firebird-sdbc)
...
Without this the column data isn't updated after a change, which can
lead to e.g. the UI getting confused and producing errors.
Change-Id: I69ed79bbb987799fea7ecbbb1e516f7f9328ef9f
2013-08-14 17:24:59 +01:00
Andrzej J.R. Hunt
b174e1b733
Implement column-name altering. (firebird-sdbc)
...
Change-Id: I93bdbd37976fe467459b7fb39c26f6637ea7e84e
2013-08-14 17:24:58 +01:00
Andrzej J.R. Hunt
5b0c06c291
ColumnsHelper can create the Column for us. (firebird-sdbc)
...
Change-Id: Ia51394a701a06b6d6bc2cf6e9628cca9ce274821
2013-08-14 17:24:57 +01:00
Andrzej J.R. Hunt
2594878f70
Correct negation to detect view. (firebird-sdbc)
...
Change-Id: I24e1bab96e9890bbe32a7e2f3edf8ed1ec15ef92
2013-08-14 17:24:57 +01:00
Andrzej J.R. Hunt
324388fd1c
Trim sql identifiers as needed. (firebird-sdbc)
...
Change-Id: Ib61897ff2f5b459f5f6c75726be22ed99d383ec3
2013-08-14 17:24:56 +01:00
Andrzej J.R. Hunt
c73286f83c
Use table type in getTables. (firebird-sdbc)
...
Change-Id: I78dc0afed58ad7dc51c64cac8c89abcda601f8b5
2013-08-14 17:24:56 +01:00
Andrzej J.R. Hunt
0506b35c50
Avoid selecting system tables for viewing. (firebird-sdbc)
...
Change-Id: I43816cbb345fa141f845da208a06ed9eb9a5303a
2013-08-14 17:24:56 +01:00
Lionel Elie Mamane
9a9ee66f0d
fixup handling of unsigned values
...
that overflow their signed counterpart type
Change-Id: I7d446a5fdddb9d5ef313c1bd022fd959b11dec28
2013-08-14 17:40:00 +02:00
Lionel Elie Mamane
6dc6300fe5
better debugging: dump unexpected exception
...
Change-Id: I5df60d69431c67e3b8a2d76677d82e8eb1bd398a
2013-08-14 17:39:59 +02:00
Lionel Elie Mamane
d805c47084
fdo#67546 handle unsigned 64 bit integers
...
Change-Id: I09453c73303076318b7105a778ff98695b0a3839
2013-08-14 17:39:57 +02:00
Andrzej J.R. Hunt
73c02c20b1
Set ColumnsHelper parent. (firebird-sdbc)
...
This is needed for accessing the Tables again.
Change-Id: Ibebc017228b9bb47aaabaa4787e4c05d530acccf
2013-08-13 22:12:40 +01:00
Andrzej J.R. Hunt
67a9e7b1a1
OTableHelper requires a call to construct() to be usable. (firebird-sdbc)
...
Without this we get a UnknownPropertyException due to the relevant
properties not being set up.
Change-Id: I3fa956a4a82e411d7aba3895faf58b8a84f9fb5c
2013-08-13 22:12:40 +01:00
Andrzej J.R. Hunt
6e3118777b
Implement Columns::createObject. (firebird-sdbc)
...
Change-Id: I5750f640a9bd8bbfc40c0b7ed506d95e9cdbed0f
2013-08-13 22:12:40 +01:00
Andrzej J.R. Hunt
3a50cb84f4
Correct comments at table creation (firebird-sdbc)
...
Table name is already in correct form, and type is irrelevant when
selecting one table.
Change-Id: I542819cb09e083434ac84b84842d5ea9016c0d79
2013-08-13 22:12:39 +01:00
Andrzej J.R. Hunt
ec365165ba
Implement refreshTables. (firebird-sdbc)
...
Change-Id: Ie2fe0c92c3cb1eb0ae68cdea8ad709021a8d8392
2013-08-12 17:20:23 +01:00
Andrzej J.R. Hunt
88d74f35c2
Create Catalog to deal with sdbcx details. (firebird-sdbc)
...
Change-Id: I521db652157e6b6da79e70f3731b6eddfc2bab1d
2013-08-12 17:20:22 +01:00
Andrzej J.R. Hunt
f400dac5a8
Enable sdbcx retrieval. (firebird-sdbc)
...
Note: this completely breaks the GUI editing of a db for now since
the sdbcx portion of the driver is still non-functional.
Change-Id: Ia4561dae1689fb66c87ac6ab154c02f27ecf211a
2013-08-12 17:20:22 +01:00
Andrzej J.R. Hunt
64deb339a9
Implement getTables(). (firebird-sdbc)
...
Change-Id: I6b13fe51547ac5a51a03bf9b55f8e684275652cb
2013-08-12 17:20:22 +01:00
Andrzej J.R. Hunt
6878fa8a9c
Use correct data in Tables::createObject. (firebird-sdbc)
...
Change-Id: I01a55a15fdb88bf0910afabb6763829c979e35fa
2013-08-12 17:20:22 +01:00
Andrzej J.R. Hunt
893a8a6f11
Remove unneeded field. (firebird-sdbc)
...
This can be retrieved as needed from DatabaseMetaData.
Change-Id: I0324b7c087e6d7357437a9d6bc94340605066172
2013-08-12 17:20:21 +01:00
Andrzej J.R. Hunt
c33f9afcad
Add getIndexes. (firebird-sdbc)
...
Change-Id: I939c8033b6813754ee62092e3cab39ded853501e
2013-08-12 17:20:21 +01:00
Andrzej J.R. Hunt
2997e7d253
Add getKeys() using OKeysHelper (firebird-sdbc).
...
Change-Id: I5a885cec81d9abcd0b1fc18d0dcd98c292999a51
2013-08-12 17:20:21 +01:00