Commit Graph

82 Commits

Author SHA1 Message Date
lacak
c8ecf2eecd fcl-db: tests: Add MS SQL Server to list of servers, which do not support TIME data type >= '24:00:00'
git-svn-id: trunk@27522 -
2014-04-11 08:37:55 +00:00
reiniero
b2813cc627 fcl-db: cosmetic:
* Rename deceptively named GetLogEvent
* Typos

git-svn-id: trunk@27407 -
2014-03-31 09:54:46 +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
reiniero
f7a7701f5c fcl-db: cosmetic
git-svn-id: trunk@27252 -
2014-03-24 07:36:20 +00:00
reiniero
62f8792cb5 fcl-db: dbtestframework:
* Sybase: improve compatibility; instructions for test db required settings

git-svn-id: trunk@27220 -
2014-03-21 12:32:33 +00:00
reiniero
fb8cbfdc92 fcl-db: dbtestframework: cosmetic
git-svn-id: trunk@27145 -
2014-03-15 14:24:53 +00:00
lacak
02551d7129 fcl-db: tests: PostgreSQL stores unquoted identifiers in lower-case which is not compliant with SQL standard.
(and causes some tests fail)
Introduce sql server type identifier char case formating function.

git-svn-id: trunk@27129 -
2014-03-14 07:23:08 +00:00
lacak
0b56c2e237 fcl-db: tests: add STRICT_TABLES for MySQL sql_mode (required for correct tests behavior) + cosmetic
git-svn-id: trunk@27112 -
2014-03-12 08:24:58 +00:00
lacak
d440a05301 fcl-db: tests: pre-set testing environment for MySQL, MSSQL
git-svn-id: trunk@27095 -
2014-03-11 13:57:41 +00:00
reiniero
18ae2b20df fcl-db: dbtestframework:
* mssql server: improve results by setting ANSI_PADDING to ON when connecting.
See http://msdn.microsoft.com/en-us/library/ms187403.aspx

git-svn-id: trunk@27020 -
2014-03-07 10:26:06 +00:00
reiniero
7f93de8697 fcl-db: dbtestframework
* refine r26950: only use SET ANSI_NULL_DFLT_ON ON for MS SQL Server; Sybase ASE does not support it.

git-svn-id: trunk@27019 -
2014-03-07 09:30:54 +00:00
reiniero
b87b2add38 fcl-db: dbtestframework:
* Fix dbf export test column name collisions; fixes "field not found" when exporting

git-svn-id: trunk@26967 -
2014-03-06 12:40:32 +00:00
reiniero
0ec6a79505 fcl-db: dbtestframework: MS SQL Server:
* Create tables allowing NULL values for non-primary keys
* Increase blob size per documentation in order to support large blobs

git-svn-id: trunk@26950 -
2014-03-04 13:08:33 +00:00
reiniero
8e28dd52b4 fcl-db: dbtestframework:
- revert functional changes of previous commit: better deal with NULL setting via connection/session or database level:
http://msdn.microsoft.com/en-us/library/ms174979.aspx			

git-svn-id: trunk@26949 -
2014-03-04 12:46:56 +00:00
reiniero
3eb1edb749 fcl-db: dbtestframework: start work on MS SQL tests.
* Create FPDEV_FIELD table with columns that accept null values for non-primary key.

git-svn-id: trunk@26948 -
2014-03-04 12:13:46 +00:00
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