-
-
Notifications
You must be signed in to change notification settings - Fork 224
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
problem with utf8 characters making query crash #6851
Comments
What OS and connection charset? |
What you describe as "crashes"? Is it an Firebird error (-string right truncation -expected length 17, actual 30) or a process crash? |
Hi Fernandes, thanks |
I use windows10 and connect with ibexpert. UTF8 is the character set. thanks |
sorry I might have closed the issue by mistake and reopened it again. |
according to a friend of mine which has examined the issue a bit further: The offending text in the field is: [mɒθ] |
I do not see division by zero error when testing. What is exactly the error you see? Please past the error as text or image. |
I have emailed you the answer - but it does not turn up here? Anyway my friend now made me aware that this issue has been reported already in 2016: |
issue: #5534 is still open - does this mean its not fixed and will not be fixed??? |
The bugs have the same underline causes, but they are not a single bug. #5534 is going to be fixed sooner. |
Can I assume that if I filter out the "forbidden" characters mentioned at #5534 that the problem with the "containing" where clause is also gone? |
Hi,
I am stuck with a problem where a simple query crashes when certain characters are in a utf8 table field.
This is very simple to reproduce and takes 1 minute only.
The database (fb3) attached contains 1 table with 1 record and the sql statement below fails.
The offending text in the field is: [mɒθ]
FORWADE.zip
The sql statement:
select * from qfind qf where
(qf.gno = 45901) and (qf.sfld containing '45901')
There are other expressions which cause the same error e.g.
'ʃa:bɐ
[ɕiɑu'jɑŋ] [tʂɑŋ]
I have no workaround for this as the data comes in via people entering "whatever they see fit" into a website form.
I ran all the data in my production database through a filter which filters out characters which are not:
system.character.IsLetterOrDigit
system.character.IsPunctuation
system.character.IsSeparator
system.character.IsSymbol
system.character.IsNumber
system.character.IsWhitespace -> which i replace with a blank/space character.
I was hoping to get rid of the "forbidden characters" but the ones above came through and cause a big problem.
What to do?
thanks
sigi
The text was updated successfully, but these errors were encountered: