Commit Graph

955 Commits

Author SHA1 Message Date
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
michael
b11276b34f * Patch from Graeme to reduce dependencies (consolerunner is now in FCL)
git-svn-id: trunk@22602 -
2012-10-09 11:18:39 +00:00
michael
fdf66d1be9 * take care of destructor being called if constructor failed
git-svn-id: trunk@22601 -
2012-10-09 11:07:08 +00:00
michael
74149ab196 * Patch from Luiz Americo for some cleanup (bug ID 22550)
git-svn-id: trunk@22600 -
2012-10-09 11:04:44 +00:00
lacak
d0fbfe4525 Implements support for MySQL Transactions. Mantis #19137. Patch by Ludo Brands.
git-svn-id: trunk@22598 -
2012-10-09 05:26:27 +00:00
ludob
da5a38c8ff Moved sqlite3backup.pas to src/sqldb/sqlite
git-svn-id: trunk@22583 -
2012-10-08 09:09:27 +00:00
ludob
91a468307a Fix for table names converted to uppercase Mantis 0022766 Patch by Lacak2
git-svn-id: trunk@22572 -
2012-10-07 15:06:59 +00:00
marco
d2cc65aff0 * improve statementtype detection. Mantis #22723, patch by Lacak2
git-svn-id: trunk@22563 -
2012-10-06 14:25:02 +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
marco
6776c54357 * patch from Reinier: More details on setting up test database, ignoring tests for certain databases.... mantis #22970
git-svn-id: trunk@22560 -
2012-10-06 12:31:15 +00:00
marco
7ec9f59e45 * Sqlite3backup, implements backups between 2 TSQLite3Connections, TSQLite3Connection backup to file and TSQLite3Connection restore from file.
by Ludo Brands, mantis #22394

git-svn-id: trunk@22559 -
2012-10-06 12:29:36 +00:00
joost
11ea2561b9 * Merging patch which was committed to wrong branch:
--- Merging r21943 into '.':
U    packages/fcl-db/fpmake.pp
U    packages/dblib/fpmake.pp

# revisions: 21943
------------------------------------------------------------------------
r21943 | joost | 2012-07-21 22:34:26 +0200 (Sat, 21 Jul 2012) | 5 lines

 * Patch from Mark Morgan Lloyd (bug 22459):
   - Adds Solaris to SQLDBConnectionOSes 
   - added mssqlconn: Sybase/MS SQL client driver support to solaris 
   - for all platforms: sorted constants lines so its easier to see what OSes get what
   - for all platforms: cleaned up throwing in Oracle with PostgreSQL: separated constant
------------------------------------------------------------------------

git-svn-id: trunk@22552 -
2012-10-05 19:32:42 +00:00
marco
37ed624706 * Make validchar writable, Mantis #23002, patch by Anton
git-svn-id: trunk@22498 -
2012-09-28 19:55:41 +00:00
marco
aa7a980a6f * patch for mantis #22371 TTimeField.SetAsString stores data as NativeFormat corrupting time fields
git-svn-id: trunk@22471 -
2012-09-27 11:16:25 +00:00
michael
f019e004ce * Patch to add support for charset (bug 22985)
git-svn-id: trunk@22470 -
2012-09-27 09:10:08 +00:00
michael
10b5d31fc1 Patch to fix type (Bug ID 22994)
git-svn-id: trunk@22468 -
2012-09-27 08:09:20 +00:00
michael
9d8235c9d8 * Fixed uninitialized string results
git-svn-id: trunk@22403 -
2012-09-16 14:05:37 +00:00
michael
f496994f46 * Use consoletestrunner from fcl-unit. Old output available through --legacy or -g
git-svn-id: trunk@22402 -
2012-09-16 11:55:07 +00:00
michael
3f803013a3 * Applied patch from #22899
git-svn-id: trunk@22401 -
2012-09-16 11:38:49 +00:00
tom_at_work
9428c78d63 Pass OPT to compilation of fpmake.
Solves issues with systems that e.g. require special options for compilation of programs (e.g. libc programs to find libc startup code) or the actual build has been compiled with options that are incompatible with default ones.

Tested changes by building an i386-linux local build and i386-linux->arm-linux cross-builds

git-svn-id: trunk@22397 -
2012-09-15 23:41:44 +00:00
joost
e17d1c9b37 * Support Interbase 7 and Firebird 3 boolean fields
* Minor optimization using local VSQLVar variable 
   Patch by Lacak2, mantis 22698

git-svn-id: trunk@22232 -
2012-08-24 15:56:37 +00:00
michael
53c03717d5 * SQL DB loader implemented
git-svn-id: trunk@22163 -
2012-08-21 19:41:51 +00:00
michael
2939c41263 * Patch for sdfdata multiline support and assoiated test case from Reinier Olislagers (bug 22237 and bug #22213)
git-svn-id: trunk@22145 -
2012-08-20 16:41:15 +00:00
tom_at_work
7c56a9f34d Revert r22080 because it prevents crosscompilation.
git-svn-id: trunk@22101 -
2012-08-16 21:24:47 +00:00
Jonas Maebe
e06d3a6e04 * raise an error when locate is used on a closed dataset (patch by
Claudio Romero, mantis #13938)

git-svn-id: trunk@22098 -
2012-08-16 17:53:09 +00:00
tom_at_work
7b6bcd315f Pass FPCOPT to fpmkunit and fpmake compilation. This prevents build errors of these programs if the given FPCOPT options of the previously compiled RTL are incompatible to default options. Regenerated associated makefiles.
git-svn-id: trunk@22080 -
2012-08-14 19:09: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
michael
c10901e460 * Patch from Ludo Brands to fix Modified behaviour (bug ID 22381)
git-svn-id: trunk@21875 -
2012-07-11 15:18:37 +00:00
marco
a1b3e79554 * improvements to bufdataset testsuite specially for ftmemo and ftblob.
Patch by Lacak2, Mantis #22364

git-svn-id: trunk@21768 -
2012-07-04 09:18:23 +00:00
marco
8a72ccd1df * Add TestSpecificTBufDataset unit into dbtestframework to non gui testframework
patch by Lacak2, Mantis #22363

git-svn-id: trunk@21767 -
2012-07-04 09:15:04 +00:00
joost
c02351da63 * Implemented autoincremental fields for TBufDataset
git-svn-id: trunk@21757 -
2012-07-02 11:42:05 +00:00
joost
ec67f10680 * Fixed CreateDataset when TBufDataset.Filename is set
* Clear old fielddefs before reading TBufDataset from file
 * Call bindfields while reading a dataset from file while there are 
   (calculated) fields present + test

git-svn-id: trunk@21756 -
2012-07-02 10:28:37 +00:00
marco
cbb9e3b077 * Improved pqconnection error reporting. Patch by Ludo, Mantis #22336
git-svn-id: trunk@21750 -
2012-07-01 15:50:13 +00:00
marco
b616fca354 * Mantis #22249 Mysql BIT type support.
git-svn-id: trunk@21743 -
2012-06-30 17:57:29 +00:00
marco
c4ec774c4c * Fixes Sql parsing problems with spaces lacking between keyword and expression
(like where(id=0) ) Mantis #21965, patch by Ludo, updated by Lacak2.

git-svn-id: trunk@21742 -
2012-06-30 17:53:42 +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
31371eade1 * fix misnamed field in lookup related test, mantis #22113, patch by Lacak2.
git-svn-id: trunk@21683 -
2012-06-22 19:16:42 +00:00
marco
40d26638a7 * skip newline after comment. Patch by Lacak2, #22031
git-svn-id: trunk@21682 -
2012-06-22 19:14:26 +00:00
marco
48366917f5 * Add bufdataset support to testsuite for ftFixedChar and ftFmtBCD field types
mantis #22297 patch by Lacak2

git-svn-id: trunk@21674 -
2012-06-21 15:31:21 +00:00
marco
2941b1e456 * do not set fregistered directoy since that hampers registerevents().
Patch by Ludo, Mantis #22244
 

git-svn-id: trunk@21643 -
2012-06-18 11:15:18 +00:00
joost
8b6c61bb86 * Forgot to commit file in r21641
git-svn-id: trunk@21642 -
2012-06-18 10:41:35 +00:00
joost
f67a327240 * Set Field.FieldNo to 0 for fields that are not bound to a fielddef, so that
they are distinguisable from calculated fields with a FieldNo of -1.
 * Added test to check for an exception when the Fields do not correspond to
   the underlying data.
 * Improved exception message when the Fields do not correspond with the data

git-svn-id: trunk@21641 -
2012-06-18 10:39:34 +00:00
joost
cc3ac1dd95 * Createdataset should not create fielddefs for calculated or lookup fields
git-svn-id: trunk@21640 -
2012-06-18 09:48:52 +00:00
michael
872409d293 * Forgot to apply patch from #21905 in trunk
git-svn-id: trunk@21627 -
2012-06-17 07:53:28 +00:00
marco
f2ccc9f593 * temporarily disabled the Fields.Count<FieldDefs.Count check.
mantis #22030

git-svn-id: trunk@21591 -
2012-06-13 09:14:55 +00:00
marco
d97aa91e28 * Let gettablenames with TRUE as second param succeed, out of compatibility
Patch from Lacak2 Mantis #22255

git-svn-id: trunk@21583 -
2012-06-12 13:36:07 +00:00
michael
4b8ffef650 * Patch from Ludo Brands to fix memory leak (bug 22228)
git-svn-id: trunk@21540 -
2012-06-08 08:33:28 +00:00
michael
efe5362670 * Fixed bug #19376: when quoting, quote character should be doubled
git-svn-id: trunk@21491 -
2012-06-05 18:43:55 +00:00
michael
f97c4b7b57 * Applied patch from Reinier Olislaghers to quote memo fields (bug 19759)
git-svn-id: trunk@21490 -
2012-06-05 18:35:22 +00:00