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
joost
f722533e9a
* Removed totally useless "try .. except raise end" block
...
git-svn-id: trunk@12514 -
2009-01-05 13:08:13 +00:00
joost
11015eb6ad
* Changed SQLParser in a function which returns the obtained statement-type instead of setting the statementtype of the cursor directly, second part of r12512
...
git-svn-id: trunk@12513 -
2009-01-05 13:01:44 +00:00
joost
d6903a4bb6
* Moved some code to avoid problems while handling exceptions
...
git-svn-id: trunk@12512 -
2009-01-05 12:43:27 +00:00
joost
8922c3e310
* Check for an empty statement before the cursor is allocated so that the right error message is shown. (+test which was committed partly in r12510 already)
...
git-svn-id: trunk@12511 -
2009-01-05 12:23:54 +00:00
joost
00e76eab6a
* SQLdb now handles queries with statementtype stExecProcedure as select queries so that it is possible to fetch the results. But stExecProcedure will fetch only one row of data.
...
* TIBConnection now sets the statement type of a call to a stored procedures to stExecProcedure. This also works for "insert into .. returning" queries. (+test)
git-svn-id: trunk@12454 -
2008-12-29 13:17:34 +00:00
joost
ddeea252b5
* Partly reverted r11511 so that a query is prepared only once
...
git-svn-id: trunk@12427 -
2008-12-24 10:04:33 +00:00
joost
a7086e7164
* Allow parameter-names between double-quotes
...
* Place parameter-names between double-quotes in TBufDataset.ApplyUpdates +tests (bug 12275)
git-svn-id: trunk@12284 -
2008-12-01 13:13:48 +00:00
joost
138280cb6d
* UsePrimaryKeyAsKey default value is true, bug #12257
...
git-svn-id: trunk@12244 -
2008-11-27 11:51:24 +00:00
joost
c79e23c5eb
* Register DataPacketReaders
...
git-svn-id: trunk@11837 -
2008-09-28 19:53:00 +00:00
joost
e3e2b60b02
* Implemented FileName property. If set, the dataset is read from file on opening and saved to file on closing
...
* Defaultfields is now set before a dataset is read from file, so that CreateFields is only called when necessary
* A TSQLQuery can be read and saved to file also
git-svn-id: trunk@11537 -
2008-08-07 21:37:52 +00:00
michael
d39c352d92
* Fixed prepare for select statements
...
git-svn-id: trunk@11511 -
2008-08-05 11:58:00 +00:00
michael
cc0c2d6467
* SqlScript committed
...
git-svn-id: trunk@11366 -
2008-07-11 14:16:39 +00:00
michael
b32a493b7d
* Fixed memory leak when re-assigning datasource property
...
git-svn-id: trunk@11312 -
2008-07-02 16:23:13 +00:00
joost
6f8fd76e21
* Restructured the ApplyRecUpdates mechanism. Update-queries are only created when necessary and improved error messages. Readonly does not depend on ParseSQL anymore (mantis 9254) + test
...
git-svn-id: trunk@10926 -
2008-05-09 21:40:18 +00:00
joost
6f3e1bba28
* Fixed bug #8442 + test
...
git-svn-id: trunk@10905 -
2008-05-07 20:53:09 +00:00
joost
983e723262
* Implemented Port property (bug 10533)
...
git-svn-id: trunk@10344 -
2008-02-16 22:07:44 +00:00
joost
c48fe41781
* Patch from Jesus Reyes to set a default for ParseSQL (bug 10798)
...
git-svn-id: trunk@10341 -
2008-02-16 21:08:54 +00:00
joost
3bc2f94398
* Implemented TBufDataset.IndexFieldNames (+test)
...
* Fixed some db-error messages
git-svn-id: trunk@10006 -
2008-01-26 23:37:04 +00:00
joost
321be49ff5
* Added TSQLQuery.ServerIndexDefs, the indexes on the server are now stored in this new property instead of IndexDefs which from now on only stores the local indexes
...
git-svn-id: trunk@9975 -
2008-01-26 21:02:31 +00:00
joost
ce9b080854
* Always reset FUpdateable when calling the SQLParser (+test)
...
git-svn-id: trunk@9878 -
2008-01-23 09:14:07 +00:00
joost
3852af4afb
* Moved StringsReplace from sqldb to strutils
...
* Removed unused NotYetImplemented procedure from strutils
git-svn-id: trunk@9771 -
2008-01-15 22:13:47 +00:00
joost
9f97f670ab
* Moved implementation of IndexDefs from sqldb to bufdataset
...
git-svn-id: trunk@9504 -
2007-12-21 22:50:45 +00:00
michael
c4c6f3f655
* Setting TSQLQuery.Transaction sets TSQLQuery.Database and vice versa. Same for TSQLTransaction.Database and Database.Transaction
...
git-svn-id: trunk@9433 -
2007-12-12 19:46:09 +00:00
joost
dc33a9bc87
* Not only a comma is a seperator in the from-clause of a query. Fixes bug #10148 (+test)
...
git-svn-id: trunk@9254 -
2007-11-14 22:08:01 +00:00
joost
9080909740
* TSQLQuery.StatementType should not be published
...
* Quote fieldnames in ApplyUpdates for connections which needs this + test (bug 9661)
* Do not try to update the indexdefinitions if the TableName is unknown
* Try to obtain the TableName even if the dataset is readonly
git-svn-id: trunk@9119 -
2007-11-03 22:20:45 +00:00
joost
53b6757c6e
* Removed unused SetIndexDefs
...
* IndexDefs should not be passed as var to UpdateIndexDefs
git-svn-id: trunk@9107 -
2007-11-03 16:08:34 +00:00
joost
1f9443f90f
* implemented GetFieldNames
...
* implemented GetTableNames
* added support for smallint fields
git-svn-id: trunk@9073 -
2007-11-02 22:10:28 +00:00
joost
3e2b2b3aa5
* Removed unnecessary "as" calls, added class-type checks in SetDatabase
...
git-svn-id: trunk@8861 -
2007-10-20 12:16:24 +00:00
joost
c39b663201
* Patch from Andrey Gusev to implement TSQLQuery.GetRowsaffected + test
...
git-svn-id: trunk@8843 -
2007-10-18 20:45:10 +00:00
joost
a701dab36c
* Fix for empty searchstrings in stringsreplace
...
git-svn-id: trunk@8752 -
2007-10-08 21:24:01 +00:00
joost
865386b464
* some fixes for queries with more then 10 parameters + tests
...
git-svn-id: trunk@8745 -
2007-10-08 10:00:28 +00:00