Commit Graph

57 Commits

Author SHA1 Message Date
michael
809d10c0a6 * Patch from Alexandrov Alexandru:
- TFieldDefs rewrited as TOwnedCollection and TFieldDef as
    TCollectionItem, so it can be edited now with Collection editor;
  - TFieldDef.Assign implemented;
  - corrections to Index property of TField;
  - made writeable Fields property of TFields;
  - DefaultFieldClasses uncommented and moved to implementation part;
    and some more.

git-svn-id: trunk@175 -
2005-06-02 17:13:18 +00:00
fpc
790a4fe2d3 * log and id tags removed
git-svn-id: trunk@42 -
2005-05-21 09:42:41 +00:00
fpc
50778076c3 initial import
git-svn-id: trunk@1 -
2005-05-16 18:37:41 +00:00
peter
6cf4eb98c3 * use current fpcmake instead of from 1.9.8 2005-05-05 13:28:47 +00:00
joost
ce319c62c2 - some fixes in assignment of transactions and databases 2005-04-24 19:21:28 +00:00
joost
9d7562ff73 - Fixed a mem-leak in TMySQLConnection.ConnectMySQL
- Added ObtainSQLStatementType to TMySQLConnection.PrepareStatement
- RowsAffected and LastInsertID should be QWord s, not int64
2005-04-13 23:20:22 +00:00
joost
fa3ce88bbd - Changed for dyn.linking
- Made the query read-only
2005-04-13 22:57:03 +00:00
joost
10b6189ecf - TSQLQuery now frees FIndexDefs 2005-04-13 22:10:26 +00:00
joost
6497e8a7ea - Updated for changes in sqldb.pp 2005-04-10 18:31:31 +00:00
joost
f15478c0ca - - implemented parameter support for Postgres
- Updated for changes in sqldb.pp
2005-04-10 18:30:49 +00:00
joost
79712269b4 - - implemented parameter support for Interbase/Firebird
- Updated for changes in sqldb.pp
2005-04-10 18:30:05 +00:00
joost
122a00350d - implemented parameter support for sqldb
- Added TSQLConnection.ConnOptions
- renamed TSQLQuery.FreeStatement to TSQLQuery.CloseStatement
- renamed TSQLQuery.PrepareStatement to TSQLQuery.Prepare
- added TSQLQuery.UnPrepare
2005-04-10 18:29:26 +00:00
michael
012392381c + Several patches from Jose A. Rimon
# Prevents "field not found" error, when use a query without the primary key
Set SQLlen of different data types
 Use AliasName instead of SQLname to avoid "duplicate field name" error, for
example when using "coalesce" more than once
use SQLScale in ftLargeInt to get actual values
 Send query to server with different lines. Provides line info in sqlErrors
and allows single line comments
2005-03-23 08:17:51 +00:00
peter
aa5b73f3ec * 1.9.8 2005-02-15 22:28:29 +00:00
peter
e417e34496 * truncate log 2005-02-14 17:13:06 +00:00
joost
70f562cec7 - Added support for SetSchemaInfo
- Uses the aliasname as the displayname
2005-02-07 11:24:25 +00:00
joost
e2d68a7e4f - implemented TSQLQuery.SetSchemaInfo
- added support for delete and insert
2005-02-07 11:23:41 +00:00
joost
79753bc429 implemented use of HostName 2005-02-04 17:53:08 +00:00
joost
4e1b076d8f fixed GetClientInfo for dynamically linked client 2005-02-04 17:50:21 +00:00
peter
110fb12911 * regenerated 2005-02-03 20:33:26 +00:00
michael
bfcb70b5e4 * Patch from Joost van der Sluis
- Use of the dynamically loaded library (postgres3dyn)
  - support for the postgreSQL'a internal fieldtype 'name'
  - implemented UpdateIndexDefs
  - Support for more then one query for each connection
2005-01-24 10:53:23 +00:00
michael
35a249fc8f * Patch from Joost van der Sluis
- Made it possible to run 'show...' queries for MySQL
  - Use of the dynamically loaded library (mysql4dyn)
  - implemented UpdateIndexDefs
  - Support for more then one query for each connection
2005-01-24 10:53:04 +00:00
michael
f04a7f8f86 * Patch from Joost van der Sluis
- Made it possible to run 'show' queries for MySQL
2005-01-24 10:52:43 +00:00
michael
aaf3db81df * Patch from Joost Van der Sluis:
- implemented UpdateIndexDefs
 - make use of the dyn. linked ibase-unit
2005-01-12 10:31:26 +00:00
michael
10cc31bbcd * Patch from Joost Van der Sluis:
- implemented TSQLQuery.UpdateIndexDefs
   - implemented TSQLQuery.ReadOnly
   - implemented TSQLQuery.IndexDefs
   - implemented TSQLQuery.UpdateMode
   - implemented TSQLQuery.UsePrimaryKeyAsKey (Set pfInKey in the
     providerflags
     of fields that are in the primary index of the underlying table)
   - Added support for updates on date-fields
2005-01-12 10:30:33 +00:00
peter
ef3b19b316 * regenerated 2005-01-11 17:07:45 +00:00
peter
994ab51002 * regenerated to use cpu-os 2005-01-10 21:29:23 +00:00
michael
312f5cc30f * Patch from Joost van der Sluis:
- deallocate SQLDA
2004-12-29 14:32:03 +00:00
michael
965113b413 + Patch from Joost van der Sluis:
- implemented support for modifying queries, with a simple parser
  - implemented ApplyRecUpdate
2004-12-29 14:31:27 +00:00
peter
f52d2b2edf * regenerated 2004-12-20 18:37:51 +00:00
peter
3c3ec40b70 * regenerated 2004-12-19 17:42:32 +00:00
armin
c087b23a91 * changed SQLScale compare in TranslateFldType from a set compare to a real integer compare 2004-12-16 21:11:35 +00:00
michael
7388c918b2 + Some corrections from Joost van der Sluis 2004-12-13 19:23:17 +00:00
michael
085470531e * Ptahc from Joost van der Sluis
- moved IsCursorOpen from TSQLQuery to tbufdataset
  - moved SetFieldData from TSQLQuery to TBufDataset
  - very first start for support of cached updates
2004-12-13 19:22:16 +00:00
michael
eb356809e8 * Patch from Joost van der Sluis
- set fielddefs.precision only for ftBCD fields
  - Changed FFieldFlag into an dynamic array
  - Allocated 2 more bytes for varchar's (Fixed segfault)
  - added support for TLargeintFields
2004-12-13 19:21:34 +00:00
Tomas Hajny
390876bdb4 * Makefiles regenerated 2004-12-05 16:54:46 +00:00
michael
1d15fe4f31 patch to enable RecNo and DisplayFormat 2004-12-05 00:05:37 +00:00
michael
c720d44ee8 * Patch from Joost van der Sluis
- adapted for the changes in TBuffDataset
2004-12-04 22:46:15 +00:00
michael
29e9e1aef2 * Patch from Joost van der Sluis
- added support for time,date and datetime fields
  - added support for tbooleanfield
  - adapted for the changes in TBuffDataset
2004-12-04 22:45:35 +00:00
michael
8fb31ef08c * Patch from Joost van der Sluis
- added support for TBCDFields
  - fixed some warnings
  - removed FSQLDAAllocated and replaced freemem and getmem by (re)allocmem
  - adapted for the changes in TBuffDataset
  - moved FFieldFlag to the TIBCursor
2004-12-04 22:45:01 +00:00
michael
afc84f09e1 * Patch from Joost van der Sluis
- replaced checkactive in commit and rollback for 'if active'
  - fixed a warning
  - adapted for the changes in TBuffDataset
2004-12-04 22:43:38 +00:00
armin
f4ffaa9828 * applied peters patch for cross compile (bin installation) 2004-11-26 13:03:07 +00:00
michael
cae7e81d73 TBufDataset.inc:
- replaced Freemem by Reallocmem, Free by FreeAndNil

Database.inc:
  - Moved Active property from TSQLTransaction to TDBTransaction
  - Gives an error if the database of an active transaction is changed

Dataset.inc
  - Don't distribute events if FDisableControlsCount > 0
  - Replaced FActive by FState<>dsInactive
  - Set EOF after append

db.pp:
  - Removed duplicate definition of TAlignment
  - Moved Active property from TSQLTransaction to TDBTransaction
  - Replaced FActive by FState<>dsInactive
  - Gives an error if the database of an active transaction is changed

sqldb:
  - Moved Active property from TSQLTransaction to TDBTransaction
  - replaced Freemem by Reallocmem, Free by FreeAndNil

IBConnection:
  - Moved FSQLDAAllocated to the cursor

PQConnection:
  - Don't try to free the statement if a fatal error occured
2004-11-05 08:32:02 +00:00
peter
86f78c7300 * units are now created in separate directory units/cpu-os/
* distclean uses cleanall rule and removes units dir
  * cross compile support fixed, it is now possible to cycle a ppcsparc
    without deleting ppc386
  * bintutilsperfix defaults to cpu-os-
2004-10-30 12:36:43 +00:00
michael
4ae7f4afd7 + Initial check in (From Joost van der Sluis 2004-10-27 07:24:22 +00:00
michael
951ace9dc2 + Patch from Joost Van der Sluis to fix transactions 2004-10-27 07:23:13 +00:00
michael
a63a672f28 + Use of dbconst for resource strings 2004-10-10 14:45:51 +00:00
michael
8030ebf357 * Large patch from Joost Van der Sluis.
* Float fix in interbase
+ Commit and commitretaining for pqconnection
+ Preparestatement and prepareselect joined.
+ Freestatement and FreeSelect joined
+ TSQLQuery.GetSQLStatementType implemented
+ TBufDataset.AllocBuffer now no longer does a realloc
+ Fetch=True means succesfully got data. False means end of data.
+ Default implementation of GetFieldData implemented/
2004-10-10 14:24:22 +00:00
michael
2629ece80b + Added mysql connection 2004-10-02 14:52:25 +00:00
michael
4bc48f72ba + Initial check-in 2004-10-02 14:50:40 +00:00