Commit Graph

1585 Commits

Author SHA1 Message Date
lacak
e82b7a953d fcl-db: sqldb: set default return value for function StartImplicitTransaction. Can be overriden by descendants.
git-svn-id: trunk@29305 -
2014-12-19 09:33:48 +00:00
lacak
3fe277f2e4 fcl-db: sqlite: remove unused published property TSQLite3Connection.Options: TSqliteOptions, which hides newly added TSQLConnection.Options
git-svn-id: trunk@29252 -
2014-12-11 07:33:55 +00:00
lacak
6c10d2ddad fcl-db: sqlite: map INTEGER PRIMARY KEY columns (ROWID) to TAutoIncField (as part of adding support for Refreshing AutoInc fields)
Update tests (use as test table FPDEV2, which is automatically removed at end of test, remove unused variables)

git-svn-id: trunk@29243 -
2014-12-10 07:31:58 +00:00
lacak
e26d106b5b fcl-db: sqldb: some databases supports inserting of explicit values into "autoincrementing" columns. So in case when ftAutoInc field has already supplied value, do not do fetch of LastID
git-svn-id: trunk@29237 -
2014-12-09 10:46:06 +00:00
marco
6bcb46eb30 * adding dragonfly to packages, mantis #27091
git-svn-id: trunk@29215 -
2014-12-07 20:38:45 +00:00
lacak
e9d9caef00 fcl-db: sqlite: forgotten from rev.29196
git-svn-id: trunk@29198 -
2014-12-03 14:57:37 +00:00
lacak
e3b12486c5 fcl-db: sqldb: fix AV (uninitialized variable) in MySQL tests
rearrange ordering of methods
rename some methods as discussed in DB-Core

git-svn-id: trunk@29196 -
2014-12-03 11:54:42 +00:00
lacak
3ee209dc75 fcl-db: tests: fix probably by accident commit in rev.29109
git-svn-id: trunk@29195 -
2014-12-03 09:32:54 +00:00
lacak
0d4be3fb37 fcl-db: tests: change TestAutoCommit test to not use multiple transactions, as this results in "false negative" for SQL Connections, which does not support multiple simultaneous transactions
git-svn-id: trunk@29194 -
2014-12-03 09:21:25 +00:00
lacak
544fe162c1 fcl-db: tests: quick fix for test for MSSQL server, which do not support overlapping or nested transactions
git-svn-id: trunk@29190 -
2014-12-01 13:46:40 +00:00
Tomas Hajny
b30a3e499c * add missing initialization of the record count
git-svn-id: trunk@29185 -
2014-11-30 01:43:23 +00:00
michael
6d5622aca3 * Implemented RefreshSQL and fetching value for AutoInc fields
git-svn-id: trunk@29183 -
2014-11-29 20:29:52 +00:00
lacak
2bf0abcdfa fcl-db: tests: unify test with others
git-svn-id: trunk@29182 -
2014-11-29 17:52:50 +00:00
lacak
2d4288c5d9 fcl-db: interbase: formating
git-svn-id: trunk@29181 -
2014-11-29 17:51:33 +00:00
lacak
690fc3e738 fcl-db: interbase: avoid conversions ->TBCD->double for parameters of other type than ftFmtBCD (f.e. ftBCD: Currency->TBCD->double)
git-svn-id: trunk@29180 -
2014-11-29 17:49:52 +00:00
joost
0574714317 * Use short 8.3 names for archives on limit83fs-hosts
git-svn-id: trunk@29174 -
2014-11-28 21:35:46 +00:00
lacak
865d074c3d fcl-db: tests: enable test for all databases
git-svn-id: trunk@29171 -
2014-11-28 13:41:23 +00:00
lacak
85142e88f0 fcl-db: tests: add case for SQLite into TryDropIfExists. Fixes bug introduced in rev.29109
git-svn-id: trunk@29170 -
2014-11-28 09:54:03 +00:00
lacak
c41bc63cd4 fcl-db: sqldb: Make ESQLDatabaseError.CreateFmt more safe if it is called with Args=[] (then do not try Format(Msg,Args))
git-svn-id: trunk@29169 -
2014-11-28 07:48:13 +00:00
lacak
b300241c09 fcl-db: sqldb: initialize TCustomSQLStatement.FRowsAffected to -1. Revealed by TestRowsAffected.
git-svn-id: trunk@29168 -
2014-11-28 07:43:26 +00:00
lacak
719ccd6550 fcl-db: fbadmin: fix bug introduced by me in rev.29163
git-svn-id: trunk@29166 -
2014-11-28 06:31:07 +00:00
lacak
6b0cd8bb0e fcl-db: interbase: SQLState must be obtained before isc_interprete is called.
git-svn-id: trunk@29165 -
2014-11-27 14:05:39 +00:00
lacak
628d6243be fcl-db: oracle: cosmetic
git-svn-id: trunk@29164 -
2014-11-27 13:52:25 +00:00
lacak
eaadd51b42 fcl-db: reverts rev.29118, because there are 3rd party libraries (like ZEOS), which define own EDatabaseError descendants, where they define members FErrorCode and/or ErrorCode.
This patch also fixes bugs #27078 and #26684, what was intention of rev.29118

git-svn-id: trunk@29163 -
2014-11-27 13:43:44 +00:00
lacak
9f730c9831 fcl-db: sqldb: rename some of new types as discussed in DB-Core
git-svn-id: trunk@29143 -
2014-11-24 13:13:47 +00:00
michael
a441768941 * Case insensitive table name for firebird
git-svn-id: trunk@29122 -
2014-11-23 14:58:51 +00:00
michael
411e798495 * AutoCommit option
git-svn-id: trunk@29121 -
2014-11-23 14:58:26 +00:00
michael
2134e3aaac * Promoted errorcode to the EDatabaseError level, unified all error codes
git-svn-id: trunk@29118 -
2014-11-23 12:46:53 +00:00
michael
f00212c993 * Fix+Test for bug #27068 : coCheckRowsAffected
git-svn-id: trunk@29113 -
2014-11-22 19:40:11 +00:00
michael
42a317ab73 * Patch for bug #27067 by Tony Whyman
git-svn-id: trunk@29112 -
2014-11-22 19:17:10 +00:00
michael
cfa859d285 * Fix for bug #27077 by Chris Rempas, plus test
git-svn-id: trunk@29111 -
2014-11-22 19:10:20 +00:00
michael
6b32a6e0e5 * Transaction options and connection options
git-svn-id: trunk@29109 -
2014-11-22 16:28:09 +00:00
michael
a53fca1b67 * QueryOptions for disconnected mode and autoapplyupdates
git-svn-id: trunk@29088 -
2014-11-17 12:24:46 +00:00
reiniero
ce54992e07 * fcl-db: dbftool: cosmetic/silence warning
git-svn-id: trunk@29064 -
2014-11-12 09:29:55 +00:00
reiniero
26913387cf * fcl-db: dbftool:
- detect upper, lower and mixed case .dbf files on *nix
- create demo db in current directory instead of application directory

git-svn-id: trunk@29063 -
2014-11-12 09:14:59 +00:00
Tomas Hajny
a3e9954d73 * file locking API call updated according to changes in unit doscall2
git-svn-id: trunk@29018 -
2014-11-08 01:07:30 +00:00
joost
4556b1abcc * Added missing include-file to fpmake.pp
git-svn-id: trunk@28983 -
2014-11-04 18:48:40 +00:00
lacak
0028210b53 fcl-db: mssql: if stored procedure raises error with severity > 10 then db-library calls error handler, which sets DBErrorNo and DBErrorStr. So check them after execution of SQL and raise also error if they are set. +Cancel any pending results or other commands in batch to allow ROLLBACK.
git-svn-id: trunk@28944 -
2014-10-29 11:42:02 +00:00
reiniero
727d73677a * fcl-db: ibconnection: cosmetic
git-svn-id: trunk@28942 -
2014-10-28 08:35:47 +00:00
reiniero
0f6d65e928 * fcld-db: dbftool example: cleanup, more error reporting/help output
git-svn-id: trunk@28936 -
2014-10-27 08:12:02 +00:00
Tomas Hajny
0c063005dd * compilation fix for MS Windows targets
git-svn-id: trunk@28896 -
2014-10-22 08:38:54 +00:00
Tomas Hajny
0b71f6286c * dbase support now enabled for OS/2
git-svn-id: trunk@28895 -
2014-10-22 00:00:22 +00:00
Tomas Hajny
585bedf2e8 * unit dbf_dbffile now compilable under OS/2
git-svn-id: trunk@28894 -
2014-10-21 23:57:38 +00:00
Tomas Hajny
ebccde996e + implementation of unit dbf_wtil now split into target dependant include files, added implementation for OS/2
git-svn-id: trunk@28893 -
2014-10-21 23:56:31 +00:00
reiniero
6c7e6ad5ea * fcl-db: oracleconnection: addendum to commit 28833; issue #26868
git-svn-id: trunk@28835 -
2014-10-17 08:58:14 +00:00
reiniero
d69d25432a * fcl-db: Oracle connection: don't leak resources client side and server side on failed connection. Patch by Al Popov. Thank you very much. Solves issue #26868
git-svn-id: trunk@28833 -
2014-10-16 12:40:23 +00:00
michael
fb5939befe * Fix bug #26072
git-svn-id: trunk@28662 -
2014-09-14 16:29:52 +00:00
reiniero
aae9a5b8b9 + fcl-db: mysql 5.6 connector: add support for MariaDB 10.0. Should fix isseu #26620. Needs testing.
git-svn-id: trunk@28593 -
2014-09-04 10:18:01 +00:00
lacak
9703d14149 fcl-db: base: if either MinValue or MaxValue is <> 0 then use range MinValue-MaxValue instead of MinRange-MaxRange (for TLongintField). It is compatible with other Fields and allows set range 0-X or X-0. Bug #26606
git-svn-id: trunk@28531 -
2014-08-28 12:28:36 +00:00
lacak
bfb08c957e fcl-db: base: when reporting RangeError take into account also user defined MinValue, MaxValue. Bug #26606
git-svn-id: trunk@28514 -
2014-08-23 17:21:02 +00:00