Commit Graph

67 Commits

Author SHA1 Message Date
lacak
c73e831633 fcl-db: tests: use built-in function BytesOf() instead uf own implementation.
git-svn-id: trunk@39338 -
2018-06-29 06:57:57 +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
lacak
0a72573e02 fcl-db: tests: Add support for "CharSet" configuration option (specified in database.ini)
git-svn-id: trunk@34093 -
2016-07-11 07:40:38 +00:00
lacak
8e2ac164f8 fcl-db: tests: preparation for BOOLEAN data type tests for Firebird 3
git-svn-id: trunk@33666 -
2016-05-10 13:37:23 +00:00
lacak
ae3f0f3752 fcl-db: base: introduce TParam.AsBytes + test
(FDataType is set to ftVarBytes intentionally due to Delphi compatibility)

git-svn-id: trunk@27844 -
2014-06-03 08:33:09 +00:00
lacak
704f018183 fcl-db: tests: cosmetic
git-svn-id: trunk@27670 -
2014-04-26 17:06:13 +00:00
lacak
6e18414cb3 fcl-db: tests: reduce decimal digits of just added new testCurrency value to 2 because PostgreSQL uses for money data type only 2 decimal places.
git-svn-id: trunk@27669 -
2014-04-26 16:59:34 +00:00
lacak
2d785d1035 fcl-db: tests: add comment for SQLite why some test for exact numeric (currency) values, which can not be expressed lossless as double, fail.
Add to testCurrencyValues, also value with decimal point which can be expressed lossless as double.

git-svn-id: trunk@27668 -
2014-04-26 16:55:39 +00:00
lacak
ec1d9d497b fcl-db: tests: reduce testCurrencyValues to fit into DECIMAL(18,4) and also reduce decimal digits to 2 because PostgreSQL uses for money data type only 2 decimal places.
Partially reverts my previous commit in rev.27613

git-svn-id: trunk@27643 -
2014-04-23 13:34:00 +00:00
lacak
e09f9bf781 fcl-db: bufdataset: fix ftBCD field compare function. ftBCD fields are using currency data type, which is 64 bit long, so compare function must be for 64 bit long integer not for 32 bit long.
+ update test values for ftBCD fields, which was too small and not able catch problem.

git-svn-id: trunk@27613 -
2014-04-20 17:29:43 +00:00
reiniero
3065e3289b fcl-db: dbtestframework:
+ add support for logging test execution/sqldb log events to file. Enable by setting the the logfile= entry in database.ini

git-svn-id: trunk@27329 -
2014-03-29 10:17:31 +00:00
lacak
8aa280fd81 fcl-db: tests: add '23:59:59' to test time values
git-svn-id: trunk@27178 -
2014-03-18 08:20:50 +00:00
reiniero
ec5d09b16d * fcl-db tests: memds.CopyFromDataset test when record is not the first record
git-svn-id: trunk@26232 -
2013-12-15 03:28:37 +00:00
lacak
aa147703d5 fcl-db: memds: when FieldDefs are changed set TableIsCreated to false to signal, that CreteTable should be called.
+ Add test unit for TMemDataset to allow test specific properties/methods of TMemDataset
+ Add this unit to test frameworks

git-svn-id: trunk@26025 -
2013-11-11 09:14:21 +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
5e1b3b303a fcl-db: tests: formatting (order methods)
git-svn-id: trunk@24881 -
2013-06-12 12:30:56 +00:00
michael
98c9425c8b * Fix memory leaks in tests
git-svn-id: trunk@24770 -
2013-06-02 13:14:41 +00:00
lacak
ec78ec807c fcl-db: tests: Adjust sqlDB/SQLite3 tests for newly added test TestSupportWordFields (WORD fields are alredy supported by SQLite3Connection)
git-svn-id: trunk@24557 -
2013-05-23 12:06:59 +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
4fd80b88ab * fcl-db/dbase: fix trace datasets for tests
git-svn-id: trunk@24141 -
2013-04-03 16:26:25 +00:00
reiniero
9758f4fa6a sqldb/dbtestframework fixes:
* slight cleanup dbftoolsunit
* Fix gui framework selecting old connector after selecting another.
* Cosmetic, spelling fixes.

git-svn-id: trunk@24090 -
2013-03-31 15:09:47 +00:00
lacak
9f60eca94f fcl-db: tests: move IFDEF to proper position
git-svn-id: trunk@23189 -
2012-12-19 08:27:04 +00:00
lacak
31fa3c9db2 fcl-db: tests: basic test for ftWideString and ftWideMemo for SQLite. Tests if these field types are recognized when saving/restoring to XML format. See rev.22997
git-svn-id: trunk@23037 -
2012-11-20 12:44:12 +00:00
michael
3f803013a3 * Applied patch from #22899
git-svn-id: trunk@22401 -
2012-09-16 11:38:49 +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
marco
614a192d87 * Improved comments in toolsunit. Mantis #21910, patch by Reinier Olislagers
git-svn-id: trunk@21199 -
2012-05-02 20:42:39 +00:00
michael
44871bbbbd * Patch to reorder datetime testing values, so out-of-range comes last
git-svn-id: trunk@20585 -
2012-03-23 09:05:01 +00:00
michael
386fb374ce * Applied tests pach from bug #17303
git-svn-id: trunk@20572 -
2012-03-22 13:45:54 +00:00
marco
6d830a270d * Adds methods to TBinaryField (getasvariant/setasvarvalue) Mantis #20532
git-svn-id: trunk@19656 -
2011-11-19 12:42:32 +00:00
marco
43e9ffca3b * add bufdataset to test framework, Mantis #20081, patch by bigchimp
git-svn-id: trunk@19495 -
2011-10-15 16:09:54 +00:00
marco
f22ec8545f * test for datetime params + fixes some minor cross-database specific things
patch by Lacak2, mantis #19878

git-svn-id: trunk@18152 -
2011-08-09 13:08:52 +00:00
marco
064ecf3d6c * fix decimalseparator locale issues in fcl-db testsuite, mantis #19564
git-svn-id: trunk@18051 -
2011-08-01 16:22:18 +00:00
marco
db05a07412 * Support for BOOLEAN and BIGINT in fcl-db tests, initial version, patch by Lacak2
git-svn-id: trunk@18039 -
2011-07-31 19:33:38 +00:00
joost
c906f78b4a * Fixed typo(?) in r17424
git-svn-id: trunk@17426 -
2011-05-10 10:29:48 +00:00
joost
0e56e188f8 * Simplified formatting of timeinterval strings, bug #18763
git-svn-id: trunk@17424 -
2011-05-10 09:06:40 +00:00
joost
129c565312 * Fixed comments
git-svn-id: trunk@17420 -
2011-05-09 18:37:14 +00:00
joost
7f1a6b8e3e * Patch from Ladislav Karrach to add msec support to sqlite-time fields,
bug #18840
 * Adapted/fixed test for timefields, to allow testing for msec values, 
   bug #18763

git-svn-id: trunk@17415 -
2011-05-08 14:51:34 +00:00
joost
9689e49657 * Patch from Ladislav Karrach to fix some locale-test issues
* Removed unnused variables, bug #18763

git-svn-id: trunk@17409 -
2011-05-07 18:37:55 +00:00
joost
44f09afaf6 * Patch from Lasislav Karrach to implement ftTime parameter support to odbc+
test, bug #18824

git-svn-id: trunk@17401 -
2011-05-03 20:59:40 +00:00
joost
366a8dd966 * Added test for ftTime fields
* Fixed problem with ftTime field values that exceed 24 hours (odbc)

git-svn-id: trunk@17000 -
2011-02-24 22:15:46 +00:00
joost
f496f3c795 * Fixed support of TFmtBcd fields for sqlite3, bug #16853
* Cleaned up accidentally comitted files in r16948

git-svn-id: trunk@16954 -
2011-02-20 18:22:06 +00:00
joost
57e39c37ae * Added ability to specify fieldname-quote chars for tests. Usefull for ODBC where these chars can differ
git-svn-id: trunk@15505 -
2010-07-01 15:21:46 +00:00
joost
32fd85f17e * Revert accidentally commited files in r15499
git-svn-id: trunk@15500 -
2010-06-30 18:32:25 +00:00
joost
f016c79d7a * Patch from Luiz Americo to fix a double pathdelim in filename, bug #16737
git-svn-id: trunk@15499 -
2010-06-30 18:29:41 +00:00
joost
6a6ab2a392 * Call TDatalink.LayoutChanged when controls are disabled and dataset closed/opened. Bug #16428 + test
git-svn-id: trunk@15422 -
2010-06-13 12:26:50 +00:00
joost
7181287ed2 * Added TDBConnector.TestUniDirectional property
git-svn-id: trunk@15389 -
2010-06-05 16:39:53 +00:00
joost
f74bd99413 * Make the dbconnector ref-counted
git-svn-id: trunk@15388 -
2010-06-05 16:24:53 +00:00
joost
c10e229a4b * Moved TDBBasicsTestSetup to toolsunit
git-svn-id: trunk@15373 -
2010-06-04 10:44:08 +00:00
paul
6b1f84087d tests: fix 2 database tests which assumed that dates are in yyyy-mm-dd format on all locales
git-svn-id: trunk@14492 -
2009-12-29 03:30:33 +00:00
joost
7a8a249687 * Money-types are stored as int64 by postgres
* Use a dot as decimalseparator while generating test-data for currencies

git-svn-id: trunk@12572 -
2009-01-19 21:53:05 +00:00