Commit Graph

1606 Commits

Author SHA1 Message Date
lacak
1e778468cc fcl-db: odbc: when binding TIMESTAMP parameter set explicitly precision.
It is required by SQL Server Native Client 2008 and later (when not set it raises: Datetime field overflow. Fractional second precision exceeds the scale specified in the parameter binding.)
I have used precision 3 (milliseconds), which is maximum precision returned by DecodeTime used in handling of TDataTime values.

git-svn-id: trunk@29719 -
2015-02-16 08:57:18 +00:00
lacak
0b545308d7 fcl-db: base: when master dataset is closed leave detail dataset intact. Later if master is reopened relationship will work again. Delphi compatible behavior. Bug #26424 (Grandfather-Father-Son relationship)
git-svn-id: trunk@29679 -
2015-02-13 06:42:55 +00:00
lacak
7f69170352 fcl-db: mssql: update readme.txt with info about compiling dblib.dll for x64 under Win8
git-svn-id: trunk@29662 -
2015-02-10 07:52:07 +00:00
Tomas Hajny
1bc72d437c * assumption that everything non-Windows uses Unix paths is obviously wrong; fixed
git-svn-id: trunk@29632 -
2015-02-05 14:54:25 +00:00
Tomas Hajny
a608070e8d * file unlocking fixed as well now :/
git-svn-id: trunk@29631 -
2015-02-05 14:44:31 +00:00
Tomas Hajny
996ff217fd * implemented enumeration of supported locales and languages, fixed file locking
git-svn-id: trunk@29630 -
2015-02-05 14:25:28 +00:00
lacak
35a84ab6bd fcl-db: implement setter and getter for TStringField.AsLargeInt
git-svn-id: trunk@29624 -
2015-02-04 11:17:33 +00:00
lacak
d8ce1caea3 fcl-db: postgresql: Fix AV in UnprepareStatement (TPQCursor.tr is nil).
Revealed by TTestTSQLQuery.TestKeepOpenOnCommit.
Commit destroys TPQTrans object, which in destructor sets tr:=nil for all registered cursors. So attempt to Close TSQLQuery after Commit has leading to AV.

git-svn-id: trunk@29507 -
2015-01-19 13:01:51 +00:00
lacak
2175dd1403 fcl-db: tests: cosmetic
git-svn-id: trunk@29480 -
2015-01-16 13:17:36 +00:00
lacak
aa7dfdff96 fcl-db: postgresql: cosmetic
git-svn-id: trunk@29479 -
2015-01-16 08:59:50 +00:00
lacak
e8c40ee106 fcl-db: tests: rename test tables to "FPDEV2", which is automatically cleaned up upon test completion.
git-svn-id: trunk@29462 -
2015-01-13 12:04:55 +00:00
lacak
d033c7e122 fcl-db: tests: cosmetic + correct typos
git-svn-id: trunk@29451 -
2015-01-12 13:59:17 +00:00
lacak
9d6f5ece63 fcl-db: sqlite: add sqImplicitTransaction to ConnOptions.
git-svn-id: trunk@29448 -
2015-01-12 10:56:18 +00:00
lacak
9fba59b3bc fcl-db:
- base: added new TDataSetState: dsRefreshFields used in refreshing field between local TBufDataSet and remote DB during process of applying updates.
- mssql: implemented RefreshLastInsertID + test

git-svn-id: trunk@29443 -
2015-01-12 09:00:37 +00:00
lacak
8ae9752530 fcl-db: cosmetic
git-svn-id: trunk@29442 -
2015-01-12 06:38:29 +00:00
lacak
1e3d48288c fcl-db: mssql: make Rollback more safe. Check if there is active transaction first to avoid error "The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION."
Sometimes SQL Server automaticaly rollbacks transaction and then raises error ...
ODBC driver does same: IF @@TRANCOUNT>0 ROLLBACK.

git-svn-id: trunk@29430 -
2015-01-09 13:33:02 +00:00
marco
55cce4cb69 * strip outdated $If's. We don't bootstrap that much with 2.0.x anymore anyway.
git-svn-id: trunk@29420 -
2015-01-05 19:08:33 +00:00
joost
1a90d29063 * Re-generated packages-Makefile.fpcs and Makefiles
git-svn-id: trunk@29409 -
2015-01-05 11:34:47 +00:00
marco
d407b668d1 * version updated to 3.1.1
git-svn-id: trunk@29399 -
2015-01-04 21:09:04 +00:00
blikblum
d0c8c121ab Change variables from PChar to PAnsiChar
Change FileName to UTF8String

git-svn-id: trunk@29374 -
2015-01-03 10:58:48 +00:00
michael
868ba1560f * Applied patch by Michael Van Ham (bug ID 27220)
git-svn-id: trunk@29361 -
2014-12-30 07:35:31 +00:00
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