Commit Graph

113 Commits

Author SHA1 Message Date
michael
0d1fc7fa97 * Add some context messages to tests
git-svn-id: trunk@30570 -
2015-04-13 08:29:36 +00:00
lacak
c8f610282d fcl-db: sdfdataset: fix seting/geting calculated fields. Offset is calculated using DataSize not Size and they should be stored in internal representation used by TField
git-svn-id: trunk@30531 -
2015-04-10 06:51:40 +00:00
lacak
befb6ae1ea fcl-db: sdfdataset: fix false negative test TestInsertOnEmptyDataset. By signal in previous test, that test dataset is changed, so it can be restored to original state after test completion (ResetNDatasets).
git-svn-id: trunk@30507 -
2015-04-09 08:25:53 +00:00
lacak
0dd93f2384 fcl-db: sdfdataset: RecNo should return nonzero value for State=dsEdit if there is valid record; Compatible with other datasets + test
git-svn-id: trunk@30503 -
2015-04-09 05:16:37 +00:00
lacak
b9b253dd02 fcl-db: tests: apply test for RecordCount for closed DataSet introduced in rev.30295 (only for TBufDataSet in TestSpecificTBufDataset) also to other datasets (in TestDBBasics, which covers all TDataSet descendants)
git-svn-id: trunk@30325 -
2015-03-26 06:50:11 +00:00
lacak
96a3a667c5 fcl-db: tests: fix of previous commit
git-svn-id: trunk@28057 -
2014-06-25 09:55:46 +00:00
lacak
9d5c2717c8 fcl-db: tests:
- remove unused variables
- fix tests for Oracle - first test Values and then Field type

git-svn-id: trunk@28055 -
2014-06-25 09:05:59 +00:00
lacak
da4fc8aca2 fcl-db: tests: small correction of previous commit
git-svn-id: trunk@28049 -
2014-06-24 13:58:12 +00:00
lacak
41e8a0da2c fcl-db: tests:
- add TestSupportDateTimeFields 
- small rework for Oracle case

git-svn-id: trunk@28045 -
2014-06-24 10:41:21 +00:00
reiniero
bfb21cb4a0 * fcl-db: tests: better error reporting
git-svn-id: trunk@28028 -
2014-06-22 07:24:37 +00:00
reiniero
4d92b003a7 * fcl-db: tests: adjust TTestDBBasics.TestSupportIntegerFields to reflect that Oracle does not map integer fields to ftInteger but to ftFMTBCD
git-svn-id: trunk@27987 -
2014-06-17 10:21:51 +00:00
lacak
590f5791d5 fcl-db: tests: cosmetic
git-svn-id: trunk@27806 -
2014-05-20 07:06:03 +00:00
reiniero
15275795da * fcl-db: adjust blob type test to match narrowed number of allowed blob types in r27682
git-svn-id: trunk@27727 -
2014-05-03 16:18:47 +00:00
lacak
7ba0b03cd0 fcl-db: tests: not all FmtBCD (exact numeric) values have precise floating point representation. So use "delta" when comparing floating point values.
git-svn-id: trunk@27655 -
2014-04-25 13:42:47 +00:00
reiniero
0ce9623ed8 * fcl-db: tests: test blobtype for blob fields; tests for mantis issue #26064
git-svn-id: trunk@27648 -
2014-04-24 15:08:31 +00:00
lacak
ee9197c3b2 fcl-db: bufdataset: add ftGuid to list of supported field types when building CompareStruct (used in indexing and locating)
git-svn-id: trunk@27609 -
2014-04-20 16:17:29 +00:00
lacak
c47ff6946a fcl-db: tests: set ID field value before post, because it is Required (not null)
git-svn-id: trunk@27130 -
2014-03-14 07:26:08 +00:00
lacak
28e0a453c7 fcl-db: tests: add more cases into test
git-svn-id: trunk@27126 -
2014-03-13 11:49:01 +00:00
lacak
2d8c0942c7 fcl-db: tests: cosmetic (comments + grouping similar tests)
git-svn-id: trunk@27125 -
2014-03-13 11:14:33 +00:00
reiniero
2592b1d662 fcl-db: dbtestframework:
* reintroduced cleaned up version of r27073 bufdataset memo edited field readback test as it still fails

git-svn-id: trunk@27080 -
2014-03-10 14:22:01 +00:00
lacak
62fdd81cc8 fcl-db: bufdataset: add InternalInitFieldDefs for TBufDataset + test (TestFieldDefsUpdate); related also to rev.27021
git-svn-id: trunk@27023 -
2014-03-07 13:17:55 +00:00
lacak
cdc5e9a73a fcl-db: tests: Improve TestOldValue; tests also Blobs (which has special storage) and state of TField.OldValue after MergeChangeLog
git-svn-id: trunk@26667 -
2014-02-03 13:51:28 +00:00
reiniero
4229c6b40f * fcl-db: additional stringfilter tests
git-svn-id: trunk@26252 -
2013-12-19 16:40:08 +00:00
reiniero
f27d3baccc * fcl-db: test filter using double delimiters inside string to test syntax as presented in issue #25432
allow escaping delimiters by doubling them e.g.
  Filter:='(NAME=''O''''Malley''''s "Magic" Hammer'')';
  which gives
  (NAME='O''Malley''s "Magic" Hammer')
  which will match
  O'Malley's "Magic" Hammer

git-svn-id: trunk@26249 -
2013-12-17 15:08:12 +00:00
lacak
36249fcee1 fcl-db: memds: add support for calculated fields. revealed by TestCalculatedField
git-svn-id: trunk@25984 -
2013-11-07 12:10:29 +00:00
lacak
50a76d9906 fcl-db: memds: implemented Locate and Lookup methods for TMemDataset.
(some inspiration and ideas taken from TDBF)
+ TestLookup
Bug #9614

git-svn-id: trunk@25946 -
2013-11-06 07:10:48 +00:00
lacak
ebf70342c5 fcl-db: memds:
- add support for ftWord, ftFmtBCD field types
- fix memds for failed tests TestRequired (add call to inherited InternalPost), TestRecNo
- fix testing environment for memds

git-svn-id: trunk@25846 -
2013-10-25 12:46:00 +00:00
lacak
47404444b9 fcl-db: tests: minor formatting changes and fix Filter test for SQL datasets (do not close/open because edits are lost)
git-svn-id: trunk@25790 -
2013-10-15 06:18:50 +00:00
reiniero
16f157d6db * fcl-db: tests: fix negative integer filter test from r25754; add subtest with integer constants
git-svn-id: trunk@25782 -
2013-10-14 17:07:14 +00:00
reiniero
cc5b720bfd fcl-db: test for negative integer filters (issue #25168).
git-svn-id: trunk@25754 -
2013-10-13 13:19:51 +00:00
reiniero
62bf453888 fcl-db: cosmetic: descriptions for filter tests; rename Dutch variables
git-svn-id: trunk@25753 -
2013-10-13 12:36:43 +00:00
lacak
62857c565e fcl-db: tests: formatting
git-svn-id: trunk@25326 -
2013-08-22 09:57:45 +00:00
lacak
a4ef523461 fcl-db: base: for UniDirectional DataSet initialize BufferCount=1; + adapt also test (checked with Delphi, where for UniDirectional sql dataset (f.e.TSQLTable) on Next is also generated deDataSetScroll:-1 not deDataSetScroll:0)
git-svn-id: trunk@25174 -
2013-07-26 07:34:07 +00:00
lacak
f95f42d72b fcl-db: tests: introduce TDBBasicsTestCase as ancestor for other test cases (call DBConnector.StartTest and StopTest from him)
git-svn-id: trunk@24888 -
2013-06-13 11:46:42 +00:00
lacak
c5cf5b5b2f fcl-db: bufdataset: Fix wrong initialization of OrgBufID in new blob buffer.
git-svn-id: trunk@24802 -
2013-06-04 05:47:36 +00:00
michael
98c9425c8b * Fix memory leaks in tests
git-svn-id: trunk@24770 -
2013-06-02 13:14:41 +00:00
reiniero
a180cd63fb * fcl-db: tdbf: better support ftWord field type
* fcl-db tests: test ftWord for bufdataset, tdbf etc
To do: verify why all bufdataset export tests now get an access violation

git-svn-id: trunk@24545 -
2013-05-21 13:26:06 +00:00
reiniero
773ee3d21c * fcl-db: clarified Dataset.txt
* fcl-db/dbase tests: fix for failing memo, string test
  improvement in naming saved dbf files (if enabled)

git-svn-id: trunk@24525 -
2013-05-18 08:56:16 +00:00
reiniero
33f4bfd5b2 fcl-db/dbase:
* fix TestRecNo test
* dbtestframework: ignore currency test as tdbf uses bcd fields
* fix writing $1A EOF marker at end of dbf file
* fix: FoxPro does not allow null fields

git-svn-id: trunk@24187 -
2013-04-07 18:33:39 +00:00
lacak
1b9842c33a fcl-db: bufdataset: when new record is inserted or existing edited and some sorted index is presented record is moved to proper position in index. (introduces OrderCurrentRecord method). Small drawback is than in case of inserting record new record is first inserted before current record and then moved to proper position.(but it takes only few memory operations in current implementation).
Bug #23465

git-svn-id: trunk@23592 -
2013-02-11 07:44:20 +00:00
lacak
c5e8af10a4 fcl-db:
* Fixes tests for UniDirectional datasets
* Calculated fields are supported by UniDirectional datasets
* Lookup fields return always null for UniDirectional datasets in Delphi
* First is valid for UniDirectional datasets (in TDataSet.First closes/opens dataset if not at Bof)

git-svn-id: trunk@23307 -
2013-01-04 07:38:02 +00:00
reiniero
c9e838e2f9 + FCL-DB: db test framework: add test for issue #23509: locate must ignore lopartialkey for non-string fields
git-svn-id: trunk@23192 -
2012-12-19 15:58:58 +00:00
lacak
83f411adb9 fcl-db: test: for UniDirectional datasets is RecNo=-1 (also in Delphi), so fix test.
git-svn-id: trunk@23161 -
2012-12-17 06:57:43 +00:00
reiniero
50f1ab686a * fcl-db tests: clarified TTestBufDatasetDBBasics.TestIndexEditRecord error messages/description
git-svn-id: trunk@23134 -
2012-12-11 13:39:39 +00:00
lacak
9e5c31331e fcl-db: tests: add more information to be able find point where test fails.
git-svn-id: trunk@22990 -
2012-11-16 08:43:39 +00:00
lacak
e8b2ae1112 fcl-db: tests: More descriptive error messages.
git-svn-id: trunk@22989 -
2012-11-16 07:11:07 +00:00
lacak
3aedcd11f3 fcl-db test: rename obsolete test plus comment why it is safe to remove him at all. See also bug #22124
git-svn-id: trunk@22850 -
2012-10-26 08:43:48 +00:00
marco
a320db479e * applied BOF patch + test from Lacak2. Mantis #22377
git-svn-id: trunk@22562 -
2012-10-06 14:18:17 +00:00
michael
2bb5a1ba7b * Patch from Ludo Brands to test Modified behaviour
git-svn-id: trunk@21876 -
2012-07-11 15:20:11 +00:00
joost
4151e3f2c1 * Stream TBufdataset fmtBcd fields (xml)
* Stream TBufdataset blob and memo-fields (xml)
 * Refactored code to recognize xml-fieldtypes
 * ftVarBytes fields do not have the 'Binary' subtype (delphi compat)
 * Use fielddefs instead of fields to stream dataset (fixes problems with 
   calculated fields)
 * Added basic blob-tests

git-svn-id: trunk@21735 -
2012-06-29 16:04:55 +00:00