Commit Graph

5167 Commits

Author SHA1 Message Date
marco
a75e298088 * enable parts of sqldb,dblib and fpindexer for Haiku. Patch by Oliver, Mantis #21618
git-svn-id: trunk@20682 -
2012-03-31 20:11:51 +00:00
sergei
c815a8d040 * Changed entity handling to use a callback, makes TXmlTextReader class completely independent from the DOM stuff.
git-svn-id: trunk@20681 -
2012-03-31 16:07:38 +00:00
michael
a999648726 * Applied patch from 21583
git-svn-id: trunk@20680 -
2012-03-31 09:18:01 +00:00
sergei
c060466fb8 * Fixed WriteXML() for non-document nodes after r20538, Mantis #21609
git-svn-id: trunk@20678 -
2012-03-30 18:06:03 +00:00
marco
71e20b1b59 * Raise error on unknown datatypes and adds support for ftbcd params.
Patch by Ludo Brands, Mantis #21611.

git-svn-id: trunk@20677 -
2012-03-30 16:08:38 +00:00
marco
fd234c7e41 * Fix from Ludo Brands to properly free parameters in deallocated cursors. Mantis #21608
git-svn-id: trunk@20676 -
2012-03-30 16:06:45 +00:00
marco
83528edbd6 * Initial support for Oracle metadata, patch by Ludo Brands, Mantis #21606
git-svn-id: trunk@20675 -
2012-03-30 16:04:21 +00:00
joost
8cb037fb59 * Always show a message when a package is about to be installed, not only in
verbose mode. This way it is always clear which package is being installed 
   in case of an error.

git-svn-id: trunk@20670 -
2012-03-30 14:41:09 +00:00
joost
265f54b26b * Added ability to specify installation-destination path of
TPackage.InstallFiles
 * Added bininstalldir, prefix and unitinstalldir macro''s

git-svn-id: trunk@20669 -
2012-03-30 14:29:50 +00:00
Jonas Maebe
cbc30a68ae - removed solaris from the SqliteOSes, because ibconnection is not
compiled for that target (which is unrelated to SQLite, but that
    set is also used to determine whether or not to compile fbindexdb,
    which depends on that unit -- please fix the dependencies properly
    when adding new units)

git-svn-id: trunk@20668 -
2012-03-30 09:54:40 +00:00
marco
4f3f5b9374 * disable some dbtypes for win64 that have no know working clientlib,
patch by Reinier, Mantis #21579

git-svn-id: trunk@20656 -
2012-03-29 18:13:20 +00:00
marco
493064a241 * Patch from Ludo to preinitialize certain (var)parameters that are only
partially inited in some versions. (Endianess?) Mantis #21596

git-svn-id: trunk@20654 -
2012-03-29 17:39:43 +00:00
pierre
4f752004c3 Adapt to OpenBSD
git-svn-id: trunk@20650 -
2012-03-29 12:54:39 +00:00
pierre
5262fbc77c * Add relocate_gdb_directory to avoid loading of main.o from libgdb.a
git-svn-id: trunk@20649 -
2012-03-29 12:54:09 +00:00
sergei
8b40abdd19 * fcl-fpcunit/src/testutils.pp, GetMethodList: avoid range errors at runtime if compiled with -Cr.
git-svn-id: trunk@20646 -
2012-03-28 10:55:17 +00:00
sergei
bab72f0025 * xmlread.pp, fixed skipping DTD in canonical mode: ReadTopLevel was not recurring, but exiting with undefined result (happened to be 'true' most of the time). This went unnoticed due to redundant check in TLoader.ParseContent.
git-svn-id: trunk@20645 -
2012-03-28 10:42:45 +00:00
sergei
804e9cd09d xmlread.pp:
* reduced duplication in entity handling code.
* fixed reported boundary locations for entities in content.

git-svn-id: trunk@20638 -
2012-03-27 08:13:20 +00:00
michael
4e923eca65 Patch from bug #17303:
- C char mapped to shortint instead of char
 - added comments to data types to be clear (32 vs. 64 bit env.)

git-svn-id: trunk@20637 -
2012-03-27 07:17:07 +00:00
marco
25e0f7c882 * committed fix from Mantis #21542
git-svn-id: trunk@20634 -
2012-03-26 08:14:35 +00:00
marco
1608b89bae * Patch from Mantis #19116, from Toru Takubo modified by Reinier for recent
changes.  Implements a check on blobsize to avoid reading beyond the
   length of a blob where isc_get_segment can segfault.

git-svn-id: trunk@20633 -
2012-03-26 08:05:19 +00:00
michael
fe7d7dacbd * Removed resourcestrings from mssql
git-svn-id: trunk@20632 -
2012-03-26 07:10:09 +00:00
Jonas Maebe
5a05542ddb * fixed dblib/fpmake.pp and fpindexer/fpmake.pp when they are included from
the top-level fpmake.pp
  * replaced commands to regenerate fpmake*.inc in top level fpmake.pp with
    ones that don't depend on GNU awk, and which automatically recognize
    nested fpmake files that contain their own add_XXX procedure and hence
    must not get a wrapper
  * regenerated fpmake*.inc so that fpindexer and opengles are now also
    built, and dblib/fpmake.pp does not get a wrapper

git-svn-id: trunk@20625 -
2012-03-25 14:09:04 +00:00
joost
69ba57f4a7 * Added compilation of dblib, fixes compilation after r20618
git-svn-id: trunk@20621 -
2012-03-25 10:18:04 +00:00
michael
8799956817 * Fixed compilation of mssql
git-svn-id: trunk@20618 -
2012-03-25 09:18:39 +00:00
michael
241ea31e97 * Regenerated makefile with latest fpcmake
git-svn-id: trunk@20617 -
2012-03-25 09:17:06 +00:00
joost
06378882e3 * Install the TPackage.InstallFiles only once
git-svn-id: trunk@20615 -
2012-03-24 16:44:55 +00:00
marco
14f9e3542d * use NULLHANDLE instead of NIL, since exact typing of handle type is unknown
(ptr or integer iow nil or 0)

git-svn-id: trunk@20614 -
2012-03-24 12:22:29 +00:00
marco
981ebb4778 * FB_API_NULLHANDLE since now handles can be 0 or nil.
git-svn-id: trunk@20613 -
2012-03-24 12:00:49 +00:00
marco
25f29e1048 * Patch from Lacak2 for Mantis #20379 FirstLineAsSchema improvements.
git-svn-id: trunk@20611 -
2012-03-24 10:01:55 +00:00
marco
d1c796a041 * ISC_STATUS to ptrint and all handles to 32-bit. Mantis #19116 related (but
not fixing that?)

git-svn-id: trunk@20610 -
2012-03-24 09:31:05 +00:00
sergei
3d1b4b1b63 * Added a typecast to avoid range error in 64-bit debug builds
git-svn-id: trunk@20596 -
2012-03-23 13:48:34 +00:00
marco
86bf5f36ba * Call inherited in destructors.
git-svn-id: trunk@20590 -
2012-03-23 12:56:13 +00:00
michael
44871bbbbd * Patch to reorder datetime testing values, so out-of-range comes last
git-svn-id: trunk@20585 -
2012-03-23 09:05:01 +00:00
michael
386fb374ce * Applied tests pach from bug #17303
git-svn-id: trunk@20572 -
2012-03-22 13:45:54 +00:00
sergei
d12456c55d * Fixed syntax error which I managed to commit in r20558 (Mantis #21524)
git-svn-id: trunk@20569 -
2012-03-22 09:52:28 +00:00
sergei
c7259969ce + fcl-xml, implemented TDOMNode.BaseURI property.
* Moved element loading procedure from xmlread.pp to dom.pp, speeds things up a bit.

git-svn-id: trunk@20558 -
2012-03-21 22:19:27 +00:00
marco
040e67772a * Tests for Mysql 5.5, from Lacak2. Mantis #21511
git-svn-id: trunk@20546 -
2012-03-20 21:14:36 +00:00
marco
ecb34fb8da * Patches from Ludo Brands for typelib
- Mantis #21516 fix range check error
  - Mantis #21513 Specific workaround for potentially bugged Office10/MSacc.OLB

git-svn-id: trunk@20544 -
2012-03-20 18:53:38 +00:00
joost
0e0a5dee4f * TTemplateParser: Do not require a space between the tag name and the
ParamStartDelimiter. 
 * Allow parameters without any name, for example: {uppercase[-this-]}
 * Added simple tests for TTemplateParser

git-svn-id: trunk@20543 -
2012-03-20 16:13:14 +00:00
michael
63e3c9b774 IB -> MSSQl
git-svn-id: trunk@20541 -
2012-03-19 11:06:00 +00:00
michael
3657d063bb * Corrected author
git-svn-id: trunk@20540 -
2012-03-19 11:05:01 +00:00
sergei
5618efc7a4 * fcl-xml, reduced DOM memory requirements by getting rid of TDOMNode_WithChildren.FLastChild field (storing the last child in FFirstChild.FPreviousSibling instead).
git-svn-id: trunk@20539 -
2012-03-18 20:33:51 +00:00
sergei
60fe15b01a * fcl-xml, improved TNSSupport class to work directly with hashed strings, reduces amount of hash lookups.
git-svn-id: trunk@20538 -
2012-03-18 19:56:07 +00:00
marco
56442144bf * Password check for sqlite3 functionality, Mantis #18774
git-svn-id: trunk@20535 -
2012-03-17 17:23:51 +00:00
marco
2d8dbeca54 * Merged Andrew Brunners and Lacak2's patches from Mantis #19736 that
implement mysql 5.5 header + sqldb connection support.

git-svn-id: trunk@20534 -
2012-03-17 17:17:40 +00:00
marco
e27f910070 * add blockreadnext (same implementation as next for now), and change
.next to call it. Mantis #8203

git-svn-id: trunk@20533 -
2012-03-17 14:07:46 +00:00
marco
a5170425aa * setblockreadsize virtual, noticed when cleaning out old bugreport #8203.
git-svn-id: trunk@20532 -
2012-03-17 12:40:23 +00:00
marco
a6fd41b1d1 * Patch from Mek to kill memleak while inserting, Mantis #18004
git-svn-id: trunk@20531 -
2012-03-17 12:21:45 +00:00
marco
956629e41c * Patch from Mantis #14944 implementing odbc transactions. Also fixes related #19902
git-svn-id: trunk@20530 -
2012-03-17 11:56:29 +00:00
michael
25adf10832 * Patch from Reinier Olislagers to fix quoting for memo fields (bug 19937)
git-svn-id: trunk@20529 -
2012-03-17 10:06:04 +00:00
nickysn
609023d656 + added support for the GLX_EXT_swap_control GLX extension
git-svn-id: trunk@20528 -
2012-03-16 21:29:50 +00:00
nickysn
a325c1254e * GLX unit converted to use unit ctypes, which fixes some 64-bit issues
* glXReleaseBufferMESA function name changed to the correct one: glXReleaseBuffersMESA

git-svn-id: trunk@20526 -
2012-03-16 20:46:33 +00:00
sergei
c2a2f88bd4 * fcl-xml, making progress with streaming API, implemented IXmlLineInfo interface and fixed reported locations for attributes and their child nodes.
+ Set Name and Value properties for DocumentType nodes.
* Unified HandleEntityStart and HandleEntityEnd code for entity references in content and in attributes.

git-svn-id: trunk@20524 -
2012-03-16 09:14:47 +00:00
sergei
c1531f5c12 * fcl-xml, moved syntax validation procedure from TXMLTextReader to TAttributeDef
* reduced memory requirements by getting rid of FAttrChunks and creating FForwardRefs on demand.

git-svn-id: trunk@20523 -
2012-03-16 08:52:03 +00:00
michael
5331e66a8d * Added ms-sql server connector by LaCak2
git-svn-id: trunk@20522 -
2012-03-16 08:36:12 +00:00
nickysn
9f512e231e + added support for the GLX_MESA_swap_control glx extension
git-svn-id: trunk@20518 -
2012-03-14 23:38:25 +00:00
marco
ad10877886 * inverted move in example, Mantis #21468
git-svn-id: trunk@20517 -
2012-03-14 20:14:36 +00:00
nickysn
506f1ff3e4 + add support for the GLX_SGI_swap_control extension
* import all GLX procedures and functions via the glXGetProcAddress and
  glXGetProcAddressARB functions, if they are available. This is necessary,
  because not all GLX extension functions are exported statically by libGL.so

git-svn-id: trunk@20516 -
2012-03-14 00:09:57 +00:00
michael
c0807b4023 * Added readme
git-svn-id: trunk@20498 -
2012-03-10 17:17:39 +00:00
michael
aa45ca8e0e * First version of fpindexer engine
git-svn-id: trunk@20496 -
2012-03-10 16:04:12 +00:00
michael
6c671917ec * Added PreferModuleName
git-svn-id: trunk@20495 -
2012-03-10 14:58:14 +00:00
michael
7ab32986ef * (Modified) Patch from Sven Barth to add AfterInitModule
git-svn-id: trunk@20494 -
2012-03-10 14:19:00 +00:00
andrew
b50bd10818 Fixed chm search results for large chm search databases with > 2 node levels
git-svn-id: trunk@20493 -
2012-03-10 13:47:43 +00:00
marco
f5a4f6b4af * Patch + test to map integer field with auto_increment property to ftautoinc
Mantis #21438, patch by Lacak2.

git-svn-id: trunk@20483 -
2012-03-08 19:57:20 +00:00
andrew
d289d3d4ce Fixed a bug where large chm search index's would be invalid when multiple index nodes are used
git-svn-id: trunk@20480 -
2012-03-08 16:54:03 +00:00
andrew
4788c38f2c Fixed bug where generating a search for a chm with millions of words would use 4GB of memory!
git-svn-id: trunk@20479 -
2012-03-08 16:04:56 +00:00
Jonas Maebe
d305615132 * fixed compilation with current FPC versions
git-svn-id: trunk@20476 -
2012-03-07 12:38:28 +00:00
sergei
eabc0cb53a * fcl-xml, making progress with streaming API, implemented a few more methods.
git-svn-id: trunk@20474 -
2012-03-05 14:38:05 +00:00
marco
d6100fed50 * one letter fix to last commit.
git-svn-id: trunk@20470 -
2012-03-04 18:10:28 +00:00
marco
8f13f13969 * reduce redundant AS in bufdataset.buildindex. Might improve performance,
but main purpose is to increase readability and debugability

git-svn-id: trunk@20469 -
2012-03-04 14:29:15 +00:00
sergei
a417e9d0b6 * fcl-xml, making progress with streaming API, moved DOM-dependent stuff from TXMLTextReader to the TLoader helper object. Now TXMLTextReader class is almost free from direct DOM dependencies (indirect ones like TDOMParser are still present, also entity handling is still intertwined too closely).
git-svn-id: trunk@20467 -
2012-03-03 12:26:52 +00:00
marco
c6da7f726d * change mysql datetime parsing because mysql allows time >24hrs (interval like).
Matnis #21368, Patch by Lacak2.

git-svn-id: trunk@20464 -
2012-03-02 12:26:02 +00:00
marco
d676e18326 * Patch from Luiz. Move state change to calculatefields instead of the
handler. Mantis #20969

git-svn-id: trunk@20463 -
2012-03-02 09:55:06 +00:00
marco
49e3a24413 * Modification after feedback on #20454, last patch was a bit conservative.
git-svn-id: trunk@20459 -
2012-03-01 21:43:04 +00:00
marco
4ea56bd875 * Memleak fixes, Patch by Jesus Reyes. Mantis #21403
git-svn-id: trunk@20458 -
2012-03-01 21:39:01 +00:00
marco
c87880fb46 * test for interval, mantis #19323
git-svn-id: trunk@20457 -
2012-03-01 11:36:55 +00:00
marco
9b6a69502c * Use double for mysql ftfloat related tests.
Patches by Lacak2, Mantis #21388

git-svn-id: trunk@20456 -
2012-03-01 11:34:47 +00:00
marco
9dd87f9a6f * switch currency fields to use "ascurrency" Mantis 21380, patch by Lacak2
git-svn-id: trunk@20455 -
2012-03-01 11:32:09 +00:00
marco
7de37b0ad9 * fix for #21381. Add a default parameter to switch.
git-svn-id: trunk@20454 -
2012-03-01 11:24:17 +00:00
marco
fa3ee5f605 * Patches from Lacak2 changing currency to odbc numeric type, and ftbcd parameters
git-svn-id: trunk@20453 -
2012-03-01 10:54:54 +00:00
pierre
bc0c98f88a * Fix cross win32 to go32v2 gdbver run
git-svn-id: trunk@20443 -
2012-02-29 10:51:19 +00:00
sergei
134e5167f1 * fcl-xml testing suite, working around excessive string conversions by using new method assertEqualsW to compare wide strings. Since TTestCase.assertEquals method already exists with ansistring arguments, and its first argument is a literal in most cases, overloading does not help here.
git-svn-id: trunk@20442 -
2012-02-29 09:28:03 +00:00
sergei
9e091cc15f * fcl-xml, more WideString replacements
git-svn-id: trunk@20440 -
2012-02-28 13:01:41 +00:00
marco
865220f3d6 * Check for empty lookup-field dataset before iterating, Mantis #21383,
Patch by Luis Americo

git-svn-id: trunk@20439 -
2012-02-27 21:45:21 +00:00
sergei
5c2faa4a61 + fcl-xml, making progress with streaming API, added most method implementations.
git-svn-id: trunk@20438 -
2012-02-27 11:34:25 +00:00
sergei
997538dd41 + fcl-xml, added unit xmlreader.pp (abstract base for streamed reading)
git-svn-id: trunk@20437 -
2012-02-27 11:02:34 +00:00
sergei
f9f6344d3a * Moved standard namespace URIs from dom.pp to xmlutils.pp
* Renamed another occurrence of PWideString to PXMLString

git-svn-id: trunk@20436 -
2012-02-27 07:28:34 +00:00
sergei
f44734d1bc * fcl-xml, moved check for required attribute presence to ValidateCurrentNode
* improved wording of some validation errors
- removed ExpectName function

git-svn-id: trunk@20435 -
2012-02-27 04:03:09 +00:00
Tomas Hajny
4a128cc006 * postgres and sdl not supported under OS/2
git-svn-id: trunk@20434 -
2012-02-26 22:57:42 +00:00
sergei
ede4da62cb * fcl-xml, track attribute definition tags in reader instead of DTD. Removes need for multiple parsers processing documents based on the same DTD to keep their attribute tag counters in sync.
git-svn-id: trunk@20429 -
2012-02-25 22:13:51 +00:00
marco
c60282cd2c * dataset.Bookmark changed to TBookMark.
git-svn-id: trunk@20424 -
2012-02-25 10:08:01 +00:00
sergei
6adf381867 * fcl-xml, upgrade to comply with XML 1.0 Fifth Edition. This makes naming rules for xml 1.0 identical to ones for xml 1.1.
git-svn-id: trunk@20422 -
2012-02-24 06:25:32 +00:00
pierre
e5692558b9 * Enable mad package for win64
git-svn-id: trunk@20421 -
2012-02-24 00:19:10 +00:00
pierre
5501cc7b2b * Fix file warnings for win32
git-svn-id: trunk@20420 -
2012-02-23 23:21:19 +00:00
pierre
60bebca1ea * Avoid double newlines on Dos like systems in ExecuteFPC
* Add warning if FileAge returns -1 (which indicates failure)

git-svn-id: trunk@20419 -
2012-02-23 23:19:09 +00:00
andrew
3dd4514724 removed unneeded Trim() from chm fiftimain
git-svn-id: trunk@20418 -
2012-02-23 22:18:27 +00:00
sergei
0cd9e7fee9 + procedure BufAppendString(TWideCharBuf,XMLString) for convenience
- removed {$ifdef fpc}, CompareMem is no longer slower than CompareWord, so it can be used always.

git-svn-id: trunk@20417 -
2012-02-23 21:36:31 +00:00
sergei
2d981def2c * improved handling of attribute value chunks
* cleaned up several redundant method arguments and conditions

git-svn-id: trunk@20415 -
2012-02-23 20:53:25 +00:00
andrew
300bdb8243 * Fixed possible but rare crash when compressed data is slightly larger than the orig data size
git-svn-id: trunk@20414 -
2012-02-23 18:39:42 +00:00
andrew
7ddbe453a2 Removed chmcmd.lpi session info to .lps
git-svn-id: trunk@20413 -
2012-02-23 18:12:38 +00:00