MyDac and MySQL 5.0.27 issue ?
Posted: Sat 11 Nov 2006 19:57
Hi,
I'm having an situation since the upgrade of our MySQL server.
We have upgraded from v4.1.21 to v5.0.27
I have a table with a 'VarcharField ' (varchar).
When VarcharField field is Null the code bellow is working :
When VarcharField field is '' (empty string) the code bellow is no more working, delphi always retrun the compaison to true. This code worked on the 4.1 mysql server.
Is it possible that the MyDAC component don't retreive the string field correctly ?
Thank you for your support
I'm having an situation since the upgrade of our MySQL server.
We have upgraded from v4.1.21 to v5.0.27
I have a table with a 'VarcharField ' (varchar).
When VarcharField field is Null the code bellow is working :
Code: Select all
if not(MyQuery.FieldByname('VarcharField').Isnull) then
If MyQuery.FieldByname('VarcharField').AsString '' then dosomething else exit ;
....Code: Select all
if not(MyQuery.FieldByname('VarcharField').Isnull) then
If MyQuery.FieldByname('VarcharField').AsString '' then dosomething else exit ;
....Thank you for your support