Commit Graph

1726 Commits

Author SHA1 Message Date
nickysn
e83f3d2978 * updated all the remaining makefiles that 'fpcmake -r' missed
git-svn-id: trunk@31527 -
2015-09-05 11:21:36 +00:00
joost
46906833f1 * Re-generated makefile's
git-svn-id: trunk@31318 -
2015-08-12 19:47:44 +00:00
joost
ac87da7c42 * Filter the Makefile's unit searchpaths from the fpmake command line.
To void cluttering the .fpm file

git-svn-id: trunk@31317 -
2015-08-12 19:15:14 +00:00
lacak
105af639ce fcl-db: mysql: fix reporting of connection errors. Pass allocated connection handle (not Nil) to MySQLError procedure to correctly read error code, error message and sqlstate.
git-svn-id: trunk@31306 -
2015-08-10 07:08:39 +00:00
michael
77b1e16330 * MariaDB version 10.1 is also compatible with 5.6
git-svn-id: trunk@31266 -
2015-08-03 19:21:44 +00:00
lacak
6f3da41769 fcl-db: sdfdataset: Added support for reading of CSV files, which have embedded CRLF between double-quotes (Added TSDFStringList) + test.
git-svn-id: trunk@31243 -
2015-07-30 05:49:05 +00:00
lacak
3d6a6512ad fcl-db: odbc: add support for stIndexes for database metadata retrieval SetSchemaInfo()
git-svn-id: trunk@31225 -
2015-07-24 05:38:26 +00:00
lacak
61c451b391 fcl-db: mysql: add MySQL57Connection. Requires rev.31218.
(Tested with MySQL Server 5.7.7 RC)

git-svn-id: trunk@31220 -
2015-07-23 10:27:29 +00:00
lacak
433d0ce4f6 fcl-db: sqlite: always call InitializeSQLite to properly increment library loading/unloading ref-counting. Regression introduced in rev.27342. Bug #28391
git-svn-id: trunk@31215 -
2015-07-16 08:03:38 +00:00
lacak
a2b7b9cd6e fcl-db: odbc: experimental support for XML and sql_variant SQL Server data types
git-svn-id: trunk@31200 -
2015-07-08 13:00:59 +00:00
Károly Balogh
77bdd83bfc AROS/x86_64: regenerated Makefiles
git-svn-id: trunk@31177 -
2015-06-29 00:09:06 +00:00
michael
d0df1c6fbb * Empty string in case statement does not work
git-svn-id: trunk@31161 -
2015-06-26 09:24:10 +00:00
michael
33916f51d0 * Added logging demo
git-svn-id: trunk@31160 -
2015-06-26 09:12:31 +00:00
michael
4cc83ba03f * Fix typo
git-svn-id: trunk@31159 -
2015-06-26 09:08:33 +00:00
michael
ba506acf9f * Actually log new log types (ActualSQL and ParamValue)
git-svn-id: trunk@31158 -
2015-06-26 09:07:30 +00:00
michael
71ab58a2f1 * Added ActualSQL and ParamValue log types, correct SQLConnector so it passes log options on
git-svn-id: trunk@31157 -
2015-06-26 09:00:09 +00:00
michael
e209b1604f * Correct error message for unknown connector, add param value message
git-svn-id: trunk@31156 -
2015-06-26 08:58:28 +00:00
lacak
2f97bc7f60 fcl-db: fix parameter parsing in case, when in SQL follows two comments, where in 2nd commend is embeded quote char. Bug #22463
git-svn-id: trunk@31155 -
2015-06-26 08:02:49 +00:00
michael
3a746b76fa * Example to demonstrate how to create sql
git-svn-id: trunk@31154 -
2015-06-25 17:32:53 +00:00
lacak
ef00cefa0a fcl-db: cleanup (remove unused parts of code)
git-svn-id: trunk@31146 -
2015-06-23 10:27:36 +00:00
lacak
5e8d1078a7 fcl-db: sqlite: bind boolean parameters according to SQLite expectation:
"Boolean values are stored as integers 0 (false) and 1 (true)."
Until now True was stored as -1 instead of 1. (Reading is correct as "True" is "<>0").
This is potentialy breaking change, DO NOT BACKPORT IT!

git-svn-id: trunk@31086 -
2015-06-17 12:24:58 +00:00
lacak
8214e72841 fcl-db: memds: implemented basic blob support. Blobs are allocated in memory only. Saving to stream/file is not supported yet. Bug #26476
git-svn-id: trunk@31027 -
2015-06-12 07:28:50 +00:00
lacak
b641ffa0e0 fcl-db: base: declare procedure DatabaseErrorFmt with parameter Args as Const Args: array of const. Fixes memleak in 2.6 and also makes procedure signature Delphi compatible.
git-svn-id: trunk@31024 -
2015-06-11 11:53:44 +00:00
michael
526f91b28f * Patch from bug #28125 by Silvio Clecio
git-svn-id: trunk@31021 -
2015-06-10 21:29:09 +00:00
lacak
9f4333d20a fcl-db: tests: Add sqlite3ds connector to db test suite. Patch from Luiz Americo. Bug #28200
git-svn-id: trunk@30935 -
2015-05-29 10:21:22 +00:00
blikblum
a27cee5cfb * Make GetRecNo return 0 on empty and closed datasets
git-svn-id: trunk@30929 -
2015-05-28 14:53:56 +00:00
blikblum
e8175ed0cf * Revert undesired changes introduced in last commit
git-svn-id: trunk@30928 -
2015-05-28 14:29:35 +00:00
blikblum
2fff34b7b7 * Check for nil in BookmarkValid
git-svn-id: trunk@30927 -
2015-05-28 13:17:03 +00:00
blikblum
f1db1db8b9 * Move cursor forward instead of backward when deleting
git-svn-id: trunk@30926 -
2015-05-28 12:22:40 +00:00
lacak
242d750ef5 fcl-db: sqldb: ExecuteDirect should call StartImplicitTransaction, when Transaction.Options contains stoUseImplicit (else it leads later to AV due to nil Transaction.Handle)
git-svn-id: trunk@30920 -
2015-05-27 05:06:01 +00:00
Jonas Maebe
89418d23e5 * regenerated Makefiles with Linux/AArch64 support
git-svn-id: trunk@30891 -
2015-05-20 20:15:10 +00:00
blikblum
8e9b246042 * Properly set detail sql when master key is null. Issue #11423
git-svn-id: trunk@30888 -
2015-05-20 02:15:43 +00:00
blikblum
6542cfe0ad * Don't fetch all records in detail dataset when master dataset is empty
git-svn-id: trunk@30887 -
2015-05-20 01:56:35 +00:00
lacak
5b3b1c7dea fcl-db: sqlite: implement CreateDB/DropDB methods + InitializeSqlite/ReleaseSqlite
git-svn-id: trunk@30885 -
2015-05-19 11:29:52 +00:00
lacak
126f94ba41 fcl-db: sqlite: implement CreateDB/DropDB methods
git-svn-id: trunk@30884 -
2015-05-19 11:16:39 +00:00
lacak
ab93b0bbe6 fcl-db: sdfdataset: attempt to fix "misaligned data access" error on WinCE / ARM platform. Bug #17871
git-svn-id: trunk@30883 -
2015-05-19 08:26:32 +00:00
lacak
8215c485f2 fcl-db: sdfdataset: improved handling of space padded values according to RFC4180:"Spaces are considered part of a field and should not be ignored".
Now fields in internal record buffer are always null terminated (also for TFixedFormatDataset) + tests

git-svn-id: trunk@30882 -
2015-05-19 07:29:27 +00:00
lacak
5c9d5cf896 fcl-db: base: TBlobField.GetAsString returns uninitialized Result for blob Size=0. Bug #28113
git-svn-id: trunk@30881 -
2015-05-18 06:39:32 +00:00
lacak
d5570fb4c4 fcl-db: base: fix TBlobField.SetBlobType. Bug #28103
git-svn-id: trunk@30880 -
2015-05-18 06:04:13 +00:00
marco
f8fda7ed65 * typo fix, patch by Silvio Cl'ecio mantis #28107
git-svn-id: trunk@30869 -
2015-05-16 16:43:04 +00:00
lacak
b60bbf26e1 fcl-db: tests: add tests for TFixedFormatDataset
git-svn-id: trunk@30845 -
2015-05-14 08:47:28 +00:00
blikblum
49a52457dd * Fix access violation in Delete when state = dsEdit
git-svn-id: trunk@30839 -
2015-05-09 19:59:56 +00:00
lacak
b83ff7dd27 fcl-db: oracle: fix transaction parameters handling (only one of OCI_TRANS_READONLY, OCI_TRANS_READWRITE, OCI_TRANS_SERIALIZABLE should be used). Bug #28043
git-svn-id: trunk@30815 -
2015-05-07 05:44:22 +00:00
lacak
31c1581b9f fcl-db: oracle: fix transaction parameters handling (only one of OCI_TRANS_READONLY, OCI_TRANS_READWRITE, OCI_TRANS_SERIALIZABLE should be used). Bug #28043
git-svn-id: trunk@30814 -
2015-05-07 05:38:12 +00:00
lacak
d0b365c99a fcl-db: sqldb: fix trailing quote char
git-svn-id: trunk@30807 -
2015-05-06 07:13:04 +00:00
lacak
692398e195 fcl-db: interbase: better detection if stored procedure is selectable i.e. returns resultset (or output parameters)
git-svn-id: trunk@30804 -
2015-05-05 08:57:59 +00:00
lacak
8b41206ffd fcl-db: sqldb:
- if there is already opened FUpdateQry, which is used for refreshing field values, we must first close it and later open again to get new values.
- if there is automatically generated UpdateSQL, then we must always call ConstructUpdateSQL to correctly get ReturningClause
(probably there is better way how to handle SQL statements with returning clause)

git-svn-id: trunk@30798 -
2015-05-04 12:43:16 +00:00
lacak
35f6cbfbae fcl-db: tests: improve test for RefreshOnUpdate using returning clause.
When more than one record is updated then only fields in first record are correctly refreshed. Related to rev.30796 (which closes one bug, but opens other)

git-svn-id: trunk@30797 -
2015-05-04 12:01:26 +00:00
lacak
5017d1e6eb fcl-db: sqldb:
- if there is explicitly supplied RefreshSQL do not try generate returning clause.
- if there is explicitly supplied InsertSQL, UpdateSQL set ReturningClause to False as it can lead to "can not open non-select statement"

git-svn-id: trunk@30796 -
2015-05-04 08:37:44 +00:00
lacak
93802cf5ee fcl-db: tests: Follow rev.30691 (Renamed sqoPreferRefresh to sqoRefreshUsingSelect) Bug #28017
git-svn-id: trunk@30795 -
2015-05-04 08:15:39 +00:00