Search found 12 matches

by AHUser
24.11.2006, 22:08
Forum: Bug Reports
Topic: [bug_fixed] MySQL and FLOAT fields (precision)
Replies: 8
Views: 5040

[bug_fixed] MySQL and FLOAT fields (precision)

Zeos Version: SVN/testing I have a table that contains FLOAT fields. These fields contains values like '4.85'. The MySQL server returns '4.85' but the result set puts this string into a single precision data type that cannot hold the information. So I get something like 4.84999990463 what is not 4....
by AHUser
03.05.2006, 19:20
Forum: User Patches
Topic: [bug_fixed] MissingConsts, Inlining, SilentException patch
Replies: 1
Views: 1534

[bug_fixed] MissingConsts, Inlining, SilentException patch

MissingConsts: I missed two functions in ZMySQLUtils. Inlining: BDS 2006 requires the "Windows"-Unit to be included in the uses statement. I've IFDEF'ed the inclusion. SilentException: While working with a "select * from (select * from mytab, ... where ...) tab where tab..." I ex...
by AHUser
30.04.2006, 00:00
Forum: Bug Reports
Topic: [bug_fixed] Other files with LF instead of CRLF
Replies: 1
Views: 1213

[bug_fixed] Other files with LF instead of CRLF

These files are affected (at least my tool reports and fixes them): component\ZAbstractRODataset.pas component\ZConnection.pas component\ZQuerySQLEditor.pas component\ZROSqlEditor.pas component\ZSqlTestForm.pas dbc\ZDbcASAUtils.pas dbc\ZDbcIntfs.pas These files are in Unix format (only LF, no CRLF)....
by AHUser
29.04.2006, 20:41
Forum: Bug Reports
Topic: [bug_fixed] ZDbcConnection.pas contains wrong line breaks
Replies: 1
Views: 1172

[bug_fixed] ZDbcConnection.pas contains wrong line breaks

ZDbcConnection.pas contains two wrong line breaks that cause the compiler to generate wrong line information for the debugger.

It can be easily fixed by opening the file in WordPad and saving it.
by AHUser
29.04.2006, 18:23
Forum: Bug Reports
Topic: [bug_fixed] MySQL: Cannot update this query type(backticks)
Replies: 4
Views: 4208

[bug_fixed] MySQL: Cannot update this query type(backticks)

If I specify this SQL select:

Code: Select all

select * from TableName
there is no problem in editing the records.

But if I use the quotation chars for the table name:

Code: Select all

select * from `TableName`
I get the error message "Cannot update this query type".

svn branch/testing (MySQL)
by AHUser
29.04.2006, 00:05
Forum: User Patches
Topic: [bug_fixed] const and optimization-Patch
Replies: 1
Views: 1672

[bug_fixed] const and optimization-Patch

This patch is against branch/testing (rev 42).
It adds the "const" modifier for ref-counted parameter types and it also replaces some Utils functions by faster equivalents.
by AHUser
28.04.2006, 23:10
Forum: Bug Reports
Topic: ZSysUtils.EndsWith bug
Replies: 0
Views: 876

ZSysUtils.EndsWith bug

If you call ZSysUtils.EndsWith with two empty strings, the function returns True. But Delphi's AnsiEndsStr and StrUtils.EndsStr returns False in that case. uses StrUtils, ZSysUtils; Assert( EndsWidth('', '') = EndsStr('', '') ); // => fails Is this intended or is it a bug? BTW: I'm optimizing the fu...
by AHUser
18.04.2006, 22:22
Forum: Firebird
Topic: performance
Replies: 6
Views: 3066

There are lots of functions in Zeos that can be improved in speed. I'm currently introducing thousands of "const" key words for string, Variant, TZVariant and dyn. array parameters what eliminates the compiler magic's reference counting-try/finally blocks. But that meight still take days o...
by AHUser
15.04.2006, 13:17
Forum: Feature Requests
Topic: [bug_fixed] Insert "const" for ref-counted paramet
Replies: 10
Views: 3846

It would be nice if you could go on modifying the other units, not yet changed.
I'll do it. But I don't know when. Maybe today, monday or sometimes next week.

BTW: There is a CVS directory in the "artwork" directory. I think this one shouldn't be there.
by AHUser
11.04.2006, 18:21
Forum: Feature Requests
Topic: [bug_fixed] Insert "const" for ref-counted paramet
Replies: 10
Views: 3846

The code is compatible from Delphi 5 to BDS 2006.

And I tested the "property bla[const Index: string]..." with FPC 2.0.0 [2005/05/08]. So this is also no problem.
by AHUser
11.04.2006, 11:07
Forum: Feature Requests
Topic: [bug_fixed] Insert "const" for ref-counted paramet
Replies: 10
Views: 3846

Here is the first patch (against SVN revision 32). It does not patch the ZDbc units at the moment (because that is a lot more work than I needed the other packages).


Not tested against FPC. Maybe FPC does not like the

property Bla[const Index: string]: TBlabla read...;
by AHUser
11.04.2006, 00:47
Forum: Feature Requests
Topic: [bug_fixed] Insert "const" for ref-counted paramet
Replies: 10
Views: 3846

[bug_fixed] Insert "const" for ref-counted paramet

The Delphi Compiler will generate faster code if you use the "const" modifier in parameters of the types "string", "variant" and dynamic/open arrays. Also records with such fields can be optimized with a simple "const". (best example: TZVariant) Example: funct...