Commit Graph

55946 Commits

Author SHA1 Message Date
Michaël Van Canneyt
10e052a579 * Correct reader signatures
(cherry picked from commit 25e937b0c9)
2023-12-16 14:26:21 +01:00
Michaël Van Canneyt
97cba6bbdf * cast empty string to char no longer compiles
(cherry picked from commit 2f81580e04)
2023-12-16 14:26:14 +01:00
Michaël Van Canneyt
a8393a31c0 * Rework packet handling
(cherry picked from commit 776790d014)
2023-12-16 14:26:08 +01:00
Michaël Van Canneyt
99883c8e1d * Fix error in calclookupvalue
(cherry picked from commit 3cfec8f905)
2023-12-16 14:26:01 +01:00
michael
9b3d29899f * Enable TDatasource.Enabled, patch from Laco
git-svn-id: trunk@49630 -
(cherry picked from commit c48ac0a71e)
2023-12-16 14:25:54 +01:00
ondrej
4c736d8a24 fpSQLParser: fix float literal parsing (make it locale-independent)
git-svn-id: trunk@49564 -
(cherry picked from commit 48f259589b)
2023-12-16 14:25:46 +01:00
michael
3c618da545 * Fix issue #39009, remove size 20 limit on float types
git-svn-id: trunk@49507 -
(cherry picked from commit f3e7d96053)
2023-12-16 14:23:03 +01:00
ondrej
0c5cd7bfaa odbc: fix comments
git-svn-id: trunk@49471 -
(cherry picked from commit d2e2ac5181)
2023-12-16 14:22:50 +01:00
ondrej
40e88bb732 odbc: use ftMemo/ftWideMemo for SQL_VARCHAR/SQL_WVARCHAR declared as nvarchar(max)
git-svn-id: trunk@49470 -
(cherry picked from commit 3fa35f258b)
2023-12-16 14:22:36 +01:00
lacak
340d7d1308 fcl-db: return default values for (published) properties where getters are not implemented yet.
git-svn-id: trunk@49238 -
(cherry picked from commit d7bef47c24)
2023-12-16 14:22:27 +01:00
lacak
d32f2867f5 fcl-db: Introduce TObjectField and TArrayField. Only essential interface parts (added new objects, new properties and methods according to Delphi documentation).
There is no implementation of methods in fields.inc and dataset.inc.
Only references to Delphi documentation is added as comments. These comments should be deleted after implementation.

git-svn-id: trunk@49188 -
(cherry picked from commit 5d81c6c43b)
2023-12-16 14:22:18 +01:00
michael
bf49538a0f * Apparently, taking code from freeclx is not OK
git-svn-id: trunk@49091 -
(cherry picked from commit a8df728548)
2023-12-16 14:22:04 +01:00
lacak
24e680d510 fcl-db: Introduce TArrayField. Only essential parts (added new object properties according to Delphi documentation). Some code taken from FreeCLX project (https://sourceforge.net/projects/freeclx/)
git-svn-id: trunk@49085 -
(cherry picked from commit 89fc5b7f8d)
2023-12-16 14:21:55 +01:00
lacak
da028ae8fa fcl-db: Introduce TObjectField. Only essential parts (added new object properties according to Delphi documentation)
git-svn-id: trunk@49083 -
(cherry picked from commit 803402b225)
2023-12-16 14:21:49 +01:00
lacak
198acd29f9 fcl-db: Introduce TObjectField. Only essential parts (added new object properties according to Delphi documentation). Some code taken from FreeCLX project (https://sourceforge.net/projects/freeclx/)
git-svn-id: trunk@49082 -
(cherry picked from commit f517d21507)
2023-12-16 14:21:32 +01:00
ondrej
bfe83a3a87 fcl-db: odbc: make TODBCCursor.STMTHandle and ODBCSuccess public
git-svn-id: trunk@49056 -
(cherry picked from commit 1ad9091763)
2023-12-16 14:21:25 +01:00
ondrej
a4866c5c65 fcl-db: odbc: partially revert #49049
git-svn-id: trunk@49051 -
(cherry picked from commit 6b0d010a67)
2023-12-16 14:21:18 +01:00
ondrej
35da09230a fcl-db: odbc: go to first selectable result. issue #38664
git-svn-id: trunk@49049 -
(cherry picked from commit fa0b053b21)
2023-12-16 14:21:11 +01:00
ondrej
2338aa4d5e pqconnection: refactoring - use variable
git-svn-id: trunk@49011 -
(cherry picked from commit 28e359f091)
2023-12-16 14:21:04 +01:00
ondrej
cc3a46b9e1 pqconnection: support ftVarBytes parameters (TParam.SetAsBytes)
git-svn-id: trunk@49010 -
(cherry picked from commit 72fc981c7f)
2023-12-16 14:20:55 +01:00
michael
64d6655f5b * Fix compilation, additional mysql
git-svn-id: trunk@48710 -
(cherry picked from commit 22ad12d5b7)
2023-12-16 14:20:49 +01:00
michael
c2edb12ac1 * Fix issue ID #38358
git-svn-id: trunk@48409 -
(cherry picked from commit 6bdd7dc3b9)
2023-12-16 14:20:38 +01:00
michael
4620cd07a3 * Patch from Laco to fix bug ID #37849
git-svn-id: trunk@48381 -
(cherry picked from commit 67a3af29a0)
2023-12-16 14:20:23 +01:00
michael
4351d2a62d * Add Port to SQLConnector
git-svn-id: trunk@48358 -
(cherry picked from commit 25e2f29e01)
2023-12-16 14:19:41 +01:00
michael
74cd768246 * Only set cursor name for selectable queries
git-svn-id: trunk@47643 -
(cherry picked from commit a82ac3fb6a)
2023-12-16 14:14:43 +01:00
michael
c80ee7d794 * Allow for async apply updates
git-svn-id: trunk@47641 -
(cherry picked from commit a9e7d1ef0d)
2023-12-16 14:14:34 +01:00
ondrej
dfbed51167 * fcl-db: PQConnection needs a lowercase port param
git-svn-id: trunk@47607 -
(cherry picked from commit 63a231a93d)
2023-12-16 14:14:26 +01:00
michael
b569782153 * Make fpdoc happy, semicolon before final end
git-svn-id: trunk@47481 -
(cherry picked from commit d88db13211)
2023-12-16 14:14:03 +01:00
michael
44e6262844 * Set defaults for boolean props
git-svn-id: trunk@47412 -
(cherry picked from commit a4995e3852)
2023-12-16 14:13:57 +01:00
michael
b1fb7b2382 * Fix bug ID #37645: allocate cursor in firebird to walk result set
git-svn-id: trunk@47400 -
(cherry picked from commit 06f5e293df)
2023-12-16 14:13:50 +01:00
michael
07d353c3c6 * Fix for 37993, attempt to prevent memory leak in case of database shutdown
git-svn-id: trunk@47216 -
(cherry picked from commit 6d5816085d)
2023-12-16 14:13:41 +01:00
michael
bec582fa06 * Patch from Laco with additions
git-svn-id: trunk@47138 -
(cherry picked from commit 0e474f4748)
2023-12-16 14:13:28 +01:00
ondrej
431312afc6 sql parser: identifier can start with the "_" character - test case
git-svn-id: trunk@46738 -
(cherry picked from commit d0c9b4f982)
2023-12-16 14:13:17 +01:00
ondrej
fa52390d16 sql parser: identifier can start with the "_" character
git-svn-id: trunk@46737 -
(cherry picked from commit 39c8d5c635)
2023-12-16 14:13:10 +01:00
ondrej
8a4e8b3846 sql parser: support CASE with selector (CASE A WHEN 1 THEN B ELSE C END)
git-svn-id: trunk@46489 -
(cherry picked from commit 809db09169)
2023-12-16 14:13:01 +01:00
ondrej
6659ca26e5 sql parser: support "SELECT 'a' 'b'" syntax (MSSQL)
git-svn-id: trunk@46472 -
(cherry picked from commit 0b440758ea)
2023-12-16 14:12:52 +01:00
ondrej
b78e750655 sql parser: support functions with identifier path (MSSQL)
git-svn-id: trunk@46467 -
(cherry picked from commit b814c41ea9)
2023-12-16 14:12:43 +01:00
ondrej
7d4dd4f12c sql parser: fallback for all parser keywords to identifiers/functions if they are used in an expression (e.g. LEFT was affected)
git-svn-id: trunk@46446 -
(cherry picked from commit bcde18f879)
2023-12-16 14:12:26 +01:00
ondrej
72e2a99b1f sql parser: add source position information to element lists
git-svn-id: trunk@46439 -
(cherry picked from commit 672e59317a)
2023-12-16 14:12:19 +01:00
ondrej
8a8b053d2b sql parser: support SELECT without a FROM clause
git-svn-id: trunk@46438 -
(cherry picked from commit 98036f52be)
2023-12-16 14:12:11 +01:00
ondrej
b473b7b5af sql parser: fix source position
git-svn-id: trunk@46429 -
(cherry picked from commit 56613723b9)
2023-12-16 14:11:53 +01:00
ondrej
c1ca0c30ea sql parser: fix A*B, A/B and add tests
git-svn-id: trunk@46437 -
(cherry picked from commit f89650c470)
2023-12-16 13:58:03 +01:00
ondrej
928a1da500 sql parser: support A.* syntax
git-svn-id: trunk@46436 -
(cherry picked from commit 5bac4c25e0)
2023-12-16 13:57:58 +01:00
ondrej
abea9b678f sql parser: unify identifier path code
git-svn-id: trunk@46434 -
(cherry picked from commit 9fca033ac3)
2023-12-16 13:57:51 +01:00
ondrej
d091cfac78 sql parser: support CASE expression
git-svn-id: trunk@46428 -
(cherry picked from commit 0fb6419edd)
2023-12-16 13:57:35 +01:00
ondrej
23562f00ee sql parser: support LIMIT for FireBird/MSSQL/Postgres/MySQL
git-svn-id: trunk@46426 -
(cherry picked from commit 6caf046df2)
2023-12-16 13:57:29 +01:00
ondrej
ffe7475cb4 sql parser: support []-identifiers
git-svn-id: trunk@46424 -
(cherry picked from commit 0ca6707e95)
2023-12-16 13:57:18 +01:00
ondrej
431ac990a1 sql parser: add test for SQL generation of fields with path
git-svn-id: trunk@46422 -
(cherry picked from commit 67d2c51b8d)
2023-12-16 13:57:05 +01:00
ondrej
24571f17f2 sql parser: support field with schema
git-svn-id: trunk@46421 -
(cherry picked from commit 97ced59af0)
2023-12-16 13:56:55 +01:00
ondrej
2889615156 sql parser: change Functions to Properties for better debugging
git-svn-id: trunk@46420 -
(cherry picked from commit 49f1d08467)
2023-12-16 13:56:48 +01:00