Search found 21 matches

by hemmingway
07.01.2023, 16:03
Forum: Feature Requests
Topic: Compare only Date and only Time
Replies: 1
Views: 303

Compare only Date and only Time

I want to compare only Date and only Time.
The patch is attached.

Greetings, Bernhard
by hemmingway
19.11.2022, 11:20
Forum: ZeosLib 7.3/8.0 Forum
Topic: ZMemTable ignoring required fields
Replies: 7
Views: 276

Re: ZMemTable ignoring required fields

Hello,

now I must disable required check on one table (TZTable).
The required fields on a MariaDB server are filled, but the check raises an exception.

Greeings, Bernhard
by hemmingway
03.04.2016, 15:23
Forum: ZeosLib 7.2 Forum
Topic: Range check error
Replies: 7
Views: 2624

Re: Range check error

Hello,

I think this is the best solution:

TMySQLLengthArray = array[0..999] of Ulong; //http://dev.mysql.com/doc/refman/4.1/en/ ... limit.html

Greetings, Bernhard
by hemmingway
02.04.2016, 06:22
Forum: ZeosLib 7.2 Forum
Topic: Wrong field type boolean/smallint for MySQL
Replies: 8
Views: 1267

Re: Wrong field type boolean/smallint for MySQL

Hello,

The ENUM solution works, but BIT(1) don't. See my new patch for BIT(1).

Greetings, Bernhard
by hemmingway
31.03.2016, 17:51
Forum: ZeosLib 7.2 Forum
Topic: Range check error
Replies: 7
Views: 2624

Re: Range check error

Hello Jan, the range check error in ZFunctions.pas ist fixed. :D In ZDbcMySqlResultSet.pas the range check error is still present. I cannot reproduce In ZVariant.pas the range check error at the moment. For FLengthArray[ColumnIndex{$IFNDEF GENERIC_INDEX}-1{$ENDIF}] range check can not work. FLengthA...
by hemmingway
31.03.2016, 09:28
Forum: ZeosLib 7.2 Forum
Topic: Range check error
Replies: 7
Views: 2624

Re: Range check error

Sorry, I haven't made myself clear enough. I mean My proposal is to deliver (and test) the ZEOS project-sources are working with all checkings activated. While project development I switched on all debug checkings. But ZEOS crashes with these settings. The solution is to fix the code or as workaroun...
by hemmingway
31.03.2016, 09:01
Forum: ZeosLib 7.2 Forum
Topic: Wrong field type boolean/smallint for MySQL
Replies: 8
Views: 1267

Re: Wrong field type boolean/smallint for MySQL

Hello,

I have an old MySQL database. The missing boolean field type ist implemented as TinyInt(1).
For newer MySQL Versions is the field type bit available.

So I agree to
Assume using the TINYINT(1) as Boolean type simply is wrong!

Greetings, Bernhard
by hemmingway
29.03.2016, 18:49
Forum: ZeosLib 7.2 Forum
Topic: Wrong field type boolean/smallint for MySQL
Replies: 8
Views: 1267

Re: Wrong field type boolean/smallint for MySQL

Hello Jan,

Your patch looks fine.
But I found an other issue. The value for a boolean field can not stored as 'Y' or 'N' because the data type is TINY_INT.
Please look at my new patch.

Greetings, Bernhard
by hemmingway
28.03.2016, 11:56
Forum: ZeosLib 7.2 Forum
Topic: Range check error
Replies: 7
Views: 2624

Re: Range check error

-> My proposal is to deliver (and test) the ZEOS project-sources with all checkings activated.

This is the right way to deliver common sources. I have attached a patch for this problem.

Greetings, Bernhard
by hemmingway
27.03.2016, 16:04
Forum: ZeosLib 7.2 Forum
Topic: Wrong field type boolean/smallint for MySQL
Replies: 8
Views: 1267

Wrong field type boolean/smallint for MySQL

I got error messages wrong field type boolean/smallint for MySQL/Delphi XE6 . I found no sources for getting the field type stBoolean.
I attached a patch for this issue. Can somebody test and submit it to the 7.2 branch?

Greeetings, Bernhard
by hemmingway
10.02.2015, 12:49
Forum: ZeosLib 7.2 Forum
Topic: 7.2 testers-thread
Replies: 514
Views: 120252

Re: 7.2-Beta testers-thread

The fix in ZDbcMySql.pas in revision 3565 > procedure TZMySQLConnection.SetAutoCommit(Value: Boolean); > begin > if AutoCommit <> Value then > //if AutoCommit <> Self.AutoCommit then > begin > inherited SetAutoCommit(AutoCommit); is the reason for not working adding or deleting records. I think the ...
by hemmingway
03.07.2014, 11:30
Forum: ZeosLib 7.2 Forum
Topic: InsertRecord Statement fails without error message
Replies: 1
Views: 610

Re: InsertRecord Statement fails without error message

Sorry, my mistake.

InsertRecord is not a procedure of TZAbstractRODataset.
This can without Delphi XE6 sources not work.

Greetings, Bernhard
by hemmingway
03.07.2014, 09:06
Forum: ZeosLib 7.2 Forum
Topic: InsertRecord Statement fails without error message
Replies: 1
Views: 610

InsertRecord Statement fails without error message

Environment: XE6, MySQL I try to add an entry to a mysql table with InsertRecord. Nothing happens. No error message. No entry in the monitor logfile. Adding a new line in a TDBGrid connected to the same table works. I see the insert statement in the monitor logfile. What is the reason? Empty RowBuff...
by hemmingway
12.03.2012, 13:28
Forum: ZeosLib 7.0 Beta Forum
Topic: Full Unicode/Ansi-Support in /testing branch
Replies: 653
Views: 82125

MySQL: I got for long strings following error message:

'Column length too big for column ''Name'' (max = 255); use BLOB or TEXT instead'

Column length is multiplied by factor 6
by hemmingway
12.03.2012, 10:56
Forum: ZeosLib 7.0 Beta Forum
Topic: TZAbstractConnection.GetTableNames
Replies: 1
Views: 456

TZAbstractConnection.GetTableNames

I changed the order from tablePattern,schemaPattern to schemaPattern,tablePattern. I got previous a "table not found" error. The only one call of the function is in TZAbstractConnection.pas: GetTableNames('',Pattern,nil,List); My changes: procedure GetTableNames(const schemaPattern,tablePa...