lacak
6a9c3a6061
fcl-db: introduce FSelectable as new TSQLCursor class field. Update sql connectors to set it after Preparation or Execution of sql statement to signal if there will be or is result set. This change is neutral. In next commit I will use FSelectable to determine if allow Open or raise SErrNoSelectStatement.
...
(motivation is that there are many various statements, that are not stSelect nor stExecProcedure, which also return result set)
git-svn-id: trunk@23136 -
2012-12-13 11:16:25 +00:00
michael
5f053be31d
* Switched to using ansistring, because dynlibs use ansistrings
...
git-svn-id: trunk@22949 -
2012-11-07 23:08:31 +00:00
ludob
35f1339404
sqldb: Modified ftAutoinc behavior slightly to match Delphi behavior and allow updating of ftAutoInc fields for those db backends that support it. Added support for odbc ReadOnly fields. Patch from Lacak2 Mantis #22531
...
git-svn-id: trunk@22935 -
2012-11-05 15:23:15 +00:00
lacak
d338b2c63b
* adds new virtual method GetConnectionInfo into TSQLConnection
...
(allows retrieval of various connection related informations like type and version of DBMS, name and version of client library)
* implements this method for MySQL, PostgreSQL, SQLite, ODBC
Patch by DB-Core team
git-svn-id: trunk@22886 -
2012-10-31 09:13:32 +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
michael
53c03717d5
* SQL DB loader implemented
...
git-svn-id: trunk@22163 -
2012-08-21 19:41:51 +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
67ab61dcc8
* Moved .ReadOnly property from TSQLQuery to TBufDataset
...
git-svn-id: trunk@21254 -
2012-05-08 12:21:50 +00:00
marco
abaf2eaf12
* sqlDB update SQLParser to parse DML statements WITH common table expressions
...
Patch by Lacak2, Mantis #21851
git-svn-id: trunk@21010 -
2012-04-24 08:45:16 +00:00
joost
3568f8a3fe
* Also recognize parameters wich starts with lowercase old
...
git-svn-id: trunk@20939 -
2012-04-20 13:38:58 +00:00
marco
86ec9c367c
* Patch from Lacak2 for #16842 . Fix parsing of FROM (mysql show..from)
...
git-svn-id: trunk@20919 -
2012-04-18 13:31:35 +00:00
marco
f979c2e67f
* Add millisecs to datetime parameters, Mantis #20616 . Patch by Lacak2.
...
git-svn-id: trunk@20405 -
2012-02-22 21:01:11 +00:00
marco
7a7d8e27cd
* set transaction of proxy via field instead of setter since that
...
triggers a cascade of actions. Mantis #20694
git-svn-id: trunk@19657 -
2011-11-19 13:02:31 +00:00
marco
5955d90a40
* pass fieldnamequotechars to proxy, mantis #20507
...
git-svn-id: trunk@19507 -
2011-10-18 15:58:16 +00:00
marco
cb832a5656
* Preserve existing param values when changing sql text.
...
Patch by Lacak2, Mantis #19456
git-svn-id: trunk@19384 -
2011-10-05 11:41:36 +00:00
marco
0f79033143
* synchronized properties between sqlconnector and sqlconnection.
...
Charset and role now passed on. Mantis #20398 .
git-svn-id: trunk@19361 -
2011-10-04 11:09:34 +00:00
marco
aa9df955ee
* Improve support for returnvalues of calling statements.
...
git-svn-id: trunk@19303 -
2011-09-30 15:41:38 +00:00
marco
448e3db450
* fixes Mantis #14730 dealing with oldvalue=null
...
git-svn-id: trunk@19267 -
2011-09-28 16:27:32 +00:00
marco
1556751109
* also quote ftguid fields. Mantis 20219.
...
git-svn-id: trunk@19060 -
2011-09-14 07:48:24 +00:00
marco
367be2cd7a
* adds some checks to sqldb avoid AV and memleaks. Mantis #19326 and #18669
...
git-svn-id: trunk@19039 -
2011-09-09 18:13:03 +00:00
joost
79e000d04e
* Changed DefaultSQLFormatSettings into a constant, because changing this will lead to chaos in the locale-support
...
git-svn-id: trunk@17819 -
2011-06-24 22:00:10 +00:00
marco
7017009916
* currency and BSD asCurrency not asFloat. Patch by Lacak2, mantis #19558
...
git-svn-id: trunk@17760 -
2011-06-16 06:43:00 +00:00
marco
de266c9857
* moved and renamed defaultsqlformatsettings. Related to mantis #17188 (comment 49077)
...
git-svn-id: trunk@17738 -
2011-06-13 09:43:14 +00:00
marco
eb3ccbcb1f
* commit patch for various SQL formatting and conversions issues from Mantis #17188 from LacaK2
...
with some modifications
git-svn-id: trunk@17728 -
2011-06-12 13:14:42 +00:00
joost
c906f78b4a
* Fixed typo(?) in r17424
...
git-svn-id: trunk@17426 -
2011-05-10 10:29:48 +00:00
joost
0e56e188f8
* Simplified formatting of timeinterval strings, bug #18763
...
git-svn-id: trunk@17424 -
2011-05-10 09:06:40 +00:00
joost
b8f734522e
* Fixed default/mysql ftTime parameter support, bug #18718
...
git-svn-id: trunk@17418 -
2011-05-09 16:00:03 +00:00
joost
840d06dddb
* Published TSQLQuery.MaxIndexesCount and FieldDefs
...
* Set default values for MaxIndexesCount and Readonly
git-svn-id: trunk@17378 -
2011-04-27 20:18:15 +00:00
michael
0ca7ca5517
* Logging facilities implemented
...
git-svn-id: trunk@16498 -
2010-12-02 17:35:42 +00:00
michael
054d2b71a2
* Fixed SetInsertSQL/SetDeleteSQL
...
git-svn-id: trunk@16295 -
2010-11-02 09:46:07 +00:00
michael
8d84ac54ca
* Added easy access function for params
...
git-svn-id: trunk@15471 -
2010-06-22 11:48:31 +00:00
joost
cc700b54b8
* Implemented TBufDataset.UniDirectional property
...
* Run all tests of TestDBBasics also using UniDirectional TBufDatasets. (Introduces a lot of false failures)
git-svn-id: trunk@15393 -
2010-06-05 20:05:18 +00:00
joost
cb92994356
* New property TSQLConnection.FieldNameQuoteChars, these chars (start- and
...
end -quote) are used around field-names. Parameter-names are always quoted
using double-quotes, since they are replaced by sqldb for all systems which
don't use double-quotes as fieldnamequotechars. Bug #12275 .
git-svn-id: trunk@15229 -
2010-05-05 17:30:26 +00:00
joost
a4a1cd76e5
* Do only add parentheses when necessary for filtering. So that when the
...
query parser fails this only leads to problem when the filter is used
git-svn-id: trunk@15199 -
2010-04-28 22:01:15 +00:00
joost
6ba6be6b2b
* Patch from Ladislav Karrach to parse queries with the limit keyword, bug #15456
...
git-svn-id: trunk@15196 -
2010-04-28 21:13:23 +00:00
joost
39224aad96
* Splitted TBufDataset in TCustomBufDataset and TBufDataset
...
git-svn-id: trunk@14855 -
2010-02-03 19:51:34 +00:00
joost
5bfbd8e15d
* Implemented TBufDataset.Refresh + simple test/fixed test
...
git-svn-id: trunk@14099 -
2009-11-07 13:51:17 +00:00
joost
271ed77004
* patch from José Mejuto to fix applying more then one update when there is an update or insert query present, bug #14331
...
git-svn-id: trunk@13802 -
2009-10-04 11:04:31 +00:00
joost
3f98f6a5d0
* When a dataset is closed and it is not prepared it is assumed that a
...
problem occured, and unprepare is called to clean everything up. But in
case the dataset is read from a data-packet, the dataset is also not
prepared but no problem occured, so do not call unprepare
* Always use AllocateCursorHandle to allocate a cursor, or else its type
can be different from what the connection expects
git-svn-id: trunk@13397 -
2009-07-16 20:45:51 +00:00
joost
9f93cccd7a
* When the dataset is read from file, do not prepare the sql-statement
...
* Datasets which are read from file are in principle modifyable
git-svn-id: trunk@13264 -
2009-06-12 15:35:56 +00:00
joost
ce55400037
* Call UpdateServiceIndexDefs before Execute, to avoid problems with databases which do not allow processing multiple recordsets at a time (MS SQL, bug #13241 )
...
git-svn-id: trunk@13090 -
2009-05-03 21:01:31 +00:00
joost
8babc4920c
* Fix for streaming TSQLQuery.SQL and TSQLTransaction.Params
...
git-svn-id: trunk@13089 -
2009-05-03 20:47:52 +00:00
joost
aab8d374b6
* Do not use the locale DecimalSeparator when formatting float-parameters, bug #13279
...
git-svn-id: trunk@13010 -
2009-04-13 20:54:09 +00:00
joost
934a6b159f
* Also in ExecuteDirect the allocation and preparation of a cursor should be
...
as close together as possible
git-svn-id: trunk@13001 -
2009-04-05 14:17:52 +00:00
joost
ee123bbaf9
* Set default value of UsePrimaryKeyAsKey to fix streaming, bug #13207
...
git-svn-id: trunk@12773 -
2009-02-22 17:25:24 +00:00
joost
6ceb016593
* Do not set the Transaction property of a TDatabase while assigning TSQLTransaction.Database when the TSQLTransaction is loaded from stream
...
git-svn-id: trunk@12680 -
2009-02-03 22:28:12 +00:00
joost
349ff010a1
' * Do not use a space as FieldNamesQuoteChar but an empty string, so that parameters are parsed correctly
...
git-svn-id: trunk@12640 -
2009-02-01 14:09:27 +00:00
joost
2496c5f30e
* Fixed streaming of TSQLQuery.UpdateSQL, .InsertSQL and .DeleteSQL
...
git-svn-id: trunk@12581 -
2009-01-22 16:39:31 +00:00
joost
c1c62a3ed2
* Implemented retrieval of basic metadata for TODBCConnection (bug 12975)
...
git-svn-id: trunk@12558 -
2009-01-18 12:22:25 +00:00
joost
dcfa75b781
* When TSQLQuery.SetSchemaInfo is used the sql-statement is not set directly anymore, but during the prepare (more Delphi/dbexpress compatible)
...
* Added TSQLQuery.SchemaInfo property
* Added tests for GetTableNames and GetFieldNames
git-svn-id: trunk@12557 -
2009-01-17 17:09:49 +00:00