Michaël Van Canneyt
eb009243aa
* PChar -> PansiChar
2023-07-15 18:22:41 +02:00
Michaël Van Canneyt
c46b45bf72
* Patch from Laco to add TSingleField
2022-02-14 09:15:43 +01:00
Michaël Van Canneyt
6cc82086a9
* Patch from Laco to add tests
2022-01-14 15:41:48 +01:00
Michaël Van Canneyt
fecc6db4c2
* AsString takes into account empty true or false. Fix issue #39371
2022-01-14 10:05:28 +01:00
Michaël Van Canneyt
d9996607b8
* Displayvalues can omit false part. Fix issue #39371
2022-01-14 10:01:23 +01:00
lacak
04e6c5c858
fcl-db: tests: small improvement (change order of tests; first test native field type, after that string representation)
...
git-svn-id: trunk@42671 -
2019-08-13 07:28:26 +00:00
lacak
1edf2d3cd0
fcl-db: tests: Adjust tests to take into account connection charset and field codepage when testing Size and DataSize
...
git-svn-id: trunk@39003 -
2018-05-16 11:30:37 +00:00
michael
5925568526
* Small example for CSV Dataset examples/showcsv.pp
...
git-svn-id: trunk@38542 -
2018-03-17 00:31:46 +00:00
michael
10d20a57b7
* Fix bug ID #32962 , allowing to define multiple indexes in indexdefs
...
git-svn-id: trunk@38353 -
2018-02-26 17:19:59 +00:00
michael
5a9488b1fc
* Add test for clearfields
...
git-svn-id: trunk@38065 -
2018-01-28 10:16:53 +00:00
michael
edca192fad
* Fix many warnings & hints
...
git-svn-id: trunk@37356 -
2017-09-29 07:50:50 +00:00
lacak
93a528cd7a
fcl-db: tests: test for bug #31532
...
git-svn-id: trunk@35629 -
2017-03-19 17:49:58 +00:00
lacak
68f626f725
fcl-db: bufdataset: implement RevertRecord method for canceling one record cached update.
...
(There might be problem in special cases when data are saved/restored)
git-svn-id: trunk@33420 -
2016-04-04 11:24:09 +00:00
lacak
57c7b32490
fcl-db: tests: move TestCancel method as Edit/Cancel is not supported on UniDirectional datasets (avoid false negative results)
...
git-svn-id: trunk@32854 -
2016-01-05 08:19:21 +00:00
lacak
e4369ba51b
fcl-db: implement CompareBookmarks in Delphi compatible way.
...
"value less than 0 if Bookmark1 is less than Bookmark2, 0 if the bookmarks are identical, and a value greater than 0 if Bookmark1 is greater than Bookmark2."
Also FPC documentation: "It returns a negative value if Bookmark1 is located before Bookmark2, zero if they refer to the same record, and a positive value if the second bookmark appears before the first bookmark."
Special case is if one of bookmarks is nil:
nil, "not nil" returns 1
"not nil", nil returns -1
Bug #28730
git-svn-id: trunk@32131 -
2015-10-23 08:57:23 +00:00
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