[patch_done] utf8+D_XE+win 32/64 + testing-egonhugeist 1132

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
rakosmar
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 06.04.2012, 07:55

[patch_done] utf8+D_XE+win 32/64 + testing-egonhugeist 1132

Post by rakosmar »

in myslq 5.x - 5.5.20 -utf8_czech_ci
varchar is ok,
but mediumtext or longtext after post delete character with diacritic
- attachment

char witch wedge are ok (ěščřžý)
You do not have the required permissions to view the files attached to this post.
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

rakosmar,

this is a known bug. He's still reported and included in our test-suites since a long time. I must admit that i was out of time to find out what's going wrong.

Some thoughts concerning this bug:

Zeos compares all fields from a row between Cached-ResultSets and the DbcResultSet to figure out if a update has to be done. Then Zeos builds a update statement which normaly includes all changed fields. It seem's for me that exacly only all kind of blob fields (AnsiText(TMemo), Unicode-Text(TWideMemo) and binary) where ignored on collection the field-informations. It is possible that this behavior is wanted because such updates are very slow on the server-side. On the other hand it's realy a bug if only blobs are changed and no Key-fields are aviable...

Eventually one hint concerning a possible workaround: Is it possible that your table definition has no primarykey or a unique index? What happens if you've such one?

Or can you help us to find out whats going wrong?

best regards,

EgonHugeist
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

It may be helpfull to add a TZSQLMonitor to your project to find out what query is sent to the server for doing the update. Are the right conditions used, ...
The reason may also be that a BLOB field is used in a where condition that isn't encoded exactly the same as the original value.

Mark
Image
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

mdaems,

the fields where compared right and this bug doesn't belong to a wrong encoding. Siply the blob-fields are exclude on building the "where-clause". IF his table had a PrimaryKey or an unique index, then everything is fine, i promisse.

Test849723 or Test815852. One of them points to this issue.

Michael
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Post by EgonHugeist »

Bug fixed Rev. 1237
Best regards, Michael

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Locked