Commit Graph

6674 Commits

Author SHA1 Message Date
Andrzej J.R. Hunt
cc569401a4 Tables header fixes.
Change-Id: Id0d29ca4424e956489b4736c92605e5b1546a951
2013-08-11 23:57:10 +01:00
Andrzej J.R. Hunt
d35184d0ef Try and fix windows build.
Change-Id: I9d5dc42d5b41aa553887b748663fa8c706618aa8
2013-08-11 23:47:30 +01:00
Andrzej J.R. Hunt
8d1842d4d5 Don't change calling convention.
Change-Id: I7fb6aa3337983f6e9dd7adb6d92a47c258d0bebe
2013-08-11 16:34:54 +01:00
Andrzej J.R. Hunt
baaa43446f Reduce getColumnPrivileges verbosity. (firebird-sdbc)
Change-Id: I06f7d7e12c5b5dce1f902261e45afa39ed7a8665
2013-08-11 16:05:12 +01:00
Andrzej J.R. Hunt
e6ae90b072 Reduce verbosity of getTables. (firebird-sdbc)
Change-Id: Ief8d962d39b27acfb19adaee5e470417ee98b371
2013-08-11 16:05:11 +01:00
Andrzej J.R. Hunt
d12ddee812 Creation of skeleton Columns. (firebird-sdbc)
Change-Id: I5289dc68c05190e67420c51d8857dab5187cd98b
2013-08-11 16:05:11 +01:00
Andrzej J.R. Hunt
83994aa7cd Add skeleton Columns. (firebird-sdbc)
Change-Id: If58976bbb8a64d5092fcf33d3d09cdde145ecfe1
2013-08-11 16:05:11 +01:00
Andrzej J.R. Hunt
f496a1cb39 Implement Tables::createObject. (firebird-sdbc)
Change-Id: I9a4d301a0edf27af2dc3c571156592406c5019f9
2013-08-11 16:05:10 +01:00
Andrzej J.R. Hunt
73341eddbf Add sdbcx.Table (firebird-sdbc)
Change-Id: Iae9a4d1292d0dcd2da17c5a5552a3986b306a550
2013-08-11 16:05:10 +01:00
Andrzej J.R. Hunt
464a0b5000 First chunk of skeleton sdbcx.Container. (firebird-sdbc)
Change-Id: Ic92c4d13b0ed9aba622d3a2459f9677d8cce3245
2013-08-11 16:05:10 +01:00
Andrzej J.R. Hunt
0c2b01f038 Add skeleton sdbcx methods to Driver. (firebird-sdbc)
Change-Id: I531b4260e6ada7f82d71957381b0cc4896678d55
2013-08-11 16:05:09 +01:00
Andrzej J.R. Hunt
75b2c92cfb Improve exceptions in Statement.
Change-Id: Ib1915c143abee8c9162477da07462a68dd45e03c
2013-08-11 16:05:09 +01:00
Andrzej J.R. Hunt
6e11164d57 Explicit close/disposing.
Change-Id: Idcd89bd5f879a38f4c06f3602313672fb20bd098
2013-08-11 16:05:08 +01:00
Andrzej J.R. Hunt
6044f52c5e Improve statement handle handling.
Change-Id: I81809634600c580bb50843e697071d62bc6802a4
2013-08-11 16:05:08 +01:00
Andrzej J.R. Hunt
af0e281eed Remove unnecessary duplication.
Change-Id: Ie7b507f477f7591f9198a1cba6506dd6adec1f1b
2013-08-11 16:05:07 +01:00
Andrzej J.R. Hunt
54a138db91 Commit after DDL statement. (firebird-sdbc)
Changes made in a DDL statement are only usable after a
commit in firebird, e.g. a created table won't appear etc.

Change-Id: I3b537f495b6bc96fa48ebc1a3e46205da60bb2d4
2013-08-07 18:23:37 +01:00
Andrzej J.R. Hunt
89b37927c0 Add error checking to commit(). (firebird-sdbc)
Change-Id: I0717fad287f95d510d044055edc11737fde0c505
2013-08-07 18:23:37 +01:00
Andrzej J.R. Hunt
ebe37593c5 Clean up ResultSet management. (firebird-sdbc)
Change-Id: I00cd0aa08a5a3da17f06933ebc3422a6b4b8bc74
2013-08-07 18:23:37 +01:00
Andrzej J.R. Hunt
eb5e9ab4c4 Clean up statement handle on closing ResultSet. (firebird-sdbc)
Change-Id: I7e59c1939651cc55090ca3a5f1a9a388d685dc43
2013-08-07 18:23:36 +01:00
Andrzej J.R. Hunt
211094992c Fix transaction creation when autocommit disabled. (firebird-sdbc)
Change-Id: I190a90e9821961c4e972ec26ac282b05fd375d4b
2013-08-07 18:23:36 +01:00
Andrzej J.R. Hunt
67596ee0b1 Remove unnecessarily duplicated execute/executeQuery. (firebird-sdbc)
Change-Id: Ic173346c4cac140b9426560af9a9b196d93ec2f5
2013-08-07 18:23:36 +01:00
Andrzej J.R. Hunt
89fdead645 Correctly handle varchar. (firebird-sdbc)
Previously SQL_VARYING was cerced to SQL_TEXT which
loses the string length.

Change-Id: I5ab6c0ce2892dcb986282d6bf6fbb770b4fbafeb
2013-08-06 22:17:23 +02:00
Andrzej J.R. Hunt
c3aaa4e401 Simpligy getTablePrivileges. (firebird-sdbc)
Change-Id: I3a858fc3c94bbf6c32cc7fdae60d0ee45acb3cf2
2013-08-06 22:17:23 +02:00
Andrzej J.R. Hunt
cc1e1e9509 Only write db to file if we are embedded. (firebird-sdbc)
Change-Id: If6126a8005d666c0c1355efc2a887519da37c891
2013-08-02 15:39:52 +02:00
Andrzej J.R. Hunt
03528afc5c Clear Statements as appropriate. (firebird-sdbc)
Change-Id: Ied90fe623dff284179c88ae77392d641ba0b004b
2013-08-02 15:39:52 +02:00
Andrzej J.R. Hunt
935eab83a9 Make getPrimaryKeys actually work. (firebird-sdbc)
Change-Id: Ia300e85675a24a2900cfeb8ee75bf58356b14b30
2013-08-02 15:39:52 +02:00
Andrzej J.R. Hunt
6f92b92458 Tidy up Transaction info in DatabaseMetaData. (firebird-sdbc)
Change-Id: I77af538722e7e512db9bcd48d90f5c98ead379a2
2013-08-02 15:39:52 +02:00
Andrzej J.R. Hunt
5292d90f24 Implement supportsResultSetConcurrency. (firebird-sdbc)
Change-Id: Id830f703c40c3b16db5f6237325762619cbe54eb
2013-08-02 15:39:51 +02:00
Andrzej J.R. Hunt
d74ca3bc99 Some more DatabaseMetaData. (firebird-sdbc)
Change-Id: Ic8f1a2c1d67d163e6bd326d9b759b9f9cda67b35
2013-08-02 15:39:51 +02:00
Takeshi Abe
3aea6c121d Mark as const
Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
2013-08-02 10:34:43 +09:00
Andrzej J.R. Hunt
fe010c7c19 Use correct MetaDataResultSetType (firebird-sdbc).
Change-Id: I9f501dc9e578c9d7bd997072345578bdc860f6a6
2013-07-31 19:04:24 +02:00
Andrzej J.R. Hunt
43095140eb Cut identifier to correct length (firebird-sdbc).
Currently firebird returns table and column identifiers as being
93 chars long (rather than 31 as per spec), this leads to problems
with ALTER and DROP commands which are unable to deal with the incorrect
length. For now we simply discard the extra characters (which are
blank characters).

(SELECT and similar commands have been able to deal with the overlength
identifiers previously, which is why this hack wasn't required
beforehand.)

Change-Id: Ib6c984b5fc72dc4e326b3f8d36f6cbc4a3c9086a
2013-07-31 19:04:23 +02:00
Andrzej J.R. Hunt
ea4003de2e Reserve correct size (dbase).
19 values are inserted (but misleadingly only 1-18 are used).

Change-Id: Iae76c16494e8a9a1c1057b0993679ef828254b8f
Reviewed-on: https://gerrit.libreoffice.org/5210
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-07-31 15:42:03 +00:00
Andrzej J.R. Hunt
da25756ba9 Remove unnecessary F- prefix for firebird-sdbc files.
Change-Id: I6574ef7fd1c26770a74b2d1f2b0d997fcca97779
2013-07-31 16:06:58 +02:00
Andrzej J.R. Hunt
289741da6d Optimise getPrimaryKeys a bit. (firebird-sdbc)
Change-Id: I93d0a460b8c855596969a16fc33b31f9e0065624
2013-07-31 16:06:58 +02:00
Andrzej J.R. Hunt
a55178ee66 Implement getPrimaryKeys. (firebird-sdbc)
Change-Id: I7ccd013eaaf1c06b5eecae4b51bf607561531200
2013-07-31 16:06:57 +02:00
Andrzej J.R. Hunt
08c4c6327d Fix getTablePrivileges, warn on unimplemented methods. (firebird-sdbc)
Change-Id: Ibf32f31d8b78c632c947a8b7546464b0b457ee08
2013-07-31 16:06:57 +02:00
Andrzej J.R. Hunt
6523504d5b Some more DatabaseMetaData (firebird-sdbc).
Change-Id: I9ac7043878acc5738582ecf6091230cdd7b63152
2013-07-31 16:06:57 +02:00
Andrzej J.R. Hunt
9f2c95533d Avoid repeated allocations in getColumns. (firebird-sdbc)
Change-Id: I3d519815c42899f7cd60c6f06887cac7341e192b
2013-07-31 16:06:56 +02:00
Andrzej J.R. Hunt
080555a321 Some vector cleanup (firebird-sdbc).
This also fixes showing of column properties when editing them in base.
(Initial size of vector isn't the same as reserving capacity.)

Change-Id: Id1406ddde0c68af20d712bc99ed070e6354158a6
2013-07-31 16:06:56 +02:00
Andrzej J.R. Hunt
daa08c1027 Add parameters to char/varchar in getTypeInfo. (firebird-sdbc)
This means that char/varchar columns can once again be created.

Change-Id: I081f1dd3abad6d007b1f957d72841983a1130f72
2013-07-31 10:42:48 +02:00
Andrzej J.R. Hunt
5226b42560 Ignore authentication for embedded db (firebird-sdbc).
This turns off firebird's internal SQL authentication -- previously
tables were created and/or access validated using the current user's
name leading to issues when a .odb file is shared amongst different
users.

Change-Id: I86615c17c3045aac19d635ee41d76673d1b64530
2013-07-30 20:47:02 +02:00
Andrzej J.R. Hunt
470daf5ce0 Add extra error check. (firebird-sdbc)
Change-Id: Id342c01feddb9e0779afdc663ae019ea92a4517d
2013-07-30 20:47:02 +02:00
Stephan Bergmann
63897351fc rhbz#989246: Honor user's JavaDriverClass override in mysql driver
Change-Id: Ic7dbddb5b17af0bd23864fd19ab2bd815969d008
2013-07-30 09:03:28 +02:00
Andrzej J.R. Hunt
136f3bb179 Implement a large chunk of getTypeInfo. (firebird-sdbc)
Change-Id: Ide63479943dad50000b72bc132f336bace11a09c
2013-07-29 17:56:34 +02:00
Andrzej J.R. Hunt
e1b645e62f Fix typo.
Change-Id: I1473facceb0b08289052282b93a6e1fb46f0ea14
2013-07-29 17:56:34 +02:00
Andrzej J.R. Hunt
97a142d6df Implement getColumnPrivileges. (firebird-sdbc)
Change-Id: I31e179462a06db135467e8b78e4b550cc603a04a
2013-07-29 17:56:33 +02:00
Andrzej J.R. Hunt
1db4ed1bc9 Implement getTablePrivileges. (firebird-sdbc)
Change-Id: Id5bb79fdd01014594582de2bad6e16142259b0ce
2013-07-29 17:56:33 +02:00
Andrzej J.R. Hunt
03919cfa79 Use column name for getColumnLabel (firebird-sdbc).
Change-Id: I2e92c5dbdfe4cb9d8441e2d120b139fe97209d3e
2013-07-29 17:56:32 +02:00
Lionel Elie Mamane
13fe681d60 fdo#67387 skip separating space between date and time in timestamp
Change-Id: I3c38d179f8b2f59e79cd889fa88f4582f650c09e
2013-07-29 15:27:47 +02:00