summaryrefslogtreecommitdiff
path: root/connectivity
AgeCommit message (Collapse)Author
2013-08-06Correctly handle varchar. (firebird-sdbc)Andrzej J.R. Hunt
Previously SQL_VARYING was cerced to SQL_TEXT which loses the string length. Change-Id: I5ab6c0ce2892dcb986282d6bf6fbb770b4fbafeb
2013-08-06Simpligy getTablePrivileges. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I3a858fc3c94bbf6c32cc7fdae60d0ee45acb3cf2
2013-08-02Only write db to file if we are embedded. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: If6126a8005d666c0c1355efc2a887519da37c891
2013-08-02Clear Statements as appropriate. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ied90fe623dff284179c88ae77392d641ba0b004b
2013-08-02Make getPrimaryKeys actually work. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ia300e85675a24a2900cfeb8ee75bf58356b14b30
2013-08-02Tidy up Transaction info in DatabaseMetaData. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I77af538722e7e512db9bcd48d90f5c98ead379a2
2013-08-02Implement supportsResultSetConcurrency. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Id830f703c40c3b16db5f6237325762619cbe54eb
2013-08-02Some more DatabaseMetaData. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ic8f1a2c1d67d163e6bd326d9b759b9f9cda67b35
2013-08-02Mark as constTakeshi Abe
Change-Id: I7ad2a1bd29afbf4813b1ad984081935ca84ec98a
2013-07-31Use correct MetaDataResultSetType (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: I9f501dc9e578c9d7bd997072345578bdc860f6a6
2013-07-31Cut identifier to correct length (firebird-sdbc).Andrzej J.R. Hunt
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-31Reserve correct size (dbase).Andrzej J.R. Hunt
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-31Remove unnecessary F- prefix for firebird-sdbc files.Andrzej J.R. Hunt
Change-Id: I6574ef7fd1c26770a74b2d1f2b0d997fcca97779
2013-07-31Optimise getPrimaryKeys a bit. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I93d0a460b8c855596969a16fc33b31f9e0065624
2013-07-31Implement getPrimaryKeys. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I7ccd013eaaf1c06b5eecae4b51bf607561531200
2013-07-31Fix getTablePrivileges, warn on unimplemented methods. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ibf32f31d8b78c632c947a8b7546464b0b457ee08
2013-07-31Some more DatabaseMetaData (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: I9ac7043878acc5738582ecf6091230cdd7b63152
2013-07-31Avoid repeated allocations in getColumns. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I3d519815c42899f7cd60c6f06887cac7341e192b
2013-07-31Some vector cleanup (firebird-sdbc).Andrzej J.R. Hunt
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-31Add parameters to char/varchar in getTypeInfo. (firebird-sdbc)Andrzej J.R. Hunt
This means that char/varchar columns can once again be created. Change-Id: I081f1dd3abad6d007b1f957d72841983a1130f72
2013-07-30Ignore authentication for embedded db (firebird-sdbc).Andrzej J.R. Hunt
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-30Add extra error check. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Id342c01feddb9e0779afdc663ae019ea92a4517d
2013-07-30Fix firebird-sdbc registry details.Andrzej J.R. Hunt
Change-Id: I753095ba40b5fb45cfccd10a95bd8eb7b68bd564
2013-07-30rhbz#989246: Honor user's JavaDriverClass override in mysql driverStephan Bergmann
Change-Id: Ic7dbddb5b17af0bd23864fd19ab2bd815969d008
2013-07-29Implement a large chunk of getTypeInfo. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ide63479943dad50000b72bc132f336bace11a09c
2013-07-29Fix typo.Andrzej J.R. Hunt
Change-Id: I1473facceb0b08289052282b93a6e1fb46f0ea14
2013-07-29Implement getColumnPrivileges. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I31e179462a06db135467e8b78e4b550cc603a04a
2013-07-29Implement getTablePrivileges. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Id5bb79fdd01014594582de2bad6e16142259b0ce
2013-07-29Use column name for getColumnLabel (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: I2e92c5dbdfe4cb9d8441e2d120b139fe97209d3e
2013-07-29fdo#67387 skip separating space between date and time in timestampLionel Elie Mamane
Change-Id: I3c38d179f8b2f59e79cd889fa88f4582f650c09e
2013-07-29Update licence headers / rebase on APL'd skeleton driver (firebird-sdbc)Andrzej J.R. Hunt
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-28remove unnecessary const_castLionel Elie Mamane
Change-Id: I49348d953614f997d26cb9ad44e39aa0f4b937d2
2013-07-25Remove unused struct definition (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: Idfe8a76c0c14291688f009a1d0b07cd80488f31e
2013-07-25Disable case insensitivity in findColumn (firebird-sdbc).Andrzej J.R. Hunt
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-25Cleanup XResultSetUpdate in ResultSet / throw exceptions (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: Ifc5437f10421ba00c16caa860f9737444a81d891
2013-07-25FunctionNotSupported exceptions for XResultSetUpdate. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: Ie24ba7eeb8d638433fe6b27d74d70121472347c5
2013-07-25Implement the remaining execute* in PreparedStatement (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I7df7e926c352f5d0ddf7acb4df9b4060a634140d
2013-07-25Comment and cleanup unsupported batch methods (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I553265a0f492e8c5c258cf94aead2019ff1f9350
2013-07-25Implement getMetaData in PreparedStatement (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: I61450c2617f53ad9de13f667fa01d7a7dde31f85
2013-07-25Make evaluateStatusVector a namespace function. (firebird-sdbc)Andrzej J.R. Hunt
We're not in java after all... Change-Id: I145fbd7adad5e03a7c9e7bcf28cb2f80ce40ba9e
2013-07-25Remove old unneeded commented code. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I82013ac933b3a30093593e32fd202de351a96599
2013-07-25Upgrade the last bit of pr_error to use exceptions. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I066cd519158c6d28ed410e4f62d9418dcf95a6c3
2013-07-25fdo#67269 adapt checkTable to getTableName changeLionel Elie Mamane
getTableName used to return schema.table; now it returns just table But tables are indexed by schema.table in getTables(), so reconstruct that for the lookup. Change-Id: I53da1e43762b3a470e34b5dfdb0e1bb3dc914780
2013-07-24Tidy up / implement identifier metadata (firebird-sdbc).Andrzej J.R. Hunt
Change-Id: Ifcfcd3434b4fa50b9018365b738fcc922e03d9b2
2013-07-24Remove unneded string sanitisation (firebird-sdbc).Andrzej J.R. Hunt
This was only needed because of the incorrect sql dialect previousy used which didn't permit quoted identifiers. Change-Id: I31b50add0363f14c8a8cc228f3dfbe084fe42d1c
2013-07-24Allow specifying username/password (firebird-sdbc).Andrzej J.R. Hunt
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-24Define SQL dialect driver-wide and change to 3. (firebird-sdbc)Andrzej J.R. Hunt
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-24Mark as constTakeshi Abe
Change-Id: Ia3996b997ebbd10ca02ec5a24d1969822bc39273
2013-07-23Clean up naming of OStatement_Base etc. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: I4cb81565ae2fa6efd434e6e789f16fab90d0ae4a
2013-07-23Move Statement specific methods out of common base. (firebird-sdbc)Andrzej J.R. Hunt
Change-Id: If85f7f419b7c67bc84f8a74422cc8c9080a34353