Commit Graph

67 Commits

Author SHA1 Message Date
reiniero
cb9c15a256 fcl-db: dbtestframework:
* Cosmetic: Oracle, MySQL drop table command convenience call

git-svn-id: trunk@26937 -
2014-03-03 12:25:31 +00:00
reiniero
acd53636ed fcl-db: dbtestframework, Oracle:
* Fix for Oracle not accepting string literals in INSERT INTO statement for BLOB fields.
  Use hex encoding instead.
  Note: probably will have to review BLOB .AsString code in Oracle connector as well

git-svn-id: trunk@26902 -
2014-02-28 10:04:51 +00:00
reiniero
f3b7a7ad2e fcl-db: dbtestframework, Oracle:
* Fix for Oracle can't handle time hours > 23:
ORA-01850: hour must be between 0 and 23

git-svn-id: trunk@26901 -
2014-02-27 16:59:39 +00:00
reiniero
2d8ea638b3 fcl-db: dbtestframework, Oracle:
* ftLargeint requires NUMBER(19,0) instead of NUMBER(18,0)/NUMERIC(18,0) in order to cater for entire largeint range:
see
http://docs.oracle.com/cd/B19306_01/server.102/b14232/apb.htm

* Oracle ftdate/ftdatetime/ftTime require date/timestamp literals:
e.g. 
DATE '2000-01-01', 
TIMESTAMP '0001-01-01 10:45:12.000', 
See
SQL Reference 10g Release 2
http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements003.htm#BABGIGCJ

git-svn-id: trunk@26900 -
2014-02-27 16:45:31 +00:00
reiniero
1bd35f5655 fcl-db: dbtestframework:
* Fix Oracle tests erroring creating FPDEV_FIELD: no support for BIGINT datatype; substitute NUMERIC(18,0) as is done for Firebird.

git-svn-id: trunk@26884 -
2014-02-26 11:04:18 +00:00
lacak
29ddc3f688 fcl-db: mysql: add support for MySQL 5.6
git-svn-id: trunk@26197 -
2013-12-08 09:44:46 +00:00
lacak
4817a0e670 fcl-db: tests: it seems, that Sybase ASE does not have NTEXT data type; so comment it for now; update for rev.25372
git-svn-id: trunk@25376 -
2013-08-27 05:57:17 +00:00
lacak
279587a278 fcl-db: tests: add more field types to FieldDataSet
git-svn-id: trunk@25372 -
2013-08-26 12:42:53 +00:00
reiniero
e7b833bd1b sqldb: tests: clean up forms so database.ini editor is in main form
git-svn-id: trunk@25327 -
2013-08-22 11:07:39 +00:00
lacak
7a46ebd7f1 fcl-db: odbc: map UNSIGNED SMALLINT to ftWord fields. TestSupportWordFields
git-svn-id: trunk@25032 -
2013-07-03 08:24:51 +00:00
lacak
ee2fee4259 fcl-db: sqldb:
- handle quoted table names when retrieving server index informations for quoted TableName
- reset updated flag of ServerIndexDefs when SQL.Text changes
- new tests unit for sqlDB
- tested for FB, MSSQL, MySQL, PostgreSQL, Sqlite, odbc_MSSQL, odbc_PostgreSQL, odbc_Firebird, odbc_MySQL

git-svn-id: trunk@24880 -
2013-06-12 11:01:59 +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
lacak
bc25c4b297 fcl-db: tests: starting from rev.23113 is AutoCommit OFF by default for TODBCConnection. So we does not need set it explicitly (reverts my previous commit in rev.23075)
git-svn-id: trunk@23121 -
2012-12-07 11:12:14 +00:00
lacak
6d8ac30a19 fcl-db: tests:
* add new method CommitDDL to TSQLDBConnector. There is often used in tests "if SQLConnType=interbase then TSQLDBConnector(DBConnector).Transaction.CommitRetaining;" so move this to separate method and use it.
* TODBCConnection in auto commit mode does not work well for Firebird/Interbase, so switch to manual commit mode.

git-svn-id: trunk@23075 -
2012-11-28 12:47:09 +00:00
lacak
595e413950 fcl-db: tests: use SQLServerType instead of SQLConnType.
To allow correctly testing TODBCConnection.
(we need know remote DB server to setup some tests)

git-svn-id: trunk@23074 -
2012-11-28 11:12:09 +00:00
lacak
d53b5371bb fcl-db: tests: adapt some tests for Interbase XE
(Interbase and Firebird are not the same; f.e. Interbase does not support BIGINT data type, CTEs, Execute block, insert returning etc.)

git-svn-id: trunk@23069 -
2012-11-27 12:35:06 +00:00
lacak
f58150e3fd fcl-db: tests: improve testing for approximate numeric data types. SQL standard defines DOUBLE PRECISION (tested in TestSupportFloatFields), FLOAT (tested in TestFloat) and REAL (added new test TestSQLReal (single precision floating point values))
git-svn-id: trunk@23063 -
2012-11-26 13:08:39 +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
lacak
4aa8b2cef7 fcl-db: tests: MS SQL Server and Sybase do not support dates before 1753 for their DATETIME data type so do not try insert these dates into test tables.
(MS SQL 2008 introduced DATETIME2, which support full range of years 0000-9999).

git-svn-id: trunk@22998 -
2012-11-16 13:36:53 +00:00
reiniero
ccead0db7b * fcl-db: forgot rename in {$IFNDEF Win64} section in r22993
git-svn-id: trunk@22996 -
2012-11-16 12:54:22 +00:00
reiniero
02bccda89e fcl-db: cosmetic change due to new variable names too similar to existing ones in r22988
git-svn-id: trunk@22993 -
2012-11-16 11:17:21 +00:00
lacak
7a9a5ea6bf fcl-db: test:
use GetConnectionInfo(citServerType) to determine remote SQL server type and use this to correctly setup supported data types ("FieldtypeDefinitions" and "testValues").
Useful especially for testing TODBCConnection.

git-svn-id: trunk@22988 -
2012-11-16 06:10:05 +00:00
reiniero
c26abcebe7 * FCL-DB: fix for MSSQL/Sybase db test framework errors when existing FPDEV table present.
Thanks to Lacak2 for the fix idea!

git-svn-id: trunk@22898 -
2012-11-01 15:21:54 +00:00
reiniero
91f1a8736c + Added experimental support for Sybase ASE connector in database tests
+ Indicated how to use MS SQL Server trusted authentication/SSPI in database tests

git-svn-id: trunk@22639 -
2012-10-14 07:17:04 +00:00
ludob
fed8e11f9b Added support for fbembedded to DBtestframework mantis 23008 patch from Reinier
git-svn-id: trunk@22608 -
2012-10-10 07:40:23 +00:00
michael
3928be7f4d * Enable 64-bit compilation
git-svn-id: trunk@22607 -
2012-10-10 07:20:06 +00:00
marco
e1283a3e0e * handle milliseconds in IB timestamps, patch by Zipfelvo, improved by Lacak2.
Mantis #17199

git-svn-id: trunk@21244 -
2012-05-05 22:19:25 +00:00
marco
f8e33a7a9c * reenable dblib/freetds for win64, after successfull test.
git-svn-id: trunk@20692 -
2012-04-02 11:46:51 +00:00
marco
4f3f5b9374 * disable some dbtypes for win64 that have no know working clientlib,
patch by Reinier, Mantis #21579

git-svn-id: trunk@20656 -
2012-03-29 18:13:20 +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
040e67772a * Tests for Mysql 5.5, from Lacak2. Mantis #21511
git-svn-id: trunk@20546 -
2012-03-20 21:14:36 +00:00
marco
9b6a69502c * Use double for mysql ftfloat related tests.
Patches by Lacak2, Mantis #21388

git-svn-id: trunk@20456 -
2012-03-01 11:34:47 +00:00
marco
e866049f49 * Fix compilation of sqldbtoolsunit
git-svn-id: trunk@20400 -
2012-02-22 20:48:31 +00:00
marco
047cff3944 * Initial (var)binary field support for mysql and sqlite, patch by Lacak2,
Mantis #20513

git-svn-id: trunk@19516 -
2011-10-19 15:11:08 +00:00
marco
91f8ee8b89 * improve mapping of db type char to relative new ftfixedchar fieldtype. + tests. Mantis #20483, patch by Lacak2
git-svn-id: trunk@19489 -
2011-10-15 12:06:19 +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
8265854813 * more cleanup testsuite (per database typing), mantis #18703
git-svn-id: trunk@18046 -
2011-08-01 14:11:40 +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
marco
0fb5540d25 * Left over testsuite parts of Mantis #17108, patch by Lacak2
git-svn-id: trunk@18038 -
2011-07-31 19:25:32 +00:00
joost
f48c1d7d79 * Fixed some tests, testValues is already set in InitializeConnection, so has to be adapted also
git-svn-id: trunk@17688 -
2011-06-07 20:07:12 +00:00
marco
cf57b81561 * add mysql51 to MySqlTypes
git-svn-id: trunk@17514 -
2011-05-20 20:15:21 +00:00
joost
8def31ec0c * Adapted time-field tests for some differences between databases
git-svn-id: trunk@17427 -
2011-05-10 12:10:39 +00:00
joost
122494f5ea * Fixes datetime values <0
* Fixed time-intervals longer then 24 hours
 * Use 'DATETIME' fields in tests, because mysql's 'TIMESTAMPS' are limited

git-svn-id: trunk@17416 -
2011-05-08 16:32:17 +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
ad52fe0f23 * BigInt is already set by default since r16882
git-svn-id: trunk@17196 -
2011-03-27 16:19:36 +00:00
joost
8b8456aed6 * Added mysql51-connection type to testsuite
git-svn-id: trunk@17195 -
2011-03-27 16:08:55 +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