Index: src/dbc/ZDbcMySqlUtils.pas
===================================================================
--- src/dbc/ZDbcMySqlUtils.pas (revision 903)
+++ src/dbc/ZDbcMySqlUtils.pas (working copy)
@@ -243,14 +243,22 @@
(PMYSQL_FIELD(FieldHandle)^.charsetnr = 83) or
((PMYSQL_FIELD(FieldHandle)^.charsetnr>=192) and
(PMYSQL_FIELD(FieldHandle)^.charsetnr<=210)) )(* the end is not fix ??? *) then
- Result := stUnicodeString
+ {$IFDEF FPC}
+ Result := stString
+ {$ELSE}
+ Result := stUnicodeString
+ {$ENDIF}
else
if ( // UCS2
(PMYSQL_FIELD(FieldHandle)^.charsetnr = 35) or
(PMYSQL_FIELD(FieldHandle)^.charsetnr = 90) or
((PMYSQL_FIELD(FieldHandle)^.charsetnr>=128) and
(PMYSQL_FIELD(FieldHandle)^.charsetnr<=146)) )(* the end is not fix ??? *) then
- Result := stUnicodeString
+ {$IFDEF FPC}
+ Result := stString
+ {$ELSE}
+ Result := stUnicodeString
+ {$ENDIF}
else
Result := stString;
FIELD_TYPE_ENUM:
Last edited by ism on 21.05.2011, 20:20, edited 1 time in total.
There might be other places when something like this needs to be done for FPC/Lazarus.
The other day I again saw a lot of ?? field value returns for some simple string fields (not calculated fields, just normal db fields) on Windows (did not check on Linux).