MariaDB 5.5 (win64)
Delphi XE2 - Unidac 5.1.4 - Also 6.0.1
with MariaDB with utf8-general-ci charset works well!
but AV occur when using charset euckr_korean_ci.
I Attached Sample Files.
http://wbjsoft.com/down/Unidac_BLOB_AV.zip
Unidac MariaDB BLOB Column Updating leads AV when using charset euckr
-
- Posts: 2
- Joined: Thu 11 Dec 2014 15:23
-
- Posts: 2
- Joined: Thu 11 Dec 2014 15:23
Re: Unidac MariaDB BLOB Column Updating leads AV when using charset euckr
I Sloved problem... with Full Source Compile.
MyClassesUni.pas
function EscapeAndQuoteStr(const p: PAnsiChar; Len: integer; const NeedBackslashes: boolean; const Charset: string): AnsiString; overload;
function mysql_real_escape_string(_to, from: PAnsiChar; length: longword): longword;
var
to_start, _end: PAnsiChar;
IsGbkOrEuckr, IsEuckr: boolean;
begin
IsEuckr := False // LowerCase(Charset) = 'euckr1'; // Why?
IsGbkOrEuckr := (LowerCase(Charset) = 'gbk') or IsEuckr;
I Don't know why...
and also I don't know side effect...
I'll test it... please reply why.
Thank you in advance.
MyClassesUni.pas
function EscapeAndQuoteStr(const p: PAnsiChar; Len: integer; const NeedBackslashes: boolean; const Charset: string): AnsiString; overload;
function mysql_real_escape_string(_to, from: PAnsiChar; length: longword): longword;
var
to_start, _end: PAnsiChar;
IsGbkOrEuckr, IsEuckr: boolean;
begin
IsEuckr := False // LowerCase(Charset) = 'euckr1'; // Why?
IsGbkOrEuckr := (LowerCase(Charset) = 'gbk') or IsEuckr;
I Don't know why...
and also I don't know side effect...
I'll test it... please reply why.
Thank you in advance.
Re: Unidac MariaDB BLOB Column Updating leads AV when using charset euckr
Thank you for the information. The problem investigation is in progress. We will inform you when we have any results.
Re: Unidac MariaDB BLOB Column Updating leads AV when using charset euckr
We have reproduced and fixed the issue. The fix will be included in the next MyDAC build.
We plan to release the new build of MyDAC with fixed error within 2 weeks.
We plan to release the new build of MyDAC with fixed error within 2 weeks.