Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different binary result returned by mysql function cast and preg_capture #30

Open
gitpypy opened this issue Jun 2, 2017 · 0 comments
Open

Comments

@gitpypy
Copy link

gitpypy commented Jun 2, 2017

Hi!
I met a problem when I was using preg_capture function to get some value.

First, I execute the following sql script:

select preg_capture('/([ⅠVIⅡⅢⅣ].{0,3}期)/', 'ⅣEA期' );

It returns the blob value �£EAæ��

And then, I execute the following sql script:
select cast('ⅣEA期' as binary) from dual;
It returns �EA�

I don't understand that why It missed an â when I execute the first sql script and that's not the right value I really want.

Help me please!
Thanks a lot.

@gitpypy gitpypy changed the title Different binary result returned by cast function and preg_capture function Different binary result returned by mysql function cast and preg_capture Jun 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant