Commit Graph

497 Commits

Author SHA1 Message Date
joost
1ea6307a78 * Allow the use of the mysql client version 5.1 with TMysqlClient50Connection
git-svn-id: trunk@13781 -
2009-09-30 18:10:51 +00:00
joost
1e3b13842e * Patch from Jesus Reyes to fix streaming of TDatabase.Params property, bug #14438
git-svn-id: trunk@13758 -
2009-09-25 16:59:00 +00:00
Jonas Maebe
1f4bb21c6e - reverted r13629-r13630, because dbf actually should support big endian
systems nowadays

git-svn-id: trunk@13631 -
2009-08-31 12:59:25 +00:00
Jonas Maebe
3cbad406b5 * forgot to move src/export (which depends on src/dbase) also to the
little endian targets for Linux in r13629

git-svn-id: trunk@13630 -
2009-08-31 12:20:22 +00:00
Jonas Maebe
26b296a6ba - disabled dbase/dbf for big endian targets, because it's apparently known
to not work there and it frustrates people who are not aware of that:
    http://forum.lazarus.freepascal.org/index.php/topic,7356.msg34782.html#msg34782

git-svn-id: trunk@13629 -
2009-08-31 12:11:32 +00:00
Jonas Maebe
847354fe10 * Makefiles version 2.5.1
git-svn-id: trunk@13533 -
2009-08-13 21:21:28 +00:00
Jonas Maebe
e246cac3ac * regenerated using latest fpcmake
git-svn-id: trunk@13487 -
2009-08-02 18:40:14 +00:00
blikblum
ba45ced9bf * Optimize case insensitive comparison in Locate/Lookup by encoding the key before hand and by using the ansi functions
* Rename the comparison functions variables to make clear what is encoded in ansi or utf8

git-svn-id: trunk@13431 -
2009-07-23 22:10:59 +00:00
blikblum
13c881c9ea * Complement to fix of case insensitive comparison in Locate/Lookup: handles partial key
git-svn-id: trunk@13426 -
2009-07-22 22:32:45 +00:00
blikblum
113e2f2431 * Fix case insensitive comparison in Locate/Lookup
git-svn-id: trunk@13425 -
2009-07-22 21:45:12 +00:00
joost
ca6804c7e3 * Firebird-support for strings with more than 8192 characters
git-svn-id: trunk@13412 -
2009-07-19 14:13:04 +00:00
joost
2762ed5fba * Removed the limit of 8192 characters on stringfields + test
git-svn-id: trunk@13411 -
2009-07-19 14:12:00 +00:00
joost
dfc5177bdc * Map SQL_TEXT(char) fields to ftFixedChar fields
git-svn-id: trunk@13407 -
2009-07-18 12:39:42 +00:00
joost
a0f0e8d5d5 * Added ftFixedChar as possible datatype for TStringFields
* The buffer from a TStringField does not nead a #0 suffix when the datatype is ftFixedChar

git-svn-id: trunk@13406 -
2009-07-18 12:36:36 +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
8832627178 * Set AutoCalcFields to true by default, bug #14072
git-svn-id: trunk@13387 -
2009-07-14 21:10:25 +00:00
joost
735b0cd299 * Patch from Graeme Geldenhuys to set the default characterset in CreateDb, bug #13835
git-svn-id: trunk@13386 -
2009-07-14 21:04:54 +00:00
michael
a01d93dda0 * Added AutoCommit featuresqlscript.pp
git-svn-id: trunk@13369 -
2009-07-08 09:05:55 +00:00
michael
cfffcd3ba8 * Fix in read/write visitor registration. Added override of read/readthis/save
git-svn-id: trunk@13347 -
2009-06-28 12:38:24 +00:00
michael
dfc188bca2 * Added option to register visitors
git-svn-id: trunk@13346 -
2009-06-28 11:02:06 +00:00
michael
f8fc8077b0 * Saving/Loading and generating SQL for foreign keys now works
git-svn-id: trunk@13345 -
2009-06-28 10:27:05 +00:00
michael
c7ca0f8b0f * Possibility to specify character set in connection dialog
git-svn-id: trunk@13339 -
2009-06-27 14:03:32 +00:00
blikblum
e4d43bea8a * Added helper routines to be used with QueryUpdates: GetSQLValue and ClearUpdates
git-svn-id: trunk@13272 -
2009-06-13 23:33:58 +00:00
blikblum
9e11694afe * Trigger deFieldChange event when in Blob/memo fields
* Fix potential bug when using a memo field as a Lookup/Calculated field

git-svn-id: trunk@13271 -
2009-06-13 23:28:28 +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
d39e82b256 * Fixed resource-leak on exceptions during creating/dropping databases, patch from taka_jp, bug #13587
git-svn-id: trunk@13190 -
2009-05-24 11:20:45 +00:00
joost
2435a4a48f * Modified patch from taka_jp to set the connection-dataset for mysql, bug #13588.
git-svn-id: trunk@13189 -
2009-05-24 11:17:59 +00:00
joost
5ddddf60ae * Patch from Ladislav Karrach, in some cases SQLExecute returns SQL_NO_DATA when no error occured, bug #13654 + test
git-svn-id: trunk@13132 -
2009-05-10 20:30:01 +00:00
joost
1ce9d05b78 * Fixed ODBC-Widestring fields
git-svn-id: trunk@13118 -
2009-05-09 14:55:22 +00:00
joost
67dcd3be0b * Allow string-parameters of more then 8000 characters, bug #13530
git-svn-id: trunk@13100 -
2009-05-04 21:36:21 +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
Vincent Snijders
2b780dbad4 * fixed typo in comment
git-svn-id: trunk@13051 -
2009-04-27 10:25:37 +00:00
joost
17e322cf57 * Set FBufferCount to -1 instead of 0 when there are no buffers initialized. Bug #13539
git-svn-id: trunk@13044 -
2009-04-25 20:33:18 +00:00
joost
90154d3a91 * Patch from Ladislav Karrach to implement support for more parameter-types and null-parameters, bug #13026
git-svn-id: trunk@13016 -
2009-04-16 21:46:42 +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
5a488a9e5f * Allow TFloatField.Precision=-1, which is the default, bug #13297
git-svn-id: trunk@13007 -
2009-04-11 10:33:17 +00:00
joost
3509008c60 * Implemented transaction-support, based on patch from Inoussa Ouedraogo,
bug #13420
 * Explicetely cast error-buffer to pchar
 * Allocate and de-allocate statement handles while preparing and unpreparing
   a statement, because when an error occurs and the transaction is closed,
   OCI automatically frees all bound statement handles. Which results in a 
   second try to free the handle if that is done in DeAllocateCursorHandle
 * Oracle supports escaping quotes by repeating them

git-svn-id: trunk@13002 -
2009-04-05 15:24:03 +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
blikblum
7f6b246136 * Allow string fields to be used as primary key
git-svn-id: trunk@12991 -
2009-03-31 20:23:13 +00:00
blikblum
d191ae1fc9 * Allow ApplyUpdates to insert added records if PrimaryKey is not set and if there's no updated or deleted records
git-svn-id: trunk@12984 -
2009-03-29 21:29:38 +00:00
blikblum
368fdc2a3d * Fixes to ApplyUpdates:
- Issue a transaction rollback after an error
  - Don't start new transactions after an error / ReturnCode will have the first error code

git-svn-id: trunk@12983 -
2009-03-29 20:42:38 +00:00
blikblum
986553771d * Raise an exception in ExecSQLList
git-svn-id: trunk@12973 -
2009-03-28 16:28:22 +00:00
blikblum
d2117f9285 * Set ReturnCode value after a call to ExecSqlList
git-svn-id: trunk@12972 -
2009-03-28 15:20:32 +00:00
joost
24d3fb02ce * Patch from Hwang Weng Sun to allow more then 128 fields in a SQLDA structure, bug #13340
git-svn-id: trunk@12965 -
2009-03-26 16:51:03 +00:00
Jonas Maebe
4bf254bc32 * added .txt extensions to all README, TODO and COPYING files
(mantis #12358)

git-svn-id: trunk@12825 -
2009-02-28 17:34:08 +00:00
blikblum
49001ee67a * set default values for published properties
git-svn-id: trunk@12776 -
2009-02-23 14:55:40 +00:00
joost
d3c965880f * Set and get full PBufBookmark buffer on get/SetBookmarkData to avoid random
data at the end of the bookmark-buffer, solves bug #8541

git-svn-id: trunk@12775 -
2009-02-22 20:21:39 +00:00
joost
e4495fc350 * Patch from Luiz Americo to replace TList by TFPList in TLookupList, bug #13225
git-svn-id: trunk@12774 -
2009-02-22 17:36:23 +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