- I snapshotted the latest from SVN repo and built and successfully installed into my Delphi 2009 Architect Upd1 installation.
- Connecting to an existing MySQL (Version : 5.1.22-rc) database I did a SELECT * on my table and displayed this in a DevExpress CX grid. Some of the fields have their last character truncated for instance:
State char(3) utf8_general_ci
PostCode varchar(4) utf8_general_ci
Testing with the dbExpress driver against the same does not have the character chopped off. Any ideas or thoughts?
If I then attempt to edit the record I get the following exception:
exception class : EZDatabaseError
exception message : 0 record(s) updated. Only one record should have been updated.
main thread ($19eec):
008cdfc5 My.exe ZAbstractDataset 383 TZAbstractDataset.InternalUpdate
008ce2af My.exe ZAbstractDataset 470 TZAbstractDataset.InternalPost
004b138d My.exe DB TDataSet.CheckOperation
004b1040 My.exe DB TDataSet.Post
All help and pointers greatly appreciated. I include below my full table definition if it is helpful:
MySQL Version : 5.1.22-rc
Server Default Charset : latin1
Code: Select all
Field Type Collation Null Key Default Extra Privileges Comment
----------------- ----------- --------------- ------ ------ ------- ------ ------------------------------- -------------------------------------------------------------
Code char(38) utf8_general_ci NO PRI select,insert,update,references Unique Identifier
Name varchar(45) utf8_general_ci YES (NULL) select,insert,update,references Human readable unique identifier
Address1 varchar(45) utf8_general_ci YES (NULL) select,insert,update,references General number and street info line 1
Address2 varchar(45) utf8_general_ci YES (NULL) select,insert,update,references General number and street info line 2
City varchar(45) utf8_general_ci YES (NULL) select,insert,update,references City/Town of the address
Suburb varchar(45) utf8_general_ci YES (NULL) select,insert,update,references Suburb within the city/town.
State char(3) utf8_general_ci YES (NULL) select,insert,update,references State that the city/town (and suburb if entered) reside.
PostCode varchar(4) utf8_general_ci YES (NULL) select,insert,update,references Post code that which is defined by the city/town and suburb.
ContactsGroupCode char(38) utf8_general_ci YES (NULL) select,insert,update,references The code for the group of contacst for this client.
UserCode char(38) utf8_general_ci YES (NULL) select,insert,update,references The user code that the client logs into the system with