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
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
Andrzej J.R. Hunt
a2af2407ae
Update licence headers / rebase on APL'd skeleton driver (firebird-sdbc)
...
The firebird driver was created on the basis of the skeleton driver
(odk/examples/DevelopersGuide/Database/DriverSkeleton/). This is under
BSD licence within the LO codebase but was relicenced as ALV2 within AOO.
(see http://svn.apache.org/viewvc?view=revision&revision=1239200 )
MPL added as all my changes to the driver are released as MPL.
Change-Id: Iea22043281fbc16f6813ce97dce449b10914a91d
2013-07-29 12:55:51 +01:00
Andrzej J.R. Hunt
f40461a223
Remove unused struct definition (firebird-sdbc).
...
Change-Id: Idfe8a76c0c14291688f009a1d0b07cd80488f31e
2013-07-25 19:41:20 +02:00
Andrzej J.R. Hunt
89788d34ad
Disable case insensitivity in findColumn (firebird-sdbc).
...
In theory it is possible to have case insensitive identifiers
in firebird however these are only used with unquoted identifiers.
Base by default always uses quoted identifiers, there doesn't seem
to be any way of determining whether we are dealing with a case
insensitive identifier when retrieving it from the database either.
Change-Id: I4df0ab10c5a7c15ecde099e36978ac2e6c4ad0be
2013-07-25 19:41:20 +02:00
Andrzej J.R. Hunt
de0384045c
Cleanup XResultSetUpdate in ResultSet / throw exceptions (firebird-sdbc).
...
Change-Id: Ifc5437f10421ba00c16caa860f9737444a81d891
2013-07-25 19:41:19 +02:00
Andrzej J.R. Hunt
d011153df4
FunctionNotSupported exceptions for XResultSetUpdate. (firebird-sdbc)
...
Change-Id: Ie24ba7eeb8d638433fe6b27d74d70121472347c5
2013-07-25 19:41:19 +02:00
Andrzej J.R. Hunt
5d1245b89c
Implement the remaining execute* in PreparedStatement (firebird-sdbc)
...
Change-Id: I7df7e926c352f5d0ddf7acb4df9b4060a634140d
2013-07-25 19:41:19 +02:00
Andrzej J.R. Hunt
79002d6f35
Comment and cleanup unsupported batch methods (firebird-sdbc)
...
Change-Id: I553265a0f492e8c5c258cf94aead2019ff1f9350
2013-07-25 19:41:18 +02:00
Andrzej J.R. Hunt
63985cd35e
Implement getMetaData in PreparedStatement (firebird-sdbc).
...
Change-Id: I61450c2617f53ad9de13f667fa01d7a7dde31f85
2013-07-25 19:41:18 +02:00
Andrzej J.R. Hunt
61d4e32030
Make evaluateStatusVector a namespace function. (firebird-sdbc)
...
We're not in java after all...
Change-Id: I145fbd7adad5e03a7c9e7bcf28cb2f80ce40ba9e
2013-07-25 19:41:18 +02:00
Andrzej J.R. Hunt
5249927d9e
Remove old unneeded commented code. (firebird-sdbc)
...
Change-Id: I82013ac933b3a30093593e32fd202de351a96599
2013-07-25 19:41:17 +02:00
Andrzej J.R. Hunt
b17392f85d
Upgrade the last bit of pr_error to use exceptions. (firebird-sdbc)
...
Change-Id: I066cd519158c6d28ed410e4f62d9418dcf95a6c3
2013-07-25 19:41:17 +02:00
Andrzej J.R. Hunt
56435965c5
Tidy up / implement identifier metadata (firebird-sdbc).
...
Change-Id: Ifcfcd3434b4fa50b9018365b738fcc922e03d9b2
2013-07-24 20:36:01 +02:00
Andrzej J.R. Hunt
5d7573df1d
Remove unneded string sanitisation (firebird-sdbc).
...
This was only needed because of the incorrect sql dialect
previousy used which didn't permit quoted identifiers.
Change-Id: I31b50add0363f14c8a8cc228f3dfbe084fe42d1c
2013-07-24 20:36:01 +02:00
Andrzej J.R. Hunt
b3f6b5e934
Allow specifying username/password (firebird-sdbc).
...
This shouldn't be used with embedded dbs as that tries
to load the non-existing security.fdb -- embedded
dbs work without any user specified.
Change-Id: I1576695e68b226344b2defb45d1c5a92aa6e08b1
2013-07-24 20:36:01 +02:00
Andrzej J.R. Hunt
dc318a3568
Define SQL dialect driver-wide and change to 3. (firebird-sdbc)
...
Previously the driver used firebird sql dialect = 1 (IB 5.5 or earlier)
however we need support for delimited identifiers, DATE, TIME, TIMESTAMP
etc. which are all available from IB6 onwards ie. sql dialect 3. Currently
this is the latest dialect supported by firebird.
Change-Id: Ia2302bf69bda877d81f8995843cce6c606e7ed43
2013-07-24 20:36:00 +02:00
Andrzej J.R. Hunt
cacb32caab
Clean up naming of OStatement_Base etc. (firebird-sdbc)
...
Change-Id: I4cb81565ae2fa6efd434e6e789f16fab90d0ae4a
2013-07-23 19:29:06 +02:00
Andrzej J.R. Hunt
ed9dac3baf
Move Statement specific methods out of common base. (firebird-sdbc)
...
Change-Id: If85f7f419b7c67bc84f8a74422cc8c9080a34353
2013-07-23 19:29:06 +02:00
Andrzej J.R. Hunt
2b541c928c
Move Statement_Base into it's own file (firebird-sdbc).
...
This is in preparation of cleanly separating the code shared
by PreparedStatment and Statement from the code unique to either
of those classes.
Change-Id: I419668044e67b25d492a381acab9ee9b1acce7ce
2013-07-23 19:29:05 +02:00
Andrzej J.R. Hunt
a061f0a845
Remove unnecessary OStatement_BASE2 (firebird-sdbc).
...
Seemingly a relic from the skeleton driver?
Change-Id: I7c5ba9763daee51b1c8b23f614e3d9501858a29c
2013-07-23 19:29:05 +02:00
Andrzej J.R. Hunt
c636ed8388
Cleanup firebird-sdbc header defines.
...
Previously directly taken from skeleton driver, some possible conflicts.
Change-Id: I9469ed8a3bb78a18b68fce3c8a9272eeb38349ba
2013-07-23 19:29:05 +02:00
Andrzej J.R. Hunt
7f653884f9
Hopefully the last ambiguous conversion fix (firebird-sdbc).
...
Change-Id: If290239444f4849e3f5355a3c0a64416fc5c691d
2013-07-22 20:22:27 +02:00
Andrzej J.R. Hunt
86ec35f71d
Fix implicit conversion error (firebird-sdbc).
...
Change-Id: I67ecd01655bdde73a279926c65f81555e550b7ca
2013-07-22 18:06:09 +02:00
Andrzej J.R. Hunt
7ae8da7267
Further minor fixes (firebird-sdbc).
...
Change-Id: I1ed77e7910bd59aa0534ff7fb32d96e3432b58d3
2013-07-22 18:03:29 +02:00
Andrzej J.R. Hunt
cd30d13c3d
Join on correct fields for getColumns() (firebird-sdbc)
...
Change-Id: I2e3f260b0f043806702fb03ff74c1ef6bbe9cc62
2013-07-22 18:03:27 +02:00
Andrzej J.R. Hunt
2d134a5fbc
sqltype indicates isNullable. (firebird-sdbc)
...
Change-Id: I1cf454847f7dc83195596b7274f4fa2c434fcc69
2013-07-22 18:03:27 +02:00
Andrzej J.R. Hunt
f98a193a18
Implement the first parts of FPreparedStatement.
...
Change-Id: Iad9561fa6b200ce5efcacc4c0b7b822aaaf9adb0
2013-07-22 18:03:27 +02:00
Andrzej J.R. Hunt
291b87962d
Move allocation of SQLVAR memory to Util (firebird-sdbc).
...
(Is also needed for allocating sqlin data in prepared statement.)
Change-Id: Id572ddbc582c709c8d361ca6e9a670fb8f2d2165
2013-07-22 18:03:27 +02:00
Andrzej J.R. Hunt
dc3202517d
Remove some unnecessary uses of XSQLDA->sqlvar (firebird-sdbc).
...
Change-Id: I69ea81a66decb817d5962206e4a6c30537bce02c
2013-07-22 18:03:26 +02:00
Thorsten Behrens
28a6e1cf1b
Disambiguate ctor calls, fix windows build.
...
Fixup for 074ef06c90
Change-Id: I5ceb153cda6112c4e8751ee0b63c19f442ccf18a
2013-07-22 16:34:56 +02:00
Andrzej J.R. Hunt
074ef06c90
Implement getColumns() (firebird-sdbc).
...
Change-Id: I07e9af5e049d58dc794cad4481a2f4e2b1fe547d
2013-07-22 11:04:05 +02:00
Andrzej J.R. Hunt
76fc51223f
Fix blr type conversion.
...
Change-Id: Ie2ed26110c944c27f767d818139d8526e278f33d
2013-07-22 11:04:05 +02:00
Andrzej J.R. Hunt
c729e75129
Add conversion of blr types to firebird SQL_ types.
...
Internally firebird uses blr_* types -- we encounter these values e.g.
when retrieving column metadata within RDB$FIELD_TYPE. These can
be converted to the firebird SQL_* types for use within the rest
of the driver as appropriate.
Change-Id: If9a9bc3c58d99a2f61f52faef6316e2d3451af1a
2013-07-22 11:04:05 +02:00
Andrzej J.R. Hunt
cd21fb50b2
Sql types are short within firebird.
...
Change-Id: Iff9baf31ce06a71c6c460a7689c7bac817370b27
2013-07-22 11:04:04 +02:00
Andrzej J.R. Hunt
734a30a23d
Move sqltype identification into Util (firebird-sdbc).
...
Change-Id: I2e3068bf46555fea63c62bc1abc8a467c588a8b5
2013-07-22 11:04:04 +02:00
Andrzej J.R. Hunt
abc147410e
rtl::OUString prefix cleanup FDatabaseMetaData (firebird-sdbc).
...
Change-Id: I210ff31a69c7dc1d5bc3478d6494ad3c0959904f
2013-07-22 11:04:04 +02:00